|
|
|
|
|
|
|
|
if (accountInfo == null) { |
|
|
if (accountInfo == null) { |
|
|
throw new ManagerException("身份认证信息错误"); |
|
|
throw new ManagerException("身份认证信息错误"); |
|
|
} |
|
|
} |
|
|
return customerInfoRepo.findByCustomerIdNumAndCustomerIdTypeAndUserType(accountInfo.getIdNum(), |
|
|
|
|
|
accountInfo.getIdType().getCode(), UserType.PERSONAL_USER.getCode()); |
|
|
|
|
|
|
|
|
return customerInfoRepo.findByCustomerIdTypeAndCustomerIdNum(accountInfo.getIdType(),accountInfo.getIdNum()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
|
|
|
|
|
|
* 通过AccountInfo获得QtkCustomerInfo信息 |
|
|
* 通过AccountInfo获得QtkCustomerInfo信息 |
|
|
*/ |
|
|
*/ |
|
|
public QtkCustomerInfo getCustomerInfoFromAccountInfo(AccountInfo accountInfo) throws ManagerException { |
|
|
public QtkCustomerInfo getCustomerInfoFromAccountInfo(AccountInfo accountInfo) throws ManagerException { |
|
|
QtkCustomerInfo customer = customerInfoRepo.findByCustomerIdNumAndCustomerIdTypeAndUserType(accountInfo.getIdNum(), |
|
|
|
|
|
accountInfo.getIdType().getCode(), UserType.PERSONAL_USER.getCode()); |
|
|
|
|
|
|
|
|
QtkCustomerInfo customer = customerInfoRepo.findByCustomerIdTypeAndCustomerIdNum(accountInfo.getIdType(),accountInfo.getIdNum()); |
|
|
if (customer == null) { |
|
|
if (customer == null) { |
|
|
throw new ManagerException("身份认证信息错误"); |
|
|
throw new ManagerException("身份认证信息错误"); |
|
|
} |
|
|
} |