mirror of
https://github.com/continew-org/continew-admin.git
synced 2025-10-03 16:57:09 +08:00
feat: 完善仪表盘公告区块内容
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="top.charles7c.cnadmin.system.mapper.AnnouncementMapper">
|
||||
|
||||
<select id="selectDashboardList"
|
||||
resultType="top.charles7c.cnadmin.system.model.vo.AnnouncementDashboardVO">
|
||||
SELECT
|
||||
`id`, `title`, `type`
|
||||
FROM `sys_announcement`
|
||||
WHERE (`effective_time` IS NULL OR NOW() > `effective_time`)
|
||||
AND (`terminate_time` IS NULL OR `terminate_time` > NOW())
|
||||
ORDER BY `sort` ASC, `effective_time` DESC
|
||||
LIMIT 5
|
||||
</select>
|
||||
</mapper>
|
Reference in New Issue
Block a user