src/main/java/com/whyc/service/WorksheetLinkService.java | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/main/resources/mapper/ProductBomHistoryMapper.xml | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/main/java/com/whyc/service/WorksheetLinkService.java
@@ -161,8 +161,9 @@ .filter(currentHistory -> !approvingUpdateSubNameList.contains(currentHistory.getSubName())) .collect(Collectors.toList()); newVersionCurrentHistoryList.forEach(history->{history.setEVersion(nextVersion);}); historyService.updateVersionBatch(newVersionCurrentHistoryList); if(newVersionCurrentHistoryList.size()!=0) { historyService.updateVersionBatch(newVersionCurrentHistoryList); } /*更新到product_bom*/ //查询新的版本 List<ProductBomHistory> newBomList = historyService.getListByParentModel(approvingList.get(0).getParentModel(), nextVersion); src/main/resources/mapper/ProductBomHistoryMapper.xml
@@ -4,6 +4,8 @@ <update id="updateVersionBatch"> update db_doc.tb_product_bom_history set e_version = #{eVersion} where id = #{id} <foreach collection="list" index="his" separator=";"> update db_doc.tb_product_bom_history set e_version = #{his.eVersion} where id = #{his.id} </foreach> </update> </mapper> </mapper>