LoveChatMapper.xml
1.08 KB
<?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.pipihelper.project.feishu.dao.LoveChatDao">
<resultMap id="ChatMessageResultMap" type="com.pipihelper.project.feishu.entity.LoveChat">
<id column="id" property="id"/>
<result column="title" property="title"/>
<result column="content" property="content"/>
<result column="is_delete" property="isDelete"/>
</resultMap>
<!-- <resultMap id="BuffConfigResultBOMap" type="com.pipihelper.project.feishu.entity.Deployee"
extends="ChatMessageResultMap">
</resultMap>-->
<sql id="Base_Column_List">
id,title,content,is_delete
</sql>
<select id="findList" resultMap="ChatMessageResultMap">
SELECT
<include refid="Base_Column_List"/>
FROM t_love_chat
<where>
is_delete = 0
<if test="title != null">
and title like '%${title}%'
</if>
</where>
</select>
</mapper>