@@ -51,7 +51,7 @@ module.exports = app => {
const sql = 'SELECT la.`audit_id`, pa.`name`, pa.`company`, pa.`role`, pa.`mobile`, pa.`telephone`, la.`times`, la.`audit_order`, la.`status`, la.`opinion`, la.`begin_time`, la.`end_time` ' +
'FROM ?? AS la, ?? AS pa ' +
'WHERE la.`tender_id` = ? and la.`times` = ?' +
- ' and la.`audit_id` = pa.`id`';
+ ' and la.`audit_id` = pa.`id` order by la.`order`';
const sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, tenderId, times];
return await this.db.query(sql, sqlParam);
}
@@ -50,7 +50,7 @@ module.exports = app => {
async getAuditors(stageId, times = 1) {
const sql = 'SELECT la.`aid`, pa.`name`, pa.`company`, pa.`role`, pa.`mobile`, pa.`telephone`, la.`times`, la.`order`, la.`status`, la.`opinion`, la.`begin_time`, la.`end_time` ' +
- 'WHERE la.`sid` = ? and la.`times` = ? and la.`aid` = pa.`id`';
+ 'WHERE la.`sid` = ? and la.`times` = ? and la.`aid` = pa.`id` order by la.`order`';
const sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, stageId, times];