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

+ 1 - 1
app/service/stage_change.js

@@ -309,7 +309,7 @@ module.exports = app => {
                     '  FROM ' + this.ctx.service.stageChangeFinal.tableName + ' scf ' +
                     '  LEFT JOIN ' + this.ctx.service.stage.tableName + ' s ON scf.sid = s.id' +
                     '  WHERE scf.tid = ? And scf.cid = ? And s.order <= ?';
-                const result = await this.db.query(sql, [tid, cid, this.ctx.stage.order]);
+                const result = await this.db.query(sql, [tid, cid, stage.order]);
                 return result;
             } else {
                 const preSql = 'SELECT scf.* ' +