| | |
| | | public interface ProductBomHistoryMapper extends CustomMapper<ProductBomHistory> { |
| | | void updateVersionBatch(List<ProductBomHistory> newVersionCurrentHistoryList); |
| | | //读取指定版本产品的子件和关联的物料信息 |
| | | List<ProductBomHistory> getBomHistoryAndMaterial(int productId, int version); |
| | | List<ProductBomHistory> getBomHistoryAndMaterial(int productId, int subVersionMax); |
| | | //查询产品的软件 |
| | | List<ProductSoftware> selectSoftware(int productId); |
| | | |
| | |
| | | tb_Material.id = tb_product_bom_history.material_id |
| | | and |
| | | tb_product_history.id = #{productId} |
| | | and |
| | | tb_product_history.sub_version_max= #{subVersionMax} |
| | | order by tb_product_bom_history.id asc |
| | | </select> |
| | | <select id="selectMaterial" resultType="com.whyc.pojo.Material"> |