package com.xinelu.manage.domain.billinfo;

import com.xinelu.common.annotation.Excel;
import com.xinelu.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 账单信息对象 bill_info
 *
 * @author xinelu
 * @date 2026-04-16
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "账单信息对象", description = "bill_info")
public class BillInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 账单主键
     */
    private Long id;

    /**
     * 账单编号
     */
    @ApiModelProperty(value = "账单编号")
    @Excel(name = "账单编号")
    private String billCode;

    /**
     * 账单名称
     */
    @ApiModelProperty(value = "账单名称")
    @Excel(name = "账单名称")
    private String billName;

    /**
     * 账单月份
     */
    @ApiModelProperty(value = "账单月份")
    @Excel(name = "账单月份")
    private String billMonth;

    /**
     * 条数/时长
     */
    @ApiModelProperty(value = "条数/时长")
    @Excel(name = "条数/时长")
    private BigDecimal pushLength;

    /**
     * 账单金额
     */
    @ApiModelProperty(value = "账单金额")
    @Excel(name = "账单金额")
    private BigDecimal billExpense;

    /**
     * 缴费状态，已缴费：PAID，未交费：UNPAID_FEES
     */
    @ApiModelProperty(value = "缴费状态，已缴费：PAID，未交费：UNPAID_FEES")
    @Excel(name = "缴费状态，已缴费：PAID，未交费：UNPAID_FEES")
    private String paymentStatus;

    /**
     * 账单来源，短信：message；电话：telephone
     */
    @ApiModelProperty(value = "账单来源，短信：message；电话：telephone")
    @Excel(name = "账单来源，短信：message；电话：telephone")
    private String billSource;


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("billCode", getBillCode())
                .append("billName", getBillName())
                .append("billMonth", getBillMonth())
                .append("pushLength", getPushLength())
                .append("billExpense", getBillExpense())
                .append("paymentStatus", getPaymentStatus())
                .append("billSource", getBillSource())
                .append("createTime", getCreateTime())
                .toString();
    }
}