5 天以前 67de53af3d78d28eda960037f39646b6886a9ee8
src/main/resources/mapper/production/ProductStructureRecordMapper.xml
@@ -15,5 +15,18 @@
        <result column="tenant_id" property="tenantId" />
        <result column="bom_id" property="bomId" />
    </resultMap>
    <select id="listPage" resultType="com.ruoyi.production.pojo.ProductStructureRecord">
        select psr.*,
               pm.model,
               p.product_name
            from product_structure_record psr
        left join product_model pm on pm.id = psr.product_model_id
        left join product p on p.id = pm.product_id
        <where>
            <if test="req.productOrderId != null">
                and psr.product_order_id = #{req.productOrderId}
            </if>
        </where>
    </select>
</mapper>