MaiXinRong 3 năm trước cách đây
mục cha
commit
7c95ef2b81
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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.* ' +