Преглед на файлове

fix: 导入求职人员时身份证重复之前进行空值判定

zhangying преди 1 месец
родител
ревизия
51e93748e7
променени са 1 файла, в които са добавени 7 реда и са изтрити 5 реда
  1. 7 5
      src/main/java/com/hz/employmentsite/services/impl/jobUserManager/JobUserServiceImpl.java

+ 7 - 5
src/main/java/com/hz/employmentsite/services/impl/jobUserManager/JobUserServiceImpl.java

@@ -704,11 +704,13 @@ public class JobUserServiceImpl implements JobUserService {
         dataList.forEach(item->{
             var curIdentityNumber = item.getIdentityNumber();
             var curUserMobile = item.getUserMobile();
-            if(!allIdentityList.contains(curIdentityNumber)){
-                allIdentityList.add(curIdentityNumber);
-            }else{
-                if(!repeatIdentityList.contains(curIdentityNumber)){
-                    repeatIdentityList.add(curIdentityNumber);
+            if (!stringUtils.IsNullOrEmpty(item.getIdentityNumber())){
+                if(!allIdentityList.contains(curIdentityNumber)){
+                    allIdentityList.add(curIdentityNumber);
+                }else{
+                    if(!repeatIdentityList.contains(curIdentityNumber)){
+                        repeatIdentityList.add(curIdentityNumber);
+                    }
                 }
             }
             if(!allPhoneList.contains(curUserMobile)){