1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
| package com.yb.dao;
|
|
| import com.yb.entity.THistoryEntity;
| import org.apache.ibatis.annotations.Mapper;
| import org.apache.ibatis.annotations.Select;
| import org.springframework.stereotype.Repository;
|
| import java.util.List;
|
|
| @Mapper
| @Repository
| public interface ThistoriestDao {
|
| // @Select("\n" +
| // "SELECT * FROM (\n" +
| // " SELECT id,human,ai FROM t_history where sessionid='m8YvkamB55WFHPKvFHTbP' ORDER BY id DESC LIMIT 5\n" +
| // ") AS subquery")
| List<THistoryEntity> getSessionId(String sessionid);
| }
|
|