main
parent
9d692ab72a
commit
8debf3f15e
|
|
@ -159,6 +159,6 @@ public class AppUserDynamicServiceImpl implements IAppUserDynamicService
|
|||
appDynamicComment.setDynamicId(id);
|
||||
appUserDynamicVo.setCountComment(appDynamicCommentMapper.selectAppDynamicCommentList(appDynamicComment).size());
|
||||
}
|
||||
return appUserDynamicMapper.selectDynamicList(appUserDynamic);
|
||||
return list;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue