# 接口变更记录 — 2026-03-17 15:39

> **提交** `c993c30` · **作者** wx · **时间** 2026-03-17 15:39:42 +0800
>
> feat: 早鸟优惠支持产品范围选择(CORE/GROUP)

## 变更总览

- **订单服务**
  - InternalEarlyBird (改1)

---

## 订单服务

### InternalEarlyBird

#### ✏️ `GET` /internal/mp/early-bird/match — 匹配最优早鸟优惠计划


**响应变更** `EarlyBirdPlanVO`:

  - 🆕 `productIds` (`List<Long>`) — 适用产品ID列表（空表示适用全部CORE/GROUP产品）
  - 🆕 `productNames` (`List<String>`) — 适用产品名称列表（空表示适用全部）
- 参数: productType(String), totalPeople(int), totalPrice(BigDecimal) → productType(String), totalPeople(int), totalPrice(BigDecimal), productId(Long)

---

## 📦 其他数据对象变更

> 以下变更未直接关联到本次接口变更，但可能影响现有接口的请求/响应

### 订单服务

#### ✏️ EarlyBirdPlanRequest

  - 🆕 `productIds` (`List<Long>`) — 适用产品ID列表（仅CORE/GROUP类型），为空或null表示适用全部核心产品和小蒙马

<details>
<summary>📁 全部变更文件 (点击展开)</summary>

```
M	hl-mp-service/src/main/java/com/hulalv/mp/controller/MpProductController.java
M	hl-mp-service/src/main/java/com/hulalv/mp/feign/MpOrderFeignClient.java
M	hl-mp-service/src/main/java/com/hulalv/mp/feign/MpOrderFeignFallbackFactory.java
M	hl-mp-service/src/main/java/com/hulalv/mp/service/ProductAggregationService.java
M	hl-order-service/src/main/java/com/hulalv/order/constant/OrderConstants.java
M	hl-order-service/src/main/java/com/hulalv/order/controller/InternalEarlyBirdController.java
M	hl-order-service/src/main/java/com/hulalv/order/dto/EarlyBirdPlanRequest.java
A	hl-order-service/src/main/java/com/hulalv/order/entity/EarlyBirdPlanProduct.java
A	hl-order-service/src/main/java/com/hulalv/order/mapper/EarlyBirdPlanProductMapper.java
M	hl-order-service/src/main/java/com/hulalv/order/service/EarlyBirdPlanService.java
M	hl-order-service/src/main/java/com/hulalv/order/service/OrderService.java
M	hl-order-service/src/main/java/com/hulalv/order/vo/EarlyBirdPlanVO.java
M	hl-order-service/src/test/java/com/hulalv/order/service/EarlyBirdPlanServiceTest.java
M	hl-order-service/src/test/java/com/hulalv/order/service/OrderServiceTest.java
A	sql/early_bird_product_scope.sql
```
</details>