|
|
@@ -53,7 +53,7 @@ public class BomServiceImpl extends CommonBaseServiceImpl<BomMapper, Bom> implem
|
|
|
//校验组合件和子件不允许相同
|
|
|
if (bomDetailList.size() > 0){
|
|
|
for (BomDetail bomDetail : bomDetailList){
|
|
|
- if (bom.getBo_mothercode().equals(bomDetail.getProductDTO().getPr_code())){
|
|
|
+ if (bom.getBo_mothercode().equals(bomDetail.getBd_soncode())){
|
|
|
throw new BizException(BizExceptionCode.BOM_CODE_REPEAT);
|
|
|
}
|
|
|
}
|