From 0849670f03eaa4b5de71c11558e6baf6ac8d2586 Mon Sep 17 00:00:00 2001
From: 1098226878 <1098226878@qq.com>
Date: 星期二, 14 九月 2021 10:27:50 +0800
Subject: [PATCH] 优化代码
---
java110-db/src/main/resources/mapper/community/ParkingAreaServiceDaoImplMapper.xml | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/ParkingAreaServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/ParkingAreaServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index af2844a..5053727
--- a/java110-db/src/main/resources/mapper/community/ParkingAreaServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/ParkingAreaServiceDaoImplMapper.xml
@@ -88,6 +88,12 @@
<if test="paId !=null and paId != ''">
and t.pa_id= #{paId}
</if>
+ <if test="paIds !=null ">
+ and t.pa_id in
+ <foreach collection="paIds" item="item" index="index" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="remark !=null and remark != ''">
and t.remark= #{remark}
</if>
@@ -100,6 +106,7 @@
<if test="bId !=null and bId != ''">
and t.b_id= #{bId}
</if>
+ order by t.create_time desc
<if test="page != -1 and page != null ">
limit #{page}, #{row}
</if>
@@ -149,6 +156,12 @@
<if test="paId !=null and paId != ''">
and t.pa_id= #{paId}
</if>
+ <if test="paIds !=null ">
+ and t.pa_id in
+ <foreach collection="paIds" item="item" index="index" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="remark !=null and remark != ''">
and t.remark= #{remark}
</if>
--
Gitblit v1.8.0