From dfa3e8cc5362bce707c9ef2f993647340acdd863 Mon Sep 17 00:00:00 2001 From: ouyangxq <775153912@qq.com> Date: Sat, 15 Aug 2026 11:14:50 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../baiyue/warehouse/service/PlatformPartnerQueryService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/warehouse/src/main/java/com/baiyue/warehouse/service/PlatformPartnerQueryService.java b/warehouse/src/main/java/com/baiyue/warehouse/service/PlatformPartnerQueryService.java index 918cbffde..4b668d769 100644 --- a/warehouse/src/main/java/com/baiyue/warehouse/service/PlatformPartnerQueryService.java +++ b/warehouse/src/main/java/com/baiyue/warehouse/service/PlatformPartnerQueryService.java @@ -23,7 +23,7 @@ import java.util.Locale; public class PlatformPartnerQueryService { private static final long PUBLIC_TENANT_ID = 0L; private static final Set ALLOWED_QUERY_TYPES = Set.of( - "CUSTOMER", "CARRIER", "SHIPPER", "CONSIGNEE"); + "CARRIER", "SHIPPER", "CONSIGNEE"); @Resource private PartnerRepository repository; @@ -148,7 +148,7 @@ public class PlatformPartnerQueryService { } if (normalized.isEmpty()) throw new BizException(ResultCode.BAD_REQUEST, "请至少选择一个单位类型"); if (normalized.stream().anyMatch(type -> !ALLOWED_QUERY_TYPES.contains(type))) { - throw new BizException(ResultCode.VALIDATION_FAILED, "往来单位仅支持 CUSTOMER、CARRIER、SHIPPER、CONSIGNEE"); + throw new BizException(ResultCode.VALIDATION_FAILED, "往来单位仅支持 CARRIER、SHIPPER、CONSIGNEE"); } return List.copyOf(normalized); }