调整搜索规则
This commit is contained in:
@@ -141,7 +141,10 @@ namespace WMS.Web.Repositories
|
||||
if (!string.IsNullOrEmpty(dto.Customer))
|
||||
query = query.Where(w => dto.Customer.Contains(w.Customer));
|
||||
if (!string.IsNullOrEmpty(dto.StockCode))
|
||||
query = query.Where(w => dto.StockCode.Contains(w.StockCode));
|
||||
{
|
||||
var split = dto.StockCode.Split("_$");
|
||||
query = query.Where(w => w.StockCode == split[0] && w.OrgCode == split[1]);
|
||||
}
|
||||
|
||||
//组装
|
||||
int total = await query.CountAsync();
|
||||
|
||||
Reference in New Issue
Block a user