From 9c3c9bf7dfaf0f1c162a6aa06fdb7ca81711f70d Mon Sep 17 00:00:00 2001 From: LSH Date: 星期二, 10 十月 2023 11:49:07 +0800 Subject: [PATCH] #回退流程相关 --- src/main/java/com/zy/crm/manager/entity/Plan.java | 41 ++++++++++++++++++++++++++++++++++------- 1 files changed, 34 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..6516775 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); @@ -397,10 +422,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