| | |
| | | /**指定版本的产品bom*/ |
| | | public List<ProductBomHistory> getListByParentModel(String parentModel, Integer version) { |
| | | QueryWrapper<ProductBomHistory> query = Wrappers.query(); |
| | | query.eq("parent_model",parentModel).le("e_version",version).ge("s_version",version); |
| | | query.eq("parent_model",parentModel).ge("e_version",version).le("s_version",version); |
| | | return mapper.selectList(query); |
| | | } |
| | | |
| | |
| | | |
| | | |
| | | <update id="updateVersionBatch"> |
| | | <foreach collection="list" index="his" separator=";"> |
| | | <foreach collection="list" item="his" separator=";"> |
| | | update db_doc.tb_product_bom_history set e_version = #{his.eVersion} where id = #{his.id} |
| | | </foreach> |
| | | </update> |