From ff57bb06b8536a6baf5fa8e28aaf5beca984a673 Mon Sep 17 00:00:00 2001 From: 86156 <823267011@qq.com> Date: Tue, 15 Jul 2025 17:56:05 +0800 Subject: [PATCH] =?UTF-8?q?bug=E5=B0=9D=E8=AF=95=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../work/service/impl/IndustryStepServiceImpl.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/industry-system/src/main/java/com/industry/work/service/impl/IndustryStepServiceImpl.java b/industry-system/src/main/java/com/industry/work/service/impl/IndustryStepServiceImpl.java index 1004b264..979dc4de 100644 --- a/industry-system/src/main/java/com/industry/work/service/impl/IndustryStepServiceImpl.java +++ b/industry-system/src/main/java/com/industry/work/service/impl/IndustryStepServiceImpl.java @@ -365,6 +365,17 @@ public class IndustryStepServiceImpl implements IIndustryStepService { industryMaterialService.updateIndustryMaterial(materialVo); } + // 此处处理为异常榨汁页面依然有异常料后需要将异常料改为状态4 + industryMaterialVo.setState(3L); + industryMaterialVo.setBatchId(batchId); + industryMaterialVo.setDelFlag(1L); + List errorMaterialList = industryMaterialService.selectAbnormalList(industryMaterialVo); + for (IndustryMaterialVo materialVo : errorMaterialList) { + materialVo.setState(4L); + materialVo.setOperation(0L); + industryMaterialService.updateIndustryMaterial(materialVo); + } + // 将该批次所有的道次的进行中置零 IndustryStep industryStep = new IndustryStep(); industryStep.setOperation(0L);