|
@@ -153,7 +153,7 @@ module.exports = app => {
|
|
}
|
|
}
|
|
|
|
|
|
async updateStageCache4Del(transaction, delStage) {
|
|
async updateStageCache4Del(transaction, delStage) {
|
|
- const preStage = delStage.order > 1 ? await this.ctx.service.stage.getDataBYCondition({ tid: delStage.tid, order: delStage.order - 1 }): {};
|
|
|
|
|
|
+ const preStage = delStage.order > 1 ? await this.ctx.service.stage.getDataByCondition({ tid: delStage.tid, order: delStage.order - 1 }): {};
|
|
if (preStage) {
|
|
if (preStage) {
|
|
const tp = JSON.stringify({
|
|
const tp = JSON.stringify({
|
|
contract_tp: preStage.contract_tp, qc_tp: preStage.qc_tp, contract_pc_tp: preStage.contract_pc_tp, qc_pc_tp: preStage.qc_pc_tp, pc_tp: preStage.pc_tp,
|
|
contract_tp: preStage.contract_tp, qc_tp: preStage.qc_tp, contract_pc_tp: preStage.contract_pc_tp, qc_pc_tp: preStage.qc_pc_tp, pc_tp: preStage.pc_tp,
|
|
@@ -171,7 +171,7 @@ module.exports = app => {
|
|
await transaction.update(this.tableName, {
|
|
await transaction.update(this.tableName, {
|
|
id: delStage.tid, stage_count: preStage.order, stage_status: preStage.status,
|
|
id: delStage.tid, stage_count: preStage.order, stage_status: preStage.status,
|
|
stage_flow_cur_uid: 0, stage_flow_cur_info: '', stage_flow_cur_tp: '',
|
|
stage_flow_cur_uid: 0, stage_flow_cur_info: '', stage_flow_cur_tp: '',
|
|
- stage_flow_pre_uid: auditor.id, stage_flow_pre_info: user_info, stage_flow_pre_tp: tp,
|
|
|
|
|
|
+ stage_flow_pre_uid: auditor.aid, stage_flow_pre_info: user_info, stage_flow_pre_tp: tp,
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
await transaction.update(this.tableName, {
|
|
await transaction.update(this.tableName, {
|