lxw
2022-08-19 d87d06c0c48b383117c4096cb6b3fa3e986bf7da
产品下载
1个文件已修改
3 ■■■■ 已修改文件
src/main/resources/mapper/ProductBomMapper.xml 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/ProductBomMapper.xml
@@ -133,12 +133,11 @@
        <result property="createDate" column="create_date"></result>
        <result property="version" column="version"></result>
        <result property="dwgUrl" column="dwg_url"></result>
        <result property="replaceStatus" column="replaceStatus"></result>
        <collection property="materials" javaType="java.util.ArrayList" ofType="com.whyc.pojo.Material" column="{productId=product_id,subCode=sub_code,version=version}" select="selectMaterial">
        </collection>
    </resultMap>
    <select id="getBomAndMaterial" resultMap="MaterialList" parameterType="java.lang.Integer">
        select distinct *,0 as replaceStatus from  db_doc.tb_product_bom
        select distinct *  from  db_doc.tb_product_bom
        <where>
            product_id = #{productId}
            and