|
|
@ -58,7 +58,7 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
private readonly OutputService _outputService; |
|
|
|
private readonly ErpPartDapperRepository _erpDapper; |
|
|
|
private readonly SettleSparePartDapperReportRepository _sparepartdapper; |
|
|
|
private readonly ISettleAccountBranchEfCoreRepository<ErrorBill, Guid> _errorListRepository; |
|
|
|
private readonly ErpPartDapperRepository _erpdapperRepository; |
|
|
|
private readonly IBlobContainer<MyFileContainer> _fileContainer; |
|
|
|
public UnSettledSumService( |
|
|
|
HQHSettledDetailDapperRepository hqkanbanDapper, |
|
|
@ -69,7 +69,7 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
WmsDapperRepository wmsDapper, |
|
|
|
SettleSparePartDapperReportRepository sparepartdapper, |
|
|
|
IBlobContainer<MyFileContainer> fileContainer, |
|
|
|
ISettleAccountBranchEfCoreRepository<ErrorBill, Guid> errorListRepository |
|
|
|
ErpPartDapperRepository erpdapperRepository |
|
|
|
) |
|
|
|
{ |
|
|
|
_wmsDapper = wmsDapper; |
|
|
@ -79,8 +79,8 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
_outputService = outputService; |
|
|
|
_erpDapper = erpDapper; |
|
|
|
_sparepartdapper = sparepartdapper; |
|
|
|
_fileContainer = fileContainer; |
|
|
|
_errorListRepository = errorListRepository; |
|
|
|
_fileContainer = fileContainer; |
|
|
|
_erpdapperRepository = erpdapperRepository; |
|
|
|
} |
|
|
|
[UnitOfWork(false)] |
|
|
|
public string ExportFile(Guid id, List<string> exportName, List<CustomCondition> p_list) |
|
|
@ -135,7 +135,7 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
var datetime = date.ToShortDateString() + " 23:59:59 "; |
|
|
|
|
|
|
|
var _list = _dapper.GetDiffReport(DateTime.Now.Year.ToString(), begin, datetime, "", version, materailCode, materialGroup, ""); |
|
|
|
var _checkList = _errorListRepository.ToList(); |
|
|
|
var _checkList = _erpdapperRepository.GetErrorBillList(); |
|
|
|
var query = from itm in _list |
|
|
|
join itm1 in _checkList on new { ChassisNumber = itm.ChassisNumber, MaterialCode = itm.MaterialCode, WmsBillNum = itm.WmsBillNum } |
|
|
|
equals new { ChassisNumber = itm1.BillNum, MaterialCode = itm1.MaterialCode, WmsBillNum = itm1.WmsBillNum } into temp1 |
|
|
@ -287,7 +287,7 @@ equals new { ChassisNumber = itm1.BillNum, MaterialCode = itm1.MaterialCode, Wms |
|
|
|
} |
|
|
|
|
|
|
|
//应用屏蔽错误信息功能,将其屏蔽的信息从生成的列表中排除掉,20220629
|
|
|
|
var _checkList = _errorListRepository.ToList(); |
|
|
|
var _checkList = _erpdapperRepository.GetErrorBillList(); |
|
|
|
|
|
|
|
var query = from itm in _ls |
|
|
|
join itm1 in _checkList on new { ChassisNumber = itm.Kanban, MaterialCode = itm.CustomerPartCode, WmsBillNum = itm.WmsBillNum } |
|
|
@ -356,7 +356,7 @@ equals new { ChassisNumber = itm1.BillNum, MaterialCode = itm1.MaterialCode, Wms |
|
|
|
} |
|
|
|
|
|
|
|
//应用屏蔽错误信息功能,将其屏蔽的信息从生成的列表中排除掉,20220629
|
|
|
|
var _checkList = _errorListRepository.ToList(); |
|
|
|
var _checkList = _erpdapperRepository.GetErrorBillList(); |
|
|
|
|
|
|
|
var query = from itm in _ls |
|
|
|
join itm1 in _checkList on new { ChassisNumber = itm.订货看板编号, MaterialCode = itm.客户物料号, WmsBillNum = itm.交货单号 } |
|
|
@ -416,7 +416,7 @@ equals new { ChassisNumber = itm1.BillNum, MaterialCode = itm1.MaterialCode, Wms |
|
|
|
|
|
|
|
|
|
|
|
//应用屏蔽错误信息功能,将其屏蔽的信息从生成的列表中排除掉,20220629
|
|
|
|
var _checkList = _errorListRepository.ToList(); |
|
|
|
var _checkList = _erpdapperRepository.GetErrorBillList(); |
|
|
|
|
|
|
|
var query = from itm in _ls |
|
|
|
join itm1 in _checkList on new { ChassisNumber = itm.采购订单号, MaterialCode = itm.物料代码, WmsBillNum = itm.交货单号 } |
|
|
|