From f5716228c0517d1c4912c0558a3cb15f6f6806d8 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Fri, 10 Apr 2026 13:44:04 +0800
Subject: [PATCH] fix(ai): 修复成员角色申请中公司ID缺失问题
---
src/main/resources/mapper/modules/AiAgentMapper.xml | 21 +++++++++++++++++++++
1 files changed, 21 insertions(+), 0 deletions(-)
diff --git a/src/main/resources/mapper/modules/AiAgentMapper.xml b/src/main/resources/mapper/modules/AiAgentMapper.xml
index 081c5af..f0684e8 100644
--- a/src/main/resources/mapper/modules/AiAgentMapper.xml
+++ b/src/main/resources/mapper/modules/AiAgentMapper.xml
@@ -1,4 +1,25 @@
<?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>
+ </select>
</mapper>
\ No newline at end of file
--
Gitblit v1.9.1