From bf2fbd9f3e90dd2ef508c5944ae63491397b42ae Mon Sep 17 00:00:00 2001
From: LSH
Date: 星期六, 04 十一月 2023 10:35:26 +0800
Subject: [PATCH] #
---
src/main/java/com/zy/crm/manager/entity/Plan.java | 42 +++++++++++++++++++++++++++++++++++-------
1 files changed, 35 insertions(+), 7 deletions(-)
diff --git a/src/main/java/com/zy/crm/manager/entity/Plan.java b/src/main/java/com/zy/crm/manager/entity/Plan.java
index 7a4ff33..4e02dbf 100644
--- a/src/main/java/com/zy/crm/manager/entity/Plan.java
+++ b/src/main/java/com/zy/crm/manager/entity/Plan.java
@@ -246,6 +246,12 @@
@ApiModelProperty(value= "涓氬姟鍛樿仈绯绘柟寮�")
private String userXmlSelPhone;
+ /**
+ * 鑺傜偣璐熻矗浜�
+ */
+ @ApiModelProperty(value= "鑺傜偣璐熻矗浜�")
+ private Long director;
+
public Plan() {}
public String getHostId$(){
@@ -253,6 +259,16 @@
Host host = service.selectById(this.hostId);
if (!Cools.isEmpty(host)){
return String.valueOf(host.getName());
+ }
+ return null;
+ }
+
+ public String getDirector$(){
+ if (this.director==null) return "";
+ UserService service = SpringUtils.getBean(UserService.class);
+ User user = service.selectById(this.director);
+ if (!Cools.isEmpty(user)){
+ return String.valueOf(user.getNickname());
}
return null;
}
@@ -271,6 +287,15 @@
PlanType planType = service.selectById(this.planType);
if (!Cools.isEmpty(planType)){
return String.valueOf(planType.getName());
+ }
+ return null;
+ }
+
+ public Integer getPLType$(){
+ PlanTypeService service = SpringUtils.getBean(PlanTypeService.class);
+ PlanType planType = service.selectById(this.planType);
+ if (!Cools.isEmpty(planType)){
+ return planType.getType();
}
return null;
}
@@ -360,15 +385,15 @@
public String getSettle$(){
if (null == this.settle){ return null; }
switch (this.settle){
+// case 1:
+// return "绛夊緟缁勯暱瀹℃牳";
case 1:
- return "绛夊緟缁勯暱瀹℃牳";
- case 2:
return "绛夊緟鍞墠鍒嗛厤瑙勫垝鍛�";
- case 3:
+ case 2:
return "绛夊緟瑙勫垝鍛樻彁浜�";
- case 4:
+ case 3:
return "瑙勫垝鍛樺凡鎻愪氦";
- case 5:
+ case 4:
return "瀹℃壒閫氳繃";
default:
return String.valueOf(this.settle);
@@ -376,6 +401,7 @@
}
public String getPlanner$(){
+ if (this.planner==null) return "鏈垎閰�";
UserService service = SpringUtils.getBean(UserService.class);
User user = service.selectById(this.planner);
if (!Cools.isEmpty(user)){
@@ -397,10 +423,12 @@
public String getStatus$(){
if (null == this.status){ return null; }
switch (this.status){
+ case 2:
+ return "寮�濮嬫牳浠�";
case 1:
- return "姝e父";
+ return "绛夊緟鏍镐环";
case 0:
- return "绂佺敤";
+ return "鏈畬鎴�";
default:
return String.valueOf(this.status);
}
--
Gitblit v1.9.1