From 657698fd2fb32794932474648dbaee9e284e38c8 Mon Sep 17 00:00:00 2001
From: 云 <2163098428@qq.com>
Date: 星期一, 12 十月 2026 18:31:20 +0800
Subject: [PATCH] feat(bpm): 添加全局免审批功能支持
---
yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/imports/MesQcImportHelper.java | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/imports/MesQcImportHelper.java b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/imports/MesQcImportHelper.java
index bfb5b63..36f58f0 100644
--- a/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/imports/MesQcImportHelper.java
+++ b/yudao-module-mes/src/main/java/cn/iocoder/yudao/module/mes/service/qc/imports/MesQcImportHelper.java
@@ -174,11 +174,11 @@
}
/**
- * 瑙f瀽瀹㈡埛缂栧彿锛屽熀浜庡鎴峰悕绉�
+ * 瑙f瀽瀹㈡埛缂栧彿锛屽熀浜庡鎴峰悕绉帮紱鐣欑┖琛ㄧず涓嶅叧鑱斿鎴�
*/
public Long resolveClientId(String clientName) {
if (StrUtil.isBlank(clientName)) {
- throw new IllegalArgumentException("瀹㈡埛鍚嶇О涓嶈兘涓虹┖锛氳濉啓妯℃澘涓琛岀殑銆屽鎴峰悕绉般�嶅垪");
+ return null;
}
if (customerNameMap == null) {
customerNameMap = new HashMap<>();
@@ -205,6 +205,9 @@
* 鍑鸿揣妫�楠屽崟鍒楄〃鎸夊鎴锋暟鎹潈闄愯繃婊わ紝鏉冮檺澶栫殑瀹㈡埛瀵煎叆鍚庢湰浜哄湪鍒楄〃涓湅涓嶅埌璇ュ崟鎹紝鍥犳鎻愬墠鎷︽埅銆�
*/
public void validateClientPermission(Long clientId, String clientName) {
+ if (clientId == null) {
+ return;
+ }
if (!clientPermissionLoaded) {
List<Long> permittedIds = crmCustomerApi.getPermittedCustomerIds();
permittedClientIds = permittedIds == null ? null : new HashSet<>(permittedIds);
--
Gitblit v1.9.3