From dc6824a304a2d5fdb9f07335f24ab532ca2fce96 Mon Sep 17 00:00:00 2001
From: liyong <18434998025@163.com>
Date: 星期三, 29 四月 2026 10:27:01 +0800
Subject: [PATCH] fix(production): 解决生产机器记录重复添加问题
---
src/main/resources/mapper/production/ProductOrderMapper.xml | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diff --git a/src/main/resources/mapper/production/ProductOrderMapper.xml b/src/main/resources/mapper/production/ProductOrderMapper.xml
index 176ef1a..ea6fdfc 100644
--- a/src/main/resources/mapper/production/ProductOrderMapper.xml
+++ b/src/main/resources/mapper/production/ProductOrderMapper.xml
@@ -69,6 +69,7 @@
and po.create_time between #{c.startTime} and #{c.endTime}
</if>
</where>
+ order by po.id desc
</select>
<select id="listProcessRoute" resultType="com.ruoyi.production.pojo.ProcessRoute">
select pr.*
@@ -86,7 +87,10 @@
p.product_name,
pp.name as process_name,
pm.product_id,
- pm.model
+ pm.model,
+ ps.process_route_open_num,
+ ps.process_route_num,
+ ps.process_route_add_num
from
product_structure ps
left join product_model pm on ps.product_model_id = pm.id
--
Gitblit v1.9.3