From 9943c60aca4c93600e54479d919d377e08a12ef4 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期四, 10 十二月 2020 21:58:26 +0800
Subject: [PATCH] Merge branch 'master' of http://git.homecommunity.cn/supervip/MicroCommunity
---
java110-db/src/main/resources/mapper/common/MachineAttrServiceDaoImplMapper.xml | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diff --git a/java110-db/src/main/resources/mapper/common/MachineAttrServiceDaoImplMapper.xml b/java110-db/src/main/resources/mapper/common/MachineAttrServiceDaoImplMapper.xml
index 680c7e5..0b90cb6 100644
--- a/java110-db/src/main/resources/mapper/common/MachineAttrServiceDaoImplMapper.xml
+++ b/java110-db/src/main/resources/mapper/common/MachineAttrServiceDaoImplMapper.xml
@@ -14,6 +14,15 @@
</insert>
+ <insert id="saveMachineAttrs" parameterType="Map">
+ insert into machine_attrs(
+ machine_id,attr_id,spec_cd,community_id,b_id,value
+ ) values (
+ #{machineId},#{attrId},#{specCd},#{communityId},'-1',#{value}
+ )
+ </insert>
+
+
<!-- 鏌ヨ璁惧灞炴�т俊鎭紙Business锛� add by wuxw 2018-07-03 -->
<select id="getBusinessMachineAttrInfo" parameterType="Map" resultType="Map">
select t.machine_id,t.machine_id machineId,t.attr_id,t.attr_id attrId,t.operate,t.spec_cd,t.spec_cd
@@ -77,8 +86,13 @@
<!-- 鏌ヨ璁惧灞炴�т俊鎭� add by wuxw 2018-07-03 -->
<select id="getMachineAttrInfo" parameterType="Map" resultType="Map">
select t.machine_id,t.machine_id machineId,t.attr_id,t.attr_id attrId,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
+ specCd,t.status_cd,t.status_cd 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
from machine_attrs t
+ left join attr_spec s on t.spec_cd = s.spec_cd and s.status_cd = '0' and s.table_name = 'machine_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="machineId !=null and machineId != ''">
and t.machine_id= #{machineId}
--
Gitblit v1.8.0