优化金蝶同步代码

This commit is contained in:
tongfei
2024-03-04 15:45:16 +08:00
parent 7aa23230d1
commit 4570b2080a
6 changed files with 27 additions and 4 deletions

View File

@@ -323,6 +323,8 @@ namespace WMS.Web.Repositories
if (cr_ids.Count!=0)
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.SupplierId.HasValue)
query = query.Where(w => w.detail.SupplierId == dto.SupplierId.Value);