修复bug
This commit is contained in:
@@ -779,7 +779,7 @@ public class IndustryMaterialServiceImpl implements IIndustryMaterialService {
|
||||
IndustryMaterialVo industryMaterialVo = new IndustryMaterialVo();
|
||||
industryMaterialVo.setBatchId(industryMaterial.getBatchId());
|
||||
// 获得该批次的所有原料
|
||||
List<IndustryMaterialVo> industryMaterialVos = industryMaterialMapper.selectAbnormalList(industryMaterialVo);
|
||||
List<IndustryMaterialVo> industryMaterialVos = industryMaterialMapper.selectIndustryMaterialList(industryMaterialVo);
|
||||
|
||||
// 首先查看是否有该批次的料
|
||||
if (Objects.nonNull(industryMaterialVos) && !industryMaterialVos.isEmpty()) {
|
||||
|
||||
@@ -447,8 +447,6 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
|
||||
if (Objects.nonNull(successList) && !successList.isEmpty()) {
|
||||
|
||||
for (IndustryMaterialVo success : successList) {
|
||||
|
||||
System.out.println(success);
|
||||
// 进入这里说明工艺没问题接下里根据工艺表创建道次
|
||||
// 判断当前是粗轧还是精轧
|
||||
IndustryTechnology industryTechnology = new IndustryTechnology();
|
||||
@@ -499,7 +497,7 @@ public class IndustryStepServiceImpl implements IIndustryStepService {
|
||||
for (IndustryTechnologyVo industryTechnologyVo : industryTechnologyVos) {
|
||||
System.out.println(industryTechnologyVo);
|
||||
IndustryStep industryStep = getIndustryStep(industryMaterial, success, industryTechnologyVo);
|
||||
insertIndustryStep(industryStep);
|
||||
industryStepMapper.insertIndustryStep(industryStep);
|
||||
}
|
||||
success.setStepSize((long) industryTechnologyVos.size());
|
||||
industryMaterialService.updateIndustryMaterial(success);
|
||||
|
||||
Reference in New Issue
Block a user