展示未禁用的公告

This commit is contained in:
SjS 2025-04-24 14:31:57 +08:00
parent dd2aef808e
commit c9989abc86
2 changed files with 3 additions and 1 deletions

View File

@ -63,7 +63,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="selectAgreementById" parameterType="Long" resultMap="AgreementResult"> <select id="selectAgreementById" parameterType="Long" resultMap="AgreementResult">
<include refid="selectAgreementVo"/> <include refid="selectAgreementVo"/>
where bag.id = #{id} where bag.id = #{id}
</select> </select>
<select id="selectDistinct" resultType="com.ruoyi.bst.agreement.domain.AgreementVO"> <select id="selectDistinct" resultType="com.ruoyi.bst.agreement.domain.AgreementVO">
<include refid="selectAgreementVo"/> <include refid="selectAgreementVo"/>

View File

@ -2,6 +2,7 @@ package com.ruoyi.web.system;
import java.util.List; import java.util.List;
import com.ruoyi.system.notice.domain.enums.NoticeStatus;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize; import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.validation.annotation.Validated; import org.springframework.validation.annotation.Validated;
@ -44,6 +45,7 @@ public class SysNoticeController extends BaseController
public TableDataInfo list(NoticeQuery notice) public TableDataInfo list(NoticeQuery notice)
{ {
startPage(); startPage();
notice.setStatus(NoticeStatus.ENABLED.getStatus());
List<NoticeVO> list = noticeService.selectNoticeList(notice); List<NoticeVO> list = noticeService.selectNoticeList(notice);
return getDataTable(list); return getDataTable(list);
} }