feat(ecom): 产品概况增加总成本字段及按自动统计状态过滤订单

- CompanyOverviewVO 新增 totalCost 字段(商品成本+运费+其他成本)
- ProductOverviewServiceImpl 查询订单时仅统计 autoStatistics=1 的订单状态
- 同步前端 types.vo.ts 及各组件展示总成本
- SQL 迁移文件整理至 sql/migration/ 目录
This commit is contained in:
小蟑螂
2026-05-05 12:06:09 +08:00
parent 17bbae66a1
commit 44662a4790
14 changed files with 116 additions and 51 deletions
@@ -117,6 +117,8 @@ export namespace CompanyOverviewVO {
shippingCost?: number;
/** 其他成本 */
otherCost?: number;
/** 总成本(商品成本+运费+其他成本) */
totalCost?: number;
/** 退款金额 */
refundAmount?: number;
/** 推广费 */
@@ -153,6 +155,8 @@ export namespace CompanyOverviewVO {
shippingCost?: number;
/** 其他成本 */
otherCost?: number;
/** 总成本(商品成本+运费+其他成本) */
totalCost?: number;
/** 退款金额 */
refundAmount?: number;
/** 推广费 */
@@ -197,6 +201,8 @@ export namespace CompanyOverviewVO {
shippingCost?: number;
/** 其他成本 */
otherCost?: number;
/** 总成本(商品成本+运费+其他成本) */
totalCost?: number;
/** 退款金额 */
refundAmount?: number;
/** 推广费 */