|
|
@ -5,6 +5,7 @@ using System.Linq; |
|
|
|
using System.Linq.Dynamic.Core; |
|
|
|
using Magicodes.ExporterAndImporter.Excel; |
|
|
|
using Microsoft.AspNetCore.SignalR; |
|
|
|
using Microsoft.Extensions.Logging; |
|
|
|
using Microsoft.OpenApi.Extensions; |
|
|
|
using SettleAccount.Domain.BQ; |
|
|
|
using SettleAccount.Job.SignalR; |
|
|
@ -27,6 +28,7 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
/// </summary>
|
|
|
|
public class MaiDanBBACSaSeCompareExportService : SaSeCompareExportBaseService, ITransientDependency, IExportJob |
|
|
|
{ |
|
|
|
private readonly ILogger<MaiDanBBACSaSeCompareExportService> _logger; |
|
|
|
/// <summary>
|
|
|
|
/// 业务类型
|
|
|
|
/// </summary>
|
|
|
@ -48,11 +50,13 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
/// 构造
|
|
|
|
/// </summary>
|
|
|
|
public MaiDanBBACSaSeCompareExportService( |
|
|
|
ILogger<MaiDanBBACSaSeCompareExportService> logger, |
|
|
|
IHubContext<PageHub> hubContext, |
|
|
|
IBlobContainer<MyFileContainer> fileContainer, |
|
|
|
IObjectMapper objectMapper, |
|
|
|
SettleAccountDbContext settleAccountDbContext) : base(hubContext, settleAccountDbContext) |
|
|
|
{ |
|
|
|
_logger = logger; |
|
|
|
_fileContainer = fileContainer; |
|
|
|
_objectMapper = objectMapper; |
|
|
|
_settleAccountDbContext = settleAccountDbContext; |
|
|
@ -309,6 +313,7 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
|
|
|
|
foreach ((var key, var value) in matchPNs) |
|
|
|
{ |
|
|
|
_logger.LogInformation($"买单件BBAC三次对比:【{key}】-【{value}】"); |
|
|
|
//获取二次比对上的数据
|
|
|
|
var threeMatchHaveSaHaveSesItem = (from notHaveSaHaveSe in notHaveSaHaveSes.Where(t => t.PN == key) |
|
|
|
join haveSaNotHaveSe in haveSaNotHaveSes.Where(t => t.PN == value) |
|
|
|