|
|
@@ -471,6 +471,11 @@ module.exports = app => {
|
|
|
await this.ctx.service[stage.typeInfo.dataService].auditCachePre(transaction, stage.id, {
|
|
|
user_id: audit.audit_id, audit_times: audit.audit_times, audit_order: audit.audit_order, active_order: audit.active_order,
|
|
|
});
|
|
|
+ if (stage.typeInfo.detailService) {
|
|
|
+ await this.ctx.service[stage.typeInfo.detailService].auditCachePre(transaction, stage.id, {
|
|
|
+ user_id: audit.audit_id, audit_times: audit.audit_times, audit_order: audit.audit_order, active_order: audit.active_order,
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
async start(stage) {
|
|
|
const audits = await this.getAllDataByCondition({ where: { stage_id: stage.id, audit_times: stage.audit_times, audit_order: 1 } });
|