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/common/model/SettleDto.java | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/src/main/java/com/zy/crm/common/model/SettleDto.java b/src/main/java/com/zy/crm/common/model/SettleDto.java index 3b57330..8f3ecad 100644 --- a/src/main/java/com/zy/crm/common/model/SettleDto.java +++ b/src/main/java/com/zy/crm/common/model/SettleDto.java @@ -30,7 +30,7 @@ private Boolean curr; - public static List<SettleDto> init(Plan plan, User manager) { + public static List<SettleDto> init(Plan plan, User manager,User planLeader) { List<SettleDto> list = new ArrayList<>(); for (int i = 1; i < 6; i++) { SettleDto dto = new SettleDto(); @@ -45,21 +45,23 @@ dto.setCurr(Boolean.TRUE); list.add(dto); break; +// case 2: +// dto.setTitle("缁勯暱瀹℃牳"); +// dto.setUserId(manager.getId()); +// dto.setUsername(manager.getNickname()); +// list.add(dto); +// break; case 2: - dto.setTitle("缁勯暱瀹℃牳"); - dto.setUserId(manager.getId()); - dto.setUsername(manager.getNickname()); + dto.setTitle("鍞墠瀹℃牳"); + dto.setUserId(planLeader.getId()); + dto.setUsername(planLeader.getNickname()); list.add(dto); break; case 3: - dto.setTitle("鍞墠瀹℃牳"); - list.add(dto); - break; - case 4: dto.setTitle("瑙勫垝鍛樺鏍�"); list.add(dto); break; - case 5: + case 4: dto.setTitle("瀹℃壒閫氳繃"); dto.setUserId(plan.getUserId()); dto.setUsername(plan.getUserId$()); -- Gitblit v1.9.1