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