Ver Fonte

Merge remote-tracking branch 'origin/master'

zhangying há 10 meses atrás
pai
commit
bfba992197

+ 1 - 1
src/main/java/com/hz/employmentsite/filter/exception/GlobalExceptionHandler.java

@@ -19,7 +19,7 @@ public class GlobalExceptionHandler {
     @ExceptionHandler(value = NullPointerException.class)
     public BaseResponse<Object> exceptionHandler(NullPointerException e) {
         logger.error("发生空指针异常!原因是:" + e);
-        return RespGenerstor.fail(BaseErrorEnum.BODY_NOT_MATCH,null);
+        return RespGenerstor.fail(BaseErrorEnum.BODY_NOT_MATCH,e);
     }
 
     @ExceptionHandler(value = Exception.class)

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

@@ -343,7 +343,7 @@ public class JobUserServiceImpl implements JobUserService {
         result += ifRepeatIdentity? 1:0;
         result += ifRepeatMobile? 2:0;
 
-        if(!data.getSocialSecurityCard().equals(null)){
+        if(!stringUtils.IsNullOrEmpty(data.getSocialSecurityCard())){
             PcJobuserExample jobUserExp3= new PcJobuserExample();
             jobUserExp3.or().andUserMobileEqualTo(data.getSocialSecurityCard()).andJobuserIDNotEqualTo(data.getJobUserID());
             var ifRepeatSocialCard = pcJobuserMapper.selectByExample(jobUserExp3).size()>0;