本文主要介绍,如果要在 api查询组件中使用连接器,连接器应该如何配置
Http 连接器
使用案例
接口逻辑
Database连接器
非树形案例
SQL逻辑
select
id,
category_name,
category_code,
category_desc
from
obj_category
where
1 = 1
#if(categoryName)
#if(mode.equals('SEARCH'))
and category_Name like '%#(categoryName)%'
#else
and category_Name in (#(categoryName.join()))
#end
#end
#if(categoryCode)
and category_Code in (#(categoryCode.join()))
#end
树形案例
SQL逻辑
select
id,
parent_id,
name,
api_name
from
obj_class oc
where
1 = 1
#if(classCode)
and api_name in (#(classCode.join()))
#end
#if(className)
#if(mode.equals('SEARCH'))
and name like '%#(className)%'
#else
and name in (#(className.join()))
#end
#end
作者:柯立明 创建时间:2024-08-08 09:01
最后编辑:柯立明 更新时间:2025-05-12 18:04
最后编辑:柯立明 更新时间:2025-05-12 18:04