liyong
2026-01-20 9d4cf882be7a2ad8d3cc422bcd0dbc461f626f58
src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -9,13 +9,12 @@
        <result column="product_id" property="productId" />
        <result column="model" property="model" />
        <result column="unit" property="unit" />
        <result column="speculative_trading_name" property="speculativeTradingName" />
        <result column="tenant_id" property="tenantId" />
        <result column="product_name" property="productName" />
        <result column="product_id" property="productId" />
    </resultMap>
    <select id="listPageProductModel" resultType="com.ruoyi.basic.pojo.ProductModel">
        select pm.*,p.product_name,
        select pm.*,p.product_name
        from product_model pm
        left join product p on pm.product_id = p.id
        <where>
@@ -28,6 +27,11 @@
        </where>
        order by  pm.id
    </select>
    <select id="selectLatestRecord" resultType="com.ruoyi.basic.pojo.ProductModel">
            SELECT * FROM product_model
            ORDER BY create_time DESC, id DESC
            LIMIT 1
    </select>
</mapper>