<?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="com.stylefeng.guns.modular.system.dao.TSysSensitiveWordsMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.stylefeng.guns.modular.system.model.TSysSensitiveWords">
|
<id column="id" property="id" />
|
<result column="createTime" property="createTime" />
|
<result column="content" property="content" />
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id, createTime, content
|
</sql>
|
|
<!--根据条件查询敏感词列表-->
|
<select id="getSensitiveWordList" resultType="map" parameterType="com.baomidou.mybatisplus.plugins.Page">
|
SELECT * FROM t_sys_sensitive_words as o
|
<where>
|
1 = 1
|
<if test="beginTime != null and beginTime != '' and endTime != null and endTime != ''">
|
AND (o.createTime between CONCAT(#{beginTime},' 00:00:00') and CONCAT(#{endTime},' 23:59:59'))
|
</if>
|
<if test="content != null and content != ''">
|
and o.content LIKE CONCAT('%',#{content},'%')
|
</if>
|
</where>
|
order by o.id desc
|
</select>
|
|
</mapper>
|