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

import cn.ezhizao.framework.aspectj.lang.annotation.Excel;
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.util.List;

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

    @ApiModelProperty(value = "账套外键")
    private Integer accountSetsId;

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

    @ApiModelProperty(value = "当前维护人员")
    private Long currentEmployeeId;

    //税号
    @TableField(exist = false)
    @Excel(name = "税号",sort = 4)
    private String socialCreditCode;

    @ApiModelProperty(value = "全部维护人员")
    private String employeeIds;

    @Excel(name = "客户名称",sort = 1)
    @TableField(exist = false)
    private String companyName;
    @TableField(exist = false)
    private String companyLevel;
    @TableField(exist = false)
    private String currentDate;
    @TableField(exist = false)
    private String checkoutDate;

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

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

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

    @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;

    @TableField(exist = false)
    private String keyword;

//    @TableField(exist = false)
    private Long workOrderId;

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

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

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

    @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 List<String> dateFilter;

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