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; } - } - +