From 1b27d0caef9db5b72a93d2b70c20616d88e620d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=90=A6=E6=B6=9B?= Date: Tue, 10 Sep 2024 19:01:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=87=E5=87=86=E8=A7=A3=E8=AF=BB=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E5=88=86=E5=8F=91=E5=AF=BC=E5=85=A5bug=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/StandardInterpretFlowServiceImpl.java | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java index 112789a7..54c148ab 100644 --- a/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java +++ b/laws-modules/src/main/java/com/jero/modules/activiti/process/standardinterpret/service/impl/StandardInterpretFlowServiceImpl.java @@ -961,12 +961,15 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe throw new JeroBootException("The list cannot import data!"); } } - List processStandardInterpretClauseList = - standardInterpretDTO.getProcessStandardInterpretClauseList(); - if(!CollectionUtils.isEmpty(processStandardInterpretClauseList)){ - standardInterpretDTO.setProcessStandardInterpretClauseSublistList( - JSON.parseArray(JSON.toJSONString(processStandardInterpretClauseList), - ProcessStandardInterpretClauseSublist.class)); + + if(CollectionUtils.isEmpty(standardInterpretDTO.getProcessStandardInterpretClauseSublistList())){ + List processStandardInterpretClauseList = + standardInterpretDTO.getProcessStandardInterpretClauseList(); + if(!CollectionUtils.isEmpty(processStandardInterpretClauseList)){ + standardInterpretDTO.setProcessStandardInterpretClauseSublistList( + JSON.parseArray(JSON.toJSONString(processStandardInterpretClauseList), + ProcessStandardInterpretClauseSublist.class)); + } } List processStandardInterpretClauseSublistList = standardInterpretDTO.getProcessStandardInterpretClauseSublistList();