You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

676 B

queryByCondition

select 
@pageTag(){
a.*
@}
from core_audit a where 1=1 
@ // 添加数据权限
and  #function("audit.query")#
@if(isNotEmpty(functionName)){
		and function_name like #'%'+functionName+'%'#
@}
@if(isNotEmpty(functionCode)){
		and function_code like #'%'+functionCode+'%'#
@}
@if(isNotEmpty(userName)){
		and user_name like #'%'+userName+'%'#
@}
@if(!isEmpty(createDateMin)){
     and  create_time>= #createDateMin#
@}
@if(!isEmpty(createDateMax)){
    and  create_time< #nextDay(createDateMax)#
@}
@pageIgnoreTag(){
order by a.create_time desc
@}