|
@@ -252,19 +252,19 @@ public class ContractRenewEvent extends BaseController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 转到分管领导
|
|
|
+ * 转到下级领导
|
|
|
*/
|
|
|
- @PostMapping("/to-dept-manager-leader")
|
|
|
+ @PostMapping("/to-leader")
|
|
|
public String toDeptManagerLeader(String flowInstanceId) {
|
|
|
try {
|
|
|
if (StringUtils.isNotBlank(flowInstanceId)) {
|
|
|
ContractRenewDO entity = contractRenewService.findByInstanceId(flowInstanceId);
|
|
|
List<Map<String, String>> userMaps = new ArrayList<>();
|
|
|
if (StringUtils.isNotBlank(entity.getDeptId())) {
|
|
|
- AdminUserRespDTO deptLeaderRespDTO = adminUserApi.getUserLeader(entity.getUserId()).getCheckedData();
|
|
|
- if (deptLeaderRespDTO != null && StringUtils.isNotBlank(deptLeaderRespDTO.getId())) {
|
|
|
+ AdminUserRespDTO dept = adminUserApi.getNextLeader(entity.getUserId()).getCheckedData();
|
|
|
+ if (dept != null && StringUtils.isNotBlank(dept.getId())) {
|
|
|
HashMap<String, String> map = new HashMap<>();
|
|
|
- map.put("id", deptLeaderRespDTO.getId());
|
|
|
+ map.put("id", dept.getId());
|
|
|
userMaps.add(map);
|
|
|
}
|
|
|
}
|