From 62c4acde6be004207edaa7f3dce29eeb9b31fde4 Mon Sep 17 00:00:00 2001
From: zhouhongjun <565221961@qq.com>
Date: Fri, 22 Dec 2023 16:09:17 +0800
Subject: [PATCH] =?UTF-8?q?HPBO=E5=88=B0=E8=B4=A7=E6=97=B6=E9=97=B4?=
=?UTF-8?q?=E6=98=A0=E5=B0=84=E5=88=B0=E7=BB=93=E7=AE=97=E6=97=B6=E9=97=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../Entities/BQ/Dtos/HBPO_SA_DTO.cs | 16 ++++++++--------
.../Entities/BQ/HBPO_SA_SERVICE.cs | 2 ++
.../SettleAccountApplicationAutoMapperProfile.cs | 9 +++++++--
3 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs
index a073b62e..a0103408 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SA_DTO.cs
@@ -122,12 +122,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
///
public class HBPO_SA_DETAIL_IMPORT_DTO
{
- ///
- /// 结算日期
- ///
- [Display(Name = "ReceiveDate")]
- [ImporterHeader(Name = "ReceiveDate", Format = "yyyy/MM/dd HH:mm:ss")]
- public DateTime SettleDate { set; get; }
+ /////
+ ///// 结算日期
+ /////
+ //[Display(Name = "ReceiveDate")]
+ //[ImporterHeader(Name = "ReceiveDate", Format = "yyyy/MM/dd HH:mm:ss")]
+ //public DateTime SettleDate { set; get; }
///
/// 结算分组号
///
@@ -140,8 +140,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
///
[Display(Name = "DeliveryDate")]
[Required(ErrorMessage = "{0}不能为空")]
- [ImporterHeader(Name = "DeliveryDate", Format = "MM/yyyy/dd HH:mm:ss")]
- public DateTime? DeliveryDate { get; set; }
+ [ImporterHeader(Name = "DeliveryDate", Format = "yyyy/MM/dd HH:mm:ss")]
+ public DateTime DeliveryDate { get; set; }
///
/// 客户零件号
///
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs
index bf254557..6b10a5f3 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/HBPO_SA_SERVICE.cs
@@ -224,6 +224,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
var exportImporter = new ExportImporter();
var result = await exportImporter.UploadExcelImport(files, _excelImportService).ConfigureAwait(false);
var importHBOPSaDetails = ObjectMapper.Map, List>(result);
+
+
return await SaDataGroupByPlaceAsync(importHBOPSaDetails).ConfigureAwait(false);
}
diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs
index a14d3cf4..7c30f74c 100644
--- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs
+++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccountApplicationAutoMapperProfile.cs
@@ -995,13 +995,18 @@ namespace Win.Sfs.SettleAccount
CreateMap()
.ForMember(x => x.SettleDate, y => y.MapFrom(d => d.SettleDate.ToString("yyyy-MM-dd")));
CreateMap()
- .ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum));
+
+ .ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum));
CreateMap()
.ForMember(x => x.SettleBillNum, y => y.MapFrom(d => d.BillNum));
CreateMap();
- CreateMap();
+ CreateMap().
+ ForMember(x => x.SettleDate, y => y.MapFrom(d => d.DeliveryDate)).ReverseMap();
CreateMap();
+
+
+
}
///