瀏覽代碼

决策大屏bug修复

ellisran 2 月之前
父節點
當前提交
045b25163c
共有 1 個文件被更改,包括 1 次插入4 次删除
  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']],