Kaynağa Gözat

【CHG】更新筛选多个区间SQL脚本

ZhaoMn 4 yıl önce
ebeveyn
işleme
214520c512

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcbBlqMapper.xml

@@ -375,7 +375,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -528,7 +531,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -570,7 +576,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcbDmcgyqMapper.xml

@@ -360,7 +360,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="fenxiang!=null and fenxiang!=''">
         and t.fenxiang=#{fenxiang}
@@ -481,7 +484,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_area=#{pillarCode}
@@ -523,7 +529,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcbFdfxjyqMapper.xml

@@ -499,7 +499,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -699,7 +702,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -776,7 +782,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcbGlkgMapper.xml

@@ -718,7 +718,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="xingbie!=null and xingbie!=''">
         and t.xingbie=#{xingbie}
@@ -986,7 +989,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -1028,7 +1034,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcbJcxcMapper.xml

@@ -492,7 +492,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -657,7 +660,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -699,7 +705,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcbWjcxcMapper.xml

@@ -484,7 +484,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -646,7 +649,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -688,7 +694,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebGjsfxMapper.xml

@@ -286,7 +286,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarStart!=null and pillarStart!=''">
         and t.pillar_start=#{pillarStart}
@@ -391,7 +394,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}
@@ -430,7 +436,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebJddzMapper.xml

@@ -222,7 +222,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -306,7 +309,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}
@@ -345,7 +351,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebJyzqsjlMapper.xml

@@ -209,7 +209,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -275,7 +278,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}
@@ -314,7 +320,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebLbjghjlMapper.xml

@@ -231,7 +231,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="dd!=null and dd!=''">
         and t.dd=#{dd}
@@ -318,7 +321,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}
@@ -357,7 +363,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebQmjcjlMapper.xml

@@ -259,7 +259,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_code=#{pillarCode}
@@ -355,7 +358,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}
@@ -394,7 +400,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}

+ 12 - 3
railway-business/src/main/resources/mapper/catenary/BusJcebXsjcjlMapper.xml

@@ -246,7 +246,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="operationDate!=null">
         and t.operation_date=#{operationDate}
@@ -339,7 +342,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}
@@ -378,7 +384,10 @@
         and v.station_id=#{stationId}
       </if>
       <if test="stationIds!=null and stationIds.length > 0">
-        and v.station_id in (#{stationIds}
+        and v.station_id in
+        <foreach collection="stationIds" item="stationId" index="i" open="(" separator="," close=")">
+          #{stationId}
+        </foreach>
       </if>
       <if test="pillarCode!=null and pillarCode!=''">
         and t.pillar_start=#{pillarCode}