Pārlūkot izejas kodu

修复uid空问题

ellisran 1 gadu atpakaļ
vecāks
revīzija
041c0b193d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/controller/tender_controller.js

+ 1 - 1
app/controller/tender_controller.js

@@ -1097,7 +1097,7 @@ module.exports = app => {
                 };
                 const uidList = ctx.helper._.uniq(ctx.helper._.map(allCertList, 'uid'));
                 const accountList = uidList.length > 0 ? await ctx.service.projectAccount.getAllDataByCondition({
-                    where: { project_id: ctx.session.sessionProject.id, enable: 1, id: ctx.helper._.uniq(ctx.helper._.map(allCertList, 'uid')) },
+                    where: { project_id: ctx.session.sessionProject.id, enable: 1, id: uidList },
                     columns: ['id', 'name', 'company', 'role', 'enable', 'is_admin', 'account_group', 'mobile'],
                 }) : [];
                 renderData.accountList = accountList;