|
|
|
@ -210,8 +210,8 @@ public class CaseServiceImpl implements CaseService {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.INTERNAL_SERVER_ERROR, "系统错误,请联系管理员!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String submitStatus = synthesisPlanClientList.get(0).getSubmitStatus();
|
|
|
|
|
if (!submitStatus.equals("未提交")) {
|
|
|
|
|
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0);
|
|
|
|
|
if (synthesisPlanClient.getSubmitStatus() != null && !synthesisPlanClient.getSubmitStatus().equals("未提交")) {
|
|
|
|
|
return new ResultEntity<>(HttpStatus.BAD_REQUEST, "提交后无法编辑!");
|
|
|
|
|
}
|
|
|
|
|
return null;
|
|
|
|
@ -1698,13 +1698,22 @@ public class CaseServiceImpl implements CaseService {
|
|
|
|
|
ComCaseExample example = new ComCaseExample();
|
|
|
|
|
example.createCriteria().andCaseidEqualTo(caseID);
|
|
|
|
|
List<ComCase> comCases = comCaseMapper.selectByExample(example);
|
|
|
|
|
|
|
|
|
|
SynthesisPlanClientExample example1 =new SynthesisPlanClientExample();
|
|
|
|
|
example1.createCriteria().andUseridEqualTo(userId).andCaseidEqualTo(caseID);
|
|
|
|
|
List<SynthesisPlanClient> synthesisPlanClientList = synthesisPlanClientMapper.selectByExample(example1);
|
|
|
|
|
if (synthesisPlanClientList!=null && !synthesisPlanClientList.isEmpty()){
|
|
|
|
|
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0);
|
|
|
|
|
synthesisPlanClient.setSubmitStatus("未提交");
|
|
|
|
|
synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient);
|
|
|
|
|
}
|
|
|
|
|
if (comCases == null || comCases.isEmpty()) {
|
|
|
|
|
log.info("未查询到综合案例信息表");
|
|
|
|
|
return new ResultEntity<>(HttpStatus.INTERNAL_SERVER_ERROR, "服务器异常,请联系管理员!");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ComCase comCase = comCases.get(0);
|
|
|
|
|
List<String> typeList = Arrays.asList(comCase.getManageMoneyMattersType().split(", "));
|
|
|
|
|
String[] typeList = comCase.getManageMoneyMattersType().split(",");
|
|
|
|
|
for (String allType : typeList) {
|
|
|
|
|
if (allType.equals("风险测评-风险指标")) {
|
|
|
|
|
CaseRiskIndex caseRiskIndices = getCaseRiskIndices(caseID, userId, isAnswer);
|
|
|
|
|