Browse Source

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

zhangying 1 tháng trước cách đây
mục cha
commit
51e93748e7

+ 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)){