fix: 修正查询条件和注释掉不必要限制
将MaterialCode和SupplierCode的模糊查询改为精确匹配 调整Orderindicator的查询条件范围 注释掉库存数量必须大于0的限制
This commit is contained in:
@@ -479,7 +479,8 @@ namespace DOAN.Service.MES.product
|
||||
var orderPurchaseList = Context
|
||||
.Queryable<OrderPurchase>()
|
||||
.Where(o => o.MaterialCode == workorderInfo.productionCode)
|
||||
.Where(it => it.Orderindicator != -1)
|
||||
.Where(it => it.Orderindicator != 1)
|
||||
//.Where(it => it.Orderindicator != -1)
|
||||
.OrderBy(it => it.DeliveryDate)
|
||||
.Select(
|
||||
o => new OrderPurchaseDto
|
||||
@@ -533,7 +534,7 @@ namespace DOAN.Service.MES.product
|
||||
.Queryable<MmInventory>()
|
||||
.Where(it => it.MaterialCode == workorderInfo.productionCode)
|
||||
.Where(it => it.LocationCode == "CP001")
|
||||
.Where(it => it.CurrentQty > 0)
|
||||
//.Where(it => it.CurrentQty > 0)
|
||||
.Select(it => new MaterialInventoryDto
|
||||
{
|
||||
MaterialId = it.Id,
|
||||
|
||||
Reference in New Issue
Block a user