调整栏目查询异常

This commit is contained in:
xpecya 2024-12-12 20:47:37 +08:00
parent c07bdfd6c7
commit 856f874aed
1 changed files with 3 additions and 3 deletions

View File

@ -78,7 +78,7 @@ public interface NewsMapper {
@Select("<script>" +
"select " +
"select distinct " +
"news.id as id," +
"news.draft_id as draftId," +
"news.title as title," +
@ -120,7 +120,7 @@ public interface NewsMapper {
@Param("offset") int offset);
@Select("<script>" +
"select count(*) from news " +
"select count(*) from (select distinct news.* from news " +
"<if test=\"column != null\">" +
"inner join news_column_rel on news.id = news_column_rel.news_id " +
"</if>" +
@ -134,7 +134,7 @@ public interface NewsMapper {
"<if test=\"status != null\">" +
"and news.status = #{status} " +
"</if>" +
"</where>" +
"</where>) tmp" +
"</script>")
int queryTotal(@Param("keyword") String keyword,
@Param("column") String columnParam,