longyvfengyun
2022-07-28 3260a06c24c3624bdcb25110fd86f38a7a563cf8
更新
1个文件已修改
7 ■■■■■ 已修改文件
src/main/java/com/whyc/service/WorksheetLinkService.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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一致