Bläddra i källkod

优化 业主车辆查询

java110 5 år sedan
förälder
incheckning
7e75a2276f

+ 6 - 6
java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml

@@ -214,13 +214,13 @@
         <if test="state !=null and state != ''">
         <if test="state !=null and state != ''">
             and t.state= #{state}
             and t.state= #{state}
         </if>
         </if>
-        <if test="valid == '1'">
+        <if test="valid == 1">
             and t.end_time &gt; now()
             and t.end_time &gt; now()
         </if>
         </if>
-        <if test="valid == '0'">
+        <if test="valid == 3">
             and t.end_time &lt; now()
             and t.end_time &lt; now()
         </if>
         </if>
-        <if test="valid == '2'">
+        <if test="valid == 2">
             and t.ps_id= '-1'
             and t.ps_id= '-1'
         </if>
         </if>
 
 
@@ -368,13 +368,13 @@
         <if test="state !=null and state != ''">
         <if test="state !=null and state != ''">
             and t.state= #{state}
             and t.state= #{state}
         </if>
         </if>
-        <if test="valid == '1'">
+        <if test="valid == 1">
             and t.end_time &gt; now()
             and t.end_time &gt; now()
         </if>
         </if>
-        <if test="valid == '0'">
+        <if test="valid == 3">
             and t.end_time &lt; now()
             and t.end_time &lt; now()
         </if>
         </if>
-        <if test="valid == '2'">
+        <if test="valid == 2">
             and t.ps_id= '-1'
             and t.ps_id= '-1'
         </if>
         </if>