|
@ -163,8 +163,8 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
//判断用户是否存在
|
|
|
//判断用户是否存在
|
|
|
List<CustomerStaffDTO> customerStaffDTOList = baseDao.listCustomerStaffByAccount(userAccount); |
|
|
List<CustomerStaffDTO> customerStaffDTOList = baseDao.listCustomerStaffByAccount(userAccount); |
|
|
if (null == customerStaffDTOList || customerStaffDTOList.size() == 0) { |
|
|
if (null == customerStaffDTOList || customerStaffDTOList.size() == 0) { |
|
|
logger.warn(String.format("根据账户查询用户异常,账户:[%s],code[%s],msg[%s]", userAccount, EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getCode(), EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getMsg())); |
|
|
logger.warn(String.format("根据账户查询用户异常,账户:[%s],code[%s],msg[%s]", userAccount, EpmetErrorCode.GOV_STAFF_ACCOUNT_NOT_EXISTS.getCode(), EpmetErrorCode.GOV_STAFF_ACCOUNT_NOT_EXISTS.getMsg())); |
|
|
return new Result().error(EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getCode()); |
|
|
return new Result().error(EpmetErrorCode.GOV_STAFF_ACCOUNT_NOT_EXISTS.getCode()); |
|
|
} |
|
|
} |
|
|
return new Result<List<CustomerStaffDTO>>().ok(customerStaffDTOList); |
|
|
return new Result<List<CustomerStaffDTO>>().ok(customerStaffDTOList); |
|
|
} |
|
|
} |
|
@ -731,9 +731,9 @@ public class CustomerStaffServiceImpl extends BaseServiceImpl<CustomerStaffDao, |
|
|
List<CustomerStaffDTO> customerStaffDTOList = baseDao.selectStaffByAccount(formDTO); |
|
|
List<CustomerStaffDTO> customerStaffDTOList = baseDao.selectStaffByAccount(formDTO); |
|
|
if (null == customerStaffDTOList || customerStaffDTOList.size() < NumConstant.ONE) { |
|
|
if (null == customerStaffDTOList || customerStaffDTOList.size() < NumConstant.ONE) { |
|
|
logger.warn(String.format("根据客户Id和账户查询用户异常,客户Id:[%s],手机号:[%s],code[%s],msg[%s]", |
|
|
logger.warn(String.format("根据客户Id和账户查询用户异常,客户Id:[%s],手机号:[%s],code[%s],msg[%s]", |
|
|
formDTO.getCustomerId(), formDTO.getUserAccount(), EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getCode(), |
|
|
formDTO.getCustomerId(), formDTO.getUserAccount(), EpmetErrorCode.GOV_STAFF_ACCOUNT_NOT_EXISTS.getCode(), |
|
|
EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getMsg())); |
|
|
EpmetErrorCode.GOV_STAFF_ACCOUNT_NOT_EXISTS.getMsg())); |
|
|
throw new RenException(EpmetErrorCode.GOV_STAFF_NOT_EXISTS.getCode()); |
|
|
throw new RenException(EpmetErrorCode.GOV_STAFF_ACCOUNT_NOT_EXISTS.getCode()); |
|
|
} |
|
|
} |
|
|
return customerStaffDTOList; |
|
|
return customerStaffDTOList; |
|
|
} |
|
|
} |
|
|