Administrator
22 hours ago 7171b917dab0b0b9a250ba8946f0f9c1d73f6bd4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>