浏览代码

fix: 用户登录之后没有相关头像

max 7 月之前
父节点
当前提交
e5b413a1a9
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/modules/base/service/sys/user.ts

+ 4 - 4
src/modules/base/service/sys/user.ts

@@ -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
       });
     }