init
This commit is contained in:
@@ -72,6 +72,17 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
</where>
|
||||
order by create_time desc
|
||||
</select>
|
||||
<select id="currentPage" resultType="com.ruoyi.xq.dto.app.dynamic.MyDynamicListVo">
|
||||
select t1.id, t1.content, t1.user_id,t1.create_time as create_time,t1.audit_status, t1.audit_remark,
|
||||
t2.avatar, t2.nickname, t2.birthday, t2.gender, t2.residence_city_name, t2.education,
|
||||
t2.profession,ifnull(count(t3.id),0) as star_num
|
||||
from xq_dynamic t1
|
||||
join xq_user t2 on t1.user_id = t2.id
|
||||
left join xq_dynamic_star t3 on t1.id = t3.dynamic_id
|
||||
where t1.user_id = #{currentUserId}
|
||||
group by t1.id
|
||||
order by create_time desc
|
||||
</select>
|
||||
|
||||
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user