From efbc8993d6545d7ab898f5349a89915729fe5cb7 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期五, 06 十月 2023 14:12:31 +0800 Subject: [PATCH] #一键修改负责人 --- src/main/java/com/zy/crm/manager/entity/PriQuote.java | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/entity/PriQuote.java b/src/main/java/com/zy/crm/manager/entity/PriQuote.java index 5962abb..1f683f3 100644 --- a/src/main/java/com/zy/crm/manager/entity/PriQuote.java +++ b/src/main/java/com/zy/crm/manager/entity/PriQuote.java @@ -6,6 +6,7 @@ import java.util.Date; import com.core.common.SpringUtils; +import com.zy.crm.manager.service.CstmrService; import com.zy.crm.manager.service.ItemService; import com.zy.crm.manager.service.PlanService; import com.zy.crm.system.entity.User; @@ -133,6 +134,17 @@ this.settle = settle; } + public Long getCstmrId$(){ + PlanService planService = SpringUtils.getBean(PlanService.class); + Plan plan = planService.selectById(this.itemId); + CstmrService cstmrService = SpringUtils.getBean(CstmrService.class); + Cstmr cstmr = cstmrService.selectById(plan.getCstmrId()); + if (!Cools.isEmpty(cstmr)){ + return cstmr.getId(); + } + return 0L; + } + public String getSettle$(){ if (null == this.settle){ return null; } switch (this.settle){ -- Gitblit v1.9.1