package cn.ezhizao.project.business.salary.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 lombok.ToString;

import javax.validation.constraints.Pattern;
import java.security.Timestamp;
import java.util.Date;
import java.util.List;

/**
 * 工资对象 biz_financial_salary
 *
 * @author ruoyi
 * @date 2023-11-16
 */
@Data
@ToString
@TableName(value = "biz_financial_salary")
public class BizFinancialSalary 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;

    @TableField(exist = false)
    private Timestamp currentTime;

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

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

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

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

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

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

    @TableField(exist = false)
    private List<BizFinancialSalaryDetail> details;

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

    @TableField(exist = false)
    private String month;

    @TableField(exist = false)
    private Integer status;

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

    @TableField(exist = false)
    private Integer hasIndividualIncomeTax;

    @TableField(exist = false)
    private Integer isZero;

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

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

    /**
     * 审核人
     */
    @ApiModelProperty(value = "审核人")
    @TableField(exist = false)
    private Long verifierId;
    @TableField(exist = false)
    @Excel(name = "审核人", sort = 8)
    private String verifierName;
    @Excel(name = "审核时间", dateFormat = "yyyy-MM-dd",sort = 9)
    @TableField(exist = false)
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date verifierTime;
    @TableField(exist = false)
    private List<String> dateFilter;

    @TableField(exist = false)
    private String toTenantName;

}
