Browse Source

更新版本

master
学 赵 1 year ago
parent
commit
653091fcde
  1. 6
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs
  2. 5
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/GenerateJisInvoiceService.cs
  3. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/Managers/INV_MNG.cs

6
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/INVOICE_GRP_DTO.cs

@ -65,6 +65,12 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos
[Display(Name = "发票日期")] [Display(Name = "发票日期")]
public string CreationTime { get; set; } public string CreationTime { get; set; }
[Display(Name = "更新时间")]
public string LastModificationTime { get; set; }
}
} }
[Display(Name = "发票")] [Display(Name = "发票")]
public class INVOICE_REPEAT_DTO : EntityDto<Guid> public class INVOICE_REPEAT_DTO : EntityDto<Guid>

5
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 realAmt: readAmt
); );
invbill.ClientCode = clientCode; invbill.ClientCode = clientCode;
invbill.CreationTime = DateTime.MinValue;
invbill.LastModificationTime = DateTime.Now;
invbill.Site = dtos.FirstOrDefault().Site; invbill.Site = dtos.FirstOrDefault().Site;
invlist.Add(invbill); invlist.Add(invbill);
} }
@ -733,7 +735,8 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Syncs
} }
invbill.ClientCode = clientCode; invbill.ClientCode = clientCode;
invbill.Site = dtos.FirstOrDefault().Site; invbill.Site = dtos.FirstOrDefault().Site;
invbill.CreationTime = DateTime.Now; invbill.CreationTime = DateTime.MinValue;
invbill.LastModificationTime = DateTime.Now;
invlist.Add(invbill); invlist.Add(invbill);
i++; i++;
} }

4
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.ClientCode = clientCode;
invbill.CreationTime = DateTime.MinValue; invbill.CreationTime = DateTime.MinValue;
invbill.Site = dtos.FirstOrDefault().Site; invbill.Site = dtos.FirstOrDefault().Site;
invbill.LastModificationTime = DateTime.Now;
invlist.Add(invbill); invlist.Add(invbill);
} }
await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false);
@ -1483,6 +1484,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
invbill.ClientCode = clientCode; invbill.ClientCode = clientCode;
invbill.Site = dtos.FirstOrDefault().Site; invbill.Site = dtos.FirstOrDefault().Site;
invbill.CreationTime =DateTime.MinValue; invbill.CreationTime =DateTime.MinValue;
invbill.LastModificationTime = DateTime.Now;
invlist.Add(invbill); invlist.Add(invbill);
i++; i++;
} }
@ -2047,6 +2049,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
invbill.Site = dtos.FirstOrDefault().Site; invbill.Site = dtos.FirstOrDefault().Site;
invbill.ClientCode = clientCode; invbill.ClientCode = clientCode;
invbill.CreationTime = DateTime.MinValue; invbill.CreationTime = DateTime.MinValue;
invbill.LastModificationTime = DateTime.Now;
invlist.Add(invbill); invlist.Add(invbill);
} }
await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false); await _repository.DbContext.BulkInsertAsync(invlist).ConfigureAwait(false);
@ -2373,6 +2376,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ.Managers
); );
invbill.Site = "1049"; invbill.Site = "1049";
invbill.CreationTime = DateTime.MinValue; invbill.CreationTime = DateTime.MinValue;
invbill.LastModificationTime = DateTime.Now;
invbill.ClientCode = "C001"; invbill.ClientCode = "C001";
invlist.Add(invbill); invlist.Add(invbill);
} }

Loading…
Cancel
Save