|
@@ -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.* ' +
|