Sfoglia il codice sorgente

1、状态查询排除0;

zk 2 anni fa
parent
commit
526f9ed24e

+ 3 - 3
sckw-modules/sckw-fleet/src/main/resources/mapper/KwfDriverMapper.xml

@@ -185,7 +185,7 @@
         <if test="status != null and status != ''">
             and dr.status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and dr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         <if test="startTime != null and startTime != '' " >
@@ -241,7 +241,7 @@
         <if test="status != null and status != ''">
             and dr.status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and dr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         <if test="noReport != null and noReport != ''">
@@ -288,7 +288,7 @@
         <if test="status != null and status != ''">
             and status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and dr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         ORDER BY create_time desc

+ 4 - 4
sckw-modules/sckw-fleet/src/main/resources/mapper/KwfTruckMapper.xml

@@ -121,7 +121,7 @@
         <if test="status != null and status != ''">
             and tr.status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and tr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         <if test="startTime != null and startTime != '' " >
@@ -187,7 +187,7 @@
         <if test="status != null and status != ''">
             and tr.status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and tr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         <if test="startTime != null and startTime != '' " >
@@ -243,7 +243,7 @@
         <if test="status != null and status != ''">
             and tr.status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and tr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         <if test="startTime != null and startTime != '' " >
@@ -294,7 +294,7 @@
         <if test="status != null and status != ''">
             and status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         ORDER BY create_time desc

+ 2 - 2
sckw-modules/sckw-fleet/src/main/resources/mapper/KwfTruckReportMapper.xml

@@ -77,7 +77,7 @@
         <if test="status != null and status != ''">
             and tr.status = #{status, jdbcType=VARCHAR}
         </if>
-        <if test="truckAuthStatus != null and truckAuthStatus != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and tr.auth_status = #{truckAuthStatus, jdbcType=VARCHAR}
         </if>
         <if test="startTime != null and startTime != '' " >
@@ -132,7 +132,7 @@
         <if test="businessStatus != null and businessStatus != ''">
             and tr.business_status = #{businessStatus, jdbcType=VARCHAR}
         </if>
-        <if test="authStatus != null and status != ''">
+        <if test="authStatus != null and status != '' and status != '0'">
             and tr.auth_status = #{authStatus, jdbcType=VARCHAR}
         </if>
         <if test="status != null and status != ''">