From 9bb538e6fe6b24ee23e1726219c25634b2507e74 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期四, 14 九月 2023 15:28:23 +0800 Subject: [PATCH] # --- src/main/java/com/zy/crm/manager/entity/PriQuote.java | 4 +++- 1 files changed, 3 insertions(+), 1 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 e9e6be8..1f683f3 100644 --- a/src/main/java/com/zy/crm/manager/entity/PriQuote.java +++ b/src/main/java/com/zy/crm/manager/entity/PriQuote.java @@ -135,8 +135,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