diff --git a/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java b/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java index ebc84eb6..602bac75 100644 --- a/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java +++ b/industry-system/src/main/java/com/industry/work/service/impl/IndustryMaterialServiceImpl.java @@ -209,7 +209,7 @@ public class IndustryMaterialServiceImpl implements IIndustryMaterialService { industryStep.setBatchId(industryMaterialVo.getBatchId()); industryStep.setMaterialId(industryMaterialVo.getId()); industryStep.setState(2L); - List industryStepVos = industryStepMapper.selectIndustryStepList(industryStep); + List industryStepVos = industryStepMapper.selectErrorIndustryStepList(industryStep); for (IndustryStepVo industryStepVo : industryStepVos) { industryStepVo.setState(0L); industryStepMapper.updateIndustryStep(industryStepVo); diff --git a/industry-system/src/main/resources/mapper/work/IndustryStepMapper.xml b/industry-system/src/main/resources/mapper/work/IndustryStepMapper.xml index 5b547cee..596ea1f5 100644 --- a/industry-system/src/main/resources/mapper/work/IndustryStepMapper.xml +++ b/industry-system/src/main/resources/mapper/work/IndustryStepMapper.xml @@ -64,7 +64,6 @@ and step = #{step} - and del_flag = #{delFlag} and reduction = #{reduction} and set_value = #{setValue} and angle = #{angle} @@ -72,6 +71,7 @@ and state = #{state} and material_id = #{materialId} and batch_id = #{batchId} + and del_flag = #{delFlag} order by step