|
@@ -126,12 +126,12 @@ export class BaseSysUserService extends BaseService {
|
|
|
|
|
|
if (merchant) {
|
|
|
// 分别查询个人或企业信息
|
|
|
- individualInfo = await this.individualEntity.findOne({
|
|
|
- where: { merchant: { id: merchant.id } },
|
|
|
+ individualInfo = await this.individualEntity.findOneBy({
|
|
|
+ merchantId: merchant.mchId
|
|
|
});
|
|
|
|
|
|
- businessInfo = await this.businessEntity.findOne({
|
|
|
- where: { merchant: { id: merchant.id } },
|
|
|
+ businessInfo = await this.businessEntity.findOneBy({
|
|
|
+ merchantId: merchant.mchId
|
|
|
});
|
|
|
}
|
|
|
|