From 324077a9411f18aabd2db7e67a5164e1b30c2cb8 Mon Sep 17 00:00:00 2001 From: zhengyf Date: Wed, 13 Nov 2024 11:08:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=BD=E7=9F=A5=EF=BC=9Aofs=E4=BE=9B?= =?UTF-8?q?=E5=BA=94=E5=95=86=E5=90=8C=E6=AD=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../base/SupplierPluginInitializer.java | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/SupplierPluginInitializer.java b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/SupplierPluginInitializer.java index 08692cb9..5fe8779b 100644 --- a/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/SupplierPluginInitializer.java +++ b/buildpackage/src/main/java/com/hzya/frame/plugin/lets/plugin/base/SupplierPluginInitializer.java @@ -299,17 +299,21 @@ public class SupplierPluginInitializer extends PluginBaseEntity { def1 = String.join(",", def1_new); }else { String def1_old = bdCubasdocEntity.getDef1(); - String[] def1_split_old = def1_old.split(","); - // 将数组转换为列表 - List def1_all=new ArrayList<>(); - List def1_list_old = Arrays.asList(def1_split_old);//u8c里已有的def1 - def1_all.addAll(def1_list_old); - for (String s_new : def1_new) { - if (!def1_list_old.contains(s_new)) { - def1_all.add(s_new); + if(def1_old==null){ + def1 = String.join(",", def1_new); + }else { + String[] def1_split_old = def1_old.split(","); + // 将数组转换为列表 + List def1_all = new ArrayList<>(); + List def1_list_old = Arrays.asList(def1_split_old);//u8c里已有的def1 + def1_all.addAll(def1_list_old); + for (String s_new : def1_new) { + if (!def1_list_old.contains(s_new)) { + def1_all.add(s_new); + } } + def1 = String.join(",", def1_all); } - def1 = String.join(",", def1_all); }