ludc
2024-07-26 887824662344ef267e171dbfae2b8ef2145a61c6
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/impl/OsEnumServiceImpl.java
@@ -86,7 +86,7 @@
   /**
    * 必填列
    */
   private ArrayList<Integer> ColumnNameisRed = new ArrayList<Integer>();
   private List<Integer> ColumnNameisRed = new ArrayList<Integer>();
   /**
    * 日志
@@ -567,7 +567,7 @@
         if(Func.isNotEmpty(osEnumVOList)){
            repeatEnumId = osEnumVOList.stream().map(OsEnumVO::getId).collect(Collectors.toList());
         }
         //当前excel中是否重复用的判重Map:(key:账号,value:行号)
         //当前excel中是否重复用的判重Map:(key:判重属性,value:行号)
         Map<String, String> excelReapeat = new HashMap<>();
         //判断必填属性是否为空,用户是否已存在,以及部门是否填错等校验逻辑
         List<String> finalRepeatEnumId = repeatEnumId;
@@ -585,7 +585,7 @@
            }else if (Func.isNotEmpty(osEnumVOList) && finalRepeatEnumId.contains(osEnumPO.getId())){//2、判断枚举名是否与系统中重复
               throw new VciBaseException("第【"+osEnumPO.getRowIndex()+"】行,枚举名在系统中已经存在,请修改!");
            }
            //先对必填属性判空处理
            //先对枚举名excel中需要判重处理
            excelReapeat.put(osEnumPO.getId(),osEnumPO.getRowIndex());
         });
         //保存逻辑