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 |   21 ++++++++++++++++++++-
 1 files changed, 20 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 daf203e..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,12 +75,21 @@
             <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">
         <include refid="selectOmProductionOrdeInfoVo"/>
         where id = #{id}
+    </select>
+
+    <select id="selectOmProductionOrdeInfoByIds" parameterType="String" resultMap="OmProductionOrdeInfoResult">
+        select type_z,product_code,line_code,route_code, bom_code, recipe_code, sum(plan_qty) plan_qty,serial_number, order_status from om_production_orde_info
+        where id in
+        <foreach item="id" collection="array" open="(" separator="," close=")">
+            #{id}
+        </foreach>
+        GROUP BY  type_z,product_code,line_code,route_code, bom_code, recipe_code,serial_number, order_status
     </select>
         
     <insert id="insertOmProductionOrdeInfo" parameterType="OmProductionOrdeInfo">
@@ -234,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