修复bug
This commit is contained in:
@@ -176,6 +176,7 @@ public class IndustryMaterialController extends BaseController
|
|||||||
IndustryStep industryStep = new IndustryStep();
|
IndustryStep industryStep = new IndustryStep();
|
||||||
industryStep.setStep(1L);
|
industryStep.setStep(1L);
|
||||||
industryStep.setDelFlag(0L);
|
industryStep.setDelFlag(0L);
|
||||||
|
industryStep.setBatchId(industryMaterial.getBatchId());
|
||||||
industryStepService.start(industryStep);
|
industryStepService.start(industryStep);
|
||||||
return success(industryMaterialService.start(industryMaterial));
|
return success(industryMaterialService.start(industryMaterial));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -672,6 +672,7 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void start(IndustryStep industryStep) {
|
public void start(IndustryStep industryStep) {
|
||||||
|
industryStep.setState(0L);
|
||||||
List<IndustryStepVo> industryStepVos = industryStepMapper.selectIndustryStepList(industryStep);
|
List<IndustryStepVo> industryStepVos = industryStepMapper.selectIndustryStepList(industryStep);
|
||||||
if (!industryStepVos.isEmpty()) {
|
if (!industryStepVos.isEmpty()) {
|
||||||
IndustryStepVo firstStep = industryStepVos.get(0);
|
IndustryStepVo firstStep = industryStepVos.get(0);
|
||||||
|
|||||||
Reference in New Issue
Block a user