master
洁 任 2026-03-06 15:49:33 +08:00
parent 76c91f4b3a
commit f3ed210832
2 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,7 @@ namespace OpenAuth.App
var list = await base.Repository.AsQueryable()
.Where(p => p.IsDelete == false)
.WhereIF(req.begindate != null && req.enddate != null, p => p.ReportTime >= req.begindate && p.ReportTime < req.enddate)
.WhereIF(req.status != null, p => p.Status == req.status)
.WhereIF(req.status.Count>0, p => req.status.Contains(p.Status))
.WhereIF(!string.IsNullOrEmpty(req.key), p => p.Title.Contains(req.key))
.WhereIF(req.viotype != null, p => p.ViolationType == req.viotype)
.LeftJoin<MiMinePoint>((p, m) => p.MinePointId == m.Id)
@ -106,7 +106,7 @@ namespace OpenAuth.App
var list = await uow.MiViolationReport.AsQueryable()
.Where(p => p.IsDelete == false)
.WhereIF(req.begindate != null && req.enddate != null, p => p.ReportTime >= req.begindate && p.ReportTime < req.enddate)
.WhereIF(req.status != null, p => p.Status == req.status)
.WhereIF(req.status != null, p => req.status.Contains(p.Status))
.WhereIF(!string.IsNullOrEmpty(req.key), p => p.Title.Contains(req.key))
.WhereIF(req.viotype != null, p => p.ViolationType == req.viotype)
.Where(p => orgidlist.Contains(p.ReportUnit) || orgidlist.Contains(p.HandlingUnit) || p.Reporter == user.User.Id.ToString() || p.Handler == user.User.Id.ToString())

View File

@ -12,7 +12,7 @@ namespace OpenAuth.App.ServiceApp.MiManager.Request
/// <summary>
/// 状态(0待处理1已处理2已开单提车3已审核4已提车)
/// </summary>
public short? status { get; set; }
public List<short?> status { get; set; }
/// <summary>
/// 盗采点名称
/// </summary>