用户查询新增根据用户id查询

This commit is contained in:
不做码农
2023-07-28 07:27:03 +08:00
committed by DESKTOP-H2PAFLR\Administrator
parent fb55131d7d
commit 1e4da7b781
2 changed files with 2 additions and 1 deletions

View File

@@ -43,6 +43,7 @@ namespace ZR.Service
{
var exp = Expressionable.Create<SysUser>();
exp.AndIF(!string.IsNullOrEmpty(user.UserName), u => u.UserName.Contains(user.UserName));
exp.AndIF(user.UserId > 0, u => u.UserId == user.UserId);
exp.AndIF(user.Status != -1, u => u.Status == user.Status);
exp.AndIF(user.BeginTime != DateTime.MinValue && user.BeginTime != null, u => u.Create_time >= user.BeginTime);
exp.AndIF(user.EndTime != DateTime.MinValue && user.EndTime != null, u => u.Create_time <= user.EndTime);