Ver código fonte

决策大屏bug修复

ellisran 2 meses atrás
pai
commit
045b25163c
1 arquivos alterados com 1 adições e 4 exclusões
  1. 1 4
      app/service/notice_push.js

+ 1 - 4
app/service/notice_push.js

@@ -84,10 +84,7 @@ module.exports = app => {
          * @param {Integer} uid - 查询人id
          */
         async getNoticeByDataCollect(pid, tenderIds = []) {
-            const wheres = { pid };
-            if (tenderIds.length > 0) {
-                wheres.tid = tenderIds;
-            }
+            const wheres = { pid, tid: tenderIds.length > 0 ? tenderIds : '' };
             let notice = await this.db.select(this.tableName, {
                 where: wheres,
                 orders: [['create_time', 'desc']],