From 0a9160ff7f91d63b5d55a5abee8efe93b68d78dd Mon Sep 17 00:00:00 2001 From: LSH Date: 星期三, 22 十一月 2023 15:18:05 +0800 Subject: [PATCH] # --- src/main/java/com/zy/crm/manager/entity/Order.java | 54 ++++++++++++++++++++++++++++++++++++++++++++---------- 1 files changed, 44 insertions(+), 10 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/entity/Order.java b/src/main/java/com/zy/crm/manager/entity/Order.java index 36c4605..bfaed43 100644 --- a/src/main/java/com/zy/crm/manager/entity/Order.java +++ b/src/main/java/com/zy/crm/manager/entity/Order.java @@ -8,6 +8,7 @@ import com.core.common.SpringUtils; import com.zy.crm.manager.service.CompanyService; import com.zy.crm.manager.service.CstmrService; +import com.zy.crm.manager.service.OrderProductTypeService; import com.zy.crm.system.entity.Dept; import com.zy.crm.system.entity.Dic; import com.zy.crm.system.entity.Host; @@ -59,9 +60,9 @@ private Long userId; /** - * 鐢叉柟鍗曚綅 + * 瀹㈡埛淇℃伅 */ - @ApiModelProperty(value= "鐢叉柟鍗曚綅") + @ApiModelProperty(value= "瀹㈡埛淇℃伅") @TableField("cstmr_id") private Long cstmrId; @@ -138,9 +139,9 @@ private String files; /** - * 鐘舵�� 1: 姝e父 0: 绂佺敤 + * 椤圭洰鐘舵�亄0:璺熻釜涓�,1:瀹屾垚,2:鍏抽棴} */ - @ApiModelProperty(value= "鐘舵�� 1: 姝e父 0: 绂佺敤 ") + @ApiModelProperty(value= "椤圭洰鐘舵�亄0:璺熻釜涓�,1:瀹屾垚,2:鍏抽棴}") private Integer status; /** @@ -178,16 +179,35 @@ @TableField("step") private int step; - /** * 娉ㄩ噴 */ @ApiModelProperty(value= "娉ㄩ噴") private String memo; + /** + * 娉ㄩ噴 + */ + @ApiModelProperty(value= "蹇冨緱浣撲細") + @TableField("memo_experience") + private String memoExperience; + + /** + * 棰勮鎴愪氦鐜� + */ + @ApiModelProperty(value= "棰勮鎴愪氦鐜�") + private String transactionRate; + + /** + * 娣诲姞浜哄憳 + */ + @ApiModelProperty(value= "浜у搧绫诲瀷") + @TableField("order_product_type_id") + private Long orderProductTypeId; public Order() {} - public Order(Long hostId,Long deptId,Long userId,Long cstmrId,String uuid,String name,Double money,Long company,String remarks,Long director,String province,String city,String district,String town,String addr,String files,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,Integer step,String memo) { + public Order(Long id, Long hostId, Long deptId, Long userId, Long cstmrId, String uuid, String name, Double money, Long company, String remarks, Long director, String province, String city, String district, String town, String addr, String files, Integer status, Long createBy, Date createTime, Long updateBy, Date updateTime, int step, String memo, String transactionRate, String pcd,Long orderProductTypeId) { + this.id = id; this.hostId = hostId; this.deptId = deptId; this.userId = userId; @@ -211,13 +231,16 @@ this.updateTime = updateTime; this.step = step; this.memo = memo; + this.transactionRate = transactionRate; + this.pcd = pcd; + this.orderProductTypeId = orderProductTypeId; } // Order order = new Order( // null, // 鎵�灞炲晢鎴� // null, // 鎵�灞為儴闂� // null, // 鎵�灞炰汉鍛� -// null, // 鐢叉柟鍗曚綅 +// null, // 瀹㈡埛淇℃伅 // null, // 瀹㈡埛浠e彿[闈炵┖] // null, // 瀹㈡埛鍚嶇О[闈炵┖] // null, // 鎬婚噾棰� @@ -243,6 +266,15 @@ Host host = service.selectById(this.hostId); if (!Cools.isEmpty(host)){ return String.valueOf(host.getName()); + } + return null; + } + + public String getOrderProductTypeId$(){ + OrderProductTypeService orderProductTypeService = SpringUtils.getBean(OrderProductTypeService.class); + OrderProductType orderProductType = orderProductTypeService.selectById(this.orderProductTypeId); + if (!Cools.isEmpty(orderProductType)){ + return String.valueOf(orderProductType.getName()); } return null; } @@ -295,10 +327,12 @@ public String getStatus$(){ if (null == this.status){ return null; } switch (this.status){ - case 1: - return "姝e父"; case 0: - return "绂佺敤"; + return "璺熻釜涓�"; + case 1: + return "瀹屾垚"; + case 2: + return "鍏抽棴"; default: return String.valueOf(this.status); } -- Gitblit v1.9.1