From 3b2d7d1327b53ea6a641ae947f3062b1dd1dcd70 Mon Sep 17 00:00:00 2001 From: LSH Date: 星期五, 17 十一月 2023 14:21:16 +0800 Subject: [PATCH] # --- src/main/java/com/zy/crm/manager/controller/PriOnline2Controller.java | 13 ++++++++----- 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/crm/manager/controller/PriOnline2Controller.java b/src/main/java/com/zy/crm/manager/controller/PriOnline2Controller.java index 84ae90d..123ebe9 100644 --- a/src/main/java/com/zy/crm/manager/controller/PriOnline2Controller.java +++ b/src/main/java/com/zy/crm/manager/controller/PriOnline2Controller.java @@ -246,7 +246,10 @@ User userUp = userService.selectById(plan.getUserId()); priOnline2.setAssistantHostSign(plan.getAssistantHostSign()); priOnline2.setAssistantPlanId(plan.getAssistantPlanId()); - priOnline2.setHostPlanId(plan.getHostPlanId()); + priOnline2.setHostPlanId(plan.getId()); + if (plan.getAssistantHostSign()==1){ + priOnline2.setHostPlanId(plan.getHostPlanId()); + } //涓氬姟鍛� @@ -307,10 +310,10 @@ // 鑷姩娣诲姞璺熻繘浜� for (User user:users){ - List<PriOnline2Foll> priOnline2Folls = priOnline2FollService.selectList(new EntityWrapper<PriOnline2Foll>().eq("pri_online2_id", plan.getId()).eq("user_id", user.getId())); + List<PriOnline2Foll> priOnline2Folls = priOnline2FollService.selectList(new EntityWrapper<PriOnline2Foll>().eq("pri_online2_id", priOnline2.getId()).eq("user_id", user.getId())); if (Cools.isEmpty(priOnline2Folls) || priOnline2Folls.size()==0){ PriOnline2Foll priOnline2Foll = new PriOnline2Foll(); - priOnline2Foll.setPriOnline2Id(plan.getId()); + priOnline2Foll.setPriOnline2Id(priOnline2.getId()); priOnline2Foll.setUserId(user.getId()); if (!priOnline2FollService.insert(priOnline2Foll)) { throw new CoolException("淇濆瓨澶辫触锛岃閲嶈瘯"); @@ -750,8 +753,8 @@ @ManagerAuth public R priOnline2priQuoteAdd(@RequestParam Long planId) { List<KeyValueVo> vos = new ArrayList<>(); - vos.add(new KeyValueVo("鎶ヤ环妯℃澘1", 1L)); - vos.add(new KeyValueVo("鎶ヤ环妯℃澘2", 2L)); + vos.add(new KeyValueVo("璐ф灦妯℃澘", 1L)); + vos.add(new KeyValueVo("闆嗘垚妯℃澘", 2L)); return R.ok().add(vos); } -- Gitblit v1.9.1