提交 7064818a 作者: 刘明祎-运维用途

Merge branch 'develop'

流水线 #8408 已通过 于阶段
in 2 分 59 秒
...@@ -18,4 +18,4 @@ patches: ...@@ -18,4 +18,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/ims
newTag: 0d5d11331f20612aa466ac95e33d59a139c81fc9 newTag: 8b23ae7d5ca90ea795cc82c25002beb649b1c4b7
...@@ -415,7 +415,6 @@ ...@@ -415,7 +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 (
SELECT SELECT
fd.id, fd.id,
version, version,
...@@ -431,11 +430,9 @@ ...@@ -431,11 +430,9 @@
transpond, transpond,
ROW_NUMBER() OVER (PARTITION BY fd.id ORDER BY fd.create_time DESC) AS rn ROW_NUMBER() OVER (PARTITION BY fd.id ORDER BY fd.create_time DESC) AS rn
FROM forum_dynamic fd FROM forum_dynamic fd
LEFT JOIN forum_dynamic_gambit ON forum_dynamic_gambit.dynamic_id = fd.id
WHERE is_deleted = 0 WHERE is_deleted = 0
AND root_path IS NULL AND root_path IS NULL
AND fd.check_status = 1 AND fd.check_status = 1
AND gambit_id NOT IN (1001,1002)
<if test="id!=null" > <if test="id!=null" >
and fd.id=#{id} and fd.id=#{id}
</if> </if>
...@@ -445,10 +442,6 @@ ...@@ -445,10 +442,6 @@
<if test="description!=null and description!='' "> <if test="description!=null and description!='' ">
and fd.description like concat('%',#{description},'%') and fd.description like concat('%',#{description},'%')
</if> </if>
)
SELECT *
FROM ranked_data
WHERE rn = 1
order by create_time desc order by create_time desc
LIMIT #{itemIndex}, #{pageSize} LIMIT #{itemIndex}, #{pageSize}
</select> </select>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论