优化列表查询
This commit is contained in:
@@ -124,10 +124,8 @@ namespace WMS.Web.Repositories
|
||||
query = query.Where(w => w.order.MaterialId == 0);
|
||||
}
|
||||
|
||||
if (cr_ids.Count != 0)
|
||||
if(!string.IsNullOrEmpty(dto.Creator))
|
||||
query = query.Where(w => cr_ids.Contains(w.order.CreatorId));
|
||||
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);
|
||||
if (dto.EndDate != null)
|
||||
|
||||
Reference in New Issue
Block a user