操作日志新增请求参数查询
This commit is contained in:
@@ -43,9 +43,10 @@ namespace ZR.Service.System
|
||||
var exp = Expressionable.Create<SysOperLog>();
|
||||
exp.And(it => it.OperTime >= sysOper.BeginTime && it.OperTime <= sysOper.EndTime);
|
||||
exp.AndIF(sysOper.Title.IfNotEmpty(), it => it.Title.Contains(sysOper.Title));
|
||||
exp.AndIF(sysOper.operName.IfNotEmpty(), it => it.OperName.Contains(sysOper.operName));
|
||||
exp.AndIF(sysOper.OperName.IfNotEmpty(), it => it.OperName.Contains(sysOper.OperName));
|
||||
exp.AndIF(sysOper.BusinessType != -1, it => it.BusinessType == sysOper.BusinessType);
|
||||
exp.AndIF(sysOper.Status != -1, it => it.Status == sysOper.Status);
|
||||
exp.AndIF(sysOper.OperParam != null, it => it.OperParam.Contains(sysOper.OperParam));
|
||||
|
||||
return GetPages(exp.ToExpression(), pager, x => x.OperId, OrderByType.Desc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user