From 9906e6b188bf2c36dddc0d5adadbf02e69ea3e4b Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期五, 25 十月 2024 09:17:29 +0800
Subject: [PATCH] add -sap

---
 jcdm-main/src/main/resources/mapper/om/productionOrde/OmProductionOrdeInfoMapper.xml |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/jcdm-main/src/main/resources/mapper/om/productionOrde/OmProductionOrdeInfoMapper.xml b/jcdm-main/src/main/resources/mapper/om/productionOrde/OmProductionOrdeInfoMapper.xml
index 983bd68..345652f 100644
--- a/jcdm-main/src/main/resources/mapper/om/productionOrde/OmProductionOrdeInfoMapper.xml
+++ b/jcdm-main/src/main/resources/mapper/om/productionOrde/OmProductionOrdeInfoMapper.xml
@@ -75,7 +75,7 @@
             <if test="dateConditions != null  and dateConditions != ''"> and create_time BETWEEN #{startTime} AND #{endTime}</if>
 
         </where>
-        ORDER BY stream_number DESC
+        ORDER BY CAST(work_order_no AS BIGINT) DESC
     </select>
     
     <select id="selectOmProductionOrdeInfoById" parameterType="Long" resultMap="OmProductionOrdeInfoResult">
@@ -243,4 +243,14 @@
     <select id="getMaxStreamNumber" resultType="Integer">
         SELECT MAX(stream_number) AS streamNumber FROM om_production_orde_info
     </select>
+    <select id="selectOmProductionOrderListById"
+            resultMap="OmProductionOrdeInfoResult">
+        <include refid="selectOmProductionOrdeInfoVo"/>
+            <where>
+                id in
+                <foreach item="id" collection="array" open="(" separator="," close=")">
+                    #{id}
+                </foreach>
+            </where>
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3