|
@@ -667,7 +667,7 @@ module.exports = app => {
|
|
async getAuditGroupByList(stageId, times) {
|
|
async getAuditGroupByList(stageId, times) {
|
|
const sql = 'SELECT la.`aid`, pa.`name`, pa.`company`, pa.`role`, la.`times`, la.`sid`, la.`aid`, la.`order` ' +
|
|
const sql = 'SELECT la.`aid`, pa.`name`, pa.`company`, pa.`role`, la.`times`, la.`sid`, la.`aid`, la.`order` ' +
|
|
'FROM ?? AS la, ?? AS pa ' +
|
|
'FROM ?? AS la, ?? AS pa ' +
|
|
- 'WHERE la.`sid` = ? and la.`times` = ? and la.`aid` = pa.`id` GROUP BY la.`aid`';
|
|
|
|
|
|
+ 'WHERE la.`sid` = ? and la.`times` = ? and la.`aid` = pa.`id` GROUP BY la.`aid` ORDER BY la.`order`';
|
|
const sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, stageId, times];
|
|
const sqlParam = [this.tableName, this.ctx.service.projectAccount.tableName, stageId, times];
|
|
return await this.db.query(sql, sqlParam);
|
|
return await this.db.query(sql, sqlParam);
|
|
// const sql = 'SELECT `tid`, `sid`, `aid`, `order` FROM ?? WHERE `sid` = ? and `times` = ? GROUP BY `aid`';
|
|
// const sql = 'SELECT `tid`, `sid`, `aid`, `order` FROM ?? WHERE `sid` = ? and `times` = ? GROUP BY `aid`';
|