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

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

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * @author 周晓
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
public class BizFinancialAccountAdjustment extends BaseEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "客户外键")
    private Long companyId;

    @ApiModelProperty(value = "客户名称")
    @TableField(exist = false)
    private String companyName;

    @ApiModelProperty(value = "账期年")
    private String year;

    @ApiModelProperty(value = "账期月")
    private String month;

    @ApiModelProperty(value = "实际完成日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Timestamp actuallyFinishedDate;

    @ApiModelProperty(value = "申请人id 关联employee表")
    private Long applierId;

    @ApiModelProperty(value = "申请人名称")
    @TableField(exist = false)
    private String applieName;

    @ApiModelProperty(value = "调账会计id 关联employee表")
    private Long accountantId;

    @ApiModelProperty(value = "调账会计名称")
    @TableField(exist = false)
    private String accountantName;

    @ApiModelProperty(value = "状态 0 审核中 1 审核通过进行中 2 已完成 3审核失败")
    private Byte status;

    @ApiModelProperty(value = "调账原因")
    private String adjustmentResult;

    @ApiModelProperty(value = "主程序账套外键")
    @TableField(value="tenant_id",fill= FieldFill.INSERT)
    private Long tenantId;

    @ApiModelProperty(value = "employee_id")
    @TableField(exist = false)
    private Long employeeId;

}
