|
|
|
@ -1073,6 +1073,14 @@ public class MesInputDefectRecordService implements IMesInputDefectRecordService
|
|
|
|
|
throw new ImppBusiException(String.format("【%s】此条码对应【%s】物料号未维护零件类型,请检查数据", produceSn.getProductSn(), produceSn.getPartNo()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//20250517-46981 电子化检验 NC判定 虚结构不可录入
|
|
|
|
|
DdlPackBean productVersionPackBean = DdlPackBean.getDdlPackBean(org);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack("虚零件", "description", productVersionPackBean);
|
|
|
|
|
DdlPreparedPack.getStringEqualPack(part.getPartNo(), "partNo", productVersionPackBean);
|
|
|
|
|
int count = productVersionRepository.findByHqlWhereCount(productVersionPackBean);
|
|
|
|
|
if (count > 0) {
|
|
|
|
|
throw new ImppBusiException(String.format("【%s】此条码对应【%s】物料号为虚零件,请检查数据", produceSn.getProductSn(), produceSn.getPartNo()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return part;
|
|
|
|
|
}
|
|
|
|
|