|
@@ -28,7 +28,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<select id="selectPublish" resultType="com.ruoyi.app.domain.TbMyPublish">
|
|
|
select b.*,(case when message = 'Y' then concat('#给',nick_name,'的留言纪念') else '' end) message_content
|
|
|
from (
|
|
|
- select a.*,#{familyId} family_id,
|
|
|
+ select a.*,
|
|
|
+ (select max(family_id) from tb_member_middle mi where mi.member_id = m.id and mi.acquiesce = 'Y') family_id,
|
|
|
(select id from tb_family_member m where m.app_user_id = a.app_user_id) member_id,
|
|
|
(select name from tb_family_member m where m.app_user_id = a.app_user_id) name,
|
|
|
(select nick_name from tb_app_user us where us.id = a.app_user_id)nick_name,
|