提交 e57dcff8 authored 作者: linzhenjie's avatar linzhenjie

返回家庭用户ID

上级 b2b8647d
...@@ -16,6 +16,8 @@ public class ShFamilyIndex { ...@@ -16,6 +16,8 @@ public class ShFamilyIndex {
private String name; private String name;
private Integer userId;
private List<ShDeviceIndex> devices; private List<ShDeviceIndex> devices;
private List<ShFamilyRoomIndex> rooms; private List<ShFamilyRoomIndex> rooms;
......
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
<resultMap id="familyIndexResultMap" type="tech.glinfo.enbao.modules.sh.dto.ShFamilyIndex"> <resultMap id="familyIndexResultMap" type="tech.glinfo.enbao.modules.sh.dto.ShFamilyIndex">
<result column="id" property="id"/> <result column="id" property="id"/>
<result column="name" property="name"/> <result column="name" property="name"/>
<result column="user_id" property="userId"/>
<collection property="devices" ofType="tech.glinfo.enbao.modules.sh.dto.ShDeviceIndex" columnPrefix="device_"> <collection property="devices" ofType="tech.glinfo.enbao.modules.sh.dto.ShDeviceIndex" columnPrefix="device_">
<result column="id" property="id"/> <result column="id" property="id"/>
<result column="name" property="name"/> <result column="name" property="name"/>
...@@ -47,7 +48,7 @@ ...@@ -47,7 +48,7 @@
</select> </select>
<select id="index" resultMap="familyIndexResultMap"> <select id="index" resultMap="familyIndexResultMap">
SELECT a.id, a.name, SELECT a.id, a.name,a.user_id,
b.id device_id, b.id device_id,
b.name device_name, b.name device_name,
b.numbering device_numbering, b.numbering device_numbering,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论