From 15234e1e09b01402f2e1477374b49acf2a7c8f16 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 21 Apr 2026 17:55:43 +0800
Subject: [PATCH] fix(ai): 排序从升序改为降序
---
src/main/resources/mapper/modules/AiAgentMapper.xml | 23 +++++++++++++++++++++++
1 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/AiAgentMapper.xml b/src/main/resources/mapper/modules/AiAgentMapper.xml
index 081c5af..5f1e70d 100644
--- a/src/main/resources/mapper/modules/AiAgentMapper.xml
+++ b/src/main/resources/mapper/modules/AiAgentMapper.xml
@@ -1,4 +1,27 @@
<?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.AiAgentMapper">
+
+
+
+ <select id="getPageListByQuery" resultType="cc.mrbird.febs.ai.res.agent.ApiAgentVo">
+ select
+ a.id as id,
+ a.name as name,
+ a.description as description,
+ a.icon_img as iconImg,
+ a.introduct as introduct
+ from ai_agent a
+ <where>
+ a.state = 1
+ and a.company_id = #{record.companyId}
+ <if test="record != null">
+ <if test="record.categoryId != null and record.categoryId != ''">
+ and a.agent_category_id = #{record.categoryId}
+ </if>
+ </if>
+ </where>
+
+ order by a.create_time desc
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1