Explorar o código

fix: 修复拷贝变更令弹窗列表顺序问题

lanjianrong %!s(int64=4) %!d(string=hai) anos
pai
achega
c423eb11b8
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      app/service/change.js

+ 2 - 2
app/service/change.js

@@ -1316,8 +1316,8 @@ module.exports = app => {
          * @param {Number} cid - 当前变更令
          */
         async getOthersChange(tid, cid) {
-            const sql = 'SELECT * FROM ?? WHERE tid = ? AND cid != ? ORDER BY ? desc ';
-            const sqlParam = [this.tableName, tid, cid, 'in_time'];
+            const sql = 'SELECT * FROM ?? WHERE tid = ? AND cid != ? ORDER By `in_time` desc ';
+            const sqlParam = [this.tableName, tid, cid];
             const data = await this.db.query(sql, sqlParam);
             const changeClassObj = {};
             for (const c in changeConst.class) {