瀏覽代碼

回滚审批流程权限判断

laiguoran 5 年之前
父節點
當前提交
d74b334f48
共有 1 個文件被更改,包括 2 次插入4 次删除
  1. 2 4
      app/service/stage_audit.js

+ 2 - 4
app/service/stage_audit.js

@@ -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);
         }