|
@@ -60,7 +60,7 @@ module.exports = app => {
|
|
|
}
|
|
|
|
|
|
async _getMaxOrder(tenderId) {
|
|
|
- const sql = 'SELECT Max(??) As value FROM ?? Where tid = ' + tenderId;
|
|
|
+ const sql = 'SELECT Max(??) As value FROM ?? Where valid = 1 and tid = ' + tenderId;
|
|
|
const sqlParam = ['order', this.tableName];
|
|
|
const queryResult = await this.db.queryOne(sql, sqlParam);
|
|
|
return queryResult.value;
|