丽知:ofs供应商同步修改

This commit is contained in:
zhengyf 2024-11-13 11:08:17 +08:00
parent b2a4188c1b
commit 324077a941
1 changed files with 13 additions and 9 deletions

View File

@ -299,9 +299,12 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
def1 = String.join(",", def1_new); def1 = String.join(",", def1_new);
}else { }else {
String def1_old = bdCubasdocEntity.getDef1(); String def1_old = bdCubasdocEntity.getDef1();
if(def1_old==null){
def1 = String.join(",", def1_new);
}else {
String[] def1_split_old = def1_old.split(","); String[] def1_split_old = def1_old.split(",");
// 将数组转换为列表 // 将数组转换为列表
List<String> def1_all=new ArrayList<>(); List<String> def1_all = new ArrayList<>();
List<String> def1_list_old = Arrays.asList(def1_split_old);//u8c里已有的def1 List<String> def1_list_old = Arrays.asList(def1_split_old);//u8c里已有的def1
def1_all.addAll(def1_list_old); def1_all.addAll(def1_list_old);
for (String s_new : def1_new) { for (String s_new : def1_new) {
@ -311,6 +314,7 @@ public class SupplierPluginInitializer extends PluginBaseEntity {
} }
def1 = String.join(",", def1_all); def1 = String.join(",", def1_all);
} }
}
CustdocEntityDto parentvo = new CustdocEntityDto(); CustdocEntityDto parentvo = new CustdocEntityDto();