package cn.ezhizao.project.business.keepAccounts.domain;

import cn.ezhizao.framework.web.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@Accessors(chain = true)
@ApiModel("biz_financial_keep_account 财务记账详情")
public class BizFinancialKeepAccountDetail extends BaseEntity {
    @ApiModelProperty("收款外键")
    private Long financialKeepAccountId;
    @ApiModelProperty("客户外键")
    private Long companyId;
    @ApiModelProperty("客户名称")
    @TableField(exist = false)
    private String companyName;
    @ApiModelProperty("年")
    private String year;
    @ApiModelProperty("月")
    private String month;
    @ApiModelProperty("收票日期")
    private Timestamp receiveDate;
    @ApiModelProperty("状态")
    private Integer status;
    @ApiModelProperty("详情")
    private String content;

    @ApiModelProperty("本期收入")
    private BigDecimal currentIncome;
    @ApiModelProperty("本年收入")
    private BigDecimal currentYearIncome;
    @ApiModelProperty("本年累计成本")
    private BigDecimal cumulativeCost;
    @ApiModelProperty("是否暂估")
    private Integer isProvisionalEstimate;
    @ApiModelProperty("暂估金额")
    private BigDecimal provisionalEstimateAmount;
    @ApiModelProperty("本年利润")
    private BigDecimal currentYearProfit;

    /** 查询条件新增 */
    @ApiModelProperty("记账表外键")
    @TableField(exist = false)
    private List<Long> mainIds;

    @TableField(exist = false)
    private BigDecimal previousAnnualLosses;

    @TableField(exist = false)
    private Date startMonth;
    @TableField(exist = false)
    private Date endMonth;

}
