From dda5c81dbf88549ade7aaaf352a261c7d638f045 Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期二, 10 十月 2023 10:23:11 +0800
Subject: [PATCH] #回退流程相关

---
 src/main/java/com/zy/crm/manager/entity/Cstmr.java |  150 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 150 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/zy/crm/manager/entity/Cstmr.java b/src/main/java/com/zy/crm/manager/entity/Cstmr.java
index 63566ec..deb79cb 100644
--- a/src/main/java/com/zy/crm/manager/entity/Cstmr.java
+++ b/src/main/java/com/zy/crm/manager/entity/Cstmr.java
@@ -8,9 +8,11 @@
 import com.core.common.SpringUtils;
 import com.zy.crm.manager.service.CstmrTypeService;
 import com.zy.crm.system.entity.Dept;
+import com.zy.crm.system.entity.Dic;
 import com.zy.crm.system.entity.Host;
 import com.zy.crm.system.entity.User;
 import com.zy.crm.system.service.DeptService;
+import com.zy.crm.system.service.DicService;
 import com.zy.crm.system.service.HostService;
 import com.zy.crm.system.service.UserService;
 import io.swagger.annotations.ApiModelProperty;
@@ -194,6 +196,62 @@
     @ApiModelProperty(value= "娉ㄩ噴")
     private String memo;
 
+    /**
+     * 瀹㈡埛琛屼笟
+     */
+    @ApiModelProperty(value= "瀹㈡埛琛屼笟")
+    @TableField("industry")
+    private String industry;
+
+    /**
+     * 浜у搧绫诲埆
+     */
+    @ApiModelProperty(value= "浜у搧绫诲埆")
+    @TableField("product_category")
+    private String productCategory;
+
+    /**
+     * 浼佷笟淇$敤浠g爜
+     */
+    @ApiModelProperty(value= "浼佷笟淇$敤浠g爜")
+    @TableField("credit_code")
+    private String creditCode;
+
+    /**
+     * 浼佷笟鍒涘缓鏃堕棿
+     */
+    @ApiModelProperty(value= "浼佷笟鍒涘缓鏃堕棿")
+    @TableField("issue_time")
+    private String issueTime;
+
+    /**
+     * 浼佷笟绫诲瀷
+     */
+    @ApiModelProperty(value= "浼佷笟绫诲瀷")
+    @TableField("company_type")
+    private String companyType;
+
+    /**
+     * 浼佷笟娉曚汉
+     */
+    @ApiModelProperty(value= "浼佷笟娉曚汉")
+    @TableField("company_person")
+    private String companyPerson;
+
+    /**
+     * 浼佷笟鐘舵��
+     */
+    @ApiModelProperty(value= "浼佷笟鐘舵��")
+    @TableField("company_status")
+    private String companyStatus;
+
+    /**
+     * 娉ㄥ唽璧勯噾
+     */
+    @ApiModelProperty(value= "娉ㄥ唽璧勯噾")
+    @TableField("reg_money")
+    private String regMoney;
+
     public Cstmr() {}
 
     public Cstmr(Long hostId,Long deptId,Long userId,Long cstmrType,String uuid,String name,String simple,String rela,String tel,String contacts,String remarks,Long director,String province,String city,String district,String town,String addr,Integer type,String files,Integer status,Long createBy,Date createTime,Long updateBy,Date updateTime,String memo) {
@@ -297,6 +355,24 @@
         return null;
     }
 
+
+    public void setType0(String type0){
+        if (Cools.isEmpty(type0)) {
+            return;
+        }
+        switch (type0){
+            case "鍐呴攢":
+                this.type = 1;
+                break;
+            case "澶栭攢":
+                this.type = 2;
+                break;
+            default:
+                this.type = 1;
+                break;
+        }
+    }
+
     public String getType$(){
         if (null == this.type){ return null; }
         switch (this.type){
@@ -353,5 +429,79 @@
         return new SimpleDateFormat("yyyy-MM-dd HH:mm").format(this.updateTime);
     }
 
+    @TableField(exist = false)
+    private String pcd;
+
+    public String getPcd() {
+        StringBuilder sb = new StringBuilder();
+        if (!Cools.isEmpty(province)) {
+            sb.append(province).append(",");
+        }
+        if (!Cools.isEmpty(city)) {
+            sb.append(city).append(",");
+        }
+        if (!Cools.isEmpty(district)) {
+            sb.append(district).append(",");
+        }
+        String s = sb.toString();
+        if (s.endsWith(",")) {
+            s = s.substring(0, s.length() - 1);
+        }
+        return s;
+    }
+
+    public String getPcd$() {
+        StringBuilder sb = new StringBuilder();
+        DicService service = SpringUtils.getBean(DicService.class);
+        if (!Cools.isEmpty(province)) {
+            Dic provinceDic = service.selectById(province);
+            if (!Cools.isEmpty(provinceDic)) {
+                sb.append(provinceDic.getName()).append(",");
+            }
+        }
+        if (!Cools.isEmpty(city)) {
+            Dic cityDic = service.selectById(city);
+            if (!Cools.isEmpty(cityDic)) {
+                sb.append(cityDic.getName()).append(",");
+            }
+        }
+        if (!Cools.isEmpty(district)) {
+            Dic districtDic = service.selectById(district);
+            if (!Cools.isEmpty(districtDic)) {
+                sb.append(districtDic.getName()).append(",");
+            }
+        }
+        String s = sb.toString();
+        if (s.endsWith(",")) {
+            s = s.substring(0, s.length() - 1);
+        }
+        return s;
+    }
+
+    public void setPcd(String pcd) {
+        this.pcd = pcd;
+        if (!Cools.isEmpty(pcd)) {
+            String[] split = this.pcd.split(",");
+            for (int i = 0;i< split.length; i++) {
+                switch (i) {
+                    case 0:
+                        this.province = split[0];
+                        break;
+                    case 1:
+                        this.city = split[1];
+                        break;
+                    case 2:
+                        this.district = split[2];
+                        break;
+                    default:
+                        break;
+                }
+            }
+        } else {
+            this.province = "";
+            this.city = "";
+            this.district = "";
+        }
+    }
 
 }

--
Gitblit v1.9.1