修改新增案例逻辑

master
xiaoCJ 4 months ago
parent f2e2676a55
commit ad36bd7dfc

@ -578,21 +578,21 @@ public class CaseServiceImpl implements CaseService {
ComCase comCase = comCases.get(0);
comCase.setManageMoneyMattersType(type);
comCaseMapper.updateByPrimaryKeySelective(comCase);
}
//同时修改综合综合规划客户表
SynthesisPlanClientExample synthesisPlanClientExample = new SynthesisPlanClientExample();
synthesisPlanClientExample.createCriteria().andCaseidEqualTo(newCase.getCaseid());
List<SynthesisPlanClient> synthesisPlanClientList = synthesisPlanClientMapper.selectByExample(synthesisPlanClientExample);
if (!synthesisPlanClientList.isEmpty()) {
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0);
synthesisPlanClient.setName(newCase.getCustomerName());
synthesisPlanClient.setIdcard(newCase.getIdCard());
synthesisPlanClient.setManageMoneyMattersType(type);
synthesisPlanClient.setAge(newCase.getAge());
synthesisPlanClientMapper.updateByPrimaryKeySelective(synthesisPlanClient);
return newCase.getCaseid();
//同时修改综合综合规划客户表
SynthesisPlanClientExample synthesisPlanClientExample = new SynthesisPlanClientExample();
synthesisPlanClientExample.createCriteria().andCaseidEqualTo(newCase.getCaseid());
List<SynthesisPlanClient> synthesisPlanClientList = synthesisPlanClientMapper.selectByExample(synthesisPlanClientExample);
if (!synthesisPlanClientList.isEmpty()) {
SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0);
synthesisPlanClient.setName(newCase.getCustomerName());
synthesisPlanClient.setIdcard(newCase.getIdCard());
synthesisPlanClient.setManageMoneyMattersType(type);
synthesisPlanClient.setAge(newCase.getAge());
synthesisPlanClientMapper.updateByPrimaryKeySelective(synthesisPlanClient);
}
}
return newCase.getCaseid();
}
}
return null;

Loading…
Cancel
Save