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

master
xiaoCJ
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,7 +581,11 @@ public class CaseServiceImpl implements CaseService {
} }
//同时修改综合综合规划客户表 //同时修改综合综合规划客户表
SynthesisPlanClient synthesisPlanClient = new SynthesisPlanClient(); 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.setName(newCase.getCustomerName());
synthesisPlanClient.setIdcard(newCase.getIdCard()); synthesisPlanClient.setIdcard(newCase.getIdCard());
synthesisPlanClient.setManageMoneyMattersType(type); synthesisPlanClient.setManageMoneyMattersType(type);
@ -589,11 +594,11 @@ public class CaseServiceImpl implements CaseService {
return newCase.getCaseid(); 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