From a27bcd2f9cba539ba9ffb7cfa949dc102d7446ff Mon Sep 17 00:00:00 2001
From: buhuazhen <hua100783@gmail.com>
Date: 星期一, 30 三月 2026 09:36:35 +0800
Subject: [PATCH] fix(production): 修复单位数量为零时的计算错误

---
 src/main/resources/mapper/production/ProductProcessMapper.xml |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/main/resources/mapper/production/ProductProcessMapper.xml b/src/main/resources/mapper/production/ProductProcessMapper.xml
index 5ab3631..a2292e2 100644
--- a/src/main/resources/mapper/production/ProductProcessMapper.xml
+++ b/src/main/resources/mapper/production/ProductProcessMapper.xml
@@ -4,10 +4,7 @@
 
     <select id="listPage" resultType="com.ruoyi.production.dto.ProductProcessDto">
         SELECT
-        p.id,
-        p.name,
-        p.no,
-        p.remark
+        *
         FROM
         product_process p
         <where>
@@ -18,6 +15,6 @@
                 AND  p.no LIKE CONCAT('%',#{productProcessDto.no},'%')
             </if>
         </where>
-        order by p.id desc
+        order by p.id asc
     </select>
 </mapper>

--
Gitblit v1.9.3