MaiXinRong 2 lat temu
rodzic
commit
2719bd1113
1 zmienionych plików z 3 dodań i 3 usunięć
  1. 3 3
      app/service/cooperation_confirm.js

+ 3 - 3
app/service/cooperation_confirm.js

@@ -63,14 +63,14 @@ module.exports = app => {
         async lockConfirm4CheckNoPre(stage, uid, pre_uid, transaction) {
             if (!transaction) throw '缺少参数';
 
-            const locked = await this.getAllDataByCondition({ where: { sid: stage.sid, locked: 1, times: stage.curTimes } });
+            const locked = await this.getAllDataByCondition({ where: { sid: stage.id, locked: 1, times: stage.curTimes } });
             // 审批人数据锁定
-            const locking = await this.getAllDataByCondition({ where: { sid: stage.sid, times: stage.curTimes, uid: uid } });
+            const locking = await this.getAllDataByCondition({ where: { sid: stage.id, times: stage.curTimes, uid: uid } });
             if (locking.length > 0) {
                 const updateLock = locking.map(x => { return { id: x.id, locked: 1 }; });
                 await transaction.updateRows(this.tableName, updateLock);
             }
-            const preConfirm = await this.getAllDataByCondition({ where: { sid: stage.sid, times: stage.curTimes, uid: pre_uid } });
+            const preConfirm = await this.getAllDataByCondition({ where: { sid: stage.id, times: stage.curTimes, uid: pre_uid } });
             // 前审批人数据,与被锁定数据相关数据确认状态保留
             locked.push(...locking);
             if (preConfirm.length > 0) {