|
|
|
@ -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;
|
|
|
|
|