ec_order: 去掉 product_id,改为冗余 spec_code 字段

- 迁移SQL: V20260603__ec_order_drop_product_id_add_spec_code.sql
- Order 实体/DTO/VO: product_id → spec_code,字段联路调整
- OrderImportProcessor / OrderServiceImpl: 适配新字段
- 各 Overview Service: 更新订单关联逻辑
- 前端: OrderFormModal / index / types 同步适配
This commit is contained in:
小蟑螂
2026-05-03 23:06:20 +08:00
parent 8adffcc7e9
commit 63e54279c0
16 changed files with 230 additions and 105 deletions
@@ -15,10 +15,10 @@ export namespace OrderDTO {
receivedAmount: number;
/** 下单时间 */
orderTime: string;
/** 商品ID */
productId: number;
/** 商品规格ID */
productSpecId?: number;
productSpecId: number;
/** 规格编码(可选,服务端可按规格ID补全) */
specCode?: string;
/** 链接商品名称(冗余存储) */
linkProductName: string;
/** 链接规格名称(冗余存储) */
@@ -49,10 +49,10 @@ export namespace OrderDTO {
receivedAmount: number;
/** 下单时间 */
orderTime: string;
/** 商品ID */
productId?: number;
/** 商品规格ID */
productSpecId?: number;
/** 规格编码 */
specCode?: string;
/** 链接商品名称(冗余存储) */
linkProductName?: string;
/** 链接规格名称(冗余存储) */
@@ -36,10 +36,10 @@ export namespace OrderVO {
createBy?: number;
/** 更新人ID */
updateBy?: number;
/** 商品ID */
productId: number;
/** 商品规格ID */
productSpecId?: number;
/** 规格编码 */
specCode?: string;
/** 链接商品名称(冗余存储) */
linkProductName: string;
/** 链接规格名称(冗余存储) */