提交 9ca57f04 authored 作者: 林业通's avatar 林业通

返回用户ID

上级 755ca413
...@@ -14,6 +14,8 @@ public class ShFamilyDto { ...@@ -14,6 +14,8 @@ public class ShFamilyDto {
private Integer id; private Integer id;
private Integer userId;
private String name; private String name;
private Integer room; private Integer room;
......
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
<resultMap id="familyResultMap" type="tech.glinfo.enbao.modules.sh.dto.ShFamilyDto"> <resultMap id="familyResultMap" type="tech.glinfo.enbao.modules.sh.dto.ShFamilyDto">
<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"/>
<result column="room" property="room"/> <result column="room" property="room"/>
<collection property="members" ofType="tech.glinfo.enbao.modules.sh.dto.ShFamilyMemberDto" columnPrefix="item_"> <collection property="members" ofType="tech.glinfo.enbao.modules.sh.dto.ShFamilyMemberDto" columnPrefix="item_">
<result column="id" property="id"/> <result column="id" property="id"/>
...@@ -33,7 +34,7 @@ ...@@ -33,7 +34,7 @@
</resultMap> </resultMap>
<select id="familyInfo" resultMap="familyResultMap"> <select id="familyInfo" resultMap="familyResultMap">
SELECT a.id, a.name, (SELECT COUNT(c.id) FROM sh_family_room c WHERE a.id = c.family_id) room, SELECT a.id, a.name, a.user_id, (SELECT COUNT(c.id) FROM sh_family_room c WHERE a.id = c.family_id) room,
b.id item_id, b.id item_id,
d.nickname item_nickname, d.nickname item_nickname,
b.is_admin item_is_admin, b.is_admin item_is_admin,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论