package com.bs.cw.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.bs.common.annotation.Excel;
import com.bs.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
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 io.swagger.annotations.ApiModelProperty;

/**
 * 费用核销记录对象 cw_finance_writeoff
 *
 * @author bs
 * @date 2024-02-07
 */
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("cw_finance_writeoff")
@Data
public class CwFinanceWriteoff extends BaseEntity{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id",type = IdType.AUTO)
    @ApiModelProperty(value = "id")
    private Long id;

    /** 日记账ID */

    @Excel(name = "日记账ID")
    @ApiModelProperty(value = "日记账ID")
    private Long cashId;

    /** 摊销ID */

    @Excel(name = "摊销ID")
    @ApiModelProperty(value = "摊销ID")
    private Long amortizeId;

    /** 单据号 */

    @Excel(name = "单据号")
    @ApiModelProperty(value = "单据号")
    private String billNo;

    /** 业务单据 */

    @Excel(name = "业务单据")
    @ApiModelProperty(value = "业务单据")
    private String bizId;

    /** 实收时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "实收时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "实收时间")
    private Date paidTime;

    /** 核销时间 */

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "核销时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "核销时间")
    private Date woTime;

    /** 实收金额 */

    @Excel(name = "实收金额")
    @ApiModelProperty(value = "实收金额")
    private BigDecimal paidAmount;

    /** 币别 */

    @Excel(name = "币别")
    @ApiModelProperty(value = "币别")
    private String currencyCode;

    /** 经办人 */

    @Excel(name = "经办人")
    @ApiModelProperty(value = "经办人")
    private String userId;

    /** 核销金额 */

    @Excel(name = "核销金额")
    @ApiModelProperty(value = "核销金额")
    private BigDecimal woAmount;

    /** 汇率 */

    @Excel(name = "汇率")
    @ApiModelProperty(value = "汇率")
    private String exchangeRate;

    /** 换算后的金额 */

    @Excel(name = "换算后的金额")
    @ApiModelProperty(value = "换算后的金额")
    private BigDecimal exchangeAmount;

    /** 付款方 */

    @Excel(name = "付款方")
    @ApiModelProperty(value = "付款方")
    private Long custId;

    /** 状态 */

    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private String status;

    /** 备注 */

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

    /** 应收应付类型：0应收 1应付 */

    @Excel(name = "应收应付类型：0应收 1应付")
    @ApiModelProperty(value = "应收应付类型：0应收 1应付")
    private String rpFlag;

    /** 核销凭证 */

    @Excel(name = "核销凭证")
    @ApiModelProperty(value = "核销凭证")
    private String writeoffVouch;

    /** 报销表主键 */

    @Excel(name = "报销表主键")
    @ApiModelProperty(value = "报销表主键")
    private String reimburseId;




}
