|
@@ -124,6 +124,7 @@ export class BaseSysUserService extends BaseService {
|
|
|
},
|
|
|
});
|
|
|
|
|
|
+ console.log(128, merchant)
|
|
|
// 如果需要获取关联信息,可以分别查询
|
|
|
let individualInfo = null;
|
|
|
let businessInfo = null;
|
|
@@ -135,15 +136,17 @@ export class BaseSysUserService extends BaseService {
|
|
|
merchantId: merchant.mchId
|
|
|
}
|
|
|
})
|
|
|
- if(customer.type === 'COMPANY') {
|
|
|
- businessInfo = await this.businessEntity.findOneBy({
|
|
|
- customer_id: customer.customer_id,
|
|
|
- });
|
|
|
- } else {
|
|
|
- // 分别查询个人或企业信息
|
|
|
- individualInfo = await this.individualEntity.findOneBy({
|
|
|
- customer_id: customer.customer_id,
|
|
|
- });
|
|
|
+ if(customer) {
|
|
|
+ if(customer.type === 'COMPANY') {
|
|
|
+ businessInfo = await this.businessEntity.findOneBy({
|
|
|
+ customer_id: customer.customer_id,
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ // 分别查询个人或企业信息
|
|
|
+ individualInfo = await this.individualEntity.findOneBy({
|
|
|
+ customer_id: customer.customer_id,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|