修复bug

This commit is contained in:
2025-08-21 10:09:55 +08:00
parent 7c0d58e25b
commit f1f7319062
2 changed files with 2 additions and 0 deletions

View File

@@ -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));
}

View File

@@ -672,6 +672,7 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
@Override
public void start(IndustryStep industryStep) {
industryStep.setState(0L);
List<IndustryStepVo> industryStepVos = industryStepMapper.selectIndustryStepList(industryStep);
if (!industryStepVos.isEmpty()) {
IndustryStepVo firstStep = industryStepVos.get(0);