mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 04:29:20 +08:00
feat: 成本同步功能完整实现
- ProductSpecController 新增 POST /ec/product-spec/sync-costs-to-orders 接口 - OrderMapper.updateCostFields() 批量更新订单成本字段 - OrderService 新增 syncCostsToOrders 方法 - UpdateProductResultDTO 返回完整成本变更规格列表(含 id/name/specCode/成本字段) - 前端 ProductFormModal 同步弹窗:勾选规格 + 选择时间范围 + 显示更新条数
This commit is contained in:
@@ -29,8 +29,24 @@ export namespace ProductVO {
|
||||
|
||||
/** 更新商品响应 */
|
||||
export interface UpdateProductResult {
|
||||
/** 本次更新中成本发生变更的规格ID列表 */
|
||||
costChangedSpecIds: number[];
|
||||
/** 本次更新中成本发生变更的规格列表 */
|
||||
costChangedSpecs: CostChangedSpec[];
|
||||
}
|
||||
|
||||
/** 成本变更的规格信息 */
|
||||
export interface CostChangedSpec {
|
||||
/** 规格ID */
|
||||
id: number;
|
||||
/** 规格名称 */
|
||||
name: string;
|
||||
/** 规格编码 */
|
||||
specCode?: string;
|
||||
/** 商品成本 */
|
||||
productCost: number;
|
||||
/** 运费成本 */
|
||||
shippingCost?: number;
|
||||
/** 其他成本 */
|
||||
otherCost?: number;
|
||||
}
|
||||
|
||||
/** 商品规格信息 */
|
||||
|
||||
Reference in New Issue
Block a user