mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
Merge branch 'xinnan-tech:main' into main
This commit is contained in:
commit
31e0a720ee
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ public class AgentServiceImpl extends BaseServiceImpl<AgentDao, AgentEntity> imp
|
||||||
@Override
|
@Override
|
||||||
public List<AgentDTO> getUserAgents(Long userId, String keyword, String searchType) {
|
public List<AgentDTO> getUserAgents(Long userId, String keyword, String searchType) {
|
||||||
QueryWrapper<AgentEntity> queryWrapper = new QueryWrapper<>();
|
QueryWrapper<AgentEntity> queryWrapper = new QueryWrapper<>();
|
||||||
queryWrapper.eq("user_id", userId);
|
queryWrapper.eq("user_id", userId).orderByDesc("created_at");
|
||||||
|
|
||||||
// 如果有搜索关键词,根据搜索类型添加相应的查询条件
|
// 如果有搜索关键词,根据搜索类型添加相应的查询条件
|
||||||
if (StringUtils.isNotBlank(keyword)) {
|
if (StringUtils.isNotBlank(keyword)) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue