|
|
@ -122,6 +122,10 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
|
@Override |
|
|
|
public Result<CustomerStaffDTO> getCustomerStaffInfo(CustomerStaffFormDTO formDTO) { |
|
|
|
CustomerStaffDTO customerStaffDTO = baseDao.selectListCustomerStaffInfo(formDTO); |
|
|
|
if (null == customerStaffDTO) { |
|
|
|
logger.error(String.format("根据手机号查询用户异常,手机号:[%s],code[%s],msg[%s]", formDTO.getMobile(), EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getCode(), EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getMsg())); |
|
|
|
return new Result().error(EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getCode()); |
|
|
|
} |
|
|
|
//判断用户是否已被禁用
|
|
|
|
if (null != customerStaffDTO && UserConstant.DISABLED.equals(customerStaffDTO.getEnableFlag())) { |
|
|
|
logger.error(String.format("根据手机号查询用户异常,手机号:[%s],客户id:[%s],code[%s],msg[%s]", formDTO.getMobile(), formDTO.getCustomerId(), EpmetErrorCode.GOV_STAFF_DISABLED.getCode(), EpmetErrorCode.GOV_STAFF_DISABLED.getMsg())); |
|
|
|