longyvfengyun
2022-07-28 a96cf9b83c7f65ab0820403d29602f173fe60a99
更新
2个文件已修改
7 ■■■■ 已修改文件
src/main/java/com/whyc/service/WorksheetLinkService.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ProductBomHistoryMapper.xml 4 ●●● 补丁 | 查看 | 原始文档 | 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);});
            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>