refactor: 统一字段命名从 *Comparisons 改为 *Summary

后端:
- CompanyOverviewVO: shopComparisons -> shopSummary, categoryComparisons -> categorySummary
- ShopOverviewStatisticsVO: ProductComparison/CategoryComparison -> ProductSummary/CategorySummary
- CompanyOverviewServiceImpl/ShopOverviewStatisticsServiceImpl: 方法和变量重命名
- CategoryExportExcelServiceImpl, ShopExportServiceImpl: 类型引用更新

前端:
- store-overview/types/types.vo.ts: 接口重命名 ShopSummary/CategorySummary
- shop/types/types.vo.ts: 接口重命名 ProductSummary/CategorySummary
- 组件 props 从 shopComparisons/categoryComparisons 改为 shopSummary/categorySummary
- 修复 ShopComparisonTable 导出类型引用

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
小蟑螂
2026-05-08 02:10:21 +08:00
co-authored by Claude Opus 4.7
parent 499881514e
commit 7761667904
14 changed files with 217 additions and 217 deletions
@@ -113,7 +113,7 @@ export namespace ShopVO {
}
/** 商品汇总数据 */
export interface ProductComparison {
export interface ProductSummary {
/** 商品ID */
productId: number;
/** 商品名称 */
@@ -153,7 +153,7 @@ export namespace ShopVO {
}
/** 品类汇总数据 */
export interface CategoryComparison {
export interface CategorySummary {
/** 品类ID */
categoryId: number;
/** 品类名称 */
@@ -209,17 +209,17 @@ export namespace ShopVO {
/** 商品概览(含合计行和商品列表) */
export interface ProductOverview {
/** 合计行 */
total: ProductComparison;
total: ProductSummary;
/** 各商品汇总列表 */
products: ProductComparison[];
products: ProductSummary[];
}
/** 品类概览(含合计行和品类列表) */
export interface CategoryOverview {
/** 合计行 */
total: CategoryComparison;
total: CategorySummary;
/** 各品类汇总列表 */
categories: CategoryComparison[];
categories: CategorySummary[];
}
// ========== 店铺详情看板 ==========
@@ -28,9 +28,9 @@ export namespace CompanyOverviewVO {
/** 单量趋势分析 */
orderCountTrend?: TrendData;
/** 多店铺数据横向汇总 */
shopComparisons?: ShopOverview;
shopSummary?: ShopOverview;
/** 多品类数据横向汇总 */
categoryComparisons?: CategoryOverview;
categorySummary?: CategoryOverview;
/** 平台维度概览(包含合计行和平台列表) */
platformSummary?: PlatformOverview;
/** 汇总ROI */
@@ -90,7 +90,7 @@ export namespace CompanyOverviewVO {
}
/** 店铺汇总数据(16维度) */
export interface ShopComparison {
export interface ShopSummary {
/** 店铺ID */
shopId: number;
/** 店铺名称 */
@@ -138,7 +138,7 @@ export namespace CompanyOverviewVO {
}
/** 品类汇总数据 */
export interface CategoryComparison {
export interface CategorySummary {
/** 品类ID(未分配为null) */
categoryId?: number;
/** 品类名称(未分配为"未分配品类") */
@@ -232,16 +232,16 @@ export namespace CompanyOverviewVO {
/** 多店铺概览 */
export interface ShopOverview {
/** 合计行 */
total: ShopComparison;
total: ShopSummary;
/** 各店铺汇总列表 */
shops: ShopComparison[];
shops: ShopSummary[];
}
/** 多品类概览 */
export interface CategoryOverview {
/** 合计行 */
total: CategoryComparison;
total: CategorySummary;
/** 各品类汇总列表 */
categories: CategoryComparison[];
categories: CategorySummary[];
}
}