Browse Source

fix: 导入求职人员时电话号码重复之前进行空值判定

zhangying 1 month ago
parent
commit
250c8df1e1

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

@@ -713,11 +713,13 @@ public class JobUserServiceImpl implements JobUserService {
                     }
                 }
             }
-            if(!allPhoneList.contains(curUserMobile)){
-                allPhoneList.add(curUserMobile);
-            }else{
-                if(!repeatUserMobileList.contains(curUserMobile)){
-                    repeatUserMobileList.add(curUserMobile);
+            if (!stringUtils.IsNullOrEmpty(item.getUserMobile())) {
+                if(!allPhoneList.contains(curUserMobile)){
+                    allPhoneList.add(curUserMobile);
+                }else{
+                    if(!repeatUserMobileList.contains(curUserMobile)){
+                        repeatUserMobileList.add(curUserMobile);
+                    }
                 }
             }
         });