소스 검색

优化设备位置查询

java110 3 년 전
부모
커밋
a436a79c96
1개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  1. 8 1
      java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml

+ 8 - 1
java110-db/src/main/resources/mapper/community/CommunityLocationServiceDaoImplMapper.xml

@@ -73,7 +73,8 @@
     <select id="getCommunityLocationInfo" parameterType="Map" resultType="Map">
     <select id="getCommunityLocationInfo" parameterType="Map" resultType="Map">
         select t.location_name,t.location_name locationName,t.location_id,t.location_id
         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
         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
         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'
         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
         where 1 =1
@@ -86,6 +87,12 @@
         <if test="locationType !=null and locationType != ''">
         <if test="locationType !=null and locationType != ''">
             and t.location_type= #{locationType}
             and t.location_type= #{locationType}
         </if>
         </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 != ''">
         <if test="statusCd !=null and statusCd != ''">
             and t.status_cd= #{statusCd}
             and t.status_cd= #{statusCd}
         </if>
         </if>