package com.fs.his.vo;

import lombok.Data;
import java.math.BigDecimal;

/**
 * 互联网医院订单金额统计 - 详细聚合结果（单行）
 * 对应你那个包含所有 CASE WHEN 的 SQL 查询
 */
@Data
public class FsStoreOrderAmountStatsDetailVo {

    // 1. 订单总数
    private Integer totalOrderCount;

    // 2. 全款订单 (pay_type = 1)
    private Integer fullPayOrderCount;
    private BigDecimal fullPayOrderAmount;      // pay_price
    private BigDecimal fullPayActualAmount;     // pay_money
    private BigDecimal fullPayCodAmount;        // pay_remain

    // 3. 物流代收订单总数 (pay_type IN (2,3))
    private Integer codOrderCount;
    private BigDecimal codOrderAmount;          // pay_price
    private BigDecimal depositAmount;           // pay_money（定金）
    private BigDecimal codAmount;               // pay_remain（尾款）

    // 4. 付定金的物流代收 (pay_type IN (2,3) AND pay_money > 0)
    private Integer depositCodOrderCount;
    private BigDecimal depositCodOrderAmount;
    private BigDecimal depositCodDepositAmount;
    private BigDecimal depositCodCodAmount;

    // 5. 0元定金物流代收 (pay_type IN (2,3) AND pay_money = 0)
    private Integer noDepositCodOrderCount;
    private BigDecimal noDepositCodOrderAmount;
    private BigDecimal noDepositCodCodAmount;
}