|
@@ -381,7 +381,7 @@ module.exports = app => {
|
|
|
' ON (Bills.times * ' + timesLen + ' + `order`) = MaxFilter.flow And Bills.lid = MaxFilter.lid ' +
|
|
|
' INNER JOIN ' + this.ctx.service.ledger.tableName + ' As Ledger ON Bills.lid = Ledger.id' +
|
|
|
' WHERE Bills.sid = ? And Ledger.b_code ' + operate + ' ?';
|
|
|
- const sqlParam = [stage.times, stage.curTimes, stage.curAuditor ? stage.curAuditor.order : 0, stage.id, filter];
|
|
|
+ const sqlParam = [stage.times, stage.curTimes, stage.curOrder, stage.id, filter];
|
|
|
const result = await this.db.queryOne(sql, sqlParam);
|
|
|
return result;
|
|
|
}
|