From de0bf07d8497ec97750de8adabd6a30146fe9557 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期三, 01 七月 2026 11:32:26 +0800
Subject: [PATCH] fix:1.发货审批不通过时,对应的发货车牌应不展示2.审批模版被其他审批引用时,不能进行编辑或删除操作
---
src/main/java/com/ruoyi/ai/tools/PurchaseAgentTools.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/ruoyi/ai/tools/PurchaseAgentTools.java b/src/main/java/com/ruoyi/ai/tools/PurchaseAgentTools.java
index a294b68..bdd1f1f 100644
--- a/src/main/java/com/ruoyi/ai/tools/PurchaseAgentTools.java
+++ b/src/main/java/com/ruoyi/ai/tools/PurchaseAgentTools.java
@@ -591,7 +591,7 @@
private Map<Long, Long> queryPurchaseLedgerIdByQualityInspectId(Collection<StockInRecord> stockInRecords) {
Set<Long> qualityInspectIds = stockInRecords.stream()
.filter(Objects::nonNull)
- .filter(item -> item.getRecordId() != null && "10".equals(safe(item.getRecordType())))
+ .filter(item -> item.getRecordId() != null && "10".equals(safe(item.getRecordType()).trim()))
.map(StockInRecord::getRecordId)
.collect(Collectors.toSet());
if (qualityInspectIds.isEmpty()) {
@@ -614,7 +614,7 @@
if (stockInRecord.getApprovalStatus() != null && stockInRecord.getApprovalStatus() != 1) {
continue;
}
- String recordType = safe(stockInRecord.getRecordType());
+ String recordType = safe(stockInRecord.getRecordType()).trim();
if ("7".equals(recordType)) {
result.add(stockInRecord.getRecordId());
} else if ("10".equals(recordType)) {
--
Gitblit v1.9.3