|
@@ -95,6 +95,7 @@ module.exports = app => {
|
|
|
lockConfirm.forEach(x => {
|
|
lockConfirm.forEach(x => {
|
|
|
delete x.id;
|
|
delete x.id;
|
|
|
x.locked = 1;
|
|
x.locked = 1;
|
|
|
|
|
+ x.times = x.times + 1;
|
|
|
insertData.push(x);
|
|
insertData.push(x);
|
|
|
});
|
|
});
|
|
|
// 审批人前所有角色,与锁定数据相关确认状态保留
|
|
// 审批人前所有角色,与锁定数据相关确认状态保留
|
|
@@ -111,6 +112,7 @@ module.exports = app => {
|
|
|
if (exist) {
|
|
if (exist) {
|
|
|
delete kc.id;
|
|
delete kc.id;
|
|
|
kc.locked = 0;
|
|
kc.locked = 0;
|
|
|
|
|
+ kc.times = kc.times + 1;
|
|
|
insertData.push(kc);
|
|
insertData.push(kc);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -122,11 +124,10 @@ module.exports = app => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async getLockedId(tender, stage) {
|
|
async getLockedId(tender, stage) {
|
|
|
- // const lockedCoop = await this.getAllDataByCondition({ where: { sid: stage.id, times: stage.curTimes, locked: 1 } });
|
|
|
|
|
const sql = `SELECT cc.ledger_id, cc.uid, pa.name FROM ${this.tableName} cc` +
|
|
const sql = `SELECT cc.ledger_id, cc.uid, pa.name FROM ${this.tableName} cc` +
|
|
|
` LEFT JOIN ${this.ctx.service.projectAccount.tableName} pa ON cc.uid = pa.id` +
|
|
` LEFT JOIN ${this.ctx.service.projectAccount.tableName} pa ON cc.uid = pa.id` +
|
|
|
' WHERE cc.sid = ? AND cc.times = ? AND cc.locked = 1';
|
|
' WHERE cc.sid = ? AND cc.times = ? AND cc.locked = 1';
|
|
|
- return await this.db.query(sql, [stage.id, stage.curTimes]);
|
|
|
|
|
|
|
+ return await this.db.query(sql, [stage.id, stage.times]);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|