Jelajahi Sumber

1.更新行号

yuanliang 1 tahun lalu
induk
melakukan
c0c13d6e7a

+ 2 - 2
cooleshow-user/user-biz/src/main/java/com/yonge/cooleshow/biz/dal/service/impl/TenantActivationCodeServiceImpl.java

@@ -329,15 +329,15 @@ public class TenantActivationCodeServiceImpl extends ServiceImpl<TenantActivatio
 
         String errTemplate = "第%s行%s";
         // 校验数据格式是否错误
+        int rowIndex = 0;
         for (ExcelDataReaderProperty<TenantActivationCodeWrapper.ImportTemplate> next : dataList) {
-            Integer rowIndex = next.getRowIndex();
+            rowIndex++;
             TenantActivationCodeWrapper.ImportTemplate code = next.getClazz();
 
             String acCode = code.getCode();
             if (StringUtils.isEmpty(acCode)) {
                 continue;
             }
-
             int msgRowNo = rowIndex + 1;
             code.checkIsIllegal().forEach(err -> errMsg.add(String.format(errTemplate, msgRowNo, err)));
             if (codeRowMap.containsKey(code.getCode())) {