From 778d3d8b387ca0a8d1b51ef68f783fb0b407ef20 Mon Sep 17 00:00:00 2001
From: wujian <14790700720@163.com>
Date: 星期五, 26 七月 2024 11:52:34 +0800
Subject: [PATCH] fix6

---
 jcdm-main/src/main/resources/mapper/da/passingStationCollection/DaPassingStationCollectionMapper.xml |   25 ++++++++++++++++++++++---
 1 files changed, 22 insertions(+), 3 deletions(-)

diff --git a/jcdm-main/src/main/resources/mapper/da/passingStationCollection/DaPassingStationCollectionMapper.xml b/jcdm-main/src/main/resources/mapper/da/passingStationCollection/DaPassingStationCollectionMapper.xml
index 3eca8e2..bec913f 100644
--- a/jcdm-main/src/main/resources/mapper/da/passingStationCollection/DaPassingStationCollectionMapper.xml
+++ b/jcdm-main/src/main/resources/mapper/da/passingStationCollection/DaPassingStationCollectionMapper.xml
@@ -26,10 +26,11 @@
         <result property="updateUser"    column="update_user"    />
         <result property="updateTime"    column="update_time"    />
         <result property="beatTime"    column="beat_time"    />
+        <result property="repairFlag"    column="repair_flag"    />
     </resultMap>
 
     <sql id="selectDaPassingStationCollectionVo">
-        select id, work_order_no, sfc_code, product_code, production_line, location_code, equipment_no, inbound_time, outbound_time, in_rs_sign, in_msg_sign, out_rs_sign, out_msg_sign, collection_time, spare_field_1, spare_field_2, create_user, create_time, update_user, update_time, beat_time from da_passing_station_collection
+        select id, work_order_no, sfc_code, product_code, production_line, location_code, equipment_no, inbound_time, outbound_time, in_rs_sign, in_msg_sign, out_rs_sign, out_msg_sign, collection_time, spare_field_1, spare_field_2, create_user, create_time, update_user, update_time, beat_time, repair_flag from da_passing_station_collection
     </sql>
 
     <select id="selectDaPassingStationCollectionList" parameterType="DaPassingStationCollection" resultMap="DaPassingStationCollectionResult">
@@ -45,7 +46,7 @@
             <if test="outboundTime != null "> and outbound_time = #{outboundTime}</if>
             <if test="outRsSign != null "> and out_rs_sign = #{outRsSign}</if>
             <if test="outRsSign != null "> and out_rs_sign = #{outRsSign}</if>
-
+            <if test="startTime != null and startTime != '' and endTime != null and endTime != ''"> and outbound_time between #{startTime} and #{endTime}</if>
         </where>
     </select>
     
@@ -53,7 +54,15 @@
         <include refid="selectDaPassingStationCollectionVo"/>
         where id = #{id}
     </select>
-        
+    <select id="getListBySfcCode"
+            resultMap="DaPassingStationCollectionResult">
+        <include refid="selectDaPassingStationCollectionVo"/>
+        where sfc_code in
+            <foreach collection="engineNoList" open="(" close=")" item="code" separator=",">
+            #{code}
+            </foreach>
+    </select>
+
     <insert id="insertDaPassingStationCollection" parameterType="DaPassingStationCollection">
         insert into da_passing_station_collection
         <trim prefix="(" suffix=")" suffixOverrides=",">
@@ -141,4 +150,14 @@
             #{id}
         </foreach>
     </delete>
+
+    <select id="SelectSN" parameterType="java.util.Map" statementType="CALLABLE" resultType="java.lang.String">
+        {
+            call SNRetrieval(
+                #{SN_CODE,mode=IN,jdbcType=VARCHAR},
+                #{Node,mode=IN,jdbcType=VARCHAR},
+                #{Success,mode=OUT,jdbcType=VARCHAR}
+                 )
+            }
+    </select>
 </mapper>
\ No newline at end of file

--
Gitblit v1.9.3