列表-仓库搜索优化
This commit is contained in:
@@ -81,7 +81,10 @@ namespace WMS.Web.Repositories
|
||||
}
|
||||
|
||||
if (!string.IsNullOrEmpty(dto.StockCode))
|
||||
query = query.Where(w => w.StockCode == dto.StockCode);
|
||||
{
|
||||
var splitStrs = dto.StockCode.Split("_$");
|
||||
query = query.Where(w => w.StockCode == splitStrs[0] && w.OrgCode == splitStrs[1]);
|
||||
}
|
||||
|
||||
if (dto.Qty.HasValue)
|
||||
query = query.Where(w => w.Qty == dto.Qty);
|
||||
|
||||
Reference in New Issue
Block a user