소스 검색

优化到期车辆

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