查询条件优化
This commit is contained in:
@@ -126,7 +126,7 @@ namespace WMS.Web.Repositories
|
||||
|
||||
if (cr_ids.Count != 0)
|
||||
query = query.Where(w => cr_ids.Contains(w.order.CreatorId));
|
||||
else
|
||||
else if (!string.IsNullOrEmpty(dto.Creator))
|
||||
query = query.Where(w => w.order.CreatorId==0);
|
||||
if (dto.BeginDate != null)
|
||||
query = query.Where(w => w.order.CreateTime.Date >= dto.BeginDate.Value);
|
||||
|
||||
Reference in New Issue
Block a user