问题清单修复

tags/yfai-pcn-ext-v1.0
jun 10 months ago
parent e66cf87495
commit f83321a660

@ -667,14 +667,6 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
if (StringUtils.isEmpty(partTypePicture)) { if (StringUtils.isEmpty(partTypePicture)) {
throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别不存在请检查数据", part.getPartNo(), part.getPartTypeCode())); throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别不存在请检查数据", part.getPartNo(), part.getPartTypeCode()));
} }
//若不存在则提示未维护正面图片
if (StringUtils.isEmpty(partTypePicture.getFrontPictureName())) {
throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别未维护正面图片请检查数据", part.getPartNo(), part.getPartTypeCode()));
}
//若不存在则提示未维护反面图片
if (StringUtils.isEmpty(partTypePicture.getBackPictureName())) {
throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别未维护反面图片请检查数据", part.getPartNo(), part.getPartTypeCode()));
}
return partTypePicture; return partTypePicture;
} }

@ -237,14 +237,6 @@ public class MesNcProcessingService implements IMesNcProcessingService {
if (StringUtils.isEmpty(partTypePicture)) { if (StringUtils.isEmpty(partTypePicture)) {
throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别不存在请检查数据", part.getPartNo(), part.getPartTypeCode())); throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别不存在请检查数据", part.getPartNo(), part.getPartTypeCode()));
} }
//若不存在则提示未维护正面图片
if (StringUtils.isEmpty(partTypePicture.getFrontPictureName())) {
throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别未维护正面图片请检查数据", part.getPartNo(), part.getPartTypeCode()));
}
//若不存在则提示未维护反面图片
if (StringUtils.isEmpty(partTypePicture.getBackPictureName())) {
throw new ImppBusiException(String.format("【%s】物料号对应的【%s】零件类别未维护反面图片请检查数据", part.getPartNo(), part.getPartTypeCode()));
}
return partTypePicture; return partTypePicture;
} }

Loading…
Cancel
Save