package com.erp.dashboard.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

/**
 * 订单统计DTO - 用于数据库查询结果映射
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "订单统计结果")
public class OrderStatsDTO {

    @Schema(description = "总订单数")
    private Long totalOrders;

    @Schema(description = "已完成订单数")
    private Long completedOrders;

    @Schema(description = "已取消订单数")
    private Long cancelledOrders;

    @Schema(description = "订单总金额")
    private BigDecimal totalAmount;
}
