Browse Source

提交

master
学 赵 2 months ago
parent
commit
bc4721ccd4
  1. 16
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs

16
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs

@ -716,7 +716,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
foreach (var groupnum in invoicegrup) foreach (var groupnum in invoicegrup)
{ {
mapList.Add(new INVOICE_MAP_GROUP( mapList.Add(new INVOICE_MAP_GROUP(
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
version: p_version, version: p_version,
invbillNum: inv.InvBillNum, invbillNum: inv.InvBillNum,
invGroupNum: p_InvGroupNum, invGroupNum: p_InvGroupNum,
@ -742,7 +742,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
foreach (var sitm in sq) foreach (var sitm in sq)
{ {
innotls.Add(new INVOICE_NOT_SETTLE( innotls.Add(new INVOICE_NOT_SETTLE(
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
version: p_version, version: p_version,
invGroupNum: p_InvGroupNum, invGroupNum: p_InvGroupNum,
settleGroupNum: sitm.GroupNum, settleGroupNum: sitm.GroupNum,
@ -765,7 +765,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
{ {
_entityDetailList.Add( _entityDetailList.Add(
new INVOICE_WAIT_DETAIL( new INVOICE_WAIT_DETAIL(
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
version: p_version, version: p_version,
invbillNum: inv.InvBillNum, invbillNum: inv.InvBillNum,
invGroupNum: p_InvGroupNum, invGroupNum: p_InvGroupNum,
@ -789,7 +789,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
#region 发票 #region 发票
var invbill = new INVOICE_GRP var invbill = new INVOICE_GRP
( (
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
realnvBillNum: string.Empty, realnvBillNum: string.Empty,
invbillNum: inv.InvBillNum, invbillNum: inv.InvBillNum,
amt: amt, amt: amt,
@ -834,7 +834,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
foreach (var sitm in sq) foreach (var sitm in sq)
{ {
innotls.Add(new INVOICE_NOT_SETTLE( innotls.Add(new INVOICE_NOT_SETTLE(
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
version: p_version, version: p_version,
invGroupNum: p_InvGroupNum, invGroupNum: p_InvGroupNum,
settleGroupNum: sitm.GroupNum, settleGroupNum: sitm.GroupNum,
@ -857,7 +857,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
{ {
_entityDetailList.Add( _entityDetailList.Add(
new INVOICE_WAIT_DETAIL( new INVOICE_WAIT_DETAIL(
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
version: p_version, version: p_version,
invbillNum: inv.InvBillNum, invbillNum: inv.InvBillNum,
invGroupNum: p_InvGroupNum, invGroupNum: p_InvGroupNum,
@ -881,7 +881,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
#region 发票 #region 发票
var invbill = new INVOICE_GRP var invbill = new INVOICE_GRP
( (
guid: GuidGenerator.Create(), guid: Guid.NewGuid(),
realnvBillNum: string.Empty, realnvBillNum: string.Empty,
invbillNum: inv.InvBillNum, invbillNum: inv.InvBillNum,
amt: amt, amt: amt,
@ -946,7 +946,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
).ToList(); ).ToList();
foreach (var itm in detailext) foreach (var itm in detailext)
{ {
itm.SetId(GuidGenerator.Create()); itm.SetId(Guid.NewGuid());
itm.CreationTime = DateTime.Now; itm.CreationTime = DateTime.Now;
} }
_dbcontext.BulkInsert(detailext); _dbcontext.BulkInsert(detailext);

Loading…
Cancel
Save