From 8b3f9860cf8e2675c5f9eab86f1939e82e97fac8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@63.com>
Date: 星期二, 13 九月 2022 08:59:31 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/crm/manager/entity/Cstmr.java | 42 ++++++++++++++++++++++++++++++++++++++++++
1 files changed, 42 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..2822ccc 100644
--- a/src/main/java/com/zy/crm/manager/entity/Cstmr.java
+++ b/src/main/java/com/zy/crm/manager/entity/Cstmr.java
@@ -353,5 +353,47 @@
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 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;
+ }
+ }
+ }
+ }
}
--
Gitblit v1.9.1