1.技术监督计划bug修改

This commit is contained in:
cdf
2024-04-17 09:14:04 +08:00
parent a07aad3fc0
commit f4cf03d90f

View File

@@ -127,7 +127,7 @@ public class SupvPushGwServiceImpl implements SupvPushGwService {
List<DictData> planList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.PLAN_STATUS.getCode()).getData(); List<DictData> planList = dicDataFeignClient.getDicDataByTypeCode(DicDataTypeEnum.PLAN_STATUS.getCode()).getData();
Map<String, DictData> mapPlan = planList.stream().collect(Collectors.toMap(DictData::getId, Function.identity())); Map<String, DictData> mapPlan = planList.stream().collect(Collectors.toMap(DictData::getId, Function.identity()));
List<String> userIds = supvPlanList.stream().map(SupvPlan::getCreateBy).distinct().collect(Collectors.toList()); List<String> userIds = supvPlanList.stream().map(SupvPlan::getPlanUserId).distinct().collect(Collectors.toList());
List<User> userList = userFeignClient.getUserByIdList(userIds).getData(); List<User> userList = userFeignClient.getUserByIdList(userIds).getData();
Map<String, User> map = userList.stream().collect(Collectors.toMap(User::getId, Function.identity())); Map<String, User> map = userList.stream().collect(Collectors.toMap(User::getId, Function.identity()));