|
@@ -170,10 +170,10 @@ module.exports = app => {
|
|
|
pre_yf_tp: preStage.pre_yf_tp, pre_sf_tp: preStage.pre_sf_tp,
|
|
|
});
|
|
|
const auditors = await this.ctx.service.stageAudit.getLastestAuditors(preStage.id, preStage.times, preStage.status);
|
|
|
- const user_info = JSON.stringify(auditors.map(auditor => { return {
|
|
|
+ const user_info = auditors.length > 0 ? JSON.stringify(auditors.map(auditor => { return {
|
|
|
order: preStage.order, status: preStage.status, time: auditor.end_time, audit_order: auditor.audit_order,
|
|
|
name: auditor.name, company: auditor.company, role: auditor.role, mobile: auditor.mobile, telephone: auditor.telephone,
|
|
|
- }}));
|
|
|
+ }})) : '';
|
|
|
await transaction.update(this.tableName, {
|
|
|
id: delStage.tid, stage_count: preStage.order, stage_complete_count: preStage.order, stage_status: preStage.status,
|
|
|
stage_flow_cur_uid: 0, stage_flow_cur_info: '', stage_flow_cur_tp: '',
|