Skip to content

后端管理点击归档,接口报错 #23

Description

@JuneYanL

好像是文件PostsMapper.xml的SQL错误,ORDER BY id DESC改成了ORDER BY archiveDate DESC

      SELECT
      	DATE_FORMAT( create_time, "%Y-%m-01 00:00:00" ) archiveDate,
        COUNT(*) articleTotal
      FROM
        plumemo_posts
      GROUP BY DATE_FORMAT( create_time, "%Y-%m-01 00:00:00" )
      ORDER BY archiveDate DESC
    </select>```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions