From ad36bd7dfc33321d1891ee3cc91c15fbf82cbb95 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Fri, 8 Nov 2024 17:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=96=B0=E5=A2=9E=E6=A1=88?= =?UTF-8?q?=E4=BE=8B=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CaseServiceImpl.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) 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;