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

import com.baomidou.mybatisplus.annotation.FieldFill;
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.sql.Date;
import java.util.List;

/**
 * 企业租户对象 biz_entrust_examine
 *
 * @author ruoyi
 * @date 2024-09-10
 */
@Data
@TableName(value = "biz_entrust_examine")
public class BizEntrustExamine extends BaseEntity {
    private static final long serialVersionUID = 1L;

    private Long workOrderId;


    private Long entrustId;

    private Long companyId;

    @ApiModelProperty(value = "${comment}")
    private Long taskTypeId;

    /**
     * 所属期
     */
    @Excel(name = "所属期",sort = 4)
    private String currentPeriod;

    /**
     * 委托来源
     */
    @ApiModelProperty(value = "委托来源")
    @Excel(name = "委托来源",sort = 5)
    private Long entrustCome;

    /**
     * 取消理由
     */
    @ApiModelProperty(value = "取消理由")
    @Excel(name = "取消理由",sort = 6)
    private String cancelReason;

    /**
     * 1同意 2拒绝
     */
    @Excel(name = "状态",sort = 7,readConverterExp = "0=待确认,1=已同意,2=已拒绝")
    private Integer status;

    /**
     * 租户外键
     */
    @ApiModelProperty(value = "1同意 2拒绝")
    private Long tenantId;

    private String refuseReason;

    @TableField(exist = false)
    private List<Long> workOrderIds;

    @TableField(exist = false)
    private Date workMonth;

    @TableField(exist = false)
    private String fromTenant;

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

    @TableField(exist = false)
    @Excel(name = "项目",sort = 3)
    private String taskName;

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

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @Excel(name = "提交时间",sort = 5,dateFormat = "yyyy-MM-dd HH:mm")
    private java.util.Date createTime;

    private Integer nextFlag;
    @TableField(exist = false)
    private List<String> dateFilter;

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