|  |  |  | 
|---|
|  |  |  | .eq(SystemUser::getDeleted,Constants.ZERO) | 
|---|
|  |  |  | .last(" limit 1 ")); | 
|---|
|  |  |  | //非访客用户 进行判断是否存在用户 | 
|---|
|  |  |  | if(!Objects.isNull(user)){ | 
|---|
|  |  |  | if(Objects.isNull(user)){ | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"您的账号暂未绑定系统,请联系管理员"); | 
|---|
|  |  |  | }else{ | 
|---|
|  |  |  | Member member = memberMapper.selectById(user.getMemberId()); | 
|---|
|  |  |  | if(member == null || member.getIsdeleted() == Constants.ONE){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | //                throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"用户已删除,请联系管理员"); | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"账号绑定异常,请联系管理员"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(member.getStatus() != Constants.ZERO){ | 
|---|
|  |  |  | return; | 
|---|
|  |  |  | //                throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"用户已禁用,请联系管理员"); | 
|---|
|  |  |  | throw new BusinessException(ResponseStatus.NOT_ALLOWED.getCode(),"您的账号已禁用,请联系管理员"); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if(StringUtils.isNotBlank(member.getIdcardNo())){ | 
|---|
|  |  |  | member.setIdcardDecode(DESUtil.decrypt(Constants.EDS_PWD, member.getIdcardNo())); | 
|---|