细节修正
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
<if test="filter.isBanner != null">
|
||||
AND r.is_banner = #{filter.isBanner}
|
||||
</if>
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据资源ID查询资源信息 -->
|
||||
@@ -138,7 +138,7 @@
|
||||
FROM tb_resource r
|
||||
<include refid="Permission_Filter"/>
|
||||
WHERE r.tag_id = #{tagId} AND r.deleted = 0
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据状态查询资源列表 -->
|
||||
@@ -147,7 +147,7 @@
|
||||
FROM tb_resource r
|
||||
<include refid="Permission_Filter"/>
|
||||
WHERE r.status = #{status} AND r.deleted = 0
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 根据标签类型查询资源列表 -->
|
||||
@@ -156,7 +156,7 @@
|
||||
FROM tb_resource r
|
||||
<include refid="Permission_Filter"/>
|
||||
WHERE r.tag_id = #{type} AND r.deleted = 0
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 查询热门资源列表 -->
|
||||
@@ -177,7 +177,7 @@
|
||||
FROM tb_resource r
|
||||
<include refid="Permission_Filter"/>
|
||||
WHERE r.status = 1 AND r.deleted = 0
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
<if test="limit != null and limit > 0">
|
||||
LIMIT #{limit}
|
||||
</if>
|
||||
@@ -192,7 +192,7 @@
|
||||
OR content LIKE CONCAT('%', #{keyword}, '%')
|
||||
OR summary LIKE CONCAT('%', #{keyword}, '%'))
|
||||
AND r.status = 1 AND r.deleted = 0
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
</select>
|
||||
|
||||
<!-- 检查资源标题是否存在 -->
|
||||
@@ -353,7 +353,7 @@
|
||||
<if test="filter.isBanner != null">
|
||||
AND r.is_banner = #{filter.isBanner}
|
||||
</if>
|
||||
ORDER BY r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.create_time DESC, r.publish_time DESC
|
||||
LIMIT #{pageParam.pageSize} OFFSET #{pageParam.offset}
|
||||
</select>
|
||||
|
||||
@@ -431,7 +431,7 @@
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="filter.orderTypes == null or filter.orderTypes.size() == 0">
|
||||
ORDER BY r.view_count DESC, r.publish_time DESC, r.create_time DESC
|
||||
ORDER BY r.view_count DESC, r.create_time DESC, r.publish_time DESC
|
||||
</if>
|
||||
LIMIT #{pageParam.pageSize} OFFSET #{pageParam.offset}
|
||||
</select>
|
||||
|
||||
Reference in New Issue
Block a user