From 00b31db4f3677dc919a1c4e1c227fd8fdd65f60f Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期四, 11 六月 2026 19:30:35 +0800
Subject: [PATCH] fix: 修复采购库存自动提交同一个入库单,多个同一规格入库报错
---
src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java b/src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java
index 0f7e586..8bcab9f 100644
--- a/src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java
+++ b/src/main/java/com/ruoyi/ai/tools/SalesAgentTools.java
@@ -1123,7 +1123,7 @@
String value = seaType.trim().toLowerCase(Locale.ROOT);
return switch (value) {
case "private", "绉佹捣", "0" -> 0;
- case "public", "鍏捣", "1" -> 1;
+ case "public", "鍏捣", "閿�鍞。妗�", "1" -> 1;
default -> null;
};
}
@@ -1132,7 +1132,7 @@
if (type == null) {
return "鏈煡";
}
- return type == 1 ? "鍏捣" : "绉佹捣";
+ return type == 1 ? "閿�鍞。妗�" : "鏅��";
}
private int normalizeLimit(Integer limit) {
--
Gitblit v1.9.3