Browse Source

修改QAD接口 数据表UID设置不自增长

master
mahao 1 year ago
parent
commit
83b5bb52b4
  1. 4
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs
  2. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TED_SA_INV.cs

4
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -231,6 +231,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
/// </summary> /// </summary>
private async Task SubmitToQadHongChong(List<string> invbillNums) private async Task SubmitToQadHongChong(List<string> invbillNums)
{ {
if (!invbillNums.Any())
{
return;
}
var invoiceGrps = _settleAccountDbContext.Set<INVOICE_GRP>() var invoiceGrps = _settleAccountDbContext.Set<INVOICE_GRP>()
.Where(t => t.State == SettleBillState.QAD) .Where(t => t.State == SettleBillState.QAD)
.Where(t => invbillNums.Contains(t.InvbillNum)) .Where(t => invbillNums.Contains(t.InvbillNum))

2
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TED_SA_INV.cs

@ -1,6 +1,5 @@
using System; using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
namespace Win.Sfs.SettleAccount.Entities.BQ namespace Win.Sfs.SettleAccount.Entities.BQ
{ {
@ -10,7 +9,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
public Guid GUID { set; get; } public Guid GUID { set; get; }
public Guid TaskID { set; get; } public Guid TaskID { set; get; }
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
public int UID { set; get; } public int UID { set; get; }
/// <summary> /// <summary>

Loading…
Cancel
Save