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

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import cn.ezhizao.framework.web.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import io.swagger.annotations.ApiModelProperty;
import cn.ezhizao.framework.aspectj.lang.annotation.Excel;

import java.util.Date;
import java.util.List;

/**
 * 收票任务对象 biz_financial_receive_ticket
 *
 * @author ruoyi
 * @date 2023-11-17
 */
@Data
@TableName(value = "biz_financial_receive_ticket")
public class BizFinancialReceiveTicket extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 客户主键
     */
    @ApiModelProperty(value = "${comment}")
    private Long companyId;

    /**
     * 账套外键
     */
    @ApiModelProperty(value = "${comment}")
    private Long accountSetsId;

    /**
     * $column.columnComment
     */
    @ApiModelProperty(value = "${comment}")
    private Long tenantId;

    /**
     * 当前维护人员
     */
    @ApiModelProperty(value = "${comment}")
    private Long currentEmployeeId;

    /**
     * 全部维护人员
     */
    @ApiModelProperty(value = "${comment}")
    private String employeeIds;

    /**
     * 工单外键
     */
    @ApiModelProperty(value = "${comment}")
    private Long workOrderId;

    /**
     * 任务停止
     */
//    @Excel(name = "任务停止")
    @ApiModelProperty(value = "任务停止")
    private Integer isStop;

    @TableField(exist = false)
    private String keyword;

    /**
     * 列表显示新增
     */
    @Excel(name = "客户名称", sort = 1)
    @TableField(exist = false)
    private String companyName;

    @TableField(exist = false)
    @Excel(name = "来源", sort = 2)
    private String fromCompanyName;

    @Excel(name = "纳税性质", sort = 3)
    @TableField(exist = false)
    private String taxType;

    /**
     * 查询条件新增
     */
    @TableField(exist = false)
    private String year;
    @TableField(exist = false)
    private String month;

    @TableField(exist = false)
    private Integer status;

    @Excel(name = "当前状态", sort = 6)
    @TableField(exist = false)
    private String currentStatus;

    @TableField(exist = false)
    private List<BizFinancialReceiveTicketDetail> details;
    @TableField(exist = false)
    private Integer isZero;

    /**
     * 社会信用代码
     */
    @Excel(name = "税号", width = 30, sort = 4)
    @TableField(exist = false)
    private String socialCreditCode;

    @TableField(exist = false)
    @Excel(name = "查询期间", sort = 5)
    private String currentPeriod;

    //收入票
    @TableField(exist = false)
    private Integer hasIncomeTicket;

    //成本票
    @TableField(exist = false)
    private Integer hasCostTicket;

    //费用票
    @TableField(exist = false)
    private Integer feeTicket;

    //社保公积金
    @TableField(exist = false)
    private Integer hasSsafTicket;

    //工资表
    @TableField(exist = false)
    private Integer payroll;

    //银行回单
    @TableField(exist = false)
    private Integer bankSlips;

    //银行对账单
    @TableField(exist = false)
    private Integer bankCopy;

    //其他
    @TableField(exist = false)
    private Integer others;

    //总数
    @TableField(exist = false)
    @Excel(name = "票据总数", sort = 10)
    private Integer sumNumber;

    //送达方式
    @TableField(exist = false)
    private Integer saveStatus;

    //是否为自己负责(当前登陆人Id)
    @TableField(exist = false)
    private Long principal;

    //执行人
    @Excel(name = "执行人", sort = 7)
    @TableField(exist = false)
    private String serviceName;

    @TableField(exist = false)
    private String currentDate;

    @TableField(exist = false)
    private Long customerLabelId;
    @TableField(exist = false)
    private String customerLabelName;
    @Excel(name = "审核人", sort = 8)
    @TableField(exist = false)
    private String verifierName;
    @TableField(exist = false)
    @Excel(name = "审核时间", dateFormat = "yyyy-MM-dd",sort = 9)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private java.util.Date verifierTime;
    @TableField(exist = false)
    private Long finishUserId;
    @TableField(exist = false)
//    @Excel(name = "上传人", sort = 10)
    private String finishUserName;
    @TableField(exist = false)
    private List<String> dateFilter;

    @TableField(exist = false)
    private String toTenantName;
}
