|
@@ -261,10 +261,10 @@ public class ContractRenewEvent extends BaseController {
|
|
|
ContractRenewDO entity = contractRenewService.findByInstanceId(flowInstanceId);
|
|
|
List<Map<String, String>> userMaps = new ArrayList<>();
|
|
|
if (StringUtils.isNotBlank(entity.getDeptId())) {
|
|
|
- DeptLeaderRespDTO deptLeaderRespDTO = deptLeaderApi.getDeptLeaderByDeptId(entity.getDeptId()).getCheckedData();
|
|
|
- if (deptLeaderRespDTO != null && StringUtils.isNotBlank(deptLeaderRespDTO.getUserId())) {
|
|
|
+ AdminUserRespDTO deptLeaderRespDTO = adminUserApi.getUserLeader(entity.getUserId()).getCheckedData();
|
|
|
+ if (deptLeaderRespDTO != null && StringUtils.isNotBlank(deptLeaderRespDTO.getId())) {
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
- map.put("id", deptLeaderRespDTO.getUserId());
|
|
|
+ map.put("id", deptLeaderRespDTO.getId());
|
|
|
userMaps.add(map);
|
|
|
}
|
|
|
}
|