package com.sckw.order.model.vo.res;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 贸易订单详情页看板统计（完成率、今日/本月完成量、车次）
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
@Schema(description = "贸易订单看板统计")
public class TradeOrderDashboardVO implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "完成率(%)，已完成量/订单总量*100，保留两位小数")
    private BigDecimal completionRate;

    @Schema(description = "今日完成量(吨)，按计费方式取装货量或审核后卸货量")
    private BigDecimal todayTotalVolume;

    @Schema(description = "已派车次数(非已取消运单数)")
    private Long tripCount;

    @Schema(description = "本月完成量(吨)，按计费方式取装货量或审核后卸货量")
    private BigDecimal monthTotalVolume;
}
