package com.prolog.rdc.tms.model.entity.line;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.prolog.framework.core.annotation.Column;
import com.prolog.framework.core.annotation.Id;
import com.prolog.framework.core.annotation.Table;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 
 *
 * 送货员证件关联表
 *
 * @className :TmsDeliverymanPaperLinkModel
 * @author :fanzw
 * @creationTime :2022/03/16
 * @description :
 *
 * @modifier :fanzw
 * @modifyTime :2022/03/16
 * @reviseRemarks:
 *
 * @version :1.0.0
 *
 */
@Data
@Table("tms_deliveryman_paper_link")
public class TmsDeliverymanPaperLink implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@ApiModelProperty(value = "主键ID")
	@Column(value = "lineid")
	private String lineid;

	@ApiModelProperty(value = "送货员ID")
	@Column(value = "deliveryman_id")
	private Long deliverymanId;

	@ApiModelProperty(value = "送货员编号")
	@Column(value = "deliveryman_code")
	private String deliverymanCode;

	@ApiModelProperty(value = "送货员名称")
	@Column(value = "deliveryman_name")
	private String deliverymanName;

	@ApiModelProperty(value = "证件ID")
	@Column(value = "paper_id")
	private Long paperId;

	@ApiModelProperty(value = "证件编码")
	@Column(value = "paper_code")
	private String paperCode;

	@ApiModelProperty(value = "证件对象类型 数据字典PAPER_OBJECT:1.司机 2.送货员 3.车辆 ")
	@Column(value = "paper_object_type")
	private Integer paperObjectType;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "创建时间")
	@Column(value = "createtime")
	private Date createtime;

	@ApiModelProperty(value = "创建人")
	@Column(value = "createperson")
	private String createperson;

	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
	@ApiModelProperty(value = "修改时间")
	@Column(value = "updatetime")
	private Date updatetime;

	@ApiModelProperty(value = "修改人")
	@Column(value = "updateperson")
	private String updateperson;

}
