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