src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -126,7 +126,8 @@ INNER JOIN tree t ON t2.id = t.id; </select> <select id="selectOldProductModel" resultType="com.ruoyi.basic.pojo.ProductModel"> select * from product_model left join select product_model.*,product.product_name from product_model left join product on product_model.product_id = product.id where product_model.model = #{model} and product.product_name = #{productName}