| | |
| | | <?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="cc.mrbird.febs.ai.mapper.AiTalkItemMapper"> |
| | | |
| | | <select id="getPageListByQuery" resultType="cc.mrbird.febs.ai.res.talk.ApiTalkItemPageVo"> |
| | | select |
| | | a.ID as talkItemId, |
| | | a.talk_id as talkId, |
| | | a.type as type, |
| | | a.context as context, |
| | | a.CREATED_TIME as createdTime |
| | | from ai_talk_item a |
| | | <where> |
| | | and a.member_id = #{record.memberUuid} |
| | | and a.talk_id = #{record.talkId} |
| | | <if test="record != null"> |
| | | <if test="record.talkItemId != null"> |
| | | and a.id != #{record.talkItemId} |
| | | </if> |
| | | </if> |
| | | </where> |
| | | order by a.CREATED_TIME desc |
| | | </select> |
| | | </mapper> |