suerprisePlus
2024-10-18 1efa47bc58fe0673a231233f644d3a5f8277e42c
1
2
3
4
5
6
7
8
9
10
11
<?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.yb.dao.ThistoryDaos">
    <!-- 根据名称模糊查询-->
    <select id="getSessionById" resultType="java.util.ArrayList" >
        SELECT * FROM (
        SELECT id,human,ai FROM t_history where sessionid='m8YvkamB55WFHPKvFHTbP' ORDER BY id DESC LIMIT 5
        ) AS subquery
        ORDER BY id ASC;
    </select>
</mapper>