From e168d8426a1d3ef0adc70e18f7395a1bc1b8a1ec Mon Sep 17 00:00:00 2001 From: yjz <3131811435@qq.com> Date: Thu, 8 Aug 2024 18:59:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(88291):=20=E6=A0=87=E5=87=86=E8=A7=A3?= =?UTF-8?q?=E8=AF=BB=E6=B5=81=E7=A8=8B=EF=BC=88=E6=A0=87=E5=87=86=E4=B8=BB?= =?UTF-8?q?=E8=A7=A3=E8=AF=BB=E4=BA=BA=E5=88=86=E5=8F=91=EF=BC=89=20--?= =?UTF-8?q?=E4=B8=8D=E5=88=86=E5=8F=91--=E5=AF=BC=E5=85=A5=E9=83=A8?= =?UTF-8?q?=E5=88=86=E6=95=B0=E6=8D=AE=E6=B2=A1=E6=9C=89=E5=AF=BC=E5=85=A5?= =?UTF-8?q?=E6=88=90=E5=8A=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/impl/StandardInterpretFlowServiceImpl.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 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 3c409e52..ac40c08e 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 @@ -1115,7 +1115,7 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe flag = false; break; }else { - list.add(str); + list.add(one.getId()); } } if (flag){ @@ -1155,7 +1155,7 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe flag = false; break; }else { - list.add(str); + list.add(one.getId()); } } if (flag){ @@ -1194,13 +1194,13 @@ public class StandardInterpretFlowServiceImpl implements StandardInterpretFlowSe List partNames = lawsPartNameService.list(); for (String str : keywords.split(",")) { Optional optionalPartName = - partNames.stream().filter(o -> str.equals(o.getCode())).findFirst(); + partNames.stream().filter(o -> str.equals(o.getName())).findFirst(); if (!optionalPartName.isPresent()){ errorList.add("涉及系统/部件不存在!"); flag = false; break; }else { - data.setPartName(optionalPartName.get().getCode()); + list.add(optionalPartName.get().getCode()); } } if (flag){