Sql接口

1、界面说明

image.png

2、Sql参数

 2.1 简单参数

int 、string等

select * from userinfo where id  =  {int:id}

 2.2数组参数 (版本:1.6.10+)

int[] 、string[]等

//前端传 [1,2,3] 可以序列化的字符串
select * from userinfo where id  in (  {int[]:ids}  )

 2.3授权参数Key

就是jwt里面的key用于存储用户表信息

image.png

select * from userinfo where id= {ClaimKey:id}

3、条件拼接

版本要求: 1.6.18+

当我条件为空我不需要这个条件的时候

我们可以使用 [[   and  字段={int:xxx}  ]]   来实现 WhereIF拼接功能

image.png


果糖网