|
|
@ -178,6 +178,9 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao |
|
|
|
if (null == staffEntity) { |
|
|
|
throw new RenException(ProjectConstant.SELECT_PROJECTSTAFF_EXCEPTION); |
|
|
|
} |
|
|
|
if (!ProjectConstant.UNHANDLED.equals(staffEntity.getIsHandle())) { |
|
|
|
throw new RenException(ProjectConstant.UNHANDLED_EXCEPTION); |
|
|
|
} |
|
|
|
staffEntity.setIsHandle(ProjectConstant.HANDLE); |
|
|
|
if (projectStaffDao.updateById(staffEntity) < NumConstant.ONE) { |
|
|
|
throw new RenException(ProjectConstant.UPDATE_PROJECTSTAFF_EXCEPTION); |
|
|
@ -196,11 +199,11 @@ public class ProjectProcessServiceImpl extends BaseServiceImpl<ProjectProcessDao |
|
|
|
} |
|
|
|
//3.1:调用gov-org服务,获取所有勾选人员对应的组织信息、部门信息、网格信息用于对处理部门和ORG_ID_PATH字段的赋值
|
|
|
|
List<String> agencyIdList = staffList.stream().map(TickStaffFormDTO::getAgencyId).collect(Collectors.toList()); |
|
|
|
agencyIdList = new ArrayList<String>(new LinkedHashSet<>(agencyIdList)); |
|
|
|
agencyIdList = new ArrayList<String>(new LinkedHashSet<>(agencyIdList));agencyIdList.removeAll(Collections.singleton("")); |
|
|
|
List<String> deptIdList = staffList.stream().map(TickStaffFormDTO::getDepartmentId).collect(Collectors.toList()); |
|
|
|
deptIdList = new ArrayList<String>(new LinkedHashSet<>(deptIdList)); |
|
|
|
deptIdList = new ArrayList<String>(new LinkedHashSet<>(deptIdList));deptIdList.removeAll(Collections.singleton("")); |
|
|
|
List<String> gridIdList = staffList.stream().map(TickStaffFormDTO::getGridId).collect(Collectors.toList()); |
|
|
|
gridIdList = new ArrayList<String>(new LinkedHashSet<>(gridIdList)); |
|
|
|
gridIdList = new ArrayList<String>(new LinkedHashSet<>(gridIdList));gridIdList.removeAll(Collections.singleton("")); |
|
|
|
AgencyDeptGridFormDTO agencyDeptGridFormDTO = new AgencyDeptGridFormDTO(); |
|
|
|
agencyDeptGridFormDTO.setAgencyIdList(agencyIdList); |
|
|
|
agencyDeptGridFormDTO.setDeptIdList(deptIdList); |
|
|
|