Browse Source

数据字典-导入数据时,提示未导入成功,但实际已导入成功问题

danch 1 week ago
parent
commit
6e44ae9eaf

+ 2 - 2
jeecg-boot/jeecg-module-system/jeecg-system-biz/src/main/java/org/jeecg/modules/system/controller/SysDictController.java

@@ -585,9 +585,9 @@ public class SysDictController {
 							successLines++;
                         //update-begin---author:wangshuai ---date:20220211  for:[JTC-1168]如果字典项值为空,则字典项忽略导入------------
 						}else if(integer == -1){
-                            errorLines++;
+							successLines++;
                             errorMessage.add("字典名称:" + po.getDictName() + ",对应字典列表的字典项值不能为空,忽略导入。");
-                        }else{
+                        } else{
                         //update-end---author:wangshuai ---date:20220211  for:[JTC-1168]如果字典项值为空,则字典项忽略导入------------
 							errorLines++;
 							int lineNumber = i + 1;