From cc9dcfec975f6a10121be67eac6d029d159b9460 Mon Sep 17 00:00:00 2001
From: shiyunteng <shiyunteng@example.com>
Date: 星期二, 20 十月 2026 14:19:42 +0800
Subject: [PATCH] feat:长期协议,不定期新增单位,标的物 历史导入标的物,根据接口查询 石煤机乙方总公司选总公司 和 分公司 银行流水加 时间拉取 流水数据 产品加拉取按钮 盖章件关闭控制

---
 platformx-business-finance-api/src/main/java/com/by4cloud/platformx/business/entity/Product.java |   42 +++++++++++++++++++++++++++++++++---------
 1 files changed, 33 insertions(+), 9 deletions(-)

diff --git a/platformx-business-finance-api/src/main/java/com/by4cloud/platformx/business/entity/Product.java b/platformx-business-finance-api/src/main/java/com/by4cloud/platformx/business/entity/Product.java
index ecfa3ea..3d5900d 100644
--- a/platformx-business-finance-api/src/main/java/com/by4cloud/platformx/business/entity/Product.java
+++ b/platformx-business-finance-api/src/main/java/com/by4cloud/platformx/business/entity/Product.java
@@ -7,24 +7,24 @@
 import jakarta.persistence.Entity;
 import jakarta.persistence.Transient;
 import lombok.Data;
-import org.hibernate.annotations.Comment;
-import jakarta.persistence.Table;
+
 
 import java.util.List;
 
 /**
- * @author wjli
+ * @author
  * @description
  * @date 2026/4/29 10:51
  **/
 @Data
-@Entity
-@Table(name = "product")
-@Comment("浜у搧淇℃伅")
+@Entity//鍔犱簡鎵嶈兘鑷姩鐢熸垚琛�
+@org.hibernate.annotations.Table(appliesTo="product",comment = "浜у搧")//缁欒〃鍔犳敞閲�
+@jakarta.persistence.Table(name = "product")//鏁版嵁搴撳垱寤虹殑琛ㄦ槑
 public class Product extends BaseModel<Product> {
+
     //浜у搧鍚嶇О銆佷骇鍝佺紪鐮侊紙涓绘暟鎹�丒RP锛夈�佷骇鍝佷环鏍笺�佺◣鐐广�佹墍灞炰笂绾�
     @Schema(description = "浜у搧鍚嶇О")
-    @Column(columnDefinition = "VARCHAR(50) comment '浜у搧鍚嶇О'")
+    @Column(columnDefinition = "VARCHAR(512) comment '浜у搧鍚嶇О'")
     private String productName;
 
     @Schema(description = "浜у搧闆嗗洟缂栫爜")
@@ -35,9 +35,13 @@
     @Column(columnDefinition = "VARCHAR(50) comment '浜у搧Erp缂栫爜'")
     private String erpCode;
 
-    @Schema(description = "浜у搧浠锋牸")
+    @Schema(description = "浜у搧鍨嬪彿")
+    @Column(columnDefinition = "VARCHAR(50) comment '浜у搧鍨嬪彿'")
+    private String productType;
+
+  /*  @Schema(description = "浜у搧浠锋牸")
     @Column(columnDefinition = "double comment '浜у搧浠锋牸'")
-    private Double price;
+    private Double price;*/
 
     @Schema(description = "绋庣巼锛堢櫨鍒嗘瘮锛屽13琛ㄧず13%锛�")
     @Column(columnDefinition = "double default 0.00 comment '绋庣巼'")
@@ -47,9 +51,22 @@
     @Column(columnDefinition = "VARCHAR(50) comment '绋庢敹鍒嗙被'")
     private String taxClass;
 
+    @Schema(description = "绋庢敹缂栫爜")
+    @Column(columnDefinition = "VARCHAR(80) comment '绋庢敹缂栫爜'")
+    private String taxCode;
+
     @Schema(description = "鐖禝D")
     @Column(columnDefinition = "bigint default 0 comment '鐖禝D'")
     private Long parentId;
+
+	@Schema(description = "璁¢噺鍗曚綅")
+	@Column(columnDefinition = "VARCHAR(80) comment '璁¢噺鍗曚綅'")
+	private String unitName;
+
+    @Schema(description = "鐖跺悕绉�")
+    @Transient
+    @TableField(exist = false)
+    private String parentName;
 
     /**
      * 鏍囩殑鐗�
@@ -57,4 +74,11 @@
     @Transient
     @TableField(exist = false)
     private List<Product> children;
+
+	/**
+	 * 鏍囩殑鐗�
+	 */
+	@Transient
+	@TableField(exist = false)
+	private Integer childNum;
 }

--
Gitblit v1.9.1