package abacus.springboot.example.dao;

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

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Version;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import io.swagger.v3.oas.annotations.media.Schema;

@Entity
@Table(name = "jc_bill_photo")
@JsonIgnoreProperties(ignoreUnknown = true) 
@Schema(description = "稽查图片")
public class JcBillPhoto implements Serializable {
	
	private static final long serialVersionUID = -5561468051239492839L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Schema(description = "自增长编码", required = true, example = "10")
	private Long id;
	
	@Version
	@Schema(description = "版本号", required = true, example = "1")
	private Integer version;

	@Schema(description = "来源单号", required = true, example = "1")
	private String srcid;
	
	@Schema(description = "来源明细", required = true, example = "1")
	private String srcitemid;
	
	@Schema(description = "图片类型", required = true, pattern="稽查付款截图,稽查货品图,回购通知函,回购违规通知函,回购支付凭证", example = "1")
	private String typephoto;
	public final static String JC_FK = "稽查付款截图";
	public final static String JC_HP = "稽查货品图";
	public final static String HG_TZH = "回购通知函";
	public final static String HG_WGTZH = "回购违规通知函"; 
	public final static String HG_ZFPZ = "回购支付凭证";
	
	@Schema(description = "url地址", required = true, example = "1")
	private String urlphoto;
	
	@Schema(description = "时间戳", required = true, example = "1")
	private Date dt = new Date();

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}

	public String getSrcid() {
		return srcid;
	}

	public void setSrcid(String srcid) {
		this.srcid = srcid;
	}

	public String getSrcitemid() {
		return srcitemid;
	}

	public void setSrcitemid(String srcitemid) {
		this.srcitemid = srcitemid;
	}

	public String getTypephoto() {
		return typephoto;
	}

	public void setTypephoto(String typephoto) {
		this.typephoto = typephoto;
	}

	public String getUrlphoto() {
		return urlphoto;
	}

	public void setUrlphoto(String urlphoto) {
		this.urlphoto = urlphoto;
	}

	public Date getDt() {
		return dt;
	}

	public void setDt(Date dt) {
		this.dt = dt;
	}
}











