|
@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="fullName" column="full_name" />
|
|
|
<result property="hometown" column="hometown" />
|
|
|
<result property="city" column="city" />
|
|
|
+ <result property="addressCode" column="address_code" />
|
|
|
<result property="address" column="address" />
|
|
|
<result property="contents" column="contents" />
|
|
|
<result property="avatar" column="avatar" />
|
|
@@ -21,9 +22,21 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<result property="remark" column="remark" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <sql id="familySql">
|
|
|
+ select f.id, f.name,f.address_code,f.address,f.contents,f.avatar,f.city,f.code,f.full_name,f.hometown,
|
|
|
+ f.create_by,f.create_time,f.update_by,f.update_time,f.remark,
|
|
|
+ (select u.nick_name from tb_app_user u where u.id = f.create_by) create_name
|
|
|
+ from tb_family f
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="pageList" resultType="com.ruoyi.app.domain.vo.AppFamilyVo">
|
|
|
+ <include refid="familySql"></include>
|
|
|
+ ${ew.customSqlSegment}
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="selectByUserId" resultType="com.ruoyi.app.domain.vo.AppFamilyVo">
|
|
|
- select f.id family_id,mi.id middle_id,m.id member_id,
|
|
|
- f.name family_name,f.address,f.contents,f.avatar,f.city,f.code,f.full_name,f.hometown,
|
|
|
+ select f.id,mi.id middle_id,m.id member_id,
|
|
|
+ f.name,f.address,f.contents,f.avatar,f.city,f.code,f.full_name,f.hometown,
|
|
|
f.create_by,f.create_time,f.update_by,f.update_time,f.remark
|
|
|
from tb_family f
|
|
|
left join tb_member_middle mi on f.id = mi.family_id
|