From 518b7a20ef1add6c6910eca89b1fef0fbd83e03d Mon Sep 17 00:00:00 2001
From: whycq <you@example.com>
Date: 星期日, 01 一月 2023 07:03:19 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/crm/manager/entity/Cstmr.java |   48 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 48 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 259cdc0..34a226a 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;
@@ -297,6 +299,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){
@@ -374,6 +394,34 @@
         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)) {

--
Gitblit v1.9.1