package com.yeejoin.amos.boot.module.ymt.api.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import org.typroject.tyboot.core.rdbms.orm.entity.BaseEntity;

/**
 * 单位许可信息表
 *
 * @author duanwei
 * @date 2022-08-31
 */
@Data
@Accessors(chain = true)
@TableName("tz_base_unit_licence")
@ApiModel(value="TzBaseUnitLicence对象", description="单位许可信息表")
public class TzBaseUnitLicence extends BaseEntity {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "单位编码")
    private String unitCode;

    @ApiModelProperty(value = "单位名称")
    private String unitName;

    @ApiModelProperty(value = "许可地址")
    private String licAddress;

    @ApiModelProperty(value = "证书类型")
    private String certType;

    @ApiModelProperty(value = "证书类型code")
    private String certTypeCode;

    @ApiModelProperty(value = "证书编号")
    private String certNo;

    @ApiModelProperty(value = "有效期至")
    private Date expiryDate;

    @ApiModelProperty(value = "发证日期")
    private Date issueDate;

    @ApiModelProperty(value = "发证机关")
    private String approvedOrgan;

    @ApiModelProperty(value = "发证机关code")
    private String approvedOrganCode;

    @ApiModelProperty(value = "变更日期")
    private Date changeDate;

    @ApiModelProperty(value = "许可方式/许可状态")
    private String applyType;

    @ApiModelProperty(value = "许可方式/许可状态code")
    private String applyTypeCode;

    @ApiModelProperty(value = "许可评审方式")
    private String appraisalType;

    @ApiModelProperty(value = "许可评审方式code")
    private String appraisalTypeCode;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "许可项目/检验类型/设备品种编码")
    private String itemCode;

    @ApiModelProperty(value = "许可项目/检验类型/设备品种")
    private String itemCodeName;

    @ApiModelProperty(value = "许可子项目/检验项目/充装介质类别code")
    private String subItemCode;

    @ApiModelProperty(value = "许可子项目/检验项目/充装介质类别")
    private String subItemName;

    @ApiModelProperty(value = "许可参数/充装介质名称")
    private String parameter;

    @ApiModelProperty(value = "参数code")
    private String parameterCode;

    @ApiModelProperty(value = "固定检验地址")
    private String itemAddress;

    @ApiModelProperty(value = "更新人名称")
    private String recUserName;

    @ApiModelProperty(value = "是否删除（0：未删除，1：已删除）")
    private Boolean isDelete;

    @ApiModelProperty(value = "机构类别枚举")
    private String agencyType;

    @ApiModelProperty(value = "机构类别枚举名称，冗余")
    private String agencyTypeName;

    @ApiModelProperty(value = "资质类型编码（检验检测、其他）")
    private String licenceType;


    /**
     * 所属证书
     */
    @TableField("enterprise_cert_seq")
    private String enterpriseCertSeq;



    /**
     * 字典表id
     */
    @TableField("dict_seq")
    private Long dictSeq;

    /**
     * 企业资质证书照片
     */
    @TableField("qualification_certificate_attachment")
    private String qualificationCertificateAttachment;

    /**
     *  企业资质状态：报检预留字段，如启用、停用、超期等
     */
    @TableField("licence_state")
    private Integer licenceState;
}
