Commit 14a9b62a authored by 韩桐桐's avatar 韩桐桐

fix():修改删除业务单时和历史表的对应关系

parent 4492a4d8
......@@ -717,7 +717,7 @@ public class JgEnableDisableServiceImpl extends BaseService<JgEnableDisableDto,
.eq(JgEnableDisableEq::getEnableDisableApplyId, sequenceNbr));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, jgEnableDisable.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, jgEnableDisable.getSequenceNbr()));
}
public Map<String, Object> getDetail(Long sequenceNbr) {
......
......@@ -759,7 +759,7 @@ public class JgEquipTransferServiceImpl extends BaseService<JgEquipTransferDto,
.eq(JgEquipTransferEq::getEquipTransferId, notice.getSequenceNbr()));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, notice.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, notice.getSequenceNbr()));
}
return Boolean.TRUE;
}
......
......@@ -464,7 +464,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
.eq(JgInstallationNoticeEq::getEquipTransferId, sequenceNbr));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, jgInstallationNotice.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, jgInstallationNotice.getSequenceNbr()));
}
return Boolean.TRUE;
}
......
......@@ -387,7 +387,7 @@ public class JgMaintainNoticeServiceImpl extends BaseService<JgMaintainNoticeDto
.eq(JgMaintainNoticeEq::getEquipTransferId, sequenceNbr));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, jgMaintainNotice.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, jgMaintainNotice.getSequenceNbr()));
}
return true;
}
......
......@@ -257,7 +257,7 @@ public class JgMaintenanceContractServiceImpl extends BaseService<JgMaintenanceC
.eq(JgMaintenanceContractEq::getEquipTransferId, seq));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, jgMaintenanceContract.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, jgMaintenanceContract.getSequenceNbr()));
});
return true;
}
......
......@@ -318,7 +318,7 @@ public class JgReformNoticeServiceImpl extends BaseService<JgReformNoticeDto, Jg
.eq(JgReformNoticeEq::getEquipTransferId, notice.getSequenceNbr()));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, notice.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, notice.getSequenceNbr()));
});
return Boolean.TRUE;
}
......
......@@ -349,7 +349,7 @@ public class JgScrapCancelServiceImpl extends BaseService<JgScrapCancelDto, JgSc
.eq(JgScrapCancelEq::getEquipTransferId,jgScrapCancel.getSequenceNbr()));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, jgScrapCancel.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, jgScrapCancel.getSequenceNbr()));
}
}
}
......
......@@ -207,7 +207,7 @@ public class JgTransferNoticeServiceImpl extends BaseService<JgTransferNoticeDto
.eq(JgTransferNoticeEq::getEquipTransferId, sequenceNbr));
// 删除单子对应历史表数据
jgRegistrationHistoryMapper.delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, jgTransferNotice.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, jgTransferNotice.getSequenceNbr()));
}
return Boolean.TRUE;
}
......
......@@ -1305,7 +1305,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.eq(JgUseRegistrationEq::getEquipTransferId, id));
// 删除单子对应历史表数据
jgRegistrationHistoryService.getBaseMapper().delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, useRegistration.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, useRegistration.getSequenceNbr()));
});
}
......
......@@ -853,7 +853,7 @@ public class JgVehicleInformationServiceImpl extends BaseService<JgVehicleInform
.eq(JgVehicleInformationEq::getVehicleId, id));
// 删除单子对应历史表数据
jgRegistrationHistoryService.getBaseMapper().delete(new LambdaQueryWrapper<JgRegistrationHistory>()
.eq(JgRegistrationHistory::getCurrentDocumentId, vehicleInformation.getApplyNo()));
.eq(JgRegistrationHistory::getCurrentDocumentId, vehicleInformation.getSequenceNbr()));
});
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment