浏览代码

修复bug

laiguoran 3 年之前
父节点
当前提交
96252e139b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/service/datacollect_tender.js

+ 1 - 1
app/service/datacollect_tender.js

@@ -55,7 +55,7 @@ module.exports = app => {
         // }
 
         async getList(pid) {
-            return await this.db.select(this.tableName, { pid });
+            return await this.db.select(this.tableName, { where: { pid } });
         }
 
         async updateList(pid, tids) {