|
@@ -173,13 +173,15 @@ public class ProductionReportingServiceImpl extends ServiceImpl<ProductionReport
|
|
|
.eq(TechnologyProcessLine::getSourceProcessesId, productionProcessesId)
|
|
|
.ne(TechnologyProcessLine::getTargetProcessesId, 99)
|
|
|
);
|
|
|
- productionTaskProgressService.update(q -> q
|
|
|
- .eq(ProductionTaskProgress::getTaskId, productionTaskId)
|
|
|
- .in(ProductionTaskProgress::getProcessesId, nextProcessIds)
|
|
|
- .setSql("balance_quantity = balance_quantity + " + dto.getQuantity())
|
|
|
- .set(BasePo::getUpdateTime, newDateTime)
|
|
|
- .set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
- );
|
|
|
+ if (ObjectUtil.isNotEmpty(nextProcessIds)) {
|
|
|
+ productionTaskProgressService.update(q -> q
|
|
|
+ .eq(ProductionTaskProgress::getTaskId, productionTaskId)
|
|
|
+ .in(ProductionTaskProgress::getProcessesId, nextProcessIds)
|
|
|
+ .setSql("balance_quantity = balance_quantity + " + dto.getQuantity())
|
|
|
+ .set(BasePo::getUpdateTime, newDateTime)
|
|
|
+ .set(BasePo::getUpdateUser, SecurityUtils.getUserId())
|
|
|
+ );
|
|
|
+ }
|
|
|
|
|
|
|
|
|
//判断报工工序是不是最后一道工序,是增加完工数量
|