src/main/java/com/whyc/service/WorksheetLinkService.java
@@ -105,9 +105,10 @@ //删除? TODO 需要约定逻辑 //查询部件最新的版本号 Integer currentVersion = bomService.getProduct(approvingList.get(0).getParentModel()).getVersion(); if(currentVersion==null){ currentVersion = 0; ProductBom product = bomService.getProduct(approvingList.get(0).getParentModel()); int currentVersion = -1; if(product!=null){ currentVersion = product.getVersion(); } Integer nextVersion = currentVersion+1; //更新到product_bom_history,增加进去的需要sVersion和eVersion一致