|
@@ -57,6 +57,8 @@ public class ProductionReportingServiceImpl extends ServiceImpl<ProductionReport
|
|
|
private TechnologyProcessLineService technologyProcessLineService;
|
|
|
@Autowired
|
|
|
private ProduceOrderService produceOrderService;
|
|
|
+ @Autowired
|
|
|
+ private ProductionSchedulingService productionSchedulingService;
|
|
|
|
|
|
|
|
|
@Override
|
|
@@ -160,6 +162,16 @@ public class ProductionReportingServiceImpl extends ServiceImpl<ProductionReport
|
|
|
.set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
);
|
|
|
|
|
|
+ //更新排程信息
|
|
|
+ productionSchedulingService.update(q -> q
|
|
|
+ .eq(ProductionScheduling::getTaskId, productionTaskId)
|
|
|
+ .eq(ProductionScheduling::getProcessesId, productionProcessesId)
|
|
|
+ .setSql("finish_quantity = finish_quantity + " + dto.getQuantity())
|
|
|
+ .set(BasePo::getUpdateTime, newDateTime)
|
|
|
+ .set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
+ );
|
|
|
+
|
|
|
+
|
|
|
//更新完工数量
|
|
|
ProductionOrderDetail productionOrderDetail = produceOrderDetailService.getById(productionTaskId);
|
|
|
Assert.notEmpty(productionOrderDetail, "查询不到生产任务信息!");
|