<?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.dsh.course.mapper.TbChatSetMapper">
|
|
<!-- 通用查询映射结果 -->
|
<resultMap id="BaseResultMap" type="com.dsh.guns.modular.system.model.TbChatSet">
|
<id column="id" property="id"/>
|
<result column="createTime" property="createTime"/>
|
<result column="type" property="type"/>
|
<result column="content" property="content"/>
|
<result column="state" property="state"/>
|
<result column="language" property="language"/>
|
</resultMap>
|
|
<!-- 通用查询结果列 -->
|
<sql id="Base_Column_List">
|
id,
|
type,
|
content,
|
state,
|
createTime
|
</sql>
|
<select id="getList" resultType="com.dsh.guns.modular.system.model.TbChatSet">
|
select id,
|
type,
|
content,
|
state,
|
createTime from t_chat_set where 1=1
|
<if test="startTime !=null and endTime !=null">
|
and createTime between #{startTime} and #{endTime}
|
</if>
|
<if test="type!=null and type != ''">
|
and type =#{type}
|
</if>
|
<if test="yy!=null and yy != ''">
|
and language =#{yy}
|
</if>
|
order by createTime desc
|
</select>
|
</mapper>
|