From af2e3ac16cadc0c609043b06b449ca5acf8da310 Mon Sep 17 00:00:00 2001
From: 吴羡 <16976746+Xian-TT3@user.noreply.gitee.com>
Date: 星期二, 29 九月 2026 17:45:06 +0800
Subject: [PATCH] 新疆-融邦 销售台账、采购台账新增付款类别字段(授信账期/先款后货):实体/DTO/列表SQL,含数据库迁移脚本
---
src/main/java/com/ruoyi/account/service/impl/sales/AccountInvoiceApplicationServiceImpl.java | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/ruoyi/account/service/impl/sales/AccountInvoiceApplicationServiceImpl.java b/src/main/java/com/ruoyi/account/service/impl/sales/AccountInvoiceApplicationServiceImpl.java
index c88ede2..8052581 100644
--- a/src/main/java/com/ruoyi/account/service/impl/sales/AccountInvoiceApplicationServiceImpl.java
+++ b/src/main/java/com/ruoyi/account/service/impl/sales/AccountInvoiceApplicationServiceImpl.java
@@ -67,6 +67,16 @@
throw new ServiceException("瀛樺湪閲嶅鐨勫嚭搴撳崟");
}
}
+ // 娌瑰搧鍑哄簱鎸夊鎴锋媶鎴愬鏉$粦瀹氳锛屼笌鍑哄簱鍗曟槸涓や釜鐙珛鐨� id 绌洪棿锛屽繀椤诲垎寮�鍒ら噸
+ String stockOutBindingIds = accountInvoiceApplication.getStockOutBindingIds();
+ if (stockOutBindingIds != null && !stockOutBindingIds.isEmpty()) {
+ List<Long> bindingIds = Arrays.stream(stockOutBindingIds.split(","))
+ .map(Long::valueOf)
+ .toList();
+ if (accountInvoiceApplicationMapper.existsByStockOutBindingId(bindingIds)){
+ throw new ServiceException("瀛樺湪閲嶅鐨勫嚭搴撳崟");
+ }
+ }
return save(accountInvoiceApplication);
}
--
Gitblit v1.9.3