Browse Source

feat: 站点人员社保卡fix

zhangying 1 year ago
parent
commit
57317f4b28

+ 1 - 1
src/main/java/com/hz/employmentsite/services/impl/baseSettings/SiteUserImpl.java

@@ -134,7 +134,7 @@ public class SiteUserImpl implements SiteUserService {
                 throw new BaseException("500", "该身份证已绑定其他驿站人员");
             }
             // 社保卡非必填
-            if (!data.getSocialSecurityCard().isEmpty() && !data.getSocialSecurityCard().isBlank()) {
+            if (data.getSocialSecurityCard() != null && !data.getSocialSecurityCard().isBlank()) {
                 if (!bySocialSecurityCard.isEmpty()) {
                     throw new BaseException("500", "该社保卡已绑定其他驿站人员");
                 }