@@ -270,6 +270,9 @@ module.exports = app => {
// 无下一审核人表示,审核结束
if (nextAudit) {
await transaction.update(this.tableName, {id: nextAudit.id, status: auditConst.status.checking, begin_time: time});
+ // 最新一期跟台账相关的缓存数据应过期
+ const lastStage = await this.ctx.service.stage.getLastestStage(t.id, true);
+ if (lastStage) await transaction.update(this.ctx.service.stage.tableName, {id: lastStage.id, cache_time_l: new Date()});
// 短信通知-需要审批提醒功能
// 下一人
@@ -27,7 +27,6 @@ module.exports = app => {
this.tableName = 'stage';
}
-
async checkStage(sid) {
if (!this.ctx.stage) {
const status = auditConst.status;