|
@@ -575,10 +575,10 @@ public class CommonCostEvent extends BaseController {
|
|
|
});
|
|
|
List<Map<String, String>> userMaps = new ArrayList<>();
|
|
|
for (String zrbmId : zrbmIdList){
|
|
|
- DeptRespDTO deptRespDTO = deptApi.getSecondDeptByDeptId(zrbmId).getCheckedData();
|
|
|
- if(deptRespDTO != null && StringUtils.isNotBlank(deptRespDTO.getLeaderUserId())){
|
|
|
+ DeptLeaderRespDTO deptLeaderRespDTO = deptLeaderApi.getDeptLeaderByDeptId(zrbmId).getCheckedData();
|
|
|
+ if(deptLeaderRespDTO != null && StringUtils.isNotBlank(deptLeaderRespDTO.getUserId())){
|
|
|
HashMap<String,String> map = new HashMap<>();
|
|
|
- map.put("id",deptRespDTO.getLeaderUserId());
|
|
|
+ map.put("id",deptLeaderRespDTO.getUserId());
|
|
|
userMaps.add(map);
|
|
|
}
|
|
|
}
|