Administrator
22 hours ago 7171b917dab0b0b9a250ba8946f0f9c1d73f6bd4
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>