package com.zfire.jiasm.syncdata.plus.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 合同模版
 * </p>
 *
 * @author gejiang
 * @since 2023-07-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ContractTemplate对象", description="合同模版")
public class ContractTemplate extends Model<ContractTemplate> {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "合同模版id")
    @TableId(value = "contract_template_id", type = IdType.ID_WORKER_STR)
    private String contractTemplateId;

    @ApiModelProperty(value = "模版名称")
    private String contractTemplateName;

    @ApiModelProperty(value = "模版路径")
    private String contractTemplatePdf;

    @ApiModelProperty(value = "模版图片路径")
    private String contractTemplateImg;

    @ApiModelProperty(value = "状态 ON=有效 OFF=无效")
    private String status;

    @ApiModelProperty(value = "生效日期")
    private Date validDate;

    @ApiModelProperty(value = "过期日期")
    private Date expireDate;

    @ApiModelProperty(value = "签署人 WORKER=工程师 WEBSIT=服务商网点")
    private String signObj;

    @ApiModelProperty(value = "合同类型 MAIN=主合同 FOLLOW=附合同")
    private String contractType;

    @ApiModelProperty(value = "类型 HOME=家用 COMMERCIAL=商用")
    private String categoryType;

    @ApiModelProperty(value = "所有主合同都适用 MAIN=主合同 FOLLOW=附合同")
    private String mainContractUse;

    @ApiModelProperty(value = "附件所属主合同id")
    private String followContractTemplateId;

    @ApiModelProperty(value = "所属服务商id")
    private String websitId;

    @ApiModelProperty(value = "网点名称")
    private String websitName;

    @ApiModelProperty(value = "附件类型")
    private String followType;

    @ApiModelProperty(value = "法大大模板编号")
    private String fadadaTemplateId;

    @ApiModelProperty(value = "创建人")
    @TableField(fill = FieldFill.INSERT)
    private String createBy;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "更新人")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private String updateBy;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    @Override
    protected Serializable pkVal() {
        return this.contractTemplateId;
    }

}
