From 05683f2b2bdbdbe21cf17ad523c21ab338bd1c54 Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 19 七月 2022 21:49:55 +0800
Subject: [PATCH] 优化添加设备 功能
---
java110-db/src/main/resources/mapper/community/ParkingAreaAttrServiceDaoImplMapper.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/community/ParkingAreaAttrServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/community/ParkingAreaAttrServiceDaoImplMapper.xml
old mode 100644
new mode 100755
index 65defb3..1ac9540
--- a/java110-db/src/main/resources/mapper/community/ParkingAreaAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/community/ParkingAreaAttrServiceDaoImplMapper.xml
@@ -86,8 +86,15 @@
<!-- 鏌ヨ鍗曞厓灞炴�т俊鎭� add by wuxw 2018-07-03 -->
<select id="getParkingAreaAttrInfo" parameterType="Map" resultType="Map">
select t.attr_id,t.attr_id attrId,t.pa_id,t.pa_id paId,t.spec_cd,t.spec_cd specCd,t.status_cd,t.status_cd
- statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.value
+ statusCd,t.community_id,t.community_id communityId,t.b_id,t.b_id bId,t.value,
+ s.spec_name specName,
+ v.value_name valueName,
+ s.list_show listShow,
+ s.spec_type specType
from parking_area_attr t
+ left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name =
+ 'parking_area_attr'
+ left join attr_value v on t.`value` = v.`value` and t.spec_cd = v.spec_cd and v.status_cd = '0'
where 1 =1
<if test="attrId !=null and attrId != ''">
and t.attr_id= #{attrId}
@@ -95,6 +102,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" open="(" close=")" separator=",">
+ #{item}
+ </foreach>
+ </if>
<if test="specCd !=null and specCd != ''">
and t.spec_cd= #{specCd}
</if>
--
Gitblit v1.8.0