package com.zd.airbottle.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.zd.common.core.annotation.Excel;
import com.zd.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * 运输车辆证件对象 qp_transport_car_credentials
 * 
 * @author zd
 * @date 2022-05-12
 */
@ApiModel("运输车辆证件")
@Data
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = false)
public class QpTransportCarCredentials extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id,数据唯一标识 */
    @ApiModelProperty(value = "${comment}")
    private Long id;
    /**
     * 资质配置ID
     */
    @ApiModelProperty(value = "资质配置ID")
    private Long certificateId;
    /** 资质名称 */
    @ApiModelProperty(value = "资质名称")
    private String naturalName;
    /** 资质地址 */
    @Excel(name = "资质地址")
    @Length(message = "资质地址长度不能超过500")
    @ApiModelProperty(value = "资质地址")
    private String naturalUrl;
    /** 有效期开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期开始时间")
    private Date startTime;
    /** 有效期结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "有效期结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "有效期结束时间")
    private Date endTime;
    /** 车辆id */
    @Excel(name = "车辆id")
    @ApiModelProperty(value = "车辆id")
    private Long transportCarId;

}
