|
|
@ -22,6 +22,8 @@ using Win.Sfs.SettleAccount.Bases; |
|
|
|
using Win.Sfs.SettleAccount.Constant; |
|
|
|
using Win.Sfs.SettleAccount.ExcelImporter; |
|
|
|
using Win.Sfs.SettleAccount.ExportReports; |
|
|
|
using OfficeOpenXml; |
|
|
|
using OfficeOpenXml.Core; |
|
|
|
|
|
|
|
namespace Win.Sfs.SettleAccount.Entities.BQ; |
|
|
|
|
|
|
@ -143,6 +145,8 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA> |
|
|
|
var result = await _exportImporter.UploadExcelImport<HBPO_SA_DETAIL_IMPORT_DTO>(files, _excelImportService); |
|
|
|
var importPubSaDetails = ObjectMapper.Map<List<HBPO_SA_DETAIL_IMPORT_DTO>, List<HBPO_SA_DETAIL>>(result); |
|
|
|
|
|
|
|
return ""; |
|
|
|
|
|
|
|
//结算分组号
|
|
|
|
var hbpoSaGroupNums = importPubSaDetails.Select(t => t.GroupNum).Distinct(); |
|
|
|
|
|
|
@ -208,7 +212,6 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA> |
|
|
|
}); |
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
#region 入库数据赋值
|
|
|
|
//结算明细
|
|
|
|
hbpoSaDetails = importPubSaDetails; |
|
|
@ -243,7 +246,6 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA> |
|
|
|
{ |
|
|
|
hbpoNotSaDetails.ForEach(hbpoNotSaDetail => |
|
|
|
{ |
|
|
|
hbpoNotSaDetail.InvGroupNum = hbpoCanSaBillNum; |
|
|
|
hbpoNotSaDetail.BusinessType = businessType; |
|
|
|
}); |
|
|
|
|
|
|
@ -310,19 +312,19 @@ public class HBPO_SA_SERVICE : SettleAccountApplicationBase<HBPO_SA> |
|
|
|
|
|
|
|
//删除
|
|
|
|
await _hbpoSaRepository.DeleteAsync(hbpoSaDelEntity); |
|
|
|
if (hbpoSaDetailDelEntitys != null) |
|
|
|
if (hbpoSaDetailDelEntitys.Any()) |
|
|
|
{ |
|
|
|
await _hbpoSaDetailRepository.DeleteManyAsync(hbpoSaDetailDelEntitys); |
|
|
|
} |
|
|
|
if (hbpoCanSaDelEntitys != null) |
|
|
|
if (hbpoCanSaDelEntitys.Any()) |
|
|
|
{ |
|
|
|
await _hbpoCanSaRepository.DeleteManyAsync(hbpoCanSaDelEntitys); |
|
|
|
} |
|
|
|
if (hbpoCanSaDetailDelEntitys != null) |
|
|
|
if (hbpoCanSaDetailDelEntitys.Any()) |
|
|
|
{ |
|
|
|
await _hbpoCanSaDetailRepository.DeleteManyAsync(hbpoCanSaDetailDelEntitys); |
|
|
|
} |
|
|
|
if (hbpoNotSaDetailDelEntitys != null) |
|
|
|
if (hbpoNotSaDetailDelEntitys.Any()) |
|
|
|
{ |
|
|
|
await _hbpoNotSaDetailRepository.DeleteManyAsync(hbpoNotSaDetailDelEntitys); |
|
|
|
} |
|
|
|