|
@@ -45,6 +45,8 @@ import org.springframework.beans.BeanUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.context.annotation.Lazy;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.transaction.annotation.Isolation;
|
|
|
|
+import org.springframework.transaction.annotation.Propagation;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.util.CollectionUtils;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
import org.springframework.web.multipart.MultipartFile;
|
|
@@ -709,6 +711,7 @@ public class ReportProjectService extends ServiceImpl<ReportProjectMapper, Repor
|
|
List<SystemFile> systemFiles = new ArrayList<>();
|
|
List<SystemFile> systemFiles = new ArrayList<>();
|
|
List<AssoProjectFile> assoEventFiles = new ArrayList<>();
|
|
List<AssoProjectFile> assoEventFiles = new ArrayList<>();
|
|
List<QueryCasePhaseVO> casePhaseVOS = new ArrayList<>();
|
|
List<QueryCasePhaseVO> casePhaseVOS = new ArrayList<>();
|
|
|
|
+ List<QueryCasePhaseVO> casePhaseVOS1 = new ArrayList<>();
|
|
List<QueryReportAffairConclusionVO> conclusionVOS = new ArrayList<>();
|
|
List<QueryReportAffairConclusionVO> conclusionVOS = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
@@ -761,6 +764,7 @@ public class ReportProjectService extends ServiceImpl<ReportProjectMapper, Repor
|
|
createIds.addAll(personIds);
|
|
createIds.addAll(personIds);
|
|
|
|
|
|
casePhaseVOS = reportAffairMapper.queryCasePhase(ids);
|
|
casePhaseVOS = reportAffairMapper.queryCasePhase(ids);
|
|
|
|
+ casePhaseVOS1 = reportAffairMapper.queryCasePhaseOral(ids);
|
|
conclusionVOS = reportAffairMapper.queryReportAffairConclusion(ids);
|
|
conclusionVOS = reportAffairMapper.queryReportAffairConclusion(ids);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -943,11 +947,19 @@ public class ReportProjectService extends ServiceImpl<ReportProjectMapper, Repor
|
|
reportProjectVO.setCronNames(reCronNames);
|
|
reportProjectVO.setCronNames(reCronNames);
|
|
|
|
|
|
//装载案件阶段与案件子阶段
|
|
//装载案件阶段与案件子阶段
|
|
- if (!CollectionUtils.isEmpty(casePhaseVOS)) {
|
|
|
|
|
|
+ if (!CollectionUtils.isEmpty(casePhaseVOS) && !CollectionUtils.isEmpty(casePhaseVOS1)) {
|
|
|
|
+ QueryCasePhaseVO casePhaseVO1 = casePhaseVOS1.stream().filter(i -> i.getProjectId().equals(reportProjectVO.getId())).findFirst().orElse(null);
|
|
QueryCasePhaseVO casePhaseVO = casePhaseVOS.stream().filter(i -> i.getProjectId().equals(reportProjectVO.getId())).findFirst().orElse(null);
|
|
QueryCasePhaseVO casePhaseVO = casePhaseVOS.stream().filter(i -> i.getProjectId().equals(reportProjectVO.getId())).findFirst().orElse(null);
|
|
if (casePhaseVO != null) {
|
|
if (casePhaseVO != null) {
|
|
reportProjectVO.setCasePhase(casePhaseVO.getCasePhase());
|
|
reportProjectVO.setCasePhase(casePhaseVO.getCasePhase());
|
|
reportProjectVO.setCaseChildPhase(casePhaseVO.getCaseChildPhase());
|
|
reportProjectVO.setCaseChildPhase(casePhaseVO.getCaseChildPhase());
|
|
|
|
+ } else {
|
|
|
|
+ if (casePhaseVO1 != null) {
|
|
|
|
+ Integer flowType = casePhaseVO1.getFlowType();
|
|
|
|
+ if (flowType == 6) {
|
|
|
|
+ reportProjectVO.setCasePhase(casePhaseVO1.getCasePhase());
|
|
|
|
+ }
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
//装载行诉结果
|
|
//装载行诉结果
|
|
@@ -1061,10 +1073,12 @@ public class ReportProjectService extends ServiceImpl<ReportProjectMapper, Repor
|
|
if (ObjectUtils.isEmpty(reportProject)) {
|
|
if (ObjectUtils.isEmpty(reportProject)) {
|
|
throw new XiaoShiException("未查询到该报告");
|
|
throw new XiaoShiException("未查询到该报告");
|
|
}
|
|
}
|
|
- ReportProject project = this.getById(reportProject.getId());
|
|
|
|
- GenerateObjectUtil.setObjectProperty(project, columnDTO.getField(), columnDTO.getValue());
|
|
|
|
- Thread.sleep(1000);
|
|
|
|
- project.updateById();
|
|
|
|
- return project.getId();
|
|
|
|
|
|
+ String columnName = GenerateObjectUtil.getTableColumnName(reportProject, columnDTO.getField());
|
|
|
|
+ if (StringUtils.isNotEmpty(columnName)) {
|
|
|
|
+ reportProjectMapper.updateReportField(projectId, columnName, columnDTO.getValue());
|
|
|
|
+ } else {
|
|
|
|
+ throw new XiaoShiException("获取栏位错误");
|
|
|
|
+ }
|
|
|
|
+ return reportProject.getId();
|
|
}
|
|
}
|
|
}
|
|
}
|