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>