|
@@ -67,11 +67,9 @@ module.exports = app => {
|
|
|
async getAllAuditors(tenderId) {
|
|
|
const sql = 'SELECT sa.aid, sa.tid FROM ' + this.tableName + ' sa' +
|
|
|
' LEFT JOIN ' + this.ctx.service.tender.tableName + ' t On sa.tid = t.id' +
|
|
|
- ' LEFT JOIN ?? s On s.id = sa.sid' +
|
|
|
- ' WHERE t.id = ? and ((s.status != ? and s.times = sa.times) or (s.status = ? and s.times-1 = sa.times))' +
|
|
|
+ ' WHERE t.id = ?' +
|
|
|
' GROUP BY sa.aid';
|
|
|
- const sqlParam = [this.ctx.service.stage.tableName, tenderId, auditConst.status.checkNo, auditConst.status.checkNo];
|
|
|
- // console.log(sql, sqlParam);
|
|
|
+ const sqlParam = [tenderId];
|
|
|
return this.db.query(sql, sqlParam);
|
|
|
}
|
|
|
|