|
@@ -1692,7 +1692,7 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async getAllChangeHasMinus(tenderId) {
|
|
|
- const sql = `SELECT * FROM ${this.tableName} WHERE tid = ? and negative_tp < 0`;
|
|
|
+ const sql = `SELECT * FROM ${this.tableName} WHERE tid = ? AND negative_tp < 0 ORDER BY code asc`;
|
|
|
return this.db.query(sql, [tenderId]);
|
|
|
}
|
|
|
}
|