非采购接口优化
This commit is contained in:
@@ -257,8 +257,8 @@ namespace WMS.Web.Repositories
|
||||
.SelectMany(x => x.orders.DefaultIfEmpty(), (p, order) => new { p.detail, order })
|
||||
.Where(w => EF.Functions.Like(w.order.SourceBillNo, "%" + dto.SourceBillNo + "%") && (w.order.Status== InstockStatus.Part || w.order.Status==InstockStatus.Wait));
|
||||
|
||||
if(dto.Type.HasValue)
|
||||
query = query.Where(w => (int)w.order.Type == dto.Type.Value);
|
||||
if(dto.InstockType.HasValue)
|
||||
query = query.Where(w => (int)w.order.Type == dto.InstockType.Value);
|
||||
|
||||
var list = await query.Select(s => new InStockTaskBillNoQueryResponse()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user