Selaa lähdekoodia

iaw WxLoginUserUtil调整

master
huminghao 2 kuukautta sitten
vanhempi
commit
cff16974e4

+ 2
- 4
zhywpt-app-iaw/src/main/java/cn/com/taiji/iaw/tools/WxLoginUserUtil.java Näytä tiedosto

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("身份认证信息错误");
} }

Loading…
Peruuta
Tallenna