修复查看用户发帖列表接口bug

上级 ea0e4cb3
流水线 #8379 已通过 于阶段
in 3 分 1 秒
...@@ -415,8 +415,6 @@ ...@@ -415,8 +415,6 @@
</if> </if>
</select> </select>
<select id="dynamicList" resultType="com.mmc.csf.release.entity.forum.ForumDynamicDO"> <select id="dynamicList" resultType="com.mmc.csf.release.entity.forum.ForumDynamicDO">
WITH ranked_data AS ( WITH ranked_data AS (
SELECT SELECT
fd.id, fd.id,
...@@ -439,13 +437,13 @@ ...@@ -439,13 +437,13 @@
AND fd.check_status = 1 AND fd.check_status = 1
AND gambit_id NOT IN (1001,1002) AND gambit_id NOT IN (1001,1002)
<if test="id!=null" > <if test="id!=null" >
and id=#{id} and fd.id=#{id}
</if> </if>
<if test="userAccountIds!=null"> <if test="userAccountIds!=null">
and user_account_id=#{userAccountIds} and fd.user_account_id=#{userAccountIds}
</if> </if>
<if test="description!=null and description!='' "> <if test="description!=null and description!='' ">
and description like concat('%',#{description},'%') and fd.description like concat('%',#{description},'%')
</if> </if>
) )
SELECT * SELECT *
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论