|
|
@ -209,12 +209,15 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
} |
|
|
|
//部门ID列表
|
|
|
|
List<Long> deptIdList = new ArrayList<>(); |
|
|
|
// 判断是否为网格,不为网格只能查看本部门下的项目数据
|
|
|
|
if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(user.getTypeKey())) { |
|
|
|
// 判断是否为社区网格,不为社区网格只能查看本部门下的项目数据
|
|
|
|
if (OrganizationTypeConstant.ORG_TYPE_GRID_PARTY.equals(user.getTypeKey()) || OrganizationTypeConstant.ORG_TYPE_COMMUNITY_PARTY.equals(user.getTypeKey())) { |
|
|
|
deptIdList = user.getDeptIdList(); |
|
|
|
} else { |
|
|
|
deptIdList.add(user.getDeptId()); |
|
|
|
} |
|
|
|
if(OrganizationTypeConstant.ORG_TYPE_COMMUNITY_PARTY.equals(user.getTypeKey())){ |
|
|
|
params.put("isRemind", "isRemind"); |
|
|
|
} |
|
|
|
params.put("deptIdList", null); |
|
|
|
if (null != deptIdList && deptIdList.size() > 0) { |
|
|
|
params.put("deptIdList", deptIdList); |
|
|
@ -917,19 +920,22 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
return new Result().error("请选择正确的处理部门"); |
|
|
|
} |
|
|
|
|
|
|
|
// 项目流转校验
|
|
|
|
Result checkResult = this.checkItemCirculation(dto); |
|
|
|
if (!checkResult.success()) { |
|
|
|
return checkResult; |
|
|
|
} |
|
|
|
|
|
|
|
// 根据当前登录人部门,获取上一级部门ID
|
|
|
|
Long currentDeptId = SecurityUser.getDeptId(); |
|
|
|
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(currentDeptId); |
|
|
|
// 根据操作人部门,获取上一级部门ID
|
|
|
|
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(dto.getHandlerDeptId()); |
|
|
|
SysDeptDTO sysDeptDTO = sysDeptInfo.getData(); |
|
|
|
|
|
|
|
// 手动拼接流转协助部门
|
|
|
|
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); |
|
|
|
|
|
|
|
handleProcessEntity.setState(dto.getHandleCategory()); |
|
|
|
handleProcessEntity.setCloseCheckId(sysDeptDTO.getPid()); |
|
|
|
handleProcessEntity.setCloseCheckId(sysDeptDTO.getPid()); // todo 待确认
|
|
|
|
|
|
|
|
// 获取已流转部门信息
|
|
|
|
List<Long> oldDeptIds = itemDeptService.listOfWhistlingDeptIds(dto.getId(), dto.getHandlerDeptId()); |
|
|
@ -956,12 +962,13 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
this.sendWhistlingDeptItemHandleMenuNotice(deptIds, null); |
|
|
|
log.info("处理项目-结案申请-if结束"); |
|
|
|
} else { |
|
|
|
if(ItemHandleCategoryEnum.HANDLE_I_HANDLE_GRID.getValue() == dto.getHandleCategory() || ItemHandleCategoryEnum.HANDLE_I_HANDLE_COMMUNITY.getValue() == dto.getHandleCategory()){ |
|
|
|
// 如果操作是【响应拟办】【直接办理】相当于之前逻辑的【回应】
|
|
|
|
handleProcessEntity.setState(ItemHandleCategoryEnum.HANDLE_I_HANDLE.getValue()); |
|
|
|
}else{ |
|
|
|
handleProcessEntity.setState(dto.getHandleCategory()); |
|
|
|
} |
|
|
|
handleProcessEntity.setState(dto.getHandleCategory()); |
|
|
|
// if(ItemHandleCategoryEnum.HANDLE_I_HANDLE_GRID.getValue() == dto.getHandleCategory() || ItemHandleCategoryEnum.HANDLE_I_HANDLE_COMMUNITY.getValue() == dto.getHandleCategory()){
|
|
|
|
// // 如果操作是【响应拟办】【直接办理】相当于之前逻辑的【回应】
|
|
|
|
// handleProcessEntity.setState(ItemHandleCategoryEnum.HANDLE_I_HANDLE.getValue());
|
|
|
|
// }else{
|
|
|
|
// handleProcessEntity.setState(dto.getHandleCategory());
|
|
|
|
// }
|
|
|
|
|
|
|
|
// 更新项目状态
|
|
|
|
if (ItemHandleCategoryEnum.HANDLE_CLOSE.getValue() == dto.getHandleCategory() || ItemHandleCategoryEnum.HANDLE_CLOSING_CASE.getValue() == dto.getHandleCategory()) { |
|
|
@ -1051,9 +1058,8 @@ public class ItemServiceImpl extends BaseServiceImpl<ItemDao, ItemEntity> implem |
|
|
|
} |
|
|
|
// 结案申请
|
|
|
|
}else if(ItemHandleCategoryEnum.HANDLE_CLOSING_CASE_APPLY.getValue() == dto.getHandleCategory()){ |
|
|
|
Long currentDeptId = SecurityUser.getDeptId(); |
|
|
|
// 根据当前登录人部门,获取上一级部门ID
|
|
|
|
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(currentDeptId); |
|
|
|
// 根据操作人人部门,获取上一级部门ID
|
|
|
|
Result<SysDeptDTO> sysDeptInfo = adminFeignClient.getSysDeptInfo(dto.getHandlerDeptId()); |
|
|
|
SysDeptDTO sysDeptDTO = sysDeptInfo.getData(); |
|
|
|
ItemCirculationDeptResultDTO itemCirculationDeptResultDTO = new ItemCirculationDeptResultDTO(); |
|
|
|
itemCirculationDeptResultDTO.setDeptId(sysDeptDTO.getPid()); |
|
|
|