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); }