linhw 2024-04-25 13:54:33 +08:00
parent 9d692ab72a
commit 8debf3f15e
2 changed files with 3 additions and 1 deletions

View File

@ -159,6 +159,6 @@ public class AppUserDynamicServiceImpl implements IAppUserDynamicService
appDynamicComment.setDynamicId(id);
appUserDynamicVo.setCountComment(appDynamicCommentMapper.selectAppDynamicCommentList(appDynamicComment).size());
}
return appUserDynamicMapper.selectDynamicList(appUserDynamic);
return list;
}
}

View File

@ -40,6 +40,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectDynamicList" parameterType="AppUserDynamic" resultType="com.ruoyi.app.domain.vo.AppUserDynamicVo">
select a.id as "id",a.user_id as "userId",a.content as "content",a.video_url as "videoUrl",a.topic_id as "topicId",a.address as "address",
a.is_top as "isTop",
a.privacy_status as "privacyStatus",
u.username as "username",
u.avatar_url as "avatarUrl",
@ -60,6 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="updateBy != null and updateBy != ''"> and updateBy = #{updateBy}</if>
<if test="isTop != null "> and is_top = #{isTop}</if>
</where>
order by a.is_top
</select>
<select id="selectAppUserDynamicById" parameterType="Long" resultMap="AppUserDynamicResult">