参数优化

This commit is contained in:
tongfei
2024-01-30 15:39:30 +08:00
parent c4cb18279c
commit ba46746a8e
3 changed files with 8 additions and 8 deletions

View File

@@ -120,10 +120,10 @@ namespace WMS.Web.Repositories
if (cr_ids.Count != 0)
query = query.Where(w => cr_ids.Contains(w.CreatorId));
if (dto.BeginTime != null)
query = query.Where(w => w.CreateTime >= dto.BeginTime.Value);
if (dto.EndTime != null)
query = query.Where(w => w.CreateTime <= dto.EndTime.Value);
if (dto.BeginDate != null)
query = query.Where(w => w.CreateTime >= dto.BeginDate.Value);
if (dto.EndDate != null)
query = query.Where(w => w.CreateTime <= dto.EndDate.Value);
int total = await query.CountAsync();
var list = await query.Select(s => new BoxMarkQueryResponse()