diff --git a/industry-admin/src/main/java/com/industry/web/controller/work/IndustryMaterialController.java b/industry-admin/src/main/java/com/industry/web/controller/work/IndustryMaterialController.java index 8ebc4347..18ac4c95 100644 --- a/industry-admin/src/main/java/com/industry/web/controller/work/IndustryMaterialController.java +++ b/industry-admin/src/main/java/com/industry/web/controller/work/IndustryMaterialController.java @@ -176,6 +176,7 @@ public class IndustryMaterialController extends BaseController IndustryStep industryStep = new IndustryStep(); industryStep.setStep(1L); industryStep.setDelFlag(0L); + industryStep.setBatchId(industryMaterial.getBatchId()); industryStepService.start(industryStep); return success(industryMaterialService.start(industryMaterial)); } 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 479345e5..1bfaaaf1 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 @@ -672,6 +672,7 @@ public class IndustryStepServiceImpl implements IIndustryStepService { @Override public void start(IndustryStep industryStep) { + industryStep.setState(0L); List industryStepVos = industryStepMapper.selectIndustryStepList(industryStep); if (!industryStepVos.isEmpty()) { IndustryStepVo firstStep = industryStepVos.get(0);