Forráskód Böngészése

修改司机接单查询sql

txf 3 éve
szülő
commit
a84aff793d

+ 8 - 3
src/main/resources/com/steerinfo/dil/mapper/OmstruckOrderMapper.xml

@@ -1305,9 +1305,14 @@
                 on RCA.CARRIER_ID = RC.CARRIER_ID
         </if>
         <where>
-            <if test="orderStatus != null">
-                OO.ORDER_STATUS = #{orderStatus}
-            </if>
+            <choose>
+                <when test="orderStatus != 111">
+                    and OO.ORDER_STATUS = #{orderStatus}
+                </when>
+                <when test="orderStatus == 111">
+                    and OO.ORDER_STATUS in (0, 1, 2, 5)
+                </when>
+            </choose>
             <if test="orderTypee != null">
                 and OO.ORDER_TYPE = #{orderTypee}
             </if>