diff --git a/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java b/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java index 42dbf77..8ee92e8 100644 --- a/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java +++ b/src/main/java/com/sztzjy/money_management/service/impl/CaseServiceImpl.java @@ -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 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 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;