修改bug

上级 be6acd38
流水线 #8406 已通过 于阶段
in 3 分 2 秒
......@@ -415,7 +415,6 @@
</if>
</select>
<select id="dynamicList" resultType="com.mmc.csf.release.entity.forum.ForumDynamicDO">
WITH ranked_data AS (
SELECT
fd.id,
version,
......@@ -431,11 +430,9 @@
transpond,
ROW_NUMBER() OVER (PARTITION BY fd.id ORDER BY fd.create_time DESC) AS rn
FROM forum_dynamic fd
LEFT JOIN forum_dynamic_gambit ON forum_dynamic_gambit.dynamic_id = fd.id
WHERE is_deleted = 0
AND root_path IS NULL
AND fd.check_status = 1
AND gambit_id NOT IN (1001,1002)
<if test="id!=null" >
and fd.id=#{id}
</if>
......@@ -445,10 +442,6 @@
<if test="description!=null and description!='' ">
and fd.description like concat('%',#{description},'%')
</if>
)
SELECT *
FROM ranked_data
WHERE rn = 1
order by create_time desc
LIMIT #{itemIndex}, #{pageSize}
</select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论