Browse Source

过滤掉发运 Qty 是0的数据

master
mahao 1 year ago
parent
commit
5aefbebf62
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisBBACSaSeEdiCompareExportService.cs
  2. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs
  3. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/MaiDanBBACSaSeCompareExportService.cs
  4. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/PubSaSeCompareExportService.cs
  5. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SaSeCompareExportBaseService.cs

4
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisBBACSaSeEdiCompareExportService.cs

@ -146,7 +146,7 @@ namespace SettleAccount.Job.Services.Report
};
//发运
var seGroup = (from se in _settleAccountDbContext.Set<BBAC_SE_DETAIL>()
where se.BusinessType == businessType && se.BillTime >= seStartDateTime && se.BillTime <= seEndDateTime
where se.State == EnumBillState. && se.BusinessType == businessType && se.BillTime >= seStartDateTime && se.BillTime <= seEndDateTime
group se by new { se.PN, se.CustomerPartCodeNoSpace } into groupItem
select new
{
@ -159,7 +159,7 @@ namespace SettleAccount.Job.Services.Report
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLoc = groupItem.Max(t => t.ToLoc),
ErpToLoc = groupItem.Max(t => t.ErpToLoc)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//Edi
var ediGroup = from edi in _settleAccountDbContext.Set<BBAC_SE_EDI>()
where edi.IsDeleted == false && edi.IsHaveSeData == true

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/JisHBPOSaSeEdiCompareExportService.cs

@ -154,7 +154,7 @@ namespace SettleAccount.Job.Services.Report
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLoc = groupItem.Max(t => t.ToLoc),
ErpToLoc = groupItem.Max(t => t.ErpToLoc)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//Edi
var ediGroup = from edi in _settleAccountDbContext.Set<HBPO_SE_EDI>()
where edi.IsDeleted == false && edi.IsHaveSeData == true

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/MaiDanBBACSaSeCompareExportService.cs

@ -201,7 +201,7 @@ namespace SettleAccount.Job.Services.Report
ToLocCode = groupItem.Max(t => t.ToLoc),
ToErpLocCode = groupItem.Max(t => t.ErpToLoc),
CodeType = groupItem.Max(t => t.CodeType)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//有结算无发运
var haveSaNotHaveSeList = (from sa in saGroupByMappingType

6
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/PubSaSeCompareExportService.cs

@ -236,7 +236,7 @@ namespace SettleAccount.Job.Services.Report
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLocCode = groupItem.Max(t => t.ToLocCode),
ToErpLocCode = groupItem.Max(t => t.ToErpLocCode)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//有结算无发运
var haveSaNotHaveSeList = (from sa in saGroupByMappingType
@ -358,7 +358,7 @@ namespace SettleAccount.Job.Services.Report
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLocCode = groupItem.Max(t => t.ToLocCode),
ToErpLocCode = groupItem.Max(t => t.ToErpLocCode)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//有结算无发运
var haveSaNotHaveSeList = (from sa in saGroupByMappingType
@ -477,7 +477,7 @@ namespace SettleAccount.Job.Services.Report
ShippingDate = groupItem.Max(t => t.ShippingDate),
ToLocCode = groupItem.Max(t => t.ToLocCode),
ToErpLocCode = groupItem.Max(t => t.ToErpLocCode)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//有结算无发运
var haveSaNotHaveSeList = (from sa in saGroupByMappingType

2
code/src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/SaSeCompareExportBaseService.cs

@ -102,7 +102,7 @@ namespace SettleAccount.Job.Services.Report
FactoryPartCode = groupItem.Max(t => t.FactoryPartCode),
ToLocCode = groupItem.Max(t => t.ToLoc),
ToErpLocCode = groupItem.Max(t => t.ErpToLoc)
}).Where(t => t.Qty > 0M);
}).Where(t => t.Qty != 0M);
//有结算无发运
var haveSaNotHaveSeList = (from sa in saGroupByMappingType

Loading…
Cancel
Save