| | |
| | | .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); |
| | |
| | | |
| | | |
| | | <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> |