diff --git a/epdc-cloud-news/src/main/resources/mapper/NoticeDao.xml b/epdc-cloud-news/src/main/resources/mapper/NoticeDao.xml index 91cdd93..1490ed9 100644 --- a/epdc-cloud-news/src/main/resources/mapper/NoticeDao.xml +++ b/epdc-cloud-news/src/main/resources/mapper/NoticeDao.xml @@ -161,10 +161,12 @@ AND en.DEL_FLAG = '0' AND en.NOTICE_RELEASE_STATE = '1' AND en.NOTICE_UP_DOWN_STATE = '1' - and mt.module_type='1' AND FIND_IN_SET(#{typeId},ALL_TYPE_ID) + + and mt.module_type='1' + ORDER BY en.RELEASE_TIME DESC LIMIT #{pageIndex},#{pageSize}