当前位置 : 主页 > 编程语言 > c++ >

使用java 自带类jaxb 解析xml

来源:互联网 收集:自由互联 发布时间:2021-07-03
核心函数 /** * 获取更新的数据(接口调用返回xml数据) * * @param response * @param json * @throws Exception */@RequestMapping(value = "getChangeData", consumes = "application/json;charset=UTF-8", method = {RequestMethod.
核心函数
/**
	 * 获取更新的数据(接口调用返回xml数据)
	 * 
	 * @param response
	 * @param json
	 * @throws Exception
	 */
	@RequestMapping(value = "getChangeData", consumes = "application/json;charset=UTF-8", method = {
			RequestMethod.GET, RequestMethod.POST })
	public void getChangeData(HttpServletResponse response,
			@RequestBody GetLegalInfoRequestJson json) throws Exception {
		/** 分页 */
		PageConfig pageConfig = new PageConfig();
		pageConfig.setPageSize(1);
		log.info("RequestParam:" + json.toString());
		try {
			if (json.getVersion() == null || json.getVersion().isEmpty()
					|| json.getEndVersion() == null
					|| json.getEndVersion().isEmpty()) {
				Element error = DocumentHelper.createElement("ERROR");
				error.setText("参数为空或缺少参数");
				response.getWriter().write(error.asXML());
				return;
			}
			if (Long.parseLong(json.getVersion()) >= Long.parseLong(json
					.getEndVersion())) {
				logger.info("parameter errors---- 参数错误,请输入正确的参数");
				Element error = DocumentHelper.createElement("ERROR");
				error.setText("开始参数大于或等于结束参数请改正");
				response.getWriter().write(error.asXML());
				return;
			}
		} catch (Exception e1) {
			logger.error("Please enter the correct parameters, parameter conversion errors----请输入正确参数,参数转换错误");
			Element error = DocumentHelper.createElement("ERROR");
			error.setText("参数错误");
			response.getWriter().write(error.asXML());
			return;
		}
		try {
			String clientId = json.getClientId();
			VersionManage versionManage = new VersionManage(); // 版本监控
			DataExchangeMonitor entity = new DataExchangeMonitor(); // 交换监控
			// 判断是市场主体还是信用
			if (BaseController.BUSINESS_G11.equals(json.getBusinessName())) {
				response.getWriter().write("
 
  ");
				// 输出法人变更信息
				writeSJLegalBase(pageConfig, json.getClientId(),
						json.getVersion(), json.getEndVersion(), response);
				// 输出自然人变更信息
				writeSJNPBase(json.getClientId(), json.getVersion(),
						json.getEndVersion(), response);
				response.getWriter().write("
 ");

				// 更新监控记录表的版本号(市场主体)
				versionManage.setData_type(1); // 类型
				entity.setData_type(1);

				// 更新监控市场记录表的版本号
				try {
					pageConfig.setPageNum(8);
					List
 
   lists = versionManageService.getVerList(
							versionManage, pageConfig); // 获取最高版本号
					entity.setSubsystem_last_version(json.getEndVersion()); // 获取最后的版本号
					entity.setSubsystem_number(clientId);
					entity.setExchange_monitor_id("1"); // 数据监控id
					entity.setLast_exchange_time(new Date());
					entity.setVersion(String.valueOf(lists.get(0)));
					dataExchangeMonitorService.update(entity); // 更新交换监控
					logger.info("successful sava data Market_Subject----市场记录表的数据监控成功更新数据=最高版本号"
							+ String.valueOf(lists.get(0))
							+ "最后版本号"
							+ json.getEndVersion() + "时间" + new Date());

				} catch (Exception ve) {
					logger.error("Data monitoring failure---- 市场记录表的数据监控更新失败");
					ve.printStackTrace();
				}

			} else if (BaseController.BUSINESS_G14.equals(json
					.getBusinessName())) {
				// 输出信用变更信息
				response.getWriter().write("
  
   "); writeCRCreditBase(json.getClientId(), json.getVersion(), json.getEndVersion(), response); response.getWriter().write("
  ");

				// 更新监控记录表的版本号
				versionManage.setData_type(2);
				entity.setData_type(2);

				// 更新监控记录表的版本号
				try {
					pageConfig.setPageNum(8);
					List
  
    list = versionManageService.getVerList( versionManage, pageConfig);// 获取最高版本号 entity.setSubsystem_last_version(json.getEndVersion()); // 版本号 entity.setSubsystem_number(clientId); entity.setExchange_monitor_id("2"); // 数据监控id entity.setLast_exchange_time(new Date()); entity.setVersion(String.valueOf(list.get(0))); dataExchangeMonitorService.update(entity); // 更新交换监控 logger.info("successful sava data Credit--信用数据监控成功更新数据=最高版本号" + String.valueOf(list.get(0)) + "最后版本号" + json.getEndVersion() + "时间" + new Date()); } catch (Exception ve) { logger.error("Data monitoring failure---- 信用数据监控更新失败"); ve.printStackTrace(); } } else { logger.info("There is no corresponding business types---没有对应的业务类型"); Element error = DocumentHelper.createElement("ERROR"); error.setText("没有对应业务类型"); response.getWriter().write(error.asXML()); } } catch (Exception e) { logger.error("System error----系统错误"); Element error = DocumentHelper.createElement("ERROR"); error.setText("系统错误,请稍候再试或联系厂家处理"); response.getWriter().write(error.asXML()); e.printStackTrace(); } response.getWriter().flush(); response.getWriter().close(); } /** *输出自然人变更信息 */ private void writeSJLegalBase(PageConfig pageConfig, String clientId, String version, String endVersion, HttpServletResponse response) throws Exception { int rowCount = Integer.MAX_VALUE; // 法人基本信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
   
     objs = marketSubjectService.getG11_1_1( pageConfig, version, endVersion); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (SJLegalBase bean : objs) { String xml = this.object2Xml(bean); //把bean转换为xml Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); //获取根 //if (StringUtils.isNotEmpty(bean.getId())) { //不以getId 为判断 if (StringUtils.isNotEmpty(bean.getLEGAL_CODE())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } PageConfig subPageConfig = new PageConfig(); subPageConfig.setPageSize(pageSize); /** 法人基本扩展信息 */ // 招标人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
    
      subObjs = marketSubjectService .getG11_1_2(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJTendereeExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); //往根追加 } } else { break; } } // 资质扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); StringBuffer stringBuffer = new StringBuffer(); List
     
       subjectQualList = marketSubjectService .getSubjectQualList(subPageConfig, clientId, bean.getId()); if (subjectQualList != null && subjectQualList.size() > 0) { stringBuffer.append("
      
       "); for (SubjectQual subjectQual : subjectQualList) { stringBuffer.append(subjectQual.toXml()); } stringBuffer.append("
      "); Document document = DocumentHelper.parseText(stringBuffer.toString()); root.add(document.getRootElement()); } else { break; } } // 招标代理机构扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
      
        subObjs = marketSubjectService .getG11_1_3(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJTenderingAgencyExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 投标人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
       
         subObjs = marketSubjectService .getG11_1_4(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJTendererExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 采购人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
        
          subObjs = marketSubjectService .getG11_1_5(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJPurchaserExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 采购代理机构扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
         
           subObjs = marketSubjectService .getG11_1_6(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJPurchasingAgentExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 供应商扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
          
            subObjs = marketSubjectService .getG11_1_7(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJProviderExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 出让人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
           
             subObjs = marketSubjectService .getG11_1_8(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJTransferorExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 受让人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
            
              subObjs = marketSubjectService .getG11_1_9(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJReceiverExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 竞得人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
             
               subObjs = marketSubjectService .getG11_1_10(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJGetterExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 执业人员基本信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
              
                subObjs = marketSubjectService .getG11_1_13(subPageConfig, clientId, bean.getLEGAL_CODE()); if (subObjs != null && subObjs.size() > 0) { for (SJPractitionersBase subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); Element practitionersRoot = ele .getRootElement(); PageConfig practitionersPageConfig = new PageConfig(); practitionersPageConfig.setPageSize(pageSize); // 执业人员资格信息 for (int k = 1; true; k++) { practitionersPageConfig.setPageNum(k); List
               
                 qualObjs = marketSubjectService .getG11_1_14( practitionersPageConfig, clientId, bean.getLEGAL_CODE()); if (qualObjs != null && qualObjs.size() > 0) { for (SJPractitionersQual qualBean : qualObjs) { Document qualEle = DocumentHelper .parseText(this .object2Xml(qualBean)); practitionersRoot.add(qualEle .getRootElement()); } } else { break; } } root.add(practitionersRoot); } } else { break; } } response.getWriter().write(root.asXML()); } } else { break; } } } private void writeSJNPBase(String clientId, String version, String endVersion, HttpServletResponse response) throws Exception { PageConfig pageConfig = new PageConfig(); pageConfig.setPageSize(1); int rowCount = Integer.MAX_VALUE; // 自然人基本信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                
                  objs = marketSubjectService.getG11_2_1( pageConfig, clientId, version, endVersion); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (SJNaturalPersonBase bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } PageConfig subPageConfig = new PageConfig(); subPageConfig.setPageSize(pageSize); /** 法人基本扩展信息 */ // 供应商扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
                 
                   subObjs = marketSubjectService .getG11_2_2(subPageConfig, clientId, bean.getID_CARD()); if (subObjs != null && subObjs.size() > 0) { for (SJNaturalPersonProviderExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 受让人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
                  
                    subObjs = marketSubjectService .getG11_2_3(subPageConfig, clientId, bean.getID_CARD()); if (subObjs != null && subObjs.size() > 0) { for (SJNaturalPersonReceiverExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } // 竞得人扩展信息 for (int j = 1; true; j++) { subPageConfig.setPageNum(j); List
                   
                     subObjs = marketSubjectService .getG11_2_4(subPageConfig, clientId, bean.getID_CARD()); if (subObjs != null && subObjs.size() > 0) { for (SJNaturalPersonGetterExtend subBean : subObjs) { Document ele = DocumentHelper.parseText(this .object2Xml(subBean)); root.add(ele.getRootElement()); } } else { break; } } response.getWriter().write(root.asXML()); } } else { break; } } } private void writeCRCreditBase(String clientId, String version, String endVersino, HttpServletResponse response) throws Exception { PageConfig pageConfig = new PageConfig(); pageConfig.setPageSize(1); int rowCount = Integer.MAX_VALUE; // 违法违规信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                    
                      objs = creditService.getG14_1(pageConfig, clientId, version, endVersino); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (CRIrregularityInfo bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } response.getWriter().write(root.asXML()); } } else { break; } } rowCount = Integer.MAX_VALUE; // 黑名单信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                     
                       objs = creditService.getG14_3(pageConfig, clientId, version, endVersino); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (CRBlacklistInfo bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } response.getWriter().write(root.asXML()); } } else { break; } } rowCount = Integer.MAX_VALUE; // 撤销黑名单信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                      
                        objs = creditService.getG14_4( pageConfig, clientId, version, endVersino); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (CRCancelBlacklistInfo bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } response.getWriter().write(root.asXML()); } } else { break; } } rowCount = Integer.MAX_VALUE; // 奖励信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                       
                         objs = creditService.getG14_5(pageConfig, clientId, version, endVersino); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (CRRewardInfo bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } response.getWriter().write(root.asXML()); } } else { break; } } rowCount = Integer.MAX_VALUE; // 履约信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                        
                          objs = creditService.getG14_6(pageConfig, clientId, version, endVersino); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (CRPerformInfo bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } response.getWriter().write(root.asXML()); } } else { break; } } rowCount = Integer.MAX_VALUE; // 社会信用信息 for (int i = 1; rowCount >= pageConfig.getPageSize(); i++) { pageConfig.setPageNum(i); List
                         
                           objs = creditService.getG14_7(pageConfig, clientId, version, endVersino); if (objs != null && objs.size() > 0) { rowCount = objs.size(); for (CRCreditInfo bean : objs) { String xml = this.object2Xml(bean); Document dom = DocumentHelper.parseText(xml); Element root = dom.getRootElement(); if (StringUtils.isNotEmpty(bean.getId())) { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("UPDATE"); } else { Element modify = root.addElement("MODIFY_TYPE"); modify.setText("DELETE"); } response.getWriter().write(root.asXML()); } } else { break; } }
                         
                        
                       
                      
                     
                    
                   
                  
                 
                
               
              
             
            
           
          
         
        
       
      
     
    
   
  
 
bean转xml工具类
/**
 *  对象转xml  应放在基础类中
 *
 */
public static String object2Xml(Object object) { 
        try {   
            StringWriter writer = new StringWriter();
            JAXBContext context = JAXBContext.newInstance(object.getClass()); 
            Marshaller  marshal = context.createMarshaller();
             
            marshal.setProperty(Marshaller.JAXB_FORMATTED_OUTPUT, true); // 格式化输出 
            marshal.setProperty(Marshaller.JAXB_ENCODING, "UTF-8");// 编码格式,默认为utf-8 
            marshal.setProperty(Marshaller.JAXB_FRAGMENT, true);// 是否省略xml头信息 
            marshal.setProperty("jaxb.encoding", "utf-8"); 
            marshal.marshal(object,writer);
             
            return new String(writer.getBuffer());
             
        } catch (Exception e) { e.printStackTrace(); return null;}    
         
    }
实体类(与xml转换工具类和核心函数相关联)
//
// 此文件是由 JavaTM Architecture for XML Binding (JAXB) 引用实现 v2.2.8-b130911.1802 生成的
// 请访问 http://java.sun.com/xml/jaxb 
// 在重新编译源模式时, 对此文件的所有修改都将丢失。
// 生成时间: 2016.07.19 时间 03:48:39 PM CST 
//

import com.fasterxml.jackson.annotation.*;
import org.hibernate.annotations.GenericGenerator;
import org.hibernate.annotations.Parameter;
import org.hibernate.annotations.Type;

import javax.persistence.*;
import javax.xml.bind.annotation.*;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;


/**
 * 

anonymous complex type的 Java 类。 *

*

以下模式片段指定包含在此类中的预期内容。 *

*

 * <complexType>
 *   <complexContent>
 *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
 *       <sequence>
 *         <element name="LEGAL_NAME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="BIDDER_CODE_TYPE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_ROLE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LICENSE_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LICENSE_END_DATE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="TAX_CERT_NO" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="TAX_CERT_END_DATE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LOCAL_TAX_CERT_NO" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LOCAL_TAX_CERT_END_DATE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ORGAN_NO" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="ORGAN_CERT_END_DATE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LEGAL_REPRESENT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_TYPE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="REPRESENT_PHONE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LEGAL_INDUSTRY" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="CREDIT_RATE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="COUNTRY_REGION" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_UNIT_ADDRESS" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="REGION_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="REGISTER_PROVINCE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="REGISTER_CITY" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="REGISTER_TIME" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="BASIC_BANK" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="BASIC_BRANCH_BANK" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="BASIC_ACCOUNT_NO" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="BASIC_ACCOUNT_NAME" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="REG_CAPITAL" type="{http://www.w3.org/2001/XMLSchema}decimal"/>
 *         <element name="REG_CAP_CURRENCY" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="REG_UNIT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_CONTACT" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_CONTACT_PHONE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="LEGAL_CONTACT_ADDRESS" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LEGAL_WEB" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LEGAL_ZIP_CODE" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LEGAL_EMAIL" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
 *         <element name="LEGAL_STATUS" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="ATTACHMENT_SET_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="PLATFORM_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="PUB_SERVICE_PLAT_CODE" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *         <element name="DATA_TIMESTAMP" type="{http://www.w3.org/2001/XMLSchema}string"/>
 *       </sequence>
 *     </restriction>
 *   </complexContent>
 * </complexType>
 * 
*/ @XmlAccessorType(XmlAccessType.FIELD) @XmlType(name = "", propOrder = { "SRC_CITY_ID", "SYS_ID", "STATUS", "CREATE_STAFF", "CREATE_DATE", "MOD_STAFF", "MOD_DATE", "COL_EX1", "COL_EX2", "COL_EX3", "LEGAL_NAME", "BIDDER_CODE_TYPE", "LEGAL_CODE", "LEGAL_ROLE", "LICENSE_NO", "LICENSE_END_DATE", "TAX_CERT_NO", "TAX_CERT_END_DATE", "LOCAL_TAX_CERT_NO", "LOCAL_TAX_CERT_END_DATE", "ORGAN_NO", "ORGAN_CERT_END_DATE", "LEGAL_REPRESENT", "LEGAL_TYPE", "REPRESENT_PHONE", "LEGAL_INDUSTRY", "CREDIT_RATE", "COUNTRY_REGION", "LEGAL_UNIT_ADDRESS", "REGION_CODE", "REGISTER_PROVINCE", "REGISTER_CITY", "REGISTER_TIME", "BASIC_BANK", "BASIC_BRANCH_BANK", "BASIC_ACCOUNT_NO", "BASIC_ACCOUNT_NAME", "REG_CAPITAL", "REG_CAP_CURRENCY", "REG_UNIT", "LEGAL_CONTACT", "LEGAL_CONTACT_PHONE", "LEGAL_CONTACT_ADDRESS", "LEGAL_WEB", "LEGAL_ZIP_CODE", "LEGAL_EMAIL", "LEGAL_STATUS", "ATTACHMENT_SET_CODE", "PLATFORM_CODE", "PUB_SERVICE_PLAT_CODE", "DATA_TIMESTAMP", "IS_DEL", "subjectRoles" }) //法人基本信息 G11_1_1 @Entity @Table(name = "T_G_SJ_LEGAL_BASE") @XmlRootElement(name = "G11_1_1") @JsonAutoDetect(fieldVisibility = JsonAutoDetect.Visibility.ANY, getterVisibility = JsonAutoDetect.Visibility.NONE) public class SJLegalBase implements Serializable { /** * */ private static final long serialVersionUID = -2130315097582834081L; @XmlTransient private String id; @Id @GeneratedValue(generator = "uuidGenerator") @GenericGenerator(name = "uuidGenerator", strategy = "uuid2") public String getId() { return id; } public void setId(String id) { this.id = id; } @XmlElement(name = "LEGAL_NAME", required = true) protected String LEGAL_NAME; //法人名称 @XmlJavaTypeAdapter(value = SubjectTypeAdapter.class) @XmlElement(name = "BIDDER_CODE_TYPE", required = true) protected SubjectType BIDDER_CODE_TYPE; //法人类别 @XmlElement(name = "LEGAL_CODE", required = true) protected String LEGAL_CODE; //法人代码 //多个主体类型用分号";"分隔,不映射为枚举 @XmlElement(name = "LEGAL_ROLE", required = true) protected String LEGAL_ROLE; //法人角色 @XmlElement(name = "LICENSE_NO", required = true) protected String LICENSE_NO; //营业执照号码 @XmlElement(name = "LICENSE_END_DATE", required = true) protected Date LICENSE_END_DATE; //营业执照失效日期 @XmlElement(name = "TAX_CERT_NO") protected String TAX_CERT_NO; //国税税务登记证证号 @XmlElement(name = "TAX_CERT_END_DATE") protected Date TAX_CERT_END_DATE; //国税税务登记证失效日期 @XmlElement(name = "LOCAL_TAX_CERT_NO") protected String LOCAL_TAX_CERT_NO; //地税税务登记证证号 @XmlElement(name = "LOCAL_TAX_CERT_END_DATE") protected Date LOCAL_TAX_CERT_END_DATE; //地税税务登记证失效日期 @XmlElement(name = "ORGAN_NO") protected String ORGAN_NO; //组织机构代码 @XmlElement(name = "ORGAN_CERT_END_DATE") // protected String ORGAN_CERT_END_DATE; protected Date ORGAN_CERT_END_DATE; //组织机构代码证失效日期 @XmlElement(name = "LEGAL_REPRESENT", required = true) protected String LEGAL_REPRESENT; //法定代表人姓名 @XmlJavaTypeAdapter(value = LegalOrgTypeAdapter.class) @XmlElement(name = "LEGAL_TYPE", required = true) protected LegalOrgType LEGAL_TYPE; //法人类别 @XmlElement(name = "REPRESENT_PHONE") protected String REPRESENT_PHONE; //法人代表联系电话 @XmlElement(name = "LEGAL_INDUSTRY") @XmlJavaTypeAdapter(value = IndustryClassifyAdapter.class) protected IndustryClassify LEGAL_INDUSTRY;//法人机构行业代码 @XmlElement(name = "CREDIT_RATE") protected String CREDIT_RATE; //资信等级 @XmlJavaTypeAdapter(value = CountryRegionAdapter.class) @XmlElement(name = "COUNTRY_REGION", required = true) protected CountryRegion COUNTRY_REGION; //国别/地区 @XmlElement(name = "LEGAL_ADDRESS") protected String LEGAL_UNIT_ADDRESS; //法人机构地址 @XmlElement(name = "REGION_CODE", required = true) protected String REGION_CODE; //行政区域代码 @XmlElement(name = "REGISTER_PROVINCE") protected String REGISTER_PROVINCE; //注册地-省 @XmlElement(name = "REGISTER_CITY") protected String REGISTER_CITY; //注册地-市 @XmlElement(name = "REGISTER_TIME") protected String REGISTER_TIME; //注册时间 @XmlElement(name = "BASIC_BANK", required = true) protected String BASIC_BANK; //基本户开户银行 @XmlElement(name = "BASIC_BRANCH_BANK", required = true) protected String BASIC_BRANCH_BANK; //基本户开户支行号 @XmlElement(name = "BASIC_ACCOUNT_NO", required = true) protected String BASIC_ACCOUNT_NO;//基本户账号 @XmlElement(name = "BASIC_ACCOUNT_NAME") protected String BASIC_ACCOUNT_NAME; //基本户账户名称 @XmlElement(name = "REG_CAPITAL", required = true) protected BigDecimal REG_CAPITAL; //注册资本 @XmlJavaTypeAdapter(value = CurrencyTypeAdapter.class) @XmlElement(name = "REG_CAP_CURRENCY", required = true) protected CurrencyType REG_CAP_CURRENCY; //注册资本币种 @XmlJavaTypeAdapter(value = CurrencyUnitAdapter.class) @XmlElement(name = "REG_UNIT", required = true) protected CurrencyUnit REG_UNIT; //注册资本单位 @XmlElement(name = "LEGAL_CONTACT", required = true) protected String LEGAL_CONTACT; //联系人 @XmlElement(name = "LEGAL_CONTACT_PHONE", required = true) protected String LEGAL_CONTACT_PHONE; //联系人电话 @XmlElement(name = "LEGAL_CONTACT_ADDRESS") protected String LEGAL_CONTACT_ADDRESS; //联系人地址 @XmlElement(name = "LEGAL_WEB") protected String LEGAL_WEB; //单位网站 @XmlElement(name = "LEGAL_ZIP_CODE") protected String LEGAL_ZIP_CODE;// 邮政编码 @XmlElement(name = "LEGAL_EMAIL") protected String LEGAL_EMAIL; //电子邮箱 @XmlJavaTypeAdapter(value = LegalBusiStatusAdapter.class) @XmlElement(name = "LEGAL_STATUS", required = true) protected LegalBusiStatus LEGAL_STATUS; //法人业务状态 @XmlElement(name = "ATTACHMENT_SET_CODE", required = true) protected String ATTACHMENT_SET_CODE; //附件编码 @XmlElement(name = "PLATFORM_CODE", required = true) protected String PLATFORM_CODE; //交易系统标识码 @XmlElement(name = "PUB_SERVICE_PLAT_CODE", required = true) protected String PUB_SERVICE_PLAT_CODE; //公共服务平台标识码 @XmlElement(name = "DATA_TIMESTAMP", required = true) protected Date DATA_TIMESTAMP; //数据时间戳 @XmlTransient protected String DATA_ROUTE_WAY; public String getDATA_ROUTE_WAY() { return DATA_ROUTE_WAY; } public void setDATA_ROUTE_WAY(String dATA_ROUTE_WAY) { DATA_ROUTE_WAY = dATA_ROUTE_WAY; } @XmlTransient protected String DATA_SYNC_FLAG; public String getDATA_SYNC_FLAG() { return DATA_SYNC_FLAG; } public void setDATA_SYNC_FLAG(String dATA_SYNC_FLAG) { DATA_SYNC_FLAG = dATA_SYNC_FLAG; } @XmlTransient protected String DATA_NETWORK; public String getDATA_NETWORK() { return DATA_NETWORK; } public void setDATA_NETWORK(String dATA_NETWORK) { DATA_NETWORK = dATA_NETWORK; } @XmlTransient protected String CITY; //平台编码 public String getCITY() { return CITY; } public void setCITY(String cITY) { CITY = cITY; } @XmlTransient protected Integer creditScore = 60; //信用积分 @XmlTransient private String userId;//用户名 非映射 @XmlTransient private Date registerSDate;//注册开始时间 非映射 @XmlTransient private Date registerEDate;//注册结束时间 非映射 @Column(name = "credit_score") public Integer getCreditScore() { return creditScore; } public void setCreditScore(Integer creditScore) { this.creditScore = creditScore; } // @XmlTransient // private List subjectList= new ArrayList (); // // @OneToMany(cascade=CascadeType.ALL, fetch = FetchType.EAGER) // @JoinColumn(name="subject_id") // public List getSubjectList() { // return subjectList; // } // public void setSubjectList(List subjectList) { // this.subjectList = subjectList; // } @XmlTransient protected VerifyStatus verifyStatus; @Column(name = "verify_status") @Enumerated(value = EnumType.STRING) public VerifyStatus getVerifyStatus() { return verifyStatus; } public void setVerifyStatus(VerifyStatus verifyStatus) { this.verifyStatus = verifyStatus; } @XmlTransient protected Date submitTime; //注册时间 @Column(name = "submit_time") public Date getSubmitTime() { return submitTime; } public void setSubmitTime(Date submitTime) { this.submitTime = submitTime; } public String getLEGAL_NAME() { return LEGAL_NAME; } public void setLEGAL_NAME(String lEGAL_NAME) { LEGAL_NAME = lEGAL_NAME; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.sj.enumeration.SubjectType")}) public SubjectType getBIDDER_CODE_TYPE() { return BIDDER_CODE_TYPE; } public void setBIDDER_CODE_TYPE(SubjectType bIDDER_CODE_TYPE) { BIDDER_CODE_TYPE = bIDDER_CODE_TYPE; } public String getLEGAL_CODE() { return LEGAL_CODE; } public void setLEGAL_CODE(String lEGAL_CODE) { LEGAL_CODE = lEGAL_CODE; } public String getLEGAL_ROLE() { return LEGAL_ROLE; } public void setLEGAL_ROLE(String lEGAL_ROLE) { LEGAL_ROLE = lEGAL_ROLE; } public String getLICENSE_NO() { return LICENSE_NO; } public void setLICENSE_NO(String lICENSE_NO) { LICENSE_NO = lICENSE_NO; } public Date getLICENSE_END_DATE() { return LICENSE_END_DATE; } public void setLICENSE_END_DATE(Date LICENSE_END_DATE) { this.LICENSE_END_DATE = LICENSE_END_DATE; } public String getTAX_CERT_NO() { return TAX_CERT_NO; } public void setTAX_CERT_NO(String tAX_CERT_NO) { TAX_CERT_NO = tAX_CERT_NO; } public Date getTAX_CERT_END_DATE() { return TAX_CERT_END_DATE; } public void setTAX_CERT_END_DATE(Date tAX_CERT_END_DATE) { TAX_CERT_END_DATE = tAX_CERT_END_DATE; } public String getLOCAL_TAX_CERT_NO() { return LOCAL_TAX_CERT_NO; } public void setLOCAL_TAX_CERT_NO(String lOCAL_TAX_CERT_NO) { LOCAL_TAX_CERT_NO = lOCAL_TAX_CERT_NO; } public Date getLOCAL_TAX_CERT_END_DATE() { return LOCAL_TAX_CERT_END_DATE; } public void setLOCAL_TAX_CERT_END_DATE(Date lOCAL_TAX_CERT_END_DATE) { LOCAL_TAX_CERT_END_DATE = lOCAL_TAX_CERT_END_DATE; } public String getORGAN_NO() { return ORGAN_NO; } public void setORGAN_NO(String oRGAN_NO) { ORGAN_NO = oRGAN_NO; } // public String getORGAN_CERT_END_DATE() { // return ORGAN_CERT_END_DATE; // } // public void setORGAN_CERT_END_DATE(String oRGAN_CERT_END_DATE) { // ORGAN_CERT_END_DATE = oRGAN_CERT_END_DATE; // } public Date getORGAN_CERT_END_DATE() { return ORGAN_CERT_END_DATE; } public void setORGAN_CERT_END_DATE(Date ORGAN_CERT_END_DATE) { this.ORGAN_CERT_END_DATE = ORGAN_CERT_END_DATE; } public String getLEGAL_REPRESENT() { return LEGAL_REPRESENT; } public void setLEGAL_REPRESENT(String lEGAL_REPRESENT) { LEGAL_REPRESENT = lEGAL_REPRESENT; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.sj.enumeration.LegalOrgType")}) public LegalOrgType getLEGAL_TYPE() { return LEGAL_TYPE; } public void setLEGAL_TYPE(LegalOrgType lEGAL_TYPE) { LEGAL_TYPE = lEGAL_TYPE; } public String getREPRESENT_PHONE() { return REPRESENT_PHONE; } public void setREPRESENT_PHONE(String rEPRESENT_PHONE) { REPRESENT_PHONE = rEPRESENT_PHONE; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.enumeration.IndustryClassify")}) public IndustryClassify getLEGAL_INDUSTRY() { return LEGAL_INDUSTRY; } public void setLEGAL_INDUSTRY(IndustryClassify lEGAL_INDUSTRY) { LEGAL_INDUSTRY = lEGAL_INDUSTRY; } public String getCREDIT_RATE() { return CREDIT_RATE; } public void setCREDIT_RATE(String cREDIT_RATE) { CREDIT_RATE = cREDIT_RATE; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.enumeration.CountryRegion")}) public CountryRegion getCOUNTRY_REGION() { return COUNTRY_REGION; } public void setCOUNTRY_REGION(CountryRegion cOUNTRY_REGION) { COUNTRY_REGION = cOUNTRY_REGION; } @Column(length = 300) public String getLEGAL_UNIT_ADDRESS() { return LEGAL_UNIT_ADDRESS; } public void setLEGAL_UNIT_ADDRESS(String lEGAL_UNIT_ADDRESS) { LEGAL_UNIT_ADDRESS = lEGAL_UNIT_ADDRESS; } public String getREGION_CODE() { return REGION_CODE; } public void setREGION_CODE(String rEGION_CODE) { REGION_CODE = rEGION_CODE; } public String getREGISTER_PROVINCE() { return REGISTER_PROVINCE; } public void setREGISTER_PROVINCE(String rEGISTER_PROVINCE) { REGISTER_PROVINCE = rEGISTER_PROVINCE; } public String getREGISTER_CITY() { return REGISTER_CITY; } public void setREGISTER_CITY(String rEGISTER_CITY) { REGISTER_CITY = rEGISTER_CITY; } public String getREGISTER_TIME() { return REGISTER_TIME; } public void setREGISTER_TIME(String rEGISTER_TIME) { REGISTER_TIME = rEGISTER_TIME; } public String getBASIC_BANK() { return BASIC_BANK; } public void setBASIC_BANK(String bASIC_BANK) { BASIC_BANK = bASIC_BANK; } public String getBASIC_BRANCH_BANK() { return BASIC_BRANCH_BANK; } public void setBASIC_BRANCH_BANK(String bASIC_BRANCH_BANK) { BASIC_BRANCH_BANK = bASIC_BRANCH_BANK; } public String getBASIC_ACCOUNT_NO() { return BASIC_ACCOUNT_NO; } public void setBASIC_ACCOUNT_NO(String bASIC_ACCOUNT_NO) { BASIC_ACCOUNT_NO = bASIC_ACCOUNT_NO; } public String getBASIC_ACCOUNT_NAME() { return BASIC_ACCOUNT_NAME; } public void setBASIC_ACCOUNT_NAME(String bASIC_ACCOUNT_NAME) { BASIC_ACCOUNT_NAME = bASIC_ACCOUNT_NAME; } public BigDecimal getREG_CAPITAL() { return REG_CAPITAL; } public void setREG_CAPITAL(BigDecimal rEG_CAPITAL) { REG_CAPITAL = rEG_CAPITAL; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.enumeration.CurrencyType")}) public CurrencyType getREG_CAP_CURRENCY() { return REG_CAP_CURRENCY; } public void setREG_CAP_CURRENCY(CurrencyType rEG_CAP_CURRENCY) { REG_CAP_CURRENCY = rEG_CAP_CURRENCY; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.enumeration.CurrencyUnit")}) public CurrencyUnit getREG_UNIT() { return REG_UNIT; } public void setREG_UNIT(CurrencyUnit rEG_UNIT) { REG_UNIT = rEG_UNIT; } public String getLEGAL_CONTACT() { return LEGAL_CONTACT; } public void setLEGAL_CONTACT(String lEGAL_CONTACT) { LEGAL_CONTACT = lEGAL_CONTACT; } public String getLEGAL_CONTACT_PHONE() { return LEGAL_CONTACT_PHONE; } public void setLEGAL_CONTACT_PHONE(String lEGAL_CONTACT_PHONE) { LEGAL_CONTACT_PHONE = lEGAL_CONTACT_PHONE; } public String getLEGAL_CONTACT_ADDRESS() { return LEGAL_CONTACT_ADDRESS; } public void setLEGAL_CONTACT_ADDRESS(String lEGAL_CONTACT_ADDRESS) { LEGAL_CONTACT_ADDRESS = lEGAL_CONTACT_ADDRESS; } public String getLEGAL_WEB() { return LEGAL_WEB; } public void setLEGAL_WEB(String lEGAL_WEB) { LEGAL_WEB = lEGAL_WEB; } public String getLEGAL_ZIP_CODE() { return LEGAL_ZIP_CODE; } public void setLEGAL_ZIP_CODE(String lEGAL_ZIP_CODE) { LEGAL_ZIP_CODE = lEGAL_ZIP_CODE; } public String getLEGAL_EMAIL() { return LEGAL_EMAIL; } public void setLEGAL_EMAIL(String lEGAL_EMAIL) { LEGAL_EMAIL = lEGAL_EMAIL; } @Type(type = "com.eshore.prip.bigdata.bean.g.GEnumType", parameters = {@Parameter(name = "enumClass", value = "com.eshore.prip.bigdata.bean.g.sj.enumeration.LegalBusiStatus")}) public LegalBusiStatus getLEGAL_STATUS() { return LEGAL_STATUS; } public void setLEGAL_STATUS(LegalBusiStatus lEGAL_STATUS) { LEGAL_STATUS = lEGAL_STATUS; } @Column(length = 4000) public String getATTACHMENT_SET_CODE() { return ATTACHMENT_SET_CODE; } public void setATTACHMENT_SET_CODE(String aTTACHMENT_SET_CODE) { ATTACHMENT_SET_CODE = aTTACHMENT_SET_CODE; } public String getPLATFORM_CODE() { return PLATFORM_CODE; } public void setPLATFORM_CODE(String pLATFORM_CODE) { PLATFORM_CODE = pLATFORM_CODE; } public String getPUB_SERVICE_PLAT_CODE() { return PUB_SERVICE_PLAT_CODE; } public void setPUB_SERVICE_PLAT_CODE(String pUB_SERVICE_PLAT_CODE) { PUB_SERVICE_PLAT_CODE = pUB_SERVICE_PLAT_CODE; } public Date getDATA_TIMESTAMP() { return DATA_TIMESTAMP; } public void setDATA_TIMESTAMP(Date DATA_TIMESTAMP) { this.DATA_TIMESTAMP = DATA_TIMESTAMP; } @XmlTransient private String UPLOAD_TIMESTAMP; public String getUPLOAD_TIMESTAMP() { return UPLOAD_TIMESTAMP; } public void setUPLOAD_TIMESTAMP(String UPLOAD_TIMESTAMP) { this.UPLOAD_TIMESTAMP = UPLOAD_TIMESTAMP; } @Transient public List getRoleList() { /** * 根据roleCodes提取角色对象. */ List roleList = new ArrayList (); if (this.LEGAL_ROLE != null && LEGAL_ROLE.length() > 0) { String[] codes = LEGAL_ROLE.split(";"); if (codes != null && codes.length > 0) { LegalBaseRole[] roles = LegalBaseRole.values(); for (LegalBaseRole role : roles) { for (String tmpCode : codes) { if (role.getType().equals(tmpCode)) { roleList.add(role); break; } } } } } return roleList; } //以下SRC_CITY_ID到COL_EX3这里新加属性 @XmlElement(name = "SRC_CITY_ID") @Column(name = "SRC_CITY_ID", nullable = true) protected String SRC_CITY_ID; //来源地市编码 @XmlElement(name = "SYS_ID") @Column(name = "SYS_ID", nullable = true) protected String SYS_ID; //对应标识是在哪个子系统的,这里应该有系统编码 @XmlElement(name = "STATUS") @Column(name = "STATUS", nullable = true) protected String STATUS; //记录状态,S0A、S0B、S0O、S0X @XmlElement(name = "CREATE_STAFF") @Column(name = "CREATE_STAFF", nullable = false) protected String CREATE_STAFF; //创建人帐号 ID @XmlElement(name = "CREATE_DATE") @Column(name = "CREATE_DATE", nullable = true) protected Date CREATE_DATE; //创建时间 @XmlElement(name = "MOD_STAFF") @Column(name = "MOD_STAFF", nullable = true) protected String MOD_STAFF; //修改人帐号 ID @XmlElement(name = "MOD_DATE") @Column(name = "MOD_DATE", nullable = true) protected Date MOD_DATE; //修改时间 @XmlElement(name = "COL_EX1") @Column(name = "COL_EX1", nullable = true) protected String COL_EX1; @XmlElement(name = "COL_EX2") @Column(name = "COL_EX2", nullable = true) protected String COL_EX2; @XmlElement(name = "COL_EX3") @Column(name = "COL_EX3", nullable = true) protected String COL_EX3; public String getSRC_CITY_ID() { return SRC_CITY_ID; } public void setSRC_CITY_ID(String SRC_CITY_ID) { this.SRC_CITY_ID = SRC_CITY_ID; } public String getSYS_ID() { return SYS_ID; } public void setSYS_ID(String SYS_ID) { this.SYS_ID = SYS_ID; } public String getSTATUS() { return STATUS; } public void setSTATUS(String STATUS) { this.STATUS = STATUS; } public String getCREATE_STAFF() { return CREATE_STAFF; } public void setCREATE_STAFF(String CREATE_STAFF) { this.CREATE_STAFF = CREATE_STAFF; } public Date getCREATE_DATE() { return CREATE_DATE; } public void setCREATE_DATE(Date CREATE_DATE) { this.CREATE_DATE = CREATE_DATE; } public String getMOD_STAFF() { return MOD_STAFF; } public void setMOD_STAFF(String MOD_STAFF) { this.MOD_STAFF = MOD_STAFF; } public Date getMOD_DATE() { return MOD_DATE; } public void setMOD_DATE(Date MOD_DATE) { this.MOD_DATE = MOD_DATE; } public String getCOL_EX1() { return COL_EX1; } public void setCOL_EX1(String COL_EX1) { this.COL_EX1 = COL_EX1; } public String getCOL_EX2() { return COL_EX2; } public void setCOL_EX2(String COL_EX2) { this.COL_EX2 = COL_EX2; } public String getCOL_EX3() { return COL_EX3; } public void setCOL_EX3(String COL_EX3) { this.COL_EX3 = COL_EX3; } @XmlElement(name = "IS_DEL") @Column(name = "IS_DEL") private String IS_DEL; //是否删除 public String getIS_DEL() { return IS_DEL; } public void setIS_DEL(String IS_DEL) { this.IS_DEL = IS_DEL; } @Transient public String getUserId() { return userId; } public void setUserId(String userId) { this.userId = userId; } @Transient public Date getRegisterSDate() { return registerSDate; } public void setRegisterSDate(Date registerSDate) { this.registerSDate = registerSDate; } @Transient public Date getRegisterEDate() { return registerEDate; } public void setRegisterEDate(Date registerEDate) { this.registerEDate = registerEDate; } @XmlElement(name = "SUBJECT_ROLES") private String subjectRoles; @Column(name = "SUBJECT_ROLES") public String getSubjectRoles() { return subjectRoles; } public void setSubjectRoles(String subjectRoles) { this.subjectRoles = subjectRoles; } }
网友评论