Browse Source

getCustomerStaffInfo修改

dev_shibei_match
yinzuomei 5 years ago
parent
commit
3d2c935228
  1. 2
      epmet-auth/src/main/java/com/epmet/service/GovLoginService.java
  2. 4
      epmet-auth/src/main/java/com/epmet/service/impl/GovLoginServiceImpl.java
  3. 4
      epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

2
epmet-auth/src/main/java/com/epmet/service/GovLoginService.java

@ -29,7 +29,7 @@ public interface GovLoginService {
* @Description 3手机验证码获取组织
* @Date 2020/4/18 21:11
**/
Result<UserTokenResultDTO> getorgs(GovWxmpGetOrgsFormDTO formDTO);
Result getorgs(GovWxmpGetOrgsFormDTO formDTO);
/**
* @param formDTO

4
epmet-auth/src/main/java/com/epmet/service/impl/GovLoginServiceImpl.java

@ -96,7 +96,7 @@ public class GovLoginServiceImpl implements GovLoginService {
* @Date 2020/4/18 21:11
**/
@Override
public Result<UserTokenResultDTO> getorgs(GovWxmpGetOrgsFormDTO formDTO) {
public Result getorgs(GovWxmpGetOrgsFormDTO formDTO) {
//1、根据手机号查询到用户信息
Result<List<CustomerStaffDTO>> customerStaffResult = epmetUserFeignClient.checkCustomerStaff(formDTO.getMobile());
if (!customerStaffResult.success()) {
@ -106,7 +106,7 @@ public class GovLoginServiceImpl implements GovLoginService {
//2、验证码是否正确
String rightSmsCode = captchaRedis.getSmsCode(formDTO);
if (!formDTO.getSmsCode().equals(rightSmsCode)) {
return new Result<UserTokenResultDTO>().error(EpmetErrorCode.MOBILE_CODE_ERROR.getCode());
return new Result<>().error(EpmetErrorCode.MOBILE_CODE_ERROR.getCode());
}
//3、TODO返回组织树
return new Result();

4
epmet-user/epmet-user-server/src/main/java/com/epmet/service/impl/CustomerStaffServiceImpl.java

@ -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()));

Loading…
Cancel
Save