| | |
| | | result = salesLedgerProductMapper.updateById(salesLedgerProduct); |
| | | /*删除对应的生产数据并重新新增*/ |
| | | deleteProductionData(Arrays.asList(salesLedgerProduct.getId())); |
| | | // 删除生产核算数据 |
| | | |
| | | addProductionData(salesLedgerProduct); |
| | | } |
| | |
| | | List<ProductionPlan> productionPlans = productionPlanMapper.selectList( |
| | | new LambdaQueryWrapper<ProductionPlan>() |
| | | .in(ProductionPlan::getSalesLedgerProductId, productIds.stream().map(Long::intValue).collect(Collectors.toList()))); |
| | | if (org.springframework.util.CollectionUtils.isEmpty(productionPlans)) { |
| | | if (CollectionUtils.isEmpty(productionPlans)) { |
| | | return; |
| | | } |
| | | //如果生产计划已下发则不能删除 |