From 2395d0acde150dc0e643201c78764c9544d132eb Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期一, 27 四月 2026 11:41:37 +0800
Subject: [PATCH] fix(mapper): 修复产品工艺路线查询结果排序问题
---
src/main/resources/mapper/production/ProductProcessRouteMapper.xml | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductProcessRouteMapper.xml b/src/main/resources/mapper/production/ProductProcessRouteMapper.xml
index dd4809f..422b2f3 100644
--- a/src/main/resources/mapper/production/ProductProcessRouteMapper.xml
+++ b/src/main/resources/mapper/production/ProductProcessRouteMapper.xml
@@ -21,6 +21,7 @@
left join product_model pm on ppr.product_model_id = pm.id
left join product p on pm.product_id = p.id
where ppr.product_order_id = #{orderId}
+ order by ppr.id desc limit 1
</select>
</mapper>
--
Gitblit v1.9.3