浏览代码

优化到期车辆

java110 4 年之前
父节点
当前提交
52150b366e
共有 1 个文件被更改,包括 13 次插入1 次删除
  1. 13 1
      java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml

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

@@ -217,6 +217,13 @@
         <if test="valid == '1'">
             and t.end_time &gt; now()
         </if>
+        <if test="valid == '0'">
+            and t.end_time &lt; now()
+        </if>
+        <if test="valid == '2'">
+            and t.ps_id= '-1'
+        </if>
+
         order by t.create_time desc
         <if test="page != -1 and page != null ">
             limit #{page}, #{row}
@@ -364,7 +371,12 @@
         <if test="valid == '1'">
             and t.end_time &gt; now()
         </if>
-
+        <if test="valid == '0'">
+            and t.end_time &lt; now()
+        </if>
+        <if test="valid == '2'">
+            and t.ps_id= '-1'
+        </if>
 
     </select>