Browse Source

排序bug

laiguoran 4 years ago
parent
commit
5ce98c3878
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/service/change_audit_list.js

+ 1 - 1
app/service/change_audit_list.js

@@ -28,7 +28,7 @@ module.exports = app => {
          * @return {void}
          * @return {void}
          */
          */
         async getList(cid) {
         async getList(cid) {
-            const sql = 'SELECT * FROM ?? WHERE `cid` = ? ORDER BY `lid` = 0, `id` asc';
+            const sql = 'SELECT * FROM ?? WHERE `cid` = ? ORDER BY `lid` = "0", `id` asc';
             const sqlParam = [this.tableName, cid];
             const sqlParam = [this.tableName, cid];
             return await this.db.query(sql, sqlParam);
             return await this.db.query(sql, sqlParam);
         }
         }