|
@ -220,11 +220,71 @@ namespace SettleAccount.Job.Services.Report |
|
|
// DiffAmt = p.Sum(p => p.DiffAMT)
|
|
|
// DiffAmt = p.Sum(p => p.DiffAMT)
|
|
|
// });
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
if (_ls1.Count() > 900000) |
|
|
|
|
|
{ |
|
|
|
|
|
if (_ls1.Count() > 2700000) |
|
|
|
|
|
{ |
|
|
|
|
|
var _lsSheet1 = _ls1.Skip(0 * 900000).Take(900000); |
|
|
|
|
|
var _lsSheet2 = _ls1.Skip(1* 900000).Take(900000); |
|
|
|
|
|
var _lsSheet3 = _ls1.Skip(2 * 900000).Take(900000); |
|
|
|
|
|
var _lsSheet4 = _ls1.Skip(3 * 900000).Take(900000); |
|
|
|
|
|
ExcelExporter _exporter = new ExcelExporter();//导出Excel
|
|
|
|
|
|
var result = _exporter.Append(_ls, "R3大众未结对比系统未结") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet2.ToList(), "系统未结对比R3大众未结(第1页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet2.ToList(), "系统未结对比R3大众未结(第2页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet3.ToList(), "系统未结对比R3大众未结(第3页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet3.ToList(), "系统未结对比R3大众未结(第4页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSum.ToList(), "大众R3未结对比结算系统差异汇总") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSum1.ToList(), "结算系统对比大众R3未结差异汇总") |
|
|
|
|
|
.ExportAppendDataAsByteArray(); |
|
|
|
|
|
result.ShouldNotBeNull(); |
|
|
|
|
|
_fileContainer.SaveAsync(_first, result.Result, true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
if (_ls1.Count() > 18000000) |
|
|
|
|
|
{ |
|
|
|
|
|
var _lsSheet1 = _ls1.Skip(0 * 900000).Take(900000); |
|
|
|
|
|
var _lsSheet2 = _ls1.Skip(1 * 900000).Take(900000); |
|
|
|
|
|
var _lsSheet3 = _ls1.Skip(2 * 900000).Take(900000); |
|
|
ExcelExporter _exporter = new ExcelExporter();//导出Excel
|
|
|
ExcelExporter _exporter = new ExcelExporter();//导出Excel
|
|
|
var result = _exporter.Append(_ls, "R3大众未结对比系统未结") |
|
|
var result = _exporter.Append(_ls, "R3大众未结对比系统未结") |
|
|
.SeparateBySheet() |
|
|
.SeparateBySheet() |
|
|
.Append(_ls1.ToList(),"系统未结对比R3大众未结") |
|
|
.Append(_lsSheet2.ToList(), "系统未结对比R3大众未结(第1页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet2.ToList(), "系统未结对比R3大众未结(第2页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet3.ToList(), "系统未结对比R3大众未结(第3页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSum.ToList(), "大众R3未结对比结算系统差异汇总") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSum1.ToList(), "结算系统对比大众R3未结差异汇总") |
|
|
|
|
|
.ExportAppendDataAsByteArray(); |
|
|
|
|
|
result.ShouldNotBeNull(); |
|
|
|
|
|
_fileContainer.SaveAsync(_first, result.Result, true); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
var _lsSheet1 = _ls1.Skip(0 * 900000).Take(900000); |
|
|
|
|
|
var _lsSheet2 = _ls1.Skip(1 * 900000).Take(900000); |
|
|
|
|
|
ExcelExporter _exporter = new ExcelExporter();//导出Excel
|
|
|
|
|
|
var result = _exporter.Append(_ls.ToList(), "R3大众未结对比系统未结") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet1.ToList(), "系统未结对比R3大众未结(第1页)") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSheet2.ToList(), "系统未结对比R3大众未结(第2页)") |
|
|
.SeparateBySheet() |
|
|
.SeparateBySheet() |
|
|
.Append(_lsSum.ToList(), "大众R3未结对比结算系统差异汇总") |
|
|
.Append(_lsSum.ToList(), "大众R3未结对比结算系统差异汇总") |
|
|
.SeparateBySheet() |
|
|
.SeparateBySheet() |
|
@ -234,8 +294,25 @@ namespace SettleAccount.Job.Services.Report |
|
|
_fileContainer.SaveAsync(_first, result.Result, true); |
|
|
_fileContainer.SaveAsync(_first, result.Result, true); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
else |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
ExcelExporter _exporter = new ExcelExporter();//导出Excel
|
|
|
|
|
|
var result = _exporter.Append(_ls, "R3大众未结对比系统未结") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_ls1.ToList(), "系统未结对比R3大众未结") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSum.ToList(), "大众R3未结对比结算系统差异汇总") |
|
|
|
|
|
.SeparateBySheet() |
|
|
|
|
|
.Append(_lsSum1.ToList(), "结算系统对比大众R3未结差异汇总") |
|
|
|
|
|
.ExportAppendDataAsByteArray(); |
|
|
|
|
|
result.ShouldNotBeNull(); |
|
|
|
|
|
_fileContainer.SaveAsync(_first, result.Result, true); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return id.ToString(); |
|
|
return id.ToString(); |
|
|