From 68e6e63670351165cc3c9aede5d7a1b5b7ba3fde Mon Sep 17 00:00:00 2001 From: LSH Date: 星期四, 14 九月 2023 14:22:39 +0800 Subject: [PATCH] #CstmrId$ --- src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java b/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java index f362af7..a9004cd 100644 --- a/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java +++ b/src/main/java/com/zy/crm/manager/entity/PriQuoteBudget.java @@ -141,8 +141,10 @@ } public Long getCstmrId$(){ + PlanService planService = SpringUtils.getBean(PlanService.class); + Plan plan = planService.selectById(this.itemId); CstmrService cstmrService = SpringUtils.getBean(CstmrService.class); - Cstmr cstmr = cstmrService.selectByName(1L, this.templateName); + Cstmr cstmr = cstmrService.selectById(plan.getCstmrId()); if (!Cools.isEmpty(cstmr)){ return cstmr.getId(); } -- Gitblit v1.9.1