修改编辑时 学生综合规划案例表逻辑

master
xiaoCJ 4 months ago
parent 1dff2330f0
commit f2e2676a55

@ -134,6 +134,7 @@ public class CaseServiceImpl implements CaseService {
synthesisPlanClient.setClientNumber(clientNumber);
synthesisPlanClient.setCaseid(newCase.getCaseid());
synthesisPlanClient.setName(newCase.getCustomerName());
synthesisPlanClient.setAge(newCase.getAge());
synthesisPlanClient.setIdcard(newCase.getIdCard());
synthesisPlanClient.setManageMoneyMattersType(newCase.getManageMoneyMattersType());
synthesisPlanClient.setSource(newCase.getSource());
@ -527,7 +528,7 @@ public class CaseServiceImpl implements CaseService {
if (operator.equals("master")) {
CaseInfoExample example = new CaseInfoExample();
example.createCriteria().andIdCardEqualTo(newCase.getIdCard());
List<CaseInfo> list = caseInfoMapper .selectByExampleWithBLOBs(example);
List<CaseInfo> list = caseInfoMapper.selectByExampleWithBLOBs(example);
String manageMoneyMattersType = newCase.getManageMoneyMattersType();
@ -580,20 +581,24 @@ public class CaseServiceImpl implements CaseService {
}
//同时修改综合综合规划客户表
SynthesisPlanClient synthesisPlanClient = new SynthesisPlanClient();
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;
}
//单独处理财务分析相关表的类型
private String getString(CaseInfo newCase, String manageMoneyMattersType) {
String[] split = manageMoneyMattersType.split(",");

Loading…
Cancel
Save