| | |
| | | <result property="dwgUrl" column="dwg_url"></result> |
| | | <collection property="materials" javaType="java.util.ArrayList" ofType="com.whyc.pojo.Material" column="{parentCode=parent_code,customCode=custom_code,subCode=sub_code,version=version}" select="selectMaterial"> |
| | | </collection> |
| | | <collection property="softwares" javaType="java.util.ArrayList" ofType="com.whyc.pojo.ProductSoftware" column="{parentCode=parent_code}" select="selectSoftware"> |
| | | </collection> |
| | | </resultMap> |
| | | <select id="getBomHistoryAndMaterial" resultMap="BomHistoryList"> |
| | | select distinct tb_product_bom_history.* |
| | |
| | | and tb_material_product_history.s_version<=#{version} |
| | | and tb_material_product_history.e_version>=#{version} |
| | | </select> |
| | | <select id="selectSoftware" resultType="com.whyc.pojo.ProductSoftware"> |
| | | select DISTINCT tb_product_software.* FROM db_doc.tb_product_software |
| | | where ttb_product_software.parent_code=#{parentCode} |
| | | </select> |
| | | |
| | | |
| | | </mapper> |