update:修改动态消息排序;按发布状态查询

This commit is contained in:
sunzheng
2024-08-01 09:42:35 +08:00
parent 78286d7c53
commit 36ea99f581
@@ -28,6 +28,9 @@
<if test="param.dynamicHeading != null and param.dynamicHeading != ''">
and dynamic_heading like concat('%', #{param.dynamicHeading}, '%')
</if>
<if test="param.releaseStatus != null">
and release_status = #{param.releaseStatus}
</if>
and (writer = #{param.writer}
<if test="param.isAdmin != null and param.isAdmin != ''">
or release_status = 1
@@ -35,5 +38,6 @@
or (release_status = 1 and user_id like concat('%', #{param.writer}, '%'))
)
</where>
order by t.create_time desc
</select>
</mapper>