Browse Source

/thirdlogin/getmyorgbypassword账号密码登录,禁用提示

master
yinzuomei 3 years ago
parent
commit
ce6273284c
  1. 6
      epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java

6
epmet-auth/src/main/java/com/epmet/service/impl/ThirdLoginServiceImpl.java

@ -587,12 +587,16 @@ public class ThirdLoginServiceImpl implements ThirdLoginService, ResultDataResol
dto.setCustomerId(customer.getId()); dto.setCustomerId(customer.getId());
dto.setMobile(formDTO.getMobile()); dto.setMobile(formDTO.getMobile());
Result<List<CustomerStaffDTO>> customerStaffResult = epmetUserOpenFeignClient.getCustsomerStaffByIdAndPhone(dto); Result<List<CustomerStaffDTO>> customerStaffResult = epmetUserOpenFeignClient.getCustsomerStaffByIdAndPhone(dto);
if (!customerStaffResult.success()) { if (!customerStaffResult.success()||CollectionUtils.isEmpty(customerStaffResult.getData())) {
logger.warn(String.format("手机密码登录异常,手机号[%s],code[%s],msg[%s]", formDTO.getMobile(), customerStaffResult.getCode(), customerStaffResult.getMsg())); logger.warn(String.format("手机密码登录异常,手机号[%s],code[%s],msg[%s]", formDTO.getMobile(), customerStaffResult.getCode(), customerStaffResult.getMsg()));
throw new RenException(customerStaffResult.getCode()); throw new RenException(customerStaffResult.getCode());
} }
//2、密码是否正确 //2、密码是否正确
List<CustomerStaffDTO> customerStaffList=customerStaffResult.getData(); List<CustomerStaffDTO> customerStaffList=customerStaffResult.getData();
// 禁用的给予提示
if("disabled".equals(customerStaffList.get(NumConstant.ZERO).getEnableFlag())){
throw new EpmetException(EpmetErrorCode.GOV_STAFF_DISABLED.getCode(),EpmetErrorCode.GOV_STAFF_DISABLED.getMsg(),EpmetErrorCode.GOV_STAFF_DISABLED.getMsg());
}
//3、查询用户所有的组织信息 //3、查询用户所有的组织信息
List<String> customerIdList = new ArrayList<>(); List<String> customerIdList = new ArrayList<>();
//是否设置过密码 //是否设置过密码

Loading…
Cancel
Save