|
|
@ -910,6 +910,20 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
return new Result().error("请选择正确的处理部门"); |
|
|
|
} |
|
|
|
|
|
|
|
// 根据操作人部门,获取上一级部门ID
|
|
|
|
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(dto.getHandlerDeptId()); |
|
|
|
SysDeptDTO sysDeptDTO = sysDeptInfo.getData(); |
|
|
|
sendTypeKey = sysDeptDTO.getTypeKey(); |
|
|
|
// 手动拼接流转协助部门
|
|
|
|
ItemCirculationDeptResultDTO itemCirculationDeptResultDTO = new ItemCirculationDeptResultDTO(); |
|
|
|
itemCirculationDeptResultDTO.setDeptId(sysDeptDTO.getPid()); |
|
|
|
itemCirculationDeptResultDTO.setDeptName(sysDeptDTO.getParentName()); |
|
|
|
itemCirculationDeptResultDTO.setSelected(false); |
|
|
|
itemCirculationDeptResultDTO.setTypeKey(sysDeptDTO.getTypeKey()); |
|
|
|
List<ItemCirculationDeptResultDTO> deptList = new ArrayList<ItemCirculationDeptResultDTO>(); |
|
|
|
deptList.add(itemCirculationDeptResultDTO); |
|
|
|
dto.setDeptResultDTOS(deptList); |
|
|
|
|
|
|
|
// 项目流转校验
|
|
|
|
Result checkResult = this.checkItemCirculation(dto); |
|
|
|
if (!checkResult.success()) { |
|
|
@ -926,20 +940,6 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
// 新增流转协助部门
|
|
|
|
itemDeptService.saveItemDepts(dto.getHandlerDeptId(), dto, handleProcessEntity.getId()); |
|
|
|
|
|
|
|
// 根据操作人部门,获取上一级部门ID
|
|
|
|
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(dto.getHandlerDeptId()); |
|
|
|
SysDeptDTO sysDeptDTO = sysDeptInfo.getData(); |
|
|
|
sendTypeKey = sysDeptDTO.getTypeKey(); |
|
|
|
// 手动拼接流转协助部门
|
|
|
|
ItemCirculationDeptResultDTO itemCirculationDeptResultDTO = new ItemCirculationDeptResultDTO(); |
|
|
|
itemCirculationDeptResultDTO.setDeptId(sysDeptDTO.getPid()); |
|
|
|
itemCirculationDeptResultDTO.setDeptName(sysDeptDTO.getParentName()); |
|
|
|
itemCirculationDeptResultDTO.setSelected(false); |
|
|
|
itemCirculationDeptResultDTO.setTypeKey(sysDeptDTO.getTypeKey()); |
|
|
|
List<ItemCirculationDeptResultDTO> deptList = new ArrayList<ItemCirculationDeptResultDTO>(); |
|
|
|
deptList.add(itemCirculationDeptResultDTO); |
|
|
|
dto.setDeptResultDTOS(deptList); |
|
|
|
|
|
|
|
List<Long> newDeptIds = new ArrayList<>(); |
|
|
|
|
|
|
|
newDeptIds.add(sysDeptDTO.getPid()); |
|
|
|