| | |
| | | if(salesQuotation==null) return false; |
| | | salesQuotationMapper.deleteById(id); |
| | | salesQuotationProductMapper.delete(new LambdaQueryWrapper<SalesQuotationProduct>().eq(SalesQuotationProduct::getSalesQuotationId, id)); |
| | | // 删除报价审批 |
| | | // 删除报价审批实例(ApprovalInstance) |
| | | ApprovalInstance approvalInstance = approvalInstanceService.getOne(new LambdaQueryWrapper<ApprovalInstance>() |
| | | .eq(ApprovalInstance::getBusinessId, id) |
| | | .eq(ApprovalInstance::getBusinessType, 6L) |
| | | .eq(ApprovalInstance::getDeleted, 0) |
| | | .last("LIMIT 1")); |
| | | if(approvalInstance != null){ |
| | | approvalInstanceService.delete(Collections.singletonList(approvalInstance.getId())); |
| | | } |
| | | // 删除报价审批流程(ApproveProcess) |
| | | ApproveProcess one = approveProcessService.getOne(new LambdaQueryWrapper<ApproveProcess>() |
| | | .eq(ApproveProcess::getApproveType, 6) |
| | | .eq(ApproveProcess::getApproveDelete, IsDeleteEnum.NOT_DELETED) |