From 653091fcde1b0832d4ad660d8a01d2fd8bab6152 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Fri, 17 Nov 2023 09:40:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/Dtos/INVOICE_GRP_DTO.cs | 6 ++++++ .../Entities/BQ/Syncs/GenerateJisInvoiceService.cs | 5 ++++- .../SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs | 4 ++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs index bf4d1d67..4105609b 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs @@ -65,7 +65,13 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos [Display(Name = "发票日期")] public string CreationTime { get; set; } + + [Display(Name = "更新时间")] + public string LastModificationTime { get; set; } } + + +} [Display(Name = "发票")] public class INVOICE_REPEAT_DTO : EntityDto { diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs index 75340448..93159f6c 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs @@ -433,6 +433,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs realAmt: readAmt ); invbill.ClientCode = clientCode; + invbill.CreationTime = DateTime.MinValue; + invbill.LastModificationTime = DateTime.Now; invbill.Site = dtos.FirstOrDefault().Site; invlist.Add(invbill); } @@ -733,7 +735,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs } invbill.ClientCode = clientCode; invbill.Site = dtos.FirstOrDefault().Site; - invbill.CreationTime = DateTime.Now; + invbill.CreationTime = DateTime.MinValue; + invbill.LastModificationTime = DateTime.Now; invlist.Add(invbill); i++; } diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs index eb003c42..84e3e4ac 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs @@ -1182,6 +1182,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers invbill.ClientCode = clientCode; invbill.CreationTime = DateTime.MinValue; invbill.Site = dtos.FirstOrDefault().Site; + invbill.LastModificationTime = DateTime.Now; invlist.Add(invbill); } await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); @@ -1483,6 +1484,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers invbill.ClientCode = clientCode; invbill.Site = dtos.FirstOrDefault().Site; invbill.CreationTime =DateTime.MinValue; + invbill.LastModificationTime = DateTime.Now; invlist.Add(invbill); i++; } @@ -2047,6 +2049,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers invbill.Site = dtos.FirstOrDefault().Site; invbill.ClientCode = clientCode; invbill.CreationTime = DateTime.MinValue; + invbill.LastModificationTime = DateTime.Now; invlist.Add(invbill); } await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); @@ -2373,6 +2376,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers ); invbill.Site = "1049"; invbill.CreationTime = DateTime.MinValue; + invbill.LastModificationTime = DateTime.Now; invbill.ClientCode = "C001"; invlist.Add(invbill); }