From 6c07e82d1e09adb494a968e5f05e44db433b4342 Mon Sep 17 00:00:00 2001 From: xiaoCJ <406612557@qq.com> Date: Thu, 14 Nov 2024 16:40:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EuserId=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/CaseServiceImpl.java | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 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 709812a..9273bcc 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 @@ -2429,14 +2429,16 @@ public class CaseServiceImpl implements CaseService { if (type.equals("报告")) { HashMap map = new HashMap<>(); - SynthesisPlanClientExample synthesisPlanClientExample = new SynthesisPlanClientExample(); - synthesisPlanClientExample.createCriteria().andUseridEqualTo(userId).andCaseidEqualTo(caseID); - List synthesisPlanClientList = synthesisPlanClientMapper.selectByExample(synthesisPlanClientExample); - if (!synthesisPlanClientList.isEmpty()) { - SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0); - if (StringUtils.isBlank(synthesisPlanClient.getSubmitStatus())) { - synthesisPlanClient.setSubmitStatus("未提交"); - synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient); + if (StringUtils.isNotBlank(userId)) { + SynthesisPlanClientExample synthesisPlanClientExample = new SynthesisPlanClientExample(); + synthesisPlanClientExample.createCriteria().andUseridEqualTo(userId).andCaseidEqualTo(caseID); + List synthesisPlanClientList = synthesisPlanClientMapper.selectByExample(synthesisPlanClientExample); + if (!synthesisPlanClientList.isEmpty()) { + SynthesisPlanClient synthesisPlanClient = synthesisPlanClientList.get(0); + if (StringUtils.isBlank(synthesisPlanClient.getSubmitStatus())) { + synthesisPlanClient.setSubmitStatus("未提交"); + synthesisPlanClientMapper.updateByPrimaryKey(synthesisPlanClient); + } } }