liyong
10 天以前 64b09d98dfe24903f856d21dff218aebd5755611
fix(product): 修复产品型号查询结果排序问题

- 添加按产品型号ID降序排列确保最新记录优先
- 限制查询结果为单条记录避免重复数据返回
- 优化数据库查询性能减少不必要的数据传输
已修改1个文件
2 ■■■■■ 文件已修改
src/main/resources/mapper/basic/ProductModelMapper.xml 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/basic/ProductModelMapper.xml
@@ -130,5 +130,7 @@
            product on product_model.product_id = product.id
        where product_model.model = #{model}
        and product.product_name = #{productName}
        order by product_model.id desc
            LIMIT 1
    </select>
</mapper>