修改规划报告提交接口

master
xiaoCJ 4 months ago
parent d42e177dca
commit f9291c4752

@ -2429,6 +2429,17 @@ public class CaseServiceImpl implements CaseService {
if (type.equals("报告")) {
HashMap<String, Object> map = new HashMap<>();
SynthesisPlanClientExample synthesisPlanClientExample = new SynthesisPlanClientExample();
synthesisPlanClientExample.createCriteria().andUseridEqualTo(userId).andCaseidEqualTo(caseID);
List<SynthesisPlanClient> synthesisPlanClientList = synthesisPlanClientMapper.selectByExample(synthesisPlanClientExample);
if (!synthesisPlanClientList.isEmpty()) {
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0);
if (StringUtils.isBlank(synthesisPlanClient.getSubmitStatus())) {
synthesisPlanClient.setSubmitStatus("未提交");
synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient);
}
}
ComCaseExample example = new ComCaseExample();
example.createCriteria().andCaseidEqualTo(caseID);
List<ComCase> comCases = comCaseMapper.selectByExample(example);

Loading…
Cancel
Save