| | |
| | | private ProductionProductMainMapper productionProductMainMapper; |
| | | |
| | | private SalesLedgerProductionAccountingMapper salesLedgerProductionAccountingMapper; |
| | | private ProductionReportPersonMapper productionReportPersonMapper; |
| | | |
| | | private ProductWorkOrderMapper productWorkOrderMapper; |
| | | |
| | |
| | | // .eq(QualityInspect::getProductMainId, mainId)); |
| | | salesLedgerProductionAccountingMapper.delete(new LambdaQueryWrapper<SalesLedgerProductionAccounting>() |
| | | .eq(SalesLedgerProductionAccounting::getProductMainId, main.getId())); |
| | | productionReportPersonMapper.delete(new LambdaQueryWrapper<ProductionReportPerson>() |
| | | .eq(ProductionReportPerson::getProductMainId, main.getId())); |
| | | } |
| | | } |
| | | // 查询订单 + 删除核算 |
| | | |
| | | // 清理排产预生成的质检单 |
| | | productionProductMainService.cleanPreGeneratedQualityInspects(Collections.singletonList(workOrderId)); |
| | | |
| | | // 删除关联工单 |
| | | productWorkOrderMapper.delete(new LambdaQueryWrapper<ProductWorkOrder>() |
| | | .eq(ProductWorkOrder::getProductProcessRouteItemId, routeItemId)); |