Jelajahi Sumber

标段缓存,完成期相关

MaiXinRong 2 tahun lalu
induk
melakukan
a72b8c4167
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      app/service/tender_cache.js

+ 2 - 1
app/service/tender_cache.js

@@ -170,7 +170,7 @@ module.exports = app => {
                     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_status: preStage.status,
+                    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: '',
                     stage_flow_pre_uid: auditor.aid, stage_flow_pre_info: user_info, stage_flow_pre_tp: tp,
                 });
@@ -230,6 +230,7 @@ module.exports = app => {
                 info.status = status;
                 data.stage_flow_cur_info = JSON.stringify(info);
             }
+            if (status === auditConst.stage.status.checked && !auditor) data.stage_complete_count = data.stage_count;
             data.stage_flow_cur_tp = JSON.stringify(tp);
             await transaction.update(this.tableName, data);
         }