690b013fdd045184588b907b2318b05c1a13b189.svn-base 3.56 KB
/**
 * Copyright © 2015-2018 ODM All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.entity.bus;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.thinkgem.jeesite.common.persistence.DataEntity;
import com.thinkgem.jeesite.common.utils.xml.JaxbDateAdapter;

/**
 * 审核信息维护Entity
 * @author xuyg
 * @version 2015-10-09
 */
@XmlRootElement(name="DJF_DJ_SH")
public class RegBusSh extends DataEntity<RegBusSh> {
	//xml QXDM="区县代码" 
	private static final long serialVersionUID = 1L;
	private String ywh;		// 业务号
	private String ysdm;		// 要素代码
	private String jdmc;		// 节点名称
	private Integer sxh;		// 顺序号
	private String shryxm;		// 审核人员姓名
	private Date shkssj;		// 审核开始时间
	private Date shjssj;		// 审核结束时间
	private String shyj;		// 审核意见
	private String czjg;		// 操作结果
	private String procInsId;		// proc_ins_id
	
	public RegBusSh() {
		super();
	}

	public RegBusSh(String id){
		super(id);
	}

	@XmlAttribute(name="YWH")
	@Length(min=0, max=20, message="业务号长度必须介于 0 和 20 之间")
	public String getYwh() {
		return ywh;
	}

	public void setYwh(String ywh) {
		this.ywh = ywh;
	}
	
	@XmlAttribute(name="YSDM")
	@Length(min=0, max=10, message="要素代码长度必须介于 0 和 10 之间")
	public String getYsdm() {
		return ysdm;
	}

	public void setYsdm(String ysdm) {
		this.ysdm = ysdm;
	}
	
	@XmlAttribute(name="JDMC")
	@Length(min=1, max=50, message="节点名称长度必须介于 1 和 50 之间")
	public String getJdmc() {
		return jdmc;
	}

	public void setJdmc(String jdmc) {
		this.jdmc = jdmc;
	}
	
	@XmlAttribute(name="SXH")
	@NotNull(message="顺序号不能为空")
	public Integer getSxh() {
		return sxh;
	}

	public void setSxh(Integer sxh) {
		this.sxh = sxh;
	}
	
	@XmlAttribute(name="SHRYXM")
	@Length(min=1, max=50, message="审核人员姓名长度必须介于 1 和 50 之间")
	public String getShryxm() {
		return shryxm;
	}

	public void setShryxm(String shryxm) {
		this.shryxm = shryxm;
	}
	

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="审核开始时间不能为空")
		@XmlAttribute(name="SHKSSJ")
	@XmlJavaTypeAdapter(JaxbDateAdapter.class)
	public Date getShkssj() {
		return shkssj;
	}

	public void setShkssj(Date shkssj) {
		this.shkssj = shkssj;
	}
	

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="审核结束时间不能为空")
		@XmlAttribute(name="SHJSSJ")
	@XmlJavaTypeAdapter(JaxbDateAdapter.class)
	public Date getShjssj() {
		return shjssj;
	}

	public void setShjssj(Date shjssj) {
		this.shjssj = shjssj;
	}
	
	@XmlAttribute(name="SHYJ")
	@Length(min=1, max=500, message="审核意见长度必须介于 1 和 500 之间")
	public String getShyj() {
		return shyj;
	}

	public void setShyj(String shyj) {
		this.shyj = shyj;
	}
	
	@XmlAttribute(name="CZJG")
	@Length(min=0, max=2, message="操作结果长度必须介于 0 和 2 之间")
	public String getCzjg() {
		return czjg;
	}

	public void setCzjg(String czjg) {
		this.czjg = czjg;
	}
	
	@XmlTransient
	@Length(min=0, max=64, message="proc_ins_id长度必须介于 0 和 64 之间")
	public String getProcInsId() {
		return procInsId;
	}

	public void setProcInsId(String procInsId) {
		this.procInsId = procInsId;
	}
	
}