From be2e189184c5c60f5f38e3c5dec1bc80eb157244 Mon Sep 17 00:00:00 2001 From: mahao Date: Wed, 16 Aug 2023 15:50:29 +0800 Subject: [PATCH] 1 --- .../Entities/BQ/Dtos/PUB_SA_DTO.cs | 4 ++-- .../SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs index 876c4a05..6b14f1d7 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/PUB_SA_DTO.cs @@ -124,7 +124,7 @@ public class ZhiGongJianHBPOImportDto /// [Display(Name = "结算日期")] [ImporterHeader(IsIgnore = true)] - public string SettleDate { set; get; } + public DateTime SettleDate { set; get; } /// /// 客户零件号 @@ -168,7 +168,7 @@ public class MaiDanJianHBPOImportDto /// [Display(Name = "买单日期")] [ImporterHeader(Name = "买单日期")] - public string SettleDate { set; get; } + public DateTime SettleDate { set; get; } /// /// 客户零件号 diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs index 5a465445..845798a9 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/PUB_SA_SERVICE.cs @@ -350,11 +350,6 @@ public class PUB_SA_SERVICE : SettleAccountApplicationBase ExportImporter _exportImporter = new ExportImporter(); var importResults = await _exportImporter.UploadExcelImport(files, _excelImportService).ConfigureAwait(false); - importResults.ForEach(importResult => - { - importResult.SettleDate = DateTime.Now; - }); - var importPubSaDetails = ObjectMapper.Map, List>(importResults); #endregion