From a5d46a11740467725b093288027050e0aa65b86a Mon Sep 17 00:00:00 2001 From: zhaoxinyu Date: Wed, 27 Dec 2023 10:24:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/SettleAccount.Application/Bases/ADJ_SERVICE.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/ADJ_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/ADJ_SERVICE.cs index 3387e162..ff1fad9f 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/ADJ_SERVICE.cs +++ b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Bases/ADJ_SERVICE.cs @@ -187,6 +187,12 @@ namespace Win.Sfs.SettleAccount.Bases var first = p_list.FirstOrDefault(); var inv = _invRepository.Where(p => p.InvbillNum == first.InvBillNum).FirstOrDefault(); + + if (inv == null) + { + throw new UserFriendlyException("请检查导入发票号是否原发票号一致", "400"); + } + if (first != null) {