ソースを参照

处理BOM保存报错

chenw 7 年 前
コミット
e3fc1bf921

+ 1 - 1
applications/document/document-server/src/main/java/com/usoftchina/saas/document/service/impl/BomServiceImpl.java

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