|
@@ -1631,13 +1631,13 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
collect.add(-1);
|
|
collect.add(-1);
|
|
List<Department> departmentList = departmentMapper.selectList(new QueryWrapper<Department>().in("department_id", collect));
|
|
List<Department> departmentList = departmentMapper.selectList(new QueryWrapper<Department>().in("department_id", collect));
|
|
- Optional<Project> first = projectList.stream().filter(p -> StringUtils.isEmpty(p.getInchargerId())).findFirst();
|
|
|
|
- if (first.isPresent()) {
|
|
|
|
- String projectName = first.get().getProjectName();
|
|
|
|
- //httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
- httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
- return httpRespMsg;
|
|
|
|
- }
|
|
|
|
|
|
+// Optional<Project> first = projectList.stream().filter(p -> StringUtils.isEmpty(p.getInchargerId())).findFirst();
|
|
|
|
+// if (first.isPresent()) {
|
|
|
|
+// String projectName = first.get().getProjectName();
|
|
|
|
+// //httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
+// httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
+// return httpRespMsg;
|
|
|
|
+// }
|
|
for (Report r : reportList) {
|
|
for (Report r : reportList) {
|
|
//根据项目阶段来调整审核流程
|
|
//根据项目阶段来调整审核流程
|
|
/*任务所属项目*/
|
|
/*任务所属项目*/
|
|
@@ -2698,13 +2698,13 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
}).collect(Collectors.toList());
|
|
}).collect(Collectors.toList());
|
|
collect.add(-1);
|
|
collect.add(-1);
|
|
List<Department> departmentList = departmentMapper.selectList(new QueryWrapper<Department>().in("department_id", collect));
|
|
List<Department> departmentList = departmentMapper.selectList(new QueryWrapper<Department>().in("department_id", collect));
|
|
- Optional<Project> first = projectList.stream().filter(p -> StringUtils.isEmpty(p.getInchargerId())).findFirst();
|
|
|
|
- if (first.isPresent()) {
|
|
|
|
- String projectName = first.get().getProjectName();
|
|
|
|
- //httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
- httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
- return httpRespMsg;
|
|
|
|
- }
|
|
|
|
|
|
+// Optional<Project> first = projectList.stream().filter(p -> StringUtils.isEmpty(p.getInchargerId())).findFirst();
|
|
|
|
+// if (first.isPresent()) {
|
|
|
|
+// String projectName = first.get().getProjectName();
|
|
|
|
+// //httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
+// httpRespMsg.setError("请给["+projectName+"]项目设置项目负责人");
|
|
|
|
+// return httpRespMsg;
|
|
|
|
+// }
|
|
for (Report r : reportList) {
|
|
for (Report r : reportList) {
|
|
//根据项目阶段来调整审核流程
|
|
//根据项目阶段来调整审核流程
|
|
/*任务所属项目*/
|
|
/*任务所属项目*/
|
|
@@ -2753,10 +2753,8 @@ public class ReportServiceImpl extends ServiceImpl<ReportMapper, Report> impleme
|
|
r.setAuditDeptManagerid(department.get().getManagerId());
|
|
r.setAuditDeptManagerid(department.get().getManagerId());
|
|
r.setIsDeptAudit(1);
|
|
r.setIsDeptAudit(1);
|
|
r.setAuditDeptid(department.get().getDepartmentId());
|
|
r.setAuditDeptid(department.get().getDepartmentId());
|
|
- if(department.get().getManagerId().equals(r.getProjectAuditorId())){
|
|
|
|
- r.setState(1);
|
|
|
|
- r.setDepartmentAuditState(1);
|
|
|
|
- }
|
|
|
|
|
|
+ r.setState(1);
|
|
|
|
+ r.setDepartmentAuditState(1);
|
|
}else r.setState(1);
|
|
}else r.setState(1);
|
|
}
|
|
}
|
|
}
|
|
}
|