|
@@ -200,7 +200,6 @@ public class ReportController {
|
|
|
return msg;
|
|
|
}
|
|
|
if (subProjectId == null) {
|
|
|
- System.out.println("!!===!!有空的子项目");
|
|
|
subProjectId = new Integer[projectId.length];
|
|
|
for(int i=0;i<subProjectId.length; i++) {
|
|
|
subProjectId[i] = 0;
|
|
@@ -225,6 +224,11 @@ public class ReportController {
|
|
|
groupId[i] = 0;
|
|
|
}
|
|
|
}
|
|
|
+ if (groupId.length != id.length) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ msg.setError("请设置任务分组");
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
if (customData == null) {
|
|
|
customData = new Double[projectId.length];
|
|
|
for(int i=0;i<customData.length; i++) {
|
|
@@ -288,48 +292,9 @@ public class ReportController {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-
|
|
|
//检查项目是否可填报; 修改为不校验项目,前端加载的项目已经过滤掉了完成和撤销的
|
|
|
List<Integer> integers = Arrays.asList(projectId);
|
|
|
List<Project> projectList = projectMapper.selectList(new QueryWrapper<Project>().in("id", integers));
|
|
|
-// for (int i=0;i<projectId.length; i++) {
|
|
|
-// int pid = projectId[i];
|
|
|
-// Optional<Project> findP = projectList.stream().filter(p->p.getId().equals(pid)).findFirst();
|
|
|
-// if (findP.isPresent()) {
|
|
|
-// Project curP = findP.get();
|
|
|
-// if (!createDate[i].contains("@")) {
|
|
|
-// if (curP.getStatus() == 2) {
|
|
|
-// HttpRespMsg msg = new HttpRespMsg();
|
|
|
-// //msg.setError("项目["+curP.getProjectName()+"]已完成。");
|
|
|
-// msg.setError(MessageUtils.message("project.complete",curP.getProjectName()));
|
|
|
-// return msg;
|
|
|
-// }
|
|
|
-// if (curP.getStatus() == 3) {
|
|
|
-// HttpRespMsg msg = new HttpRespMsg();
|
|
|
-// //msg.setError("项目["+curP.getProjectName()+"]已撤销。");
|
|
|
-// msg.setError(MessageUtils.message("project.revoke",curP.getProjectName()));
|
|
|
-// return msg;
|
|
|
-// }
|
|
|
-// } else {
|
|
|
-// //批量填报(含代填)
|
|
|
-// String[] dateArr = createDate[i].split("@");
|
|
|
-// for (String curDate : dateArr) {
|
|
|
-// if (curP.getStatus() == 2) {
|
|
|
-// HttpRespMsg msg = new HttpRespMsg();
|
|
|
-// //msg.setError("项目["+curP.getProjectName()+"]已完成。");
|
|
|
-// msg.setError(MessageUtils.message("project.complete",curP.getProjectName()));
|
|
|
-// return msg;
|
|
|
-// }
|
|
|
-// if (curP.getStatus() == 3) {
|
|
|
-// HttpRespMsg msg = new HttpRespMsg();
|
|
|
-// //msg.setError("项目["+curP.getProjectName()+"]已撤销。");
|
|
|
-// msg.setError(MessageUtils.message("project.revoke",curP.getProjectName()));
|
|
|
-// return msg;
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
-// }
|
|
|
TimeType comTimeType = timeTypeMapper.selectById(user.getCompanyId());
|
|
|
List<ReportAuditorSetting> auditorSettingList = null;
|
|
|
if (comTimeType.getReportAuditType() == 3) {
|
|
@@ -343,7 +308,6 @@ public class ReportController {
|
|
|
auditorSettingList = new ArrayList<>();
|
|
|
for (int i=0;i<auditorSettingArray.length; i++) {
|
|
|
String str = auditorSettingArray[i];
|
|
|
- System.out.println(str);
|
|
|
if (str.contains("@")) {
|
|
|
str = str.replaceAll("@", ",");
|
|
|
}
|