From 781c2e20a4bb844dae3f4eafbf5f0e494b942ea8 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 25 五月 2023 18:07:08 +0800
Subject: [PATCH] optimize
---
java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml
index 45ac07c..54b0ee9 100755
--- a/java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml
@@ -73,7 +73,8 @@
<select id="getCommunityLocationInfo" parameterType="Map" resultType="Map">
select t.location_name,t.location_name locationName,t.location_id,t.location_id
locationId,t.location_type,t.location_type locationType,t.status_cd,t.status_cd statusCd,t.b_id,t.b_id
- bId,t.community_id,t.community_id communityId,d.name locationTypeName
+ bId,t.community_id,t.community_id communityId,d.name locationTypeName,
+ t.location_obj_id locationObjId,t.location_obj_name locationObjName
from community_location t
left join t_dict d on t.location_type = d.status_cd and d.table_name = 'community_location' and d.table_columns = 'location_type'
where 1 =1
@@ -86,6 +87,12 @@
<if test="locationType !=null and locationType != ''">
and t.location_type= #{locationType}
</if>
+ <if test="locationObjId !=null and locationObjId != ''">
+ and t.location_obj_id= #{locationObjId}
+ </if>
+ <if test="locationObjName !=null and locationObjName != ''">
+ and t.location_obj_name= #{locationObjName}
+ </if>
<if test="statusCd !=null and statusCd != ''">
and t.status_cd= #{statusCd}
</if>
--
Gitblit v1.8.0