package com.mini.capi.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 统一收支汇总表（月/季/年）
 * </p>
 *
 * @author gaoxq
 * @since 2025-08-25
 */
@Getter
@Setter
@TableName("biz_combined_summary")
public class CombinedSummary implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    /**
     * 记录创建时间
     */
    @TableField("create_time")
    private LocalDateTime createTime;

    /**
     * 周期类型：M=月，Q=季度，Y=年
     */
    @TableField("period_type")
    private String periodType;

    /**
     * 周期编码，格式：YYYY-MM（月）、YYYY-Q#（季度）、YYYY（年）
     */
    @TableField("period_code")
    private String periodCode;

    /**
     * 本期总收入
     */
    @TableField("current_total_income")
    private BigDecimal currentTotalIncome;

    /**
     * 本期总支出
     */
    @TableField("current_total_expense")
    private BigDecimal currentTotalExpense;

    /**
     * 本期日均收入
     */
    @TableField("current_avg_daily_income")
    private BigDecimal currentAvgDailyIncome;

    /**
     * 本期日均支出
     */
    @TableField("current_avg_daily_expense")
    private BigDecimal currentAvgDailyExpense;

    /**
     * 本期单日最高支出
     */
    @TableField("current_highest_expense")
    private BigDecimal currentHighestExpense;

    /**
     * 本期年储蓄率
     */
    @TableField("current_annual_savings_rate")
    private BigDecimal currentAnnualSavingsRate;

    /**
     * 上期总收入
     */
    @TableField("previous_total_income")
    private BigDecimal previousTotalIncome;

    /**
     * 上期总支出
     */
    @TableField("previous_total_expense")
    private BigDecimal previousTotalExpense;

    /**
     * 上期日均收入
     */
    @TableField("previous_avg_daily_income")
    private BigDecimal previousAvgDailyIncome;

    /**
     * 上期日均支出
     */
    @TableField("previous_avg_daily_expense")
    private BigDecimal previousAvgDailyExpense;

    /**
     * 上期单日最高支出
     */
    @TableField("previous_highest_expense")
    private BigDecimal previousHighestExpense;

    /**
     * 上期年储蓄率
     */
    @TableField("previous_annual_savings_rate")
    private BigDecimal previousAnnualSavingsRate;

    /**
     * 总收入环比增长率
     */
    @TableField("mom_rate_total_income")
    private BigDecimal momRateTotalIncome;

    /**
     * 总支出环比增长率
     */
    @TableField("mom_rate_total_expense")
    private BigDecimal momRateTotalExpense;

    /**
     * 日均收入环比增长率
     */
    @TableField("mom_rate_avg_daily_income")
    private BigDecimal momRateAvgDailyIncome;

    /**
     * 日均支出环比增长率
     */
    @TableField("mom_rate_avg_daily_expense")
    private BigDecimal momRateAvgDailyExpense;

    /**
     * 单日最高支出环比增长率
     */
    @TableField("mom_rate_highest_expense")
    private BigDecimal momRateHighestExpense;

    /**
     * 年储蓄率环比增长率
     */
    @TableField("mom_rate_annual_savings_rate")
    private BigDecimal momRateAnnualSavingsRate;

    /**
     * 租户id
     */
    @TableField("f_tenant_id")
    private String fTenantId;

    /**
     * 流程id
     */
    @TableField("f_flow_id")
    private String fFlowId;

    /**
     * 流程任务主键
     */
    @TableField("f_flow_task_id")
    private String fFlowTaskId;

    /**
     * 流程任务状态
     */
    @TableField("f_flow_state")
    private Integer fFlowState;
}
