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

master
xiaoCJ 5 months ago
parent 1dff2330f0
commit f2e2676a55

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

Loading…
Cancel
Save