From 9c0afd1db117e1bbc06f403f92dde9919fff9532 Mon Sep 17 00:00:00 2001
From: shiyj1101 <1098226878@qq.com>
Date: 星期五, 18 六月 2021 16:33:02 +0800
Subject: [PATCH] 增加开户行功能
---
java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 1cbc030..920c181
--- a/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/user/OwnerCarServiceDaoImplMapper.xml
@@ -157,6 +157,9 @@
<if test="carNum !=null and carNum != ''">
and t.car_num= #{carNum}
</if>
+ <if test="carNumLike !=null and carNumLike != ''">
+ and t.car_num like concat('%',#{carNumLike},'%')
+ </if>
<if test="carNums !=null">
and t.car_num in
<foreach collection="carNums" item="item" index="index" open="(" close=")" separator=",">
@@ -307,6 +310,9 @@
<if test="carNum !=null and carNum != ''">
and t.car_num= #{carNum}
</if>
+ <if test="carNumLike !=null and carNumLike != ''">
+ and t.car_num like concat('%',#{carNumLike},'%')
+ </if>
<if test="carNums !=null">
and t.car_num in
<foreach collection="carNums" item="item" index="index" open="(" close=")" separator=",">
@@ -362,4 +368,19 @@
</select>
+ <select id="queryOwnerParkingSpaceCount" parameterType="Map" resultType="Map">
+ select count(DISTINCT t.ps_id) count
+ from owner_car t
+ where
+ t.ps_id != '-1'
+ <if test="statusCd !=null and statusCd != ''">
+ and t.status_cd= #{statusCd}
+ </if>
+ <if test="ownerId !=null and ownerId != ''">
+ and t.owner_id= #{ownerId}
+ </if>
+ <if test="communityId !=null and communityId != ''">
+ and t.community_id= #{communityId}
+ </if>
+ </select>
</mapper>
--
Gitblit v1.8.0