1.7 KiB
queryByCondition
-
根据不为空的参数进行分页查询
select @pageTag(){ t.* @} from flows t where 1=1
@//数据权限,该sql语句功能点,如果不考虑数据权限,可以删除此行
and #function("flows.query")# @if(!isEmpty(id)){ and t.id =#id# @} @if(!isEmpty(createdAt)){ and t.created_at =#createdAt# @} @if(!isEmpty(updatedAt)){ and t.updated_at =#updatedAt# @} @if(!isEmpty(data)){ and t.data =#data# @} @if(!isEmpty(name)){ and t.name =#name# @}
deleteFlowsByIds
-
批量删除
delete from flows where find_in_set(id,#ids#)
getFlowsValues
-
根据不为空的参数进行查询
select t.* from flows t where 1=1
@if(!isEmpty(id)){ and t.id =#id# @} @if(!isEmpty(createdAt)){ and t.created_at =#createdAt# @} @if(!isEmpty(updatedAt)){ and t.updated_at =#updatedAt# @} @if(!isEmpty(data)){ and t.data =#data# @} @if(!isEmpty(name)){ and t.name =#name# @}
getValuesByQuery
-
根据不为空的参数进行查询
select t.* from flows t where 1=1
@if(!isEmpty(id)){ and t.id =#id# @} @if(!isEmpty(createdAt)){ and t.created_at =#createdAt# @} @if(!isEmpty(updatedAt)){ and t.updated_at =#updatedAt# @} @if(!isEmpty(data)){ and t.data =#data# @} @if(!isEmpty(name)){ and t.name =#name# @}
getAllFlowName
-
查全部 业务流程名
select t.id, t.name from flows t
queryToMap
-
查询
select * from flows;