e21c079577e1e48656cce8120d303d48c5d0d69a.svn-base 6.09 KB
/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.reg.entity.updata;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;

import org.hibernate.validator.constraints.Length;

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 2016-08-10
 */
@XmlRootElement(name="Head")
public class RegBusSjhjtable extends DataEntity<RegBusSjhjtable> {
	
	private static final long serialVersionUID = 1L;
	private String bizmsgid;		// 业务报文
	private String asid;		// 接入标准ID
	private String areacode;		// 行政区划编码
	private String rectype;		// 业务编码
	private String righttype;		// 权利类型
	private String regtype;		// 登记类型
	private Date createdate;		// 创建时间
	private String recflowid;		// 业务流水号
	private String regorgid;		// 登记机构
	private String parcelid;		// 宗地/宗海代码
	private String estatenum;		// 不动产单元号
	private String preestatenum;		// 上次不动产单元号
	private String precertid;		// 上次不动产权证号/不动产登记证明号
	private String certcount;		// 不动产权证号码数量
	private String proofcount;		// 证明号码数量
	private String digitalsign;		// 数字签名
	private String issuccess;       //成功标识(0接入成功,1接入失败)
	private String exption;       //校验规则错误信息
	
	public RegBusSjhjtable() {
		super();
	}

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

	public String getExption() {
		return exption;
	}

	public void setExption(String exption) {
		this.exption = exption;
	}

	@XmlElement(name="BizMsgID")
	@Length(min=1, max=22, message="业务报文长度必须介于 1 和 22 之间")
	public String getBizmsgid() {
		return bizmsgid;
	}

	public void setBizmsgid(String bizmsgid) {
		this.bizmsgid = bizmsgid;
	}
	
	@XmlElement(name="ASID")
	@Length(min=1, max=5, message="接入标准ID长度必须介于 1 和 5 之间")
	public String getAsid() {
		return asid;
	}

	public void setAsid(String asid) {
		this.asid = asid;
	}
	
	@XmlElement(name="AreaCode")
	@Length(min=1, max=12, message="行政区划编码长度必须介于 1 和 12 之间")
	public String getAreacode() {
		return areacode;
	}

	public void setAreacode(String areacode) {
		this.areacode = areacode;
	}
	
	@XmlElement(name="RecType")
	@Length(min=1, max=5, message="业务编码长度必须介于 1 和 5 之间")
	public String getRectype() {
		return rectype;
	}

	public void setRectype(String rectype) {
		this.rectype = rectype;
	}
	
	@XmlElement(name="RightType")
	@Length(min=1, max=2, message="权利类型长度必须介于 1 和 2 之间")
	public String getRighttype() {
		return righttype;
	}

	public void setRighttype(String righttype) {
		this.righttype = righttype;
	}
	
	@XmlElement(name="RegType")
	@Length(min=1, max=8, message="登记类型长度必须介于 1 和 8 之间")
	public String getRegtype() {
		return regtype;
	}

	public void setRegtype(String regtype) {
		this.regtype = regtype;
	}
	
	@XmlElement(name="CreateDate")
	//@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@NotNull(message="创建时间不能为空")
	//@XmlJavaTypeAdapter(JaxbDateAdapter.class)
	public Date getCreatedate() {
		return createdate;
	}

	public void setCreatedate(Date createdate) {
		this.createdate = createdate;
	}
	
	@XmlElement(name="RecFlowID")
	@Length(min=1, max=50, message="业务流水号长度必须介于 1 和 50 之间")
	public String getRecflowid() {
		return recflowid;
	}

	public void setRecflowid(String recflowid) {
		this.recflowid = recflowid;
	}
	
	@XmlElement(name="RegOrgID")
	@Length(min=1, max=200, message="登记机构长度必须介于 1 和 200 之间")
	public String getRegorgid() {
		return regorgid;
	}

	public void setRegorgid(String regorgid) {
		this.regorgid = regorgid;
	}
	
	@XmlElement(name="ParcelID")
	@Length(min=1, max=50, message="宗地/宗海代码长度必须介于 1 和 50 之间")
	public String getParcelid() {
		return parcelid;
	}

	public void setParcelid(String parcelid) {
		this.parcelid = parcelid;
	}
	
	@XmlElement(name="EstateNum")
	@Length(min=1, max=28, message="不动产单元号长度必须介于 1 和 28 之间")
	public String getEstatenum() {
		return estatenum;
	}

	public void setEstatenum(String estatenum) {
		this.estatenum = estatenum;
	}
	
	@XmlElement(name="PreEstateNum")
	@Length(min=1, max=255, message="上次不动产单元号长度必须介于 1 和 255 之间")
	public String getPreestatenum() {
		return preestatenum;
	}

	public void setPreestatenum(String preestatenum) {
		this.preestatenum = preestatenum;
	}
	
	@XmlElement(name="PreCertID")
	@Length(min=1, max=255, message="上次不动产权证号/不动产登记证明号长度必须介于 1 和 255 之间")
	public String getPrecertid() {
		return precertid;
	}

	public void setPrecertid(String precertid) {
		this.precertid = precertid;
	}
	
	@XmlElement(name="CertCount")
	@Length(min=1, max=3, message="不动产权证号码数量长度必须介于 1 和 3 之间")
	public String getCertcount() {
		return certcount;
	}

	public void setCertcount(String certcount) {
		this.certcount = certcount;
	}
	
	@XmlElement(name="ProofCount")
	@Length(min=1, max=3, message="证明号码数量长度必须介于 1 和 3 之间")
	public String getProofcount() {
		return proofcount;
	}

	public void setProofcount(String proofcount) {
		this.proofcount = proofcount;
	}
	
	@XmlElement(name="DigitalSign")
	@Length(min=1, max=255, message="数字签名长度必须介于 1 和 255 之间")
	public String getDigitalsign() {
		return digitalsign;
	}

	public void setDigitalsign(String digitalsign) {
		this.digitalsign = digitalsign;
	}

	public String getIssuccess() {
		return issuccess;
	}

	public void setIssuccess(String issuccess) {
		this.issuccess = issuccess;
	}
	
}