From 5fa6e6f8410ef9d057174bcff2a3c5038c54a551 Mon Sep 17 00:00:00 2001 From: xuhy <3313886187@qq.com> Date: 星期日, 27 四月 2025 18:41:20 +0800 Subject: [PATCH] bug修改 --- ruoyi-system/src/main/resources/mapper/system/TInformationMapper.xml | 17 ++++++++++++++++- 1 files changed, 16 insertions(+), 1 deletions(-) diff --git a/ruoyi-system/src/main/resources/mapper/system/TInformationMapper.xml b/ruoyi-system/src/main/resources/mapper/system/TInformationMapper.xml index afc5584..1137271 100644 --- a/ruoyi-system/src/main/resources/mapper/system/TInformationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/system/TInformationMapper.xml @@ -9,8 +9,11 @@ <result column="sort_by" property="sortBy" /> <result column="info_source" property="infoSource" /> <result column="release_time" property="releaseTime" /> + <result column="cover" property="cover" /> <result column="content" property="content" /> + <result column="brief_introduction" property="briefIntroduction" /> <result column="attachment" property="attachment" /> + <result column="attachment_name" property="attachmentName" /> <result column="create_time" property="createTime" /> <result column="update_time" property="updateTime" /> <result column="create_by" property="createBy" /> @@ -20,7 +23,19 @@ <!-- 通用查询结果列 --> <sql id="Base_Column_List"> - id, title_name, sort_by, info_source, release_time, content, attachment, create_time, update_time, create_by, update_by, disabled + id, title_name, sort_by, info_source, release_time,cover, brief_introduction,content, attachment,attachment_name, create_time, update_time, create_by, update_by, disabled </sql> + <select id="pageList" resultType="com.ruoyi.system.model.TInformation"> + select + <include refid="Base_Column_List"/> + from t_information + <where> + <if test="query.titleName != null and query.titleName != ''"> + and title_name like concat('%',#{query.titleName},'%') + </if> + AND disabled = ${@com.ruoyi.common.enums.DisabledEnum@NO.getCode()} + </where> + ORDER BY sort_by,create_time DESC + </select> </mapper> -- Gitblit v1.7.1