diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs index 6de6f8ca..c60480d0 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs @@ -231,6 +231,10 @@ namespace Win.Sfs.SettleAccount.Entities.BQ /// private async Task SubmitToQadHongChong(List invbillNums) { + if (!invbillNums.Any()) + { + return; + } var invoiceGrps = _settleAccountDbContext.Set() .Where(t => t.State == SettleBillState.已提交QAD) .Where(t => invbillNums.Contains(t.InvbillNum)) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TED_SA_INV.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TED_SA_INV.cs index c778cc19..ddd8a5d6 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TED_SA_INV.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/TED_SA_INV.cs @@ -1,6 +1,5 @@ using System; using System.ComponentModel.DataAnnotations; -using System.ComponentModel.DataAnnotations.Schema; namespace Win.Sfs.SettleAccount.Entities.BQ { @@ -10,7 +9,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ public Guid GUID { set; get; } public Guid TaskID { set; get; } - [DatabaseGenerated(DatabaseGeneratedOption.Identity)] public int UID { set; get; } ///