From aafa140ce90b510ff48935a92e5c8860bb016e06 Mon Sep 17 00:00:00 2001 From: zhaoxinyu <89237069@qq.com> Date: Thu, 11 Jul 2024 16:33:45 +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/VmiAppService.cs | 37 +++---------------- 1 file changed, 5 insertions(+), 32 deletions(-) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs index 58461ec6..cc2bf041 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/VmiAppService.cs @@ -1792,6 +1792,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ entity.SetId(Guid.NewGuid()); entity.CreationTime = DateTime.Now; } + entities=entities.Where(p=>p.PartCode==parcode).ToList(); + + + await _recRepository.DbContext.BulkInsertAsync(entities).ConfigureAwait(false); @@ -2214,38 +2218,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ - public class ShipReceiveSum - { - [Display(Name = "客户零件号")] - public string LU { set; get; } - [Display(Name = "厂内零件号")] - public string PartCode { set; get; } - [Display(Name = "业务类型")] - public string BusinessType { set; get; } - [Display(Name = "期初发货数量")] - public string BSEQty { set; get; } - [Display(Name = "期初退货数量")] - public string BRETQty { set; get; } - [Display(Name = "实际发货数量")] - public string SEQTY { set; get; } - [Display(Name = "实际退货数量")] - public string RETQty { set; get; } - [Display(Name = "可结数量")] - public string CANQty { set; get; } - [Display(Name = "不可结数量")] - public string NOTQty { set; get; } - [Display(Name = "有发有结有价格数量")] - public string SE_SA_CAN_QTY { set; get; } - [Display(Name = "有发有结无价格数量")] - public string SE_SA_NOT_QTY { set; get; } - [Display(Name = "有发运无结算数量")] - public string ONLY_SE_QTY { set; get; } - [Display(Name = "有结算无发运数量")] - public string ONLY_SA_QTY { set; get; } - [Display(Name = "已开票数量")] - public string INVQty { set; get; } - } - +