Compare commits

...

No commits in common. 'master' and 'xbd' have entirely different histories.
master ... xbd

51
.gitignore vendored

@ -1,33 +1,26 @@
HELP.md
target/
!.mvn/wrapper/maven-wrapper.jar
!**/src/main/**/target/
!**/src/test/**/target/
# ---> Java
# Compiled class file
*.class
### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
# Log file
*.log
### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
# BlueJ files
*.ctxt
### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/
build/
!**/src/main/**/build/
!**/src/test/**/build/
# Mobile Tools for Java (J2ME)
.mtj.tmp/
# Package Files #
*.jar
*.war
*.nar
*.ear
*.zip
*.tar.gz
*.rar
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
replay_pid*
### VS Code ###
.vscode/

Binary file not shown.

@ -1,2 +0,0 @@
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar

@ -0,0 +1,6 @@
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_271
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
export PATH=${JAVA_HOME}/bin:$PATH
/usr/lib/jvm/jdk1.8.0_271/bin/java -version
/usr/lib/jvm/jdk1.8.0_271/bin/java ${CLASSPATH} -jar /root/Downloads/I2client/dist/I2client.jar

@ -0,0 +1,18 @@
#!/bin/bash
ps -x |grep I2client | grep -v grep
if [ $? -eq 0 ]; then echo "正在运行"
else
export JAVA_HOME=/usr/java/jdk1.8.0_171
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib:$CLASSPATH
export JAVA_PATH=${JAVA_HOME}/bin:${JRE_HOME}/bin
export PATH=$PATH:${JAVA_PATH}
cd /home/quyi/I2client/dist/
java -jar I2client.jar
fi

@ -0,0 +1,2 @@
# I2client

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="I2client" default="default" basedir=".">
<description>Builds, tests, and runs the project I2client.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="I2client-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

@ -0,0 +1,4 @@
#Fri, 30 Jun 2023 11:04:56 +0800
/home/htdev/newcac/sourceproj/I2client-XBD=

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://222.90.232.140:8443/xydl/service/XydlService?wsdl" uri="wsdl/222.90.232.140_8443/xydl/service/XydlService.wsdl"/>
<system systemId="http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl" uri="wsdl/10.0.17.24_8084/busi-back-ws/service/XydlService.wsdl"/>
</catalog>

@ -0,0 +1,71 @@
package i2client;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the i2client package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _UploadCACDataResponse_QNAME = new QName("http://ws.busi.huatek.com/", "uploadCACDataResponse");
private final static QName _UploadCACData_QNAME = new QName("http://ws.busi.huatek.com/", "uploadCACData");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: i2client
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link UploadCACData }
*
*/
public UploadCACData createUploadCACData() {
return new UploadCACData();
}
/**
* Create an instance of {@link UploadCACDataResponse }
*
*/
public UploadCACDataResponse createUploadCACDataResponse() {
return new UploadCACDataResponse();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link UploadCACDataResponse }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://ws.busi.huatek.com/", name = "uploadCACDataResponse")
public JAXBElement<UploadCACDataResponse> createUploadCACDataResponse(UploadCACDataResponse value) {
return new JAXBElement<UploadCACDataResponse>(_UploadCACDataResponse_QNAME, UploadCACDataResponse.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link UploadCACData }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://ws.busi.huatek.com/", name = "uploadCACData")
public JAXBElement<UploadCACData> createUploadCACData(UploadCACData value) {
return new JAXBElement<UploadCACData>(_UploadCACData_QNAME, UploadCACData.class, null, value);
}
}

@ -0,0 +1,60 @@
package i2client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for uploadCACData complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="uploadCACData">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadCACData", propOrder = {
"arg0"
})
public class UploadCACData {
protected String arg0;
/**
* Gets the value of the arg0 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArg0() {
return arg0;
}
/**
* Sets the value of the arg0 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArg0(String value) {
this.arg0 = value;
}
}

@ -0,0 +1,62 @@
package i2client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for uploadCACDataResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="uploadCACDataResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadCACDataResponse", propOrder = {
"_return"
})
public class UploadCACDataResponse {
@XmlElement(name = "return")
protected String _return;
/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReturn() {
return _return;
}
/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReturn(String value) {
this._return = value;
}
}

@ -0,0 +1,40 @@
package i2client;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.6-1b01
* Generated source version: 2.2
*
*/
@WebService(name = "XydlService", targetNamespace = "http://ws.busi.huatek.com/")
@XmlSeeAlso({
ObjectFactory.class
})
public interface XydlService {
/**
*
* @param arg0
* @return
* returns java.lang.String
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "uploadCACData", targetNamespace = "http://ws.busi.huatek.com/", className = "i2client.UploadCACData")
@ResponseWrapper(localName = "uploadCACDataResponse", targetNamespace = "http://ws.busi.huatek.com/", className = "i2client.UploadCACDataResponse")
public String uploadCACData(
@WebParam(name = "arg0", targetNamespace = "")
String arg0);
}

@ -0,0 +1,94 @@
package i2client;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.6-1b01
* Generated source version: 2.2
*
*/
@WebServiceClient(name = "XydlServiceImplService", targetNamespace = "http://ws.busi.huatek.com/", wsdlLocation = "http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl")
public class XydlServiceImplService
extends Service
{
private final static URL XYDLSERVICEIMPLSERVICE_WSDL_LOCATION;
private final static WebServiceException XYDLSERVICEIMPLSERVICE_EXCEPTION;
private final static QName XYDLSERVICEIMPLSERVICE_QNAME = new QName("http://ws.busi.huatek.com/", "XydlServiceImplService");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
XYDLSERVICEIMPLSERVICE_WSDL_LOCATION = url;
XYDLSERVICEIMPLSERVICE_EXCEPTION = e;
}
public XydlServiceImplService() {
super(__getWsdlLocation(), XYDLSERVICEIMPLSERVICE_QNAME);
}
public XydlServiceImplService(WebServiceFeature... features) {
super(__getWsdlLocation(), XYDLSERVICEIMPLSERVICE_QNAME, features);
}
public XydlServiceImplService(URL wsdlLocation) {
super(wsdlLocation, XYDLSERVICEIMPLSERVICE_QNAME);
}
public XydlServiceImplService(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, XYDLSERVICEIMPLSERVICE_QNAME, features);
}
public XydlServiceImplService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public XydlServiceImplService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns XydlService
*/
@WebEndpoint(name = "XydlServiceImplPort")
public XydlService getXydlServiceImplPort() {
return super.getPort(new QName("http://ws.busi.huatek.com/", "XydlServiceImplPort"), XydlService.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns XydlService
*/
@WebEndpoint(name = "XydlServiceImplPort")
public XydlService getXydlServiceImplPort(WebServiceFeature... features) {
return super.getPort(new QName("http://ws.busi.huatek.com/", "XydlServiceImplPort"), XydlService.class, features);
}
private static URL __getWsdlLocation() {
if (XYDLSERVICEIMPLSERVICE_EXCEPTION!= null) {
throw XYDLSERVICEIMPLSERVICE_EXCEPTION;
}
return XYDLSERVICEIMPLSERVICE_WSDL_LOCATION;
}
}

@ -0,0 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.busi.huatek.com/")
package i2client;

@ -0,0 +1,71 @@
package i2client;
import javax.xml.bind.JAXBElement;
import javax.xml.bind.annotation.XmlElementDecl;
import javax.xml.bind.annotation.XmlRegistry;
import javax.xml.namespace.QName;
/**
* This object contains factory methods for each
* Java content interface and Java element interface
* generated in the i2client package.
* <p>An ObjectFactory allows you to programatically
* construct new instances of the Java representation
* for XML content. The Java representation of XML
* content can consist of schema derived interfaces
* and classes representing the binding of schema
* type definitions, element declarations and model
* groups. Factory methods for each of these are
* provided in this class.
*
*/
@XmlRegistry
public class ObjectFactory {
private final static QName _UploadCACDataResponse_QNAME = new QName("http://ws.busi.huatek.com/", "uploadCACDataResponse");
private final static QName _UploadCACData_QNAME = new QName("http://ws.busi.huatek.com/", "uploadCACData");
/**
* Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: i2client
*
*/
public ObjectFactory() {
}
/**
* Create an instance of {@link UploadCACData }
*
*/
public UploadCACData createUploadCACData() {
return new UploadCACData();
}
/**
* Create an instance of {@link UploadCACDataResponse }
*
*/
public UploadCACDataResponse createUploadCACDataResponse() {
return new UploadCACDataResponse();
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link UploadCACDataResponse }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://ws.busi.huatek.com/", name = "uploadCACDataResponse")
public JAXBElement<UploadCACDataResponse> createUploadCACDataResponse(UploadCACDataResponse value) {
return new JAXBElement<UploadCACDataResponse>(_UploadCACDataResponse_QNAME, UploadCACDataResponse.class, null, value);
}
/**
* Create an instance of {@link JAXBElement }{@code <}{@link UploadCACData }{@code >}}
*
*/
@XmlElementDecl(namespace = "http://ws.busi.huatek.com/", name = "uploadCACData")
public JAXBElement<UploadCACData> createUploadCACData(UploadCACData value) {
return new JAXBElement<UploadCACData>(_UploadCACData_QNAME, UploadCACData.class, null, value);
}
}

@ -0,0 +1,60 @@
package i2client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for uploadCACData complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="uploadCACData">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadCACData", propOrder = {
"arg0"
})
public class UploadCACData {
protected String arg0;
/**
* Gets the value of the arg0 property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getArg0() {
return arg0;
}
/**
* Sets the value of the arg0 property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setArg0(String value) {
this.arg0 = value;
}
}

@ -0,0 +1,62 @@
package i2client;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;
/**
* <p>Java class for uploadCACDataResponse complex type.
*
* <p>The following schema fragment specifies the expected content contained within this class.
*
* <pre>
* &lt;complexType name="uploadCACDataResponse">
* &lt;complexContent>
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
* &lt;sequence>
* &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
* &lt;/sequence>
* &lt;/restriction>
* &lt;/complexContent>
* &lt;/complexType>
* </pre>
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "uploadCACDataResponse", propOrder = {
"_return"
})
public class UploadCACDataResponse {
@XmlElement(name = "return")
protected String _return;
/**
* Gets the value of the return property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReturn() {
return _return;
}
/**
* Sets the value of the return property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setReturn(String value) {
this._return = value;
}
}

@ -0,0 +1,40 @@
package i2client;
import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebResult;
import javax.jws.WebService;
import javax.xml.bind.annotation.XmlSeeAlso;
import javax.xml.ws.RequestWrapper;
import javax.xml.ws.ResponseWrapper;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.6-1b01
* Generated source version: 2.2
*
*/
@WebService(name = "XydlService", targetNamespace = "http://ws.busi.huatek.com/")
@XmlSeeAlso({
ObjectFactory.class
})
public interface XydlService {
/**
*
* @param arg0
* @return
* returns java.lang.String
*/
@WebMethod
@WebResult(targetNamespace = "")
@RequestWrapper(localName = "uploadCACData", targetNamespace = "http://ws.busi.huatek.com/", className = "i2client.UploadCACData")
@ResponseWrapper(localName = "uploadCACDataResponse", targetNamespace = "http://ws.busi.huatek.com/", className = "i2client.UploadCACDataResponse")
public String uploadCACData(
@WebParam(name = "arg0", targetNamespace = "")
String arg0);
}

@ -0,0 +1,94 @@
package i2client;
import java.net.MalformedURLException;
import java.net.URL;
import javax.xml.namespace.QName;
import javax.xml.ws.Service;
import javax.xml.ws.WebEndpoint;
import javax.xml.ws.WebServiceClient;
import javax.xml.ws.WebServiceException;
import javax.xml.ws.WebServiceFeature;
/**
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.6-1b01
* Generated source version: 2.2
*
*/
@WebServiceClient(name = "XydlServiceImplService", targetNamespace = "http://ws.busi.huatek.com/", wsdlLocation = "http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl")
public class XydlServiceImplService
extends Service
{
private final static URL XYDLSERVICEIMPLSERVICE_WSDL_LOCATION;
private final static WebServiceException XYDLSERVICEIMPLSERVICE_EXCEPTION;
private final static QName XYDLSERVICEIMPLSERVICE_QNAME = new QName("http://ws.busi.huatek.com/", "XydlServiceImplService");
static {
URL url = null;
WebServiceException e = null;
try {
url = new URL("http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl");
} catch (MalformedURLException ex) {
e = new WebServiceException(ex);
}
XYDLSERVICEIMPLSERVICE_WSDL_LOCATION = url;
XYDLSERVICEIMPLSERVICE_EXCEPTION = e;
}
public XydlServiceImplService() {
super(__getWsdlLocation(), XYDLSERVICEIMPLSERVICE_QNAME);
}
public XydlServiceImplService(WebServiceFeature... features) {
super(__getWsdlLocation(), XYDLSERVICEIMPLSERVICE_QNAME, features);
}
public XydlServiceImplService(URL wsdlLocation) {
super(wsdlLocation, XYDLSERVICEIMPLSERVICE_QNAME);
}
public XydlServiceImplService(URL wsdlLocation, WebServiceFeature... features) {
super(wsdlLocation, XYDLSERVICEIMPLSERVICE_QNAME, features);
}
public XydlServiceImplService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public XydlServiceImplService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
super(wsdlLocation, serviceName, features);
}
/**
*
* @return
* returns XydlService
*/
@WebEndpoint(name = "XydlServiceImplPort")
public XydlService getXydlServiceImplPort() {
return super.getPort(new QName("http://ws.busi.huatek.com/", "XydlServiceImplPort"), XydlService.class);
}
/**
*
* @param features
* A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
* @return
* returns XydlService
*/
@WebEndpoint(name = "XydlServiceImplPort")
public XydlService getXydlServiceImplPort(WebServiceFeature... features) {
return super.getPort(new QName("http://ws.busi.huatek.com/", "XydlServiceImplPort"), XydlService.class, features);
}
private static URL __getWsdlLocation() {
if (XYDLSERVICEIMPLSERVICE_EXCEPTION!= null) {
throw XYDLSERVICEIMPLSERVICE_EXCEPTION;
}
return XYDLSERVICEIMPLSERVICE_WSDL_LOCATION;
}
}

@ -0,0 +1,2 @@
@javax.xml.bind.annotation.XmlSchema(namespace = "http://ws.busi.huatek.com/")
package i2client;

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://222.90.232.140:8443/xydl/service/XydlService?wsdl" uri="xml-resources/web-service-references/XydlService_1/wsdl/222.90.232.140_8443/xydl/service/XydlService.wsdl"/>
<system systemId="http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl" uri="xml-resources/web-service-references/XydlService/wsdl/10.0.17.24_8084/busi-back-ws/service/XydlService.wsdl"/>
</catalog>

32
dist/README.TXT vendored

@ -0,0 +1,32 @@
========================
BUILD OUTPUT DESCRIPTION
========================
When you build an Java application project that has a main class, the IDE
automatically copies all of the JAR
files on the projects classpath to your projects dist/lib folder. The IDE
also adds each of the JAR files to the Class-Path element in the application
JAR files manifest file (MANIFEST.MF).
To run the project from the command line, go to the dist folder and
type the following:
java -jar "I2client.jar"
To distribute this project, zip up the dist folder (including the lib folder)
and distribute the ZIP file.
Notes:
* If two JAR files on the project classpath have the same name, only the first
JAR file is copied to the lib folder.
* Only JAR files are copied to the lib folder.
If the classpath contains other types of files or folders, these files (folders)
are not copied.
* If a library on the projects classpath also has a Class-Path element
specified in the manifest,the content of the Class-Path element has to be on
the projects runtime path.
* To set a main class in a standard Java project, right-click the project node
in the Projects window and choose Properties. Then click Run and enter the
class name in the Main Class field. Alternatively, you can manually type the
class name in the manifest Main-Class element.

@ -0,0 +1,3 @@
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build

308
mvnw vendored

@ -1,308 +0,0 @@
#!/bin/sh
# ----------------------------------------------------------------------------
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this file
# to you under the Apache License, Version 2.0 (the
# "License"); you may not use this file except in compliance
# with the License. You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the License is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
# ----------------------------------------------------------------------------
# ----------------------------------------------------------------------------
# Apache Maven Wrapper startup batch script, version 3.2.0
#
# Required ENV vars:
# ------------------
# JAVA_HOME - location of a JDK home dir
#
# Optional ENV vars
# -----------------
# MAVEN_OPTS - parameters passed to the Java VM when running Maven
# e.g. to debug Maven itself, use
# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
# ----------------------------------------------------------------------------
if [ -z "$MAVEN_SKIP_RC" ] ; then
if [ -f /usr/local/etc/mavenrc ] ; then
. /usr/local/etc/mavenrc
fi
if [ -f /etc/mavenrc ] ; then
. /etc/mavenrc
fi
if [ -f "$HOME/.mavenrc" ] ; then
. "$HOME/.mavenrc"
fi
fi
# OS specific support. $var _must_ be set to either true or false.
cygwin=false;
darwin=false;
mingw=false
case "$(uname)" in
CYGWIN*) cygwin=true ;;
MINGW*) mingw=true;;
Darwin*) darwin=true
# Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
# See https://developer.apple.com/library/mac/qa/qa1170/_index.html
if [ -z "$JAVA_HOME" ]; then
if [ -x "/usr/libexec/java_home" ]; then
JAVA_HOME="$(/usr/libexec/java_home)"; export JAVA_HOME
else
JAVA_HOME="/Library/Java/Home"; export JAVA_HOME
fi
fi
;;
esac
if [ -z "$JAVA_HOME" ] ; then
if [ -r /etc/gentoo-release ] ; then
JAVA_HOME=$(java-config --jre-home)
fi
fi
# For Cygwin, ensure paths are in UNIX format before anything is touched
if $cygwin ; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
fi
# For Mingw, ensure paths are in UNIX format before anything is touched
if $mingw ; then
[ -n "$JAVA_HOME" ] && [ -d "$JAVA_HOME" ] &&
JAVA_HOME="$(cd "$JAVA_HOME" || (echo "cannot cd into $JAVA_HOME."; exit 1); pwd)"
fi
if [ -z "$JAVA_HOME" ]; then
javaExecutable="$(which javac)"
if [ -n "$javaExecutable" ] && ! [ "$(expr "\"$javaExecutable\"" : '\([^ ]*\)')" = "no" ]; then
# readlink(1) is not available as standard on Solaris 10.
readLink=$(which readlink)
if [ ! "$(expr "$readLink" : '\([^ ]*\)')" = "no" ]; then
if $darwin ; then
javaHome="$(dirname "\"$javaExecutable\"")"
javaExecutable="$(cd "\"$javaHome\"" && pwd -P)/javac"
else
javaExecutable="$(readlink -f "\"$javaExecutable\"")"
fi
javaHome="$(dirname "\"$javaExecutable\"")"
javaHome=$(expr "$javaHome" : '\(.*\)/bin')
JAVA_HOME="$javaHome"
export JAVA_HOME
fi
fi
fi
if [ -z "$JAVACMD" ] ; then
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
else
JAVACMD="$(\unset -f command 2>/dev/null; \command -v java)"
fi
fi
if [ ! -x "$JAVACMD" ] ; then
echo "Error: JAVA_HOME is not defined correctly." >&2
echo " We cannot execute $JAVACMD" >&2
exit 1
fi
if [ -z "$JAVA_HOME" ] ; then
echo "Warning: JAVA_HOME environment variable is not set."
fi
# traverses directory structure from process work directory to filesystem root
# first directory with .mvn subdirectory is considered project base directory
find_maven_basedir() {
if [ -z "$1" ]
then
echo "Path not specified to find_maven_basedir"
return 1
fi
basedir="$1"
wdir="$1"
while [ "$wdir" != '/' ] ; do
if [ -d "$wdir"/.mvn ] ; then
basedir=$wdir
break
fi
# workaround for JBEAP-8937 (on Solaris 10/Sparc)
if [ -d "${wdir}" ]; then
wdir=$(cd "$wdir/.." || exit 1; pwd)
fi
# end of workaround
done
printf '%s' "$(cd "$basedir" || exit 1; pwd)"
}
# concatenates all lines of a file
concat_lines() {
if [ -f "$1" ]; then
# Remove \r in case we run on Windows within Git Bash
# and check out the repository with auto CRLF management
# enabled. Otherwise, we may read lines that are delimited with
# \r\n and produce $'-Xarg\r' rather than -Xarg due to word
# splitting rules.
tr -s '\r\n' ' ' < "$1"
fi
}
log() {
if [ "$MVNW_VERBOSE" = true ]; then
printf '%s\n' "$1"
fi
}
BASE_DIR=$(find_maven_basedir "$(dirname "$0")")
if [ -z "$BASE_DIR" ]; then
exit 1;
fi
MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}; export MAVEN_PROJECTBASEDIR
log "$MAVEN_PROJECTBASEDIR"
##########################################################################################
# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
# This allows using the maven wrapper in projects that prohibit checking in binary data.
##########################################################################################
wrapperJarPath="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar"
if [ -r "$wrapperJarPath" ]; then
log "Found $wrapperJarPath"
else
log "Couldn't find $wrapperJarPath, downloading it ..."
if [ -n "$MVNW_REPOURL" ]; then
wrapperUrl="$MVNW_REPOURL/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
else
wrapperUrl="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
fi
while IFS="=" read -r key value; do
# Remove '\r' from value to allow usage on windows as IFS does not consider '\r' as a separator ( considers space, tab, new line ('\n'), and custom '=' )
safeValue=$(echo "$value" | tr -d '\r')
case "$key" in (wrapperUrl) wrapperUrl="$safeValue"; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
log "Downloading from: $wrapperUrl"
if $cygwin; then
wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
fi
if command -v wget > /dev/null; then
log "Found wget ... using wget"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--quiet"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
wget $QUIET "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
else
wget $QUIET --http-user="$MVNW_USERNAME" --http-password="$MVNW_PASSWORD" "$wrapperUrl" -O "$wrapperJarPath" || rm -f "$wrapperJarPath"
fi
elif command -v curl > /dev/null; then
log "Found curl ... using curl"
[ "$MVNW_VERBOSE" = true ] && QUIET="" || QUIET="--silent"
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
curl $QUIET -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
else
curl $QUIET --user "$MVNW_USERNAME:$MVNW_PASSWORD" -o "$wrapperJarPath" "$wrapperUrl" -f -L || rm -f "$wrapperJarPath"
fi
else
log "Falling back to using Java to download"
javaSource="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.java"
javaClass="$MAVEN_PROJECTBASEDIR/.mvn/wrapper/MavenWrapperDownloader.class"
# For Cygwin, switch paths to Windows format before running javac
if $cygwin; then
javaSource=$(cygpath --path --windows "$javaSource")
javaClass=$(cygpath --path --windows "$javaClass")
fi
if [ -e "$javaSource" ]; then
if [ ! -e "$javaClass" ]; then
log " - Compiling MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/javac" "$javaSource")
fi
if [ -e "$javaClass" ]; then
log " - Running MavenWrapperDownloader.java ..."
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$wrapperUrl" "$wrapperJarPath") || rm -f "$wrapperJarPath"
fi
fi
fi
fi
##########################################################################################
# End of extension
##########################################################################################
# If specified, validate the SHA-256 sum of the Maven wrapper jar file
wrapperSha256Sum=""
while IFS="=" read -r key value; do
case "$key" in (wrapperSha256Sum) wrapperSha256Sum=$value; break ;;
esac
done < "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.properties"
if [ -n "$wrapperSha256Sum" ]; then
wrapperSha256Result=false
if command -v sha256sum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | sha256sum -c > /dev/null 2>&1; then
wrapperSha256Result=true
fi
elif command -v shasum > /dev/null; then
if echo "$wrapperSha256Sum $wrapperJarPath" | shasum -a 256 -c > /dev/null 2>&1; then
wrapperSha256Result=true
fi
else
echo "Checksum validation was requested but neither 'sha256sum' or 'shasum' are available."
echo "Please install either command, or disable validation by removing 'wrapperSha256Sum' from your maven-wrapper.properties."
exit 1
fi
if [ $wrapperSha256Result = false ]; then
echo "Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised." >&2
echo "Investigate or delete $wrapperJarPath to attempt a clean download." >&2
echo "If you updated your Maven version, you need to update the specified wrapperSha256Sum property." >&2
exit 1
fi
fi
MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
# For Cygwin, switch paths to Windows format before running java
if $cygwin; then
[ -n "$JAVA_HOME" ] &&
JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
[ -n "$CLASSPATH" ] &&
CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
[ -n "$MAVEN_PROJECTBASEDIR" ] &&
MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
fi
# Provide a "standardized" way to retrieve the CLI args that will
# work with both Windows and non-Windows executions.
MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $*"
export MAVEN_CMD_LINE_ARGS
WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
# shellcheck disable=SC2086 # safe args
exec "$JAVACMD" \
$MAVEN_OPTS \
$MAVEN_DEBUG_OPTS \
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
"-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"

205
mvnw.cmd vendored

@ -1,205 +0,0 @@
@REM ----------------------------------------------------------------------------
@REM Licensed to the Apache Software Foundation (ASF) under one
@REM or more contributor license agreements. See the NOTICE file
@REM distributed with this work for additional information
@REM regarding copyright ownership. The ASF licenses this file
@REM to you under the Apache License, Version 2.0 (the
@REM "License"); you may not use this file except in compliance
@REM with the License. You may obtain a copy of the License at
@REM
@REM https://www.apache.org/licenses/LICENSE-2.0
@REM
@REM Unless required by applicable law or agreed to in writing,
@REM software distributed under the License is distributed on an
@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
@REM KIND, either express or implied. See the License for the
@REM specific language governing permissions and limitations
@REM under the License.
@REM ----------------------------------------------------------------------------
@REM ----------------------------------------------------------------------------
@REM Apache Maven Wrapper startup batch script, version 3.2.0
@REM
@REM Required ENV vars:
@REM JAVA_HOME - location of a JDK home dir
@REM
@REM Optional ENV vars
@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
@REM e.g. to debug Maven itself, use
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
@REM ----------------------------------------------------------------------------
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
@echo off
@REM set title of command window
title %0
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
@REM set %HOME% to equivalent of $HOME
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
@REM Execute a user defined script before this one
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
@REM check for pre script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_pre.bat" call "%USERPROFILE%\mavenrc_pre.bat" %*
if exist "%USERPROFILE%\mavenrc_pre.cmd" call "%USERPROFILE%\mavenrc_pre.cmd" %*
:skipRcPre
@setlocal
set ERROR_CODE=0
@REM To isolate internal variables from possible post scripts, we use another setlocal
@setlocal
@REM ==== START VALIDATION ====
if not "%JAVA_HOME%" == "" goto OkJHome
echo.
echo Error: JAVA_HOME not found in your environment. >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
:OkJHome
if exist "%JAVA_HOME%\bin\java.exe" goto init
echo.
echo Error: JAVA_HOME is set to an invalid directory. >&2
echo JAVA_HOME = "%JAVA_HOME%" >&2
echo Please set the JAVA_HOME variable in your environment to match the >&2
echo location of your Java installation. >&2
echo.
goto error
@REM ==== END VALIDATION ====
:init
@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
@REM Fallback to current working directory if not found.
set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
set EXEC_DIR=%CD%
set WDIR=%EXEC_DIR%
:findBaseDir
IF EXIST "%WDIR%"\.mvn goto baseDirFound
cd ..
IF "%WDIR%"=="%CD%" goto baseDirNotFound
set WDIR=%CD%
goto findBaseDir
:baseDirFound
set MAVEN_PROJECTBASEDIR=%WDIR%
cd "%EXEC_DIR%"
goto endDetectBaseDir
:baseDirNotFound
set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
cd "%EXEC_DIR%"
:endDetectBaseDir
IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
@setlocal EnableExtensions EnableDelayedExpansion
for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
:endReadAdditionalConfig
SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
set WRAPPER_URL="https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperUrl" SET WRAPPER_URL=%%B
)
@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
if exist %WRAPPER_JAR% (
if "%MVNW_VERBOSE%" == "true" (
echo Found %WRAPPER_JAR%
)
) else (
if not "%MVNW_REPOURL%" == "" (
SET WRAPPER_URL="%MVNW_REPOURL%/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar"
)
if "%MVNW_VERBOSE%" == "true" (
echo Couldn't find %WRAPPER_JAR%, downloading it ...
echo Downloading from: %WRAPPER_URL%
)
powershell -Command "&{"^
"$webclient = new-object System.Net.WebClient;"^
"if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
"$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
"}"^
"[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%WRAPPER_URL%', '%WRAPPER_JAR%')"^
"}"
if "%MVNW_VERBOSE%" == "true" (
echo Finished downloading %WRAPPER_JAR%
)
)
@REM End of extension
@REM If specified, validate the SHA-256 sum of the Maven wrapper jar file
SET WRAPPER_SHA_256_SUM=""
FOR /F "usebackq tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
IF "%%A"=="wrapperSha256Sum" SET WRAPPER_SHA_256_SUM=%%B
)
IF NOT %WRAPPER_SHA_256_SUM%=="" (
powershell -Command "&{"^
"$hash = (Get-FileHash \"%WRAPPER_JAR%\" -Algorithm SHA256).Hash.ToLower();"^
"If('%WRAPPER_SHA_256_SUM%' -ne $hash){"^
" Write-Output 'Error: Failed to validate Maven wrapper SHA-256, your Maven wrapper might be compromised.';"^
" Write-Output 'Investigate or delete %WRAPPER_JAR% to attempt a clean download.';"^
" Write-Output 'If you updated your Maven version, you need to update the specified wrapperSha256Sum property.';"^
" exit 1;"^
"}"^
"}"
if ERRORLEVEL 1 goto error
)
@REM Provide a "standardized" way to retrieve the CLI args that will
@REM work with both Windows and non-Windows executions.
set MAVEN_CMD_LINE_ARGS=%*
%MAVEN_JAVA_EXE% ^
%JVM_CONFIG_MAVEN_PROPS% ^
%MAVEN_OPTS% ^
%MAVEN_DEBUG_OPTS% ^
-classpath %WRAPPER_JAR% ^
"-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" ^
%WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
if ERRORLEVEL 1 goto error
goto end
:error
set ERROR_CODE=1
:end
@endlocal & set ERROR_CODE=%ERROR_CODE%
if not "%MAVEN_SKIP_RC%"=="" goto skipRcPost
@REM check for post script, once with legacy .bat ending and once with .cmd ending
if exist "%USERPROFILE%\mavenrc_post.bat" call "%USERPROFILE%\mavenrc_post.bat"
if exist "%USERPROFILE%\mavenrc_post.cmd" call "%USERPROFILE%\mavenrc_post.cmd"
:skipRcPost
@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
if "%MAVEN_BATCH_PAUSE%"=="on" pause
if "%MAVEN_TERMINATE_CMD%"=="on" exit %ERROR_CODE%
cmd /C exit /B %ERROR_CODE%

File diff suppressed because it is too large Load Diff

@ -0,0 +1,8 @@
build.xml.data.CRC32=665bec45
build.xml.script.CRC32=dfa81c11
build.xml.stylesheet.CRC32=8064a381@1.80.1.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=665bec45
nbproject/build-impl.xml.script.CRC32=363e5c3a
nbproject/build-impl.xml.stylesheet.CRC32=830a3534@1.80.1.48

@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<jax-ws xmlns="http://www.netbeans.org/ns/jax-ws/1">
<services/>
<clients>
<client name="XydlService">
<wsdl-url>http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl</wsdl-url>
<local-wsdl-file>10.0.17.24_8084/busi-back-ws/service/XydlService.wsdl</local-wsdl-file>
<package-name forceReplace="true">i2client</package-name>
<catalog-file>catalog.xml</catalog-file>
<wsimport-options>
<wsimport-option>
<wsimport-option-name>extension</wsimport-option-name>
<wsimport-option-value>true</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>verbose</wsimport-option-name>
<wsimport-option-value>true</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>fork</wsimport-option-name>
<wsimport-option-value>false</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>wsdlLocation</wsimport-option-name>
<wsimport-option-value>http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>xnocompile</wsimport-option-name>
<wsimport-option-value>true</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>xendorsed</wsimport-option-name>
<wsimport-option-value>true</wsimport-option-value>
</wsimport-option>
<wsimport-option>
<wsimport-option-name>package</wsimport-option-name>
<wsimport-option-value>i2client</wsimport-option-value>
</wsimport-option>
</wsimport-options>
</client>
</clients>
</jax-ws>

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="UTF-8"?><!--
*** GENERATED FROM jax-ws.xml - DO NOT EDIT ! ***
*** TO MODIFY wsimport options USE Web Service node -> Edit WS Attributes ***
*** TO CHANGE TARGETS GENERATED TO jaxws-build.xml COPY THOSE ***
*** TARGETS TO ../build.xml AND MODIFY THAT FILE INSTEAD ***
--><project xmlns:xalan="http://xml.apache.org/xslt" xmlns:j2seproject3="http://www.netbeans.org/ns/j2se-project/3" xmlns:jaxws="http://www.netbeans.org/ns/jax-ws/1">
<!--
===================
JAX-WS WSIMPORT SECTION
===================
-->
<target name="wsimport-init" depends="init">
<mkdir dir="${build.generated.sources.dir}/jax-ws"/>
<taskdef name="wsimport" classname="com.sun.tools.ws.ant.WsImport">
<classpath path="${libs.jaxws21.classpath}"/>
</taskdef>
</target>
<target name="wsimport-client-XydlService" depends="wsimport-init">
<mkdir dir="${build.generated.dir}/jax-wsCache/XydlService"/>
<property name="wsdl-XydlService" location="xml-resources/web-service-references/XydlService/wsdl/10.0.17.24_8084/busi-back-ws/service/XydlService.wsdl"/>
<wsimport sourcedestdir="${build.generated.dir}/jax-wsCache/XydlService" destdir="${build.generated.dir}/jax-wsCache/XydlService" wsdl="${wsdl-XydlService}" catalog="catalog.xml" encoding="${source.encoding}" extension="true" verbose="true" fork="false" wsdlLocation="http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl" xnocompile="true" xendorsed="true" package="i2client">
<depends file="${wsdl-XydlService}"/>
<produces dir="${build.generated.dir}/jax-wsCache/XydlService"/>
</wsimport>
<copy todir="${build.generated.sources.dir}/jax-ws">
<fileset dir="${build.generated.dir}/jax-wsCache/XydlService">
<include name="**/*.java"/>
</fileset>
</copy>
</target>
<target name="wsimport-client-clean-XydlService" depends="-init-project">
<delete dir="${build.generated.dir}/jax-wsCache/XydlService"/>
<delete dir="${build.generated.sources.dir}/jax-ws/i2client"/>
</target>
<target name="wsimport-client-generate" depends="wsimport-client-XydlService"/>
</project>

@ -0,0 +1,6 @@
compile.on.save=true
do.depend=false
do.jar=true
javac.debug=true
javadoc.preview=true
user.properties.file=/home/htdev/.netbeans/8.2/build.properties

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-private xmlns="http://www.netbeans.org/ns/project-private/1">
<editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/2" lastBookmarkId="0"/>
<open-files xmlns="http://www.netbeans.org/ns/projectui-open-files/2">
<group>
<file>file:/home/htdev/newcac/sourceproj/I2client-XBD/nbproject/jaxws-build.xml</file>
</group>
</open-files>
</project-private>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment/>
<entry key="ACTIVATED_FEATURES">#org.netbeans.modules.profiler.v2.features.SQLFeature@#org.netbeans.modules.profiler.v2.features.MonitorFeature@</entry>
<entry key="SINGLE_FEATURE">false</entry>
</properties>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://schemas.xmlsoap.org/wsdl/" uri="schemas.xmlsoap.org/wsdl/index.xsd"/>
<system systemId="http://schemas.xmlsoap.org/wsdl/soap/" uri="schemas.xmlsoap.org/wsdl/soap/index.xsd"/>
<system systemId="http://schemas.xmlsoap.org/soap/http" uri="schemas.xmlsoap.org/soap/http/index"/>
</catalog>

@ -0,0 +1,310 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2001 - 2005, International Business Machines Corporation and Microsoft Corporation
All Rights Reserved
License for WSDL Schema Files
The Authors grant permission to copy and distribute the WSDL Schema
Files in any medium without fee or royalty as long as this notice and
license are distributed with them. The originals of these files can
be located at:
http://schemas.xmlsoap.org/wsdl/2003-02-11.xsd
THESE SCHEMA FILES ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS
OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THESE FILES, INCLUDING, BUT NOT
LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NON-INFRINGEMENT OR TITLE. THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT,
INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR
RELATING TO ANY USE OR DISTRIBUTION OF THESE FILES.
The name and trademarks of the Authors may NOT be used in any manner,
including advertising or publicity pertaining to these files or any program
or service that uses these files, written prior permission. Title to copyright
in these files will at all times remain with the Authors.
No other rights are granted by implication, estoppel or otherwise.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://schemas.xmlsoap.org/wsdl/"
elementFormDefault="qualified" >
<xs:complexType mixed="true" name="tDocumentation" >
<xs:sequence>
<xs:any minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="tDocumented" >
<xs:annotation>
<xs:documentation>
This type is extended by component types to allow them to be documented
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="documentation" type="wsdl:tDocumentation" minOccurs="0" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="tExtensibleAttributesDocumented" abstract="true" >
<xs:complexContent>
<xs:extension base="wsdl:tDocumented" >
<xs:annotation>
<xs:documentation>
This type is extended by component types to allow attributes from other namespaces to be added.
</xs:documentation>
</xs:annotation>
<xs:anyAttribute namespace="##other" processContents="lax" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tExtensibleDocumented" abstract="true" >
<xs:complexContent>
<xs:extension base="wsdl:tDocumented" >
<xs:annotation>
<xs:documentation>
This type is extended by component types to allow elements from other namespaces to be added.
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:any namespace="##other" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="definitions" type="wsdl:tDefinitions" >
<xs:key name="message" >
<xs:selector xpath="wsdl:message" />
<xs:field xpath="@name" />
</xs:key>
<xs:key name="portType" >
<xs:selector xpath="wsdl:portType" />
<xs:field xpath="@name" />
</xs:key>
<xs:key name="binding" >
<xs:selector xpath="wsdl:binding" />
<xs:field xpath="@name" />
</xs:key>
<xs:key name="service" >
<xs:selector xpath="wsdl:service" />
<xs:field xpath="@name" />
</xs:key>
<xs:key name="import" >
<xs:selector xpath="wsdl:import" />
<xs:field xpath="@namespace" />
</xs:key>
</xs:element>
<xs:group name="anyTopLevelOptionalElement" >
<xs:annotation>
<xs:documentation>
Any top level optional element allowed to appear more then once - any child of definitions element except wsdl:types. Any extensibility element is allowed in any place.
</xs:documentation>
</xs:annotation>
<xs:choice>
<xs:element name="import" type="wsdl:tImport" />
<xs:element name="types" type="wsdl:tTypes" />
<xs:element name="message" type="wsdl:tMessage" >
<xs:unique name="part" >
<xs:selector xpath="wsdl:part" />
<xs:field xpath="@name" />
</xs:unique>
</xs:element>
<xs:element name="portType" type="wsdl:tPortType" />
<xs:element name="binding" type="wsdl:tBinding" />
<xs:element name="service" type="wsdl:tService" >
<xs:unique name="port" >
<xs:selector xpath="wsdl:port" />
<xs:field xpath="@name" />
</xs:unique>
</xs:element>
</xs:choice>
</xs:group>
<xs:complexType name="tDefinitions" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:sequence>
<xs:group ref="wsdl:anyTopLevelOptionalElement" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="targetNamespace" type="xs:anyURI" use="optional" />
<xs:attribute name="name" type="xs:NCName" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tImport" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleAttributesDocumented" >
<xs:attribute name="namespace" type="xs:anyURI" use="required" />
<xs:attribute name="location" type="xs:anyURI" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tTypes" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" />
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tMessage" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:sequence>
<xs:element name="part" type="wsdl:tPart" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:NCName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tPart" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleAttributesDocumented" >
<xs:attribute name="name" type="xs:NCName" use="required" />
<xs:attribute name="element" type="xs:QName" use="optional" />
<xs:attribute name="type" type="xs:QName" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tPortType" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleAttributesDocumented" >
<xs:sequence>
<xs:element name="operation" type="wsdl:tOperation" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:NCName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tOperation" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:sequence>
<xs:choice>
<xs:group ref="wsdl:request-response-or-one-way-operation" />
<xs:group ref="wsdl:solicit-response-or-notification-operation" />
</xs:choice>
</xs:sequence>
<xs:attribute name="name" type="xs:NCName" use="required" />
<xs:attribute name="parameterOrder" type="xs:NMTOKENS" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:group name="request-response-or-one-way-operation" >
<xs:sequence>
<xs:element name="input" type="wsdl:tParam" />
<xs:sequence minOccurs='0' >
<xs:element name="output" type="wsdl:tParam" />
<xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:sequence>
</xs:group>
<xs:group name="solicit-response-or-notification-operation" >
<xs:sequence>
<xs:element name="output" type="wsdl:tParam" />
<xs:sequence minOccurs='0' >
<xs:element name="input" type="wsdl:tParam" />
<xs:element name="fault" type="wsdl:tFault" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:sequence>
</xs:group>
<xs:complexType name="tParam" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleAttributesDocumented" >
<xs:attribute name="name" type="xs:NCName" use="optional" />
<xs:attribute name="message" type="xs:QName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tFault" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleAttributesDocumented" >
<xs:attribute name="name" type="xs:NCName" use="required" />
<xs:attribute name="message" type="xs:QName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tBinding" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:sequence>
<xs:element name="operation" type="wsdl:tBindingOperation" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:NCName" use="required" />
<xs:attribute name="type" type="xs:QName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tBindingOperationMessage" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:attribute name="name" type="xs:NCName" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tBindingOperationFault" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:attribute name="name" type="xs:NCName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tBindingOperation" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:sequence>
<xs:element name="input" type="wsdl:tBindingOperationMessage" minOccurs="0" />
<xs:element name="output" type="wsdl:tBindingOperationMessage" minOccurs="0" />
<xs:element name="fault" type="wsdl:tBindingOperationFault" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:NCName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tService" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:sequence>
<xs:element name="port" type="wsdl:tPort" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attribute name="name" type="xs:NCName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tPort" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibleDocumented" >
<xs:attribute name="name" type="xs:NCName" use="required" />
<xs:attribute name="binding" type="xs:QName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:attribute name="arrayType" type="xs:string" />
<xs:attribute name="required" type="xs:boolean" />
<xs:complexType name="tExtensibilityElement" abstract="true" >
<xs:attribute ref="wsdl:required" use="optional" />
</xs:complexType>
</xs:schema>

@ -0,0 +1,149 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!--
Copyright 2001 - 2005, International Business Machines Corporation and Microsoft Corporation
All Rights Reserved
License for WSDL Schema Files
The Authors grant permission to copy and distribute the WSDL Schema
Files in any medium without fee or royalty as long as this notice and
license are distributed with them. The originals of these files can
be located at:
http://schemas.xmlsoap.org/wsdl/soap/2003-02-11.xsd
THESE SCHEMA FILES ARE PROVIDED "AS IS," AND THE AUTHORS MAKE NO REPRESENTATIONS
OR WARRANTIES, EXPRESS OR IMPLIED, REGARDING THESE FILES, INCLUDING, BUT NOT
LIMITED TO, WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE,
NON-INFRINGEMENT OR TITLE. THE AUTHORS WILL NOT BE LIABLE FOR ANY DIRECT,
INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF OR
RELATING TO ANY USE OR DISTRIBUTION OF THESE FILES.
The name and trademarks of the Authors may NOT be used in any manner,
including advertising or publicity pertaining to these files or any program
or service that uses these files, written prior permission. Title to copyright
in these files will at all times remain with the Authors.
No other rights are granted by implication, estoppel or otherwise.
-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
targetNamespace="http://schemas.xmlsoap.org/wsdl/soap/" >
<xs:import namespace = "http://schemas.xmlsoap.org/wsdl/" />
<xs:simpleType name="encodingStyle" >
<xs:annotation>
<xs:documentation>
"encodingStyle" indicates any canonicalization conventions followed in the contents of the containing element. For example, the value "http://schemas.xmlsoap.org/soap/encoding/" indicates the pattern described in SOAP specification
</xs:documentation>
</xs:annotation>
<xs:list itemType="xs:anyURI" />
</xs:simpleType>
<xs:element name="binding" type="soap:tBinding" />
<xs:complexType name="tBinding" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibilityElement" >
<xs:attribute name="transport" type="xs:anyURI" use="required" />
<xs:attribute name="style" type="soap:tStyleChoice" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="tStyleChoice" >
<xs:restriction base="xs:string" >
<xs:enumeration value="rpc" />
<xs:enumeration value="document" />
</xs:restriction>
</xs:simpleType>
<xs:element name="operation" type="soap:tOperation" />
<xs:complexType name="tOperation" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibilityElement" >
<xs:attribute name="soapAction" type="xs:anyURI" use="optional" />
<xs:attribute name="style" type="soap:tStyleChoice" use="optional" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="body" type="soap:tBody" />
<xs:attributeGroup name="tBodyAttributes" >
<xs:attribute name="encodingStyle" type="soap:encodingStyle" use="optional" />
<xs:attribute name="use" type="soap:useChoice" use="optional" />
<xs:attribute name="namespace" type="xs:anyURI" use="optional" />
</xs:attributeGroup>
<xs:complexType name="tBody" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibilityElement" >
<xs:attribute name="parts" type="xs:NMTOKENS" use="optional" />
<xs:attributeGroup ref = "soap:tBodyAttributes" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:simpleType name="useChoice" >
<xs:restriction base="xs:string" >
<xs:enumeration value="literal" />
<xs:enumeration value="encoded" />
</xs:restriction>
</xs:simpleType>
<xs:element name="fault" type="soap:tFault" />
<xs:complexType name="tFaultRes" abstract="true" >
<xs:complexContent>
<xs:restriction base="soap:tBody" >
<xs:attribute ref="wsdl:required" use="optional" />
<xs:attribute name="parts" type="xs:NMTOKENS" use="prohibited" />
<xs:attributeGroup ref="soap:tBodyAttributes" />
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="tFault" >
<xs:complexContent>
<xs:extension base="soap:tFaultRes">
<xs:attribute name="name" type="xs:NCName" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="header" type="soap:tHeader" />
<xs:attributeGroup name="tHeaderAttributes" >
<xs:attribute name="message" type="xs:QName" use="required" />
<xs:attribute name="part" type="xs:NMTOKEN" use="required" />
<xs:attribute name="use" type="soap:useChoice" use="required" />
<xs:attribute name="encodingStyle" type="soap:encodingStyle" use="optional" />
<xs:attribute name="namespace" type="xs:anyURI" use="optional" />
</xs:attributeGroup>
<xs:complexType name="tHeader" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibilityElement" >
<xs:sequence>
<xs:element ref="soap:headerfault" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
<xs:attributeGroup ref="soap:tHeaderAttributes" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:element name="headerfault" type="soap:tHeaderFault" />
<xs:complexType name="tHeaderFault" >
<xs:attributeGroup ref="soap:tHeaderAttributes" />
</xs:complexType>
<xs:element name="address" type="soap:tAddress" />
<xs:complexType name="tAddress" >
<xs:complexContent>
<xs:extension base="wsdl:tExtensibilityElement" >
<xs:attribute name="location" type="xs:anyURI" use="required" />
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:schema>

@ -0,0 +1,112 @@
annotation.processing.enabled=true
annotation.processing.enabled.in.editor=false
annotation.processing.processors.list=
annotation.processing.run.all.processors=true
annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output
application.title=I2client
application.vendor=LENOVO
build.classes.dir=${build.dir}/classes
build.classes.excludes=**/*.java,**/*.form
# This directory is removed when the project is cleaned:
build.dir=build
build.generated.dir=${build.dir}/generated
build.generated.sources.dir=${build.dir}/generated-sources
# Only compile against the classpath explicitly listed here:
build.sysclasspath=ignore
build.test.classes.dir=${build.dir}/test/classes
build.test.results.dir=${build.dir}/test/results
# Uncomment to specify the preferred debugger connection transport:
#debug.transport=dt_socket
debug.classpath=\
${run.classpath}
debug.modulepath=\
${run.modulepath}
debug.test.classpath=\
${run.test.classpath}
debug.test.modulepath=\
${run.test.modulepath}
# build.classes.dir \u4e2d\u5e94\u4ece\u5206\u53d1 jar \u4e2d\u6392\u9664\u7684\u6587\u4ef6
dist.archive.excludes=
# This directory is removed when the project is cleaned:
dist.dir=dist
dist.jar=${dist.dir}/I2client.jar
dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=\
${libs.JAXB-ENDORSED.classpath}
excludes=
file.reference.activation.jar=activation.jar
file.reference.axis.jar=axis.jar
file.reference.commons-discovery-0.2.jar=commons-discovery-0.2.jar
file.reference.commons-logging-1.0.4.jar=commons-logging-1.0.4.jar
file.reference.jaxrpc.jar=jaxrpc.jar
file.reference.jdom.jar=jdom.jar
file.reference.mailapi_1_3_1.jar=mailapi_1_3_1.jar
file.reference.saaj.jar=saaj.jar
file.reference.wsdl4j-1.5.1.jar=wsdl4j-1.5.1.jar
includes=**
jar.compress=false
javac.classpath=\
${libs.MySQLDriver.classpath}:\
${file.reference.axis.jar}:\
${file.reference.commons-discovery-0.2.jar}:\
${file.reference.commons-logging-1.0.4.jar}:\
${file.reference.saaj.jar}:\
${file.reference.jaxrpc.jar}:\
${file.reference.wsdl4j-1.5.1.jar}:\
${file.reference.activation.jar}:\
${file.reference.mailapi_1_3_1.jar}:\
${file.reference.jdom.jar}
# Space-separated list of extra javac options
javac.compilerargs=
javac.deprecation=false
javac.external.vm=true
javac.modulepath=
javac.processormodulepath=
javac.processorpath=\
${javac.classpath}
javac.source=1.8
javac.target=1.8
javac.test.classpath=\
${javac.classpath}:\
${build.classes.dir}
javac.test.modulepath=\
${javac.modulepath}
javac.test.processorpath=\
${javac.test.classpath}
javadoc.additionalparam=
javadoc.author=false
javadoc.encoding=${source.encoding}
javadoc.noindex=false
javadoc.nonavbar=false
javadoc.notree=false
javadoc.private=false
javadoc.splitindex=true
javadoc.use=true
javadoc.version=false
javadoc.windowtitle=
jaxbwiz.gensrc.classpath=${libs.jaxb.classpath}
jaxbwiz.xjcdef.classpath=${libs.jaxb.classpath}
jaxbwiz.xjcrun.classpath=${libs.jaxb.classpath}
main.class=i2client.Index
manifest.file=manifest.mf
meta.inf.dir=${src.dir}/META-INF
mkdist.disabled=false
platform.active=default_platform
run.classpath=\
${javac.classpath}:\
${build.classes.dir}
# Space-separated list of JVM arguments used when running the project.
# You may also define separate properties like run-sys-prop.name=value instead of -Dname=value.
# To set system properties for unit tests define test-sys-prop.name=value:
run.jvmargs=
run.modulepath=\
${javac.modulepath}
run.test.classpath=\
${javac.test.classpath}:\
${build.test.classes.dir}
run.test.modulepath=\
${javac.test.modulepath}
source.encoding=UTF-8
src.dir=src
test.src.dir=test
compile.on.save.unsupported.jaxws=true

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://www.netbeans.org/ns/project/1">
<type>org.netbeans.modules.java.j2seproject</type>
<configuration>
<buildExtensions xmlns="http://www.netbeans.org/ns/ant-build-extender/1">
<extension file="jaxws-build.xml" id="jaxws">
<dependency dependsOn="wsimport-client-generate" target="-pre-pre-compile"/>
</extension>
</buildExtensions>
<data xmlns="http://www.netbeans.org/ns/j2se-project/3">
<name>I2client</name>
<source-roots>
<root id="src.dir"/>
</source-roots>
<test-roots>
<root id="test.src.dir"/>
</test-roots>
</data>
</configuration>
</project>

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?><!--
*** GENERATED FROM xml_binding_cfg.xml - DO NOT EDIT ***
*** Configure thru JAXB Wizard. ***
--><project name="I2client_jaxb" default="default" basedir=".">
<target name="xjc-typedef-target" depends="-init-project">
<typedef classname="com.sun.tools.xjc.XJCTask" name="xjc" xmlns:s="http://xml.netbeans.org/schema/JAXBWizConfig">
<classpath path="${jaxbwiz.xjcdef.classpath}"/>
</typedef>
</target>
<target name="jaxb-clean-code-generation" depends="clean,jaxb-code-generation"/>
<target name="jaxb-code-generation" depends="xjc-typedef-target,-do-init,-init-macrodef-javac">
<mkdir dir="${build.generated.sources.dir}/jaxb" xmlns:s="http://xml.netbeans.org/schema/JAXBWizConfig"/>
<mkdir dir="build/generated/jaxbCache" xmlns:s="http://xml.netbeans.org/schema/JAXBWizConfig"/>
</target>
</project>

@ -0,0 +1,3 @@
<?xml version='1.0' encoding='UTF-8' ?>
<schemas xmlns='http://xml.netbeans.org/schema/JAXBWizConfig' destdir='build/generated-sources/jaxb' projectName='I2client' version='1.0'>
</schemas>

@ -1,217 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>com.shxy</groupId>
<artifactId>i2</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>i2</name>
<description>Demo project for Spring Boot</description>
<properties>
<java.version>1.8</java.version>
<xymanager.version>1.0.0</xymanager.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot-dependencies.version>2.5.6</spring-boot-dependencies.version>
<swagger.version>3.0.0</swagger.version>
<knife4j-spring-boot.version>3.0.2</knife4j-spring-boot.version>
<swagger-annotations.version>1.5.21</swagger-annotations.version>
<swagger-models.version>1.5.21</swagger-models.version>
<fastjson.version>1.2.79</fastjson.version>
<druid.version>1.2.8</druid.version>
<mybatis-spring-boot.version>2.2.0</mybatis-spring-boot.version>
<pagehelper.boot.version>1.4.0</pagehelper.boot.version>
<commons.fileupload.version>1.4</commons.fileupload.version>
<jwt.version>0.9.0</jwt.version>
<mybatisplus.version>3.2.0</mybatisplus.version>
<easyexcel.version>3.2.1</easyexcel.version>
</properties>
<dependencies>
<!-- SpringBoot的依赖配置-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-dependencies</artifactId>
<version>${spring-boot-dependencies.version}</version>
<type>pom</type>
</dependency>
<!-- SpringBoot Web容器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- SpringBoot 拦截器 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-aop</artifactId>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--mybatis-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>${mybatis-spring-boot.version}</version>
</dependency>
<!-- 阿里数据库连接池 -->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${druid.version}</version>
</dependency>
<!-- Mysql驱动包 -->
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.27</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<!-- pagehelper 分页插件 -->
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<version>${pagehelper.boot.version}</version>
</dependency>
<!--lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
</dependency>
<!-- 引入log4j2依赖 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<!--用于解决tomcat中log4j2-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.11</version>
</dependency>
<!--一个开源工具类 一个Java基础工具类对文件、流、加密解密、转码、正则、线程、XML等JDK方法进行封装组成各种Util工具类-->
<dependency>
<groupId>cn.hutool</groupId>
<artifactId>hutool-all</artifactId>
<version>5.7.20</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-web</artifactId>-->
<!-- </dependency>-->
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-web-services</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxws</artifactId>
<version>3.5.5</version>
</dependency>
<!-- CXF webservice -->
<!-- <dependency>-->
<!-- <groupId>org.apache.cxf</groupId>-->
<!-- <artifactId>cxf-spring-boot-starter-jaxws</artifactId>-->
<!-- <version>3.4.5</version>-->
<!-- </dependency>-->
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http</artifactId>
<version>3.2.5</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<exclusions>
<exclusion>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
</exclusion>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.mybatis.generator</groupId>
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<builder>paketobuildpacks/builder-jammy-base:latest</builder>
</image>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -1,8 +0,0 @@
CREATE TABLE `upload_statics` (
`id` int NOT NULL AUTO_INCREMENT,
`check_type` varchar(32) NOT NULL,
`first_value` bigint DEFAULT NULL,
`upload_time` date DEFAULT NULL COMMENT '上传记录的日期',
`update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci COMMENT='i2上传Id的确认表';

@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
<system systemId="http://222.90.232.140:8443/xydl/service/XydlService?wsdl" uri="wsdl/222.90.232.140_8443/xydl/service/XydlService.wsdl"/>
<system systemId="http://10.0.17.24:8084/busi-back-ws/service/XydlService?wsdl" uri="wsdl/10.0.17.24_8084/busi-back-ws/service/XydlService.wsdl"/>
</catalog>

@ -0,0 +1,349 @@
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package i2client;
import java.io.BufferedReader;
import java.lang.reflect.Field;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
/**
*
* @author LENOVO
*/
public class DBHelper {
private static String DRIVER="";
//private static final String URL="jdbc:mysql://192.168.1.188/dss";
private static String URL="";
private static String USER="";
private static String PASSWORD="";
private static String SJZD="";
private static String DRIVER_SJZD="";
private static String URL_SJZD="";
private static String USER_SJZD="";
private static String PASSWORD_SJZD="";
private static String URL_WS="";
public void GetText(String path){
if(DRIVER!="" || DRIVER_SJZD!=""){
return;
}
// 1.定义目标文件
File srcFile = new File(path);
// 2.创建一个流,指向目标文件
BufferedReader is = null;
try {
is = new BufferedReader(new FileReader(srcFile));
int i= 0;
String s = null;
while ((s = is.readLine()) != null) {// 使用readLine方法一次读一行
if(i==0){
DRIVER = s;
}
if(i==1){
URL = s;
}
if(i==2){
USER = s;
}
if(i==3){
PASSWORD = s;
}
if(i==4){
SJZD = s;
}
if(i==5){
DRIVER_SJZD = s;
}
if(i==6){
URL_SJZD = s;
}
if(i==7){
USER_SJZD = s;
}
if(i==8){
PASSWORD_SJZD = s;
}
if(i==10){
URL_WS = s;
}
i++;
}
} catch (FileNotFoundException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
} finally {
// 关闭io流
try {
is.close();
} catch (IOException e) {
e.printStackTrace();
}
}
}
public URL getWsdlLocation(){
GetText("/home/shjdconfig.txt");
String urlWS = URL_WS;
URL url = null;
try{
url = new URL(urlWS);
} catch(MalformedURLException e){
e.printStackTrace();
}
return url;
}
/**
*
* @return
*/
public Connection getConnection(){
GetText("/home/shjdconfig.txt");
//GetText("E:\\shjd\\shjdconfig.txt");
Connection conn=null;
try {
Class.forName(DRIVER);
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
conn=DriverManager.getConnection(URL, USER, PASSWORD);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
return conn;
}
public Connection getConnectionSJZD(){
String off = "OFF";
String on = "ON";
GetText("/home/shjdconfig.txt");
Connection conn_SJZD=null;
if(SJZD.equals(off)){
return null;
} else if(SJZD.equals(on)){
try {
Class.forName(DRIVER_SJZD);
} catch (ClassNotFoundException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
try {
conn_SJZD=DriverManager.getConnection(URL_SJZD, USER_SJZD, PASSWORD_SJZD);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return conn_SJZD;
}
/**
*
* @param rs
* @param pstmt
* @param conn
*/
public void closeAll(ResultSet rs,PreparedStatement pstmt,Connection conn){
try {
if(rs!=null){
rs.close();
}
if(pstmt!=null){
pstmt.close();
}
if(conn!=null){
conn.close();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
* SJZD
* @param rsSJZD
* @param pstmtSJZD
* @param connSJZD
*/
public void closeSJZDAll(ResultSet rsSJZD,PreparedStatement pstmtSJZD,Connection connSJZD){
try {
if(rsSJZD!=null){
rsSJZD.close();
}
if(pstmtSJZD!=null){
pstmtSJZD.close();
}
if(connSJZD!=null){
connSJZD.close();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
/**
*
* @param sql
* @return true or false
*/
public int excuteUpdate(String sql){
int res=0;//受影响的行数
Connection conn=null;
PreparedStatement pstmt = null;
ResultSet rs=null;
try {
conn=getConnection();
pstmt=conn.prepareStatement(sql);//装载sql语句
res=pstmt.executeUpdate();
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
closeAll(rs, pstmt, conn);
}
return res;
}
/**
* SJZD
* @param sql
* @return true or false
*/
public int excuteSJZDUpdate(String sql){
int resSJZD=0;//受影响的行数
Connection connSJZD=null;
PreparedStatement pstmtSJZD = null;
ResultSet rsSJZD=null;
try {
connSJZD=getConnectionSJZD();
if(connSJZD != null){
pstmtSJZD=connSJZD.prepareStatement(sql);//装载sql语句
resSJZD=pstmtSJZD.executeUpdate();
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
closeSJZDAll(rsSJZD, pstmtSJZD, connSJZD);
}
return resSJZD;
}
/**
* 使
* @param sql
* @param params
* @param cls
* @return
*/
public <T> List<T> executeQuery(String sql,List<Object> params,Class<T> cls) throws Exception{
Connection conn=null;
PreparedStatement pstmt = null;
ResultSet rs=null;
List<T> data=new ArrayList<T>();
try {
conn=getConnection();
pstmt=conn.prepareStatement(sql);//装载sql语句
if(params!=null){
//加入有?占位符,在执行之前把?占位符替换掉
for(int i=0;i<params.size();i++){
pstmt.setObject(i+1, params.get(i));
}
}
rs=pstmt.executeQuery();
//把查询出来的记录封装成对应的实体类对象
ResultSetMetaData rsd=rs.getMetaData();//获得列对象,通过此对象可以得到表的结构,包括,列名,列的个数,列的数据类型
while(rs.next()){
T m=cls.newInstance();
for(int i=0;i<rsd.getColumnCount();i++){
String col_name=rsd.getColumnName(i+1);//获得列名
Object value=rs.getObject(col_name);//获得列所对应的值
Field field=cls.getDeclaredField(col_name);
field.setAccessible(true);//给私有属性设置可访问权
field.set(m, value);//给对象的私有属性赋值
}
data.add(m);
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
closeAll(rs, pstmt, conn);
}
return data;
}
/**
* 使SJZD
* @param sql
* @param params
* @param cls
* @return
*/
public <T> List<T> executeQuerySJZD(String sql,List<Object> params,Class<T> cls) throws Exception{
Connection connSJZD=null;
PreparedStatement pstmtSJZD = null;
ResultSet rsSJZD=null;
List<T> data=new ArrayList<T>();
try {
connSJZD=getConnectionSJZD();
pstmtSJZD=connSJZD.prepareStatement(sql);//装载sql语句
if(params!=null){
//加入有?占位符,在执行之前把?占位符替换掉
for(int i=0;i<params.size();i++){
pstmtSJZD.setObject(i+1, params.get(i));
}
}
rsSJZD=pstmtSJZD.executeQuery();
//把查询出来的记录封装成对应的实体类对象
ResultSetMetaData rsd=rsSJZD.getMetaData();//获得列对象,通过此对象可以得到表的结构,包括,列名,列的个数,列的数据类型
while(rsSJZD.next()){
T m=cls.newInstance();
for(int i=0;i<rsd.getColumnCount();i++){
String col_name=rsd.getColumnName(i+1);//获得列名
Object value=rsSJZD.getObject(col_name);//获得列所对应的值
Field field=cls.getDeclaredField(col_name);
field.setAccessible(true);//给私有属性设置可访问权
field.set(m, value);//给对象的私有属性赋值
}
data.add(m);
}
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}finally{
closeSJZDAll(rsSJZD, pstmtSJZD, connSJZD);
}
return data;
}
}

@ -1,199 +1,132 @@
package com.shxy.i2;
public class GenerateXmlbak {
// //解析xml
// public static TreeMap<String, String> xmlElements(String xmlDoc) throws JDOMException, IOException {
// if (xmlDoc!=null && !xmlDoc.equals("")) {
// Pattern p = Pattern.compile("\r|\n");
// Matcher m = p.matcher(xmlDoc);
// xmlDoc = m.replaceAll("");
// }//创建一个新的字符串
// StringReader read = new StringReader(xmlDoc);
// //创建新的输入源SAX 解析器将使用 InputSource 对象来确定如何读取 XML 输入
// InputSource source = new InputSource(read);
// //创建一个新的SAXBuilder
// SAXBuilder sb = new SAXBuilder();
// TreeMap<String, String> rtnMap = new TreeMap<String, String>();
// SAXBuilder builder = new SAXBuilder();
// Document doc = (Document) builder.build(new StringReader(xmlDoc));
// // 得到根节点
// Element root = doc.getRootElement();
// String rootName = root.getName();
// rtnMap.put("root.name", rootName);
// // 调用递归函数得到所有最底层元素的名称和值加入map中
// convert(root, rtnMap, rootName);
// return rtnMap;
// }
// public static void convert(Element e, Map<String, String> map, String lastname) {
// if (e.getAttributes().size() > 0) {
// Iterator it_attr = e.getAttributes().iterator();
// while (it_attr.hasNext()) {
// Attribute attribute = (Attribute) it_attr.next();
// String attrname = attribute.getName();
// String attrvalue = e.getAttributeValue(attrname);
// // map.put( attrname, attrvalue);
// map.put(lastname + "." + attrname, attrvalue); // key 根据根节点 进行生成
// }
// }
// List children = e.getChildren();
// Iterator it = children.iterator();
// while (it.hasNext()) {
// Element child = (Element) it.next();
// /* String name = lastname + "." + child.getName(); */
// String name = child.getName();
// // 如果有子节点,则递归调用
// if (child.getChildren().size() > 0) {
// convert(child, map, lastname + "." + child.getName());
// } else {
// // 如果没有子节点则把值加入map
// map.put(name, child.getText());
// // 如果该节点有属性则把所有的属性值也加入map
// if (child.getAttributes().size() > 0) {
// Iterator attr = child.getAttributes().iterator();
// while (attr.hasNext()) {
// Attribute attribute = (Attribute) attr.next();
// String attrname = attribute.getName();
// String attrvalue = child.getAttributeValue(attrname);
// map.put(lastname + "." + child.getName() + "." + attrname, attrvalue);
// }
// }
// }
// }
// }
// 变压器/电抗器断路器局部放电
public static String createCACData_byq_pd_h(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"DischargeCapacity\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] +"\"/> ";
cacdata += "<attr name=\"DischargePosition\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"PulseCount\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"DischargeWaveform\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package i2client;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import java.io.IOException;
import java.io.StringReader;
import org.jdom.Attribute;
import org.jdom.Document;
import org.jdom.Element;
import org.jdom.JDOMException;
import org.jdom.input.SAXBuilder;
import org.xml.sax.InputSource;
/**
*
* @author LENOVO
*/
public class GenerateXml {
//解析xml
public static TreeMap<String, String> xmlElements(String xmlDoc) throws JDOMException, IOException {
if (xmlDoc!=null && !xmlDoc.equals("")) {
Pattern p = Pattern.compile("\r|\n");
Matcher m = p.matcher(xmlDoc);
xmlDoc = m.replaceAll("");
}//创建一个新的字符串
StringReader read = new StringReader(xmlDoc);
//创建新的输入源SAX 解析器将使用 InputSource 对象来确定如何读取 XML 输入
InputSource source = new InputSource(read);
//创建一个新的SAXBuilder
SAXBuilder sb = new SAXBuilder();
TreeMap<String, String> rtnMap = new TreeMap<String, String>();
SAXBuilder builder = new SAXBuilder();
Document doc = (Document) builder.build(new StringReader(xmlDoc));
// 得到根节点
Element root = doc.getRootElement();
String rootName = root.getName();
rtnMap.put("root.name", rootName);
// 调用递归函数得到所有最底层元素的名称和值加入map中
convert(root, rtnMap, rootName);
return rtnMap;
}
//油色谱
public static String createCACData_YSP(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"H2\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"CH4\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"C2H6\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"C2H4\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"C2H2\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"CO\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"CO2\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"O2\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"N2\" value=\"" + datavalue[8][0] + "\" alarm=\"" + datavalue[8][1] + "\" threshold=\"" + datavalue[8][2] + "\"/> ";
cacdata += "<attr name=\"TotalHydrocarbon\" value=\"" + datavalue[9][0] + "\" alarm=\"" + datavalue[9][1] + "\" threshold=\"" + datavalue[9][2] + "\"/> ";
cacdata += "<attr name=\"GasPress\" value=\"" + datavalue[10][0] + "\" alarm=\"" + datavalue[10][1] + "\" threshold=\"" + datavalue[10][2] + "\"/> ";
cacdata += "<attr name=\"H2O\" value=\"" + datavalue[11][0] + "\" alarm=\"" + datavalue[11][1] + "\" threshold=\"" + datavalue[11][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
public static void convert(Element e, Map<String, String> map, String lastname) {
if (e.getAttributes().size() > 0) {
Iterator it_attr = e.getAttributes().iterator();
while (it_attr.hasNext()) {
Attribute attribute = (Attribute) it_attr.next();
String attrname = attribute.getName();
String attrvalue = e.getAttributeValue(attrname);
// map.put( attrname, attrvalue);
map.put(lastname + "." + attrname, attrvalue); // key 根据根节点 进行生成
}
}
List children = e.getChildren();
Iterator it = children.iterator();
while (it.hasNext()) {
Element child = (Element) it.next();
/* String name = lastname + "." + child.getName(); */
String name = child.getName();
// 如果有子节点,则递归调用
if (child.getChildren().size() > 0) {
convert(child, map, lastname + "." + child.getName());
} else {
// 如果没有子节点则把值加入map
map.put(name, child.getText());
// 如果该节点有属性则把所有的属性值也加入map
if (child.getAttributes().size() > 0) {
Iterator attr = child.getAttributes().iterator();
while (attr.hasNext()) {
Attribute attribute = (Attribute) attr.next();
String attrname = attribute.getName();
String attrvalue = child.getAttributeValue(attrname);
map.put(lastname + "." + child.getName() + "." + attrname, attrvalue);
}
}
}
}
}
public static String createCACData_YSP2(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"H2\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"CH4\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"C2H6\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"C2H4\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"C2H2\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"CO\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"CO2\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"O2\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"N2\" value=\"" + datavalue[8][0] + "\" alarm=\"" + datavalue[8][1] + "\" threshold=\"" + datavalue[8][2] + "\"/> ";
cacdata += "<attr name=\"TotalHydrocarbon\" value=\"" + datavalue[9][0] + "\" alarm=\"" + datavalue[9][1] + "\" threshold=\"" + datavalue[9][2] + "\"/> ";
cacdata += "<attr name=\"CmbuGas\" value=\"" + datavalue[10][0] + "\" alarm=\"" + datavalue[10][1] + "\" threshold=\"" + datavalue[10][2] + "\"/> ";
cacdata += "<attr name=\"MicroMoisture\" value=\"" + datavalue[11][0] + "\" alarm=\"" + datavalue[11][1] + "\" threshold=\"" + datavalue[11][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_YSP3(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
public static String createCACData_moa(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue){
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021002</type> ";
cacdata += "<type>023001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"CmbuGas\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Humidity\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"MicroMoisture\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"SystemVoltage\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"TotalCurrent\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"ResistiveCurrent\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"ActionCount\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"LastActionTime\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//微水接入
public static String createCACData_Moisture(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
public static String createCACData_eaif(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code){
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021003</type> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Moisture\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" /> ";
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"MaxTmp\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[0][1] + "\" threshold=\"" +datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"MinTmp\" value=\""+ datavalue[1][0] + "\" alarm=\"" +datavalue[1][1] + "\" threshold=\"" +datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"AvgTmp\" value=\""+ datavalue[2][0] + "\" alarm=\"" +datavalue[2][1] + "\" threshold=\"" +datavalue[2][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//铁芯
public static String createCACData_tx(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue){
String cacdata = "";
cacdata = "";
@ -206,273 +139,277 @@ public class GenerateXmlbak {
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"TotalCoreCurrent\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"TotalCoreCurrent\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[0][1] + "\" threshold=\"" +datavalue[0][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//顶层油
public static String createCACData_yw(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
public static String createCACData_eia(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue){
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021005</type> ";
cacdata += "<type>022001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"Capacitance\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[0][1] + "\" threshold=\"" +datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"LossFactor\" value=\""+ datavalue[1][0] + "\" alarm=\"" +datavalue[1][1] + "\" threshold=\"" +datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"UnbalanceCurrent\" value=\""+ datavalue[2][0] + "\" alarm=\"" +datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"UnbalanceVoltage\" value=\""+ datavalue[3][0] + "\" alarm=\"" +datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"TotalCurrent\" value=\""+ datavalue[4][0] + "\" alarm=\"" +datavalue[4][1] + "\" threshold=\"" +datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"SystemVoltage\" value=\""+ datavalue[5][0] + "\" alarm=\"" +datavalue[5][1] + "\" threshold=\"" +datavalue[5][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//金属氧化物避雷器绝缘监测·
public static String createCACData_moa(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue){
public static String createCACData_sf6pressure(String cacid, String sensorid, String equipmentid, String timestamp,String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>023001</type> ";
cacdata += "<type>024004</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"SystemVoltage\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"TotalCurrent\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"ResistiveCurrent\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"ActionCount\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"LastActionTime\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"AbsolutePressure\" value=\"" + (datavalue[1][0] +900)+ "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Density\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"Moisture\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"DewPoint\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"Pressure20C\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_eaif(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code){
public static String createCACData_sf6moisture(String cacid, String sensorid, String equipmentid, String timestamp,String phase, String[][] datavalue)
{
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<type>024005</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"MaxTmp\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[0][1] + "\" threshold=\"" +datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"MinTmp\" value=\""+ datavalue[1][0] + "\" alarm=\"" +datavalue[1][1] + "\" threshold=\"" +datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"AvgTmp\" value=\""+ datavalue[2][0] + "\" alarm=\"" +datavalue[2][1] + "\" threshold=\"" +datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"Moisture\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//电容型设备绝缘监测
public static String createCACData_eia(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue){
public static String createCACData_yw(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>022001</type> ";
cacdata += "<type>021005</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Capacitance\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[0][1] + "\" threshold=\"" +datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"LossFactor\" value=\""+ datavalue[1][0] + "\" alarm=\"" +datavalue[1][1] + "\" threshold=\"" +datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"UnbalanceCurrent\" value=\""+ datavalue[2][0] + "\" alarm=\"" +datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"UnbalanceVoltage\" value=\""+ datavalue[3][0] + "\" alarm=\"" +datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"TotalCurrent\" value=\""+ datavalue[4][0] + "\" alarm=\"" +datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"SystemVoltage\" value=\""+ datavalue[5][0] + "\" alarm=\"" +datavalue[5][1] + "\"/> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//SF6气体压力
public static String createCACData_sf6pressure(String cacid, String sensorid, String equipmentid, String timestamp,String phase, String[][] datavalue)
public static String createCACData_mlh(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024004</type> ";
cacdata += "<type>"+code+"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"AbsolutePressure\" value=\"" + (datavalue[1][0] +900)+ "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"Density\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"Pressure20C\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"AirTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"AirPressure\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"Humidity\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Precipitation\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"PrecipitationIntensity\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"RadiationIntensity\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"wdgustspd\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"wddir\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//SF6 气体水分
public static String createCACData_sf6moisture(String cacid, String sensorid, String equipmentid, String timestamp,String phase, String[][] datavalue)
public static String createCACData_dmh(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024005</type> ";
cacdata += "<type>025001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"Moisture\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_mlh(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code)
public static String createCACData_pd_h(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>"+code+"</type> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"AirTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"AirPressure\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"Humidity\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Precipitation\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"PrecipitationIntensity\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"RadiationIntensity\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"wdgustspd\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"wddir\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"DischargeCapacity\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"DischargePosition\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"PulseCount\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"DischargeWaveform\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"PaDschAlm\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"DschType\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_dmh(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
public static String createCACData_DLQWave(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>025001</type> ";
cacdata += "<type>024002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"Action\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"CoilWaveform\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//断路器局部放电
public static String createCACData_pd_h(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue,String code)
public static String createCACData_YSP(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024001</type> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"DischargeCapacity\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] +"\"/> ";
cacdata += "<attr name=\"DischargePosition\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"PulseCount\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"DischargeWaveform\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"PaDschAlm\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"DschType\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\"/> ";
cacdata += "<attr name=\"H2\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"CH4\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"C2H6\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"C2H4\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"C2H2\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"CO\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"CO2\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"O2\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"N2\" value=\"" + datavalue[8][0] + "\" alarm=\"" + datavalue[8][1] + "\" threshold=\"" + datavalue[8][2] + "\"/> ";
cacdata += "<attr name=\"TotalHydrocarbon\" value=\"" + datavalue[9][0] + "\" alarm=\"" + datavalue[9][1] + "\" threshold=\"" + datavalue[9][2] + "\"/> ";
cacdata += "<attr name=\"GasPress\" value=\"" + datavalue[10][0] + "\" alarm=\"" + datavalue[10][1] + "\" threshold=\"" + datavalue[10][2] + "\"/> ";
cacdata += "<attr name=\"H2O\" value=\"" + datavalue[11][0] + "\" alarm=\"" + datavalue[11][1] + "\" threshold=\"" + datavalue[11][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//分合闸线圈电流波形
public static String createCACData_DLQWave(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
public static String createCACData_YSP2(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024002</type> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Action\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"CoilWaveform\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"H2\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"CH4\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"C2H6\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"C2H4\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"C2H2\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"CO\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"CO2\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"O2\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"N2\" value=\"" + datavalue[8][0] + "\" alarm=\"" + datavalue[8][1] + "\" threshold=\"" + datavalue[8][2] + "\"/> ";
cacdata += "<attr name=\"TotalHydrocarbon\" value=\"" + datavalue[9][0] + "\" alarm=\"" + datavalue[9][1] + "\" threshold=\"" + datavalue[9][2] + "\"/> ";
cacdata += "<attr name=\"CmbuGas\" value=\"" + datavalue[10][0] + "\" alarm=\"" + datavalue[10][1] + "\" threshold=\"" + datavalue[10][2] + "\"/> ";
cacdata += "<attr name=\"MicroMoisture\" value=\"" + datavalue[11][0] + "\" alarm=\"" + datavalue[11][1] + "\" threshold=\"" + datavalue[11][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//负荷电流波形接
public static String createCACData_FHDLQWave(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
public static String createCACData_YSP3(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024002</type> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Action\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"LoadWaveform\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"CmbuGas\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Humidity\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"MicroMoisture\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_KGG(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
@ -498,7 +435,7 @@ public class GenerateXmlbak {
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_TMT(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
public static String createCACData_TMT(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
@ -517,7 +454,7 @@ public class GenerateXmlbak {
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_TMT1(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
public static String createCACData_TMT1(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
@ -551,10 +488,10 @@ public class GenerateXmlbak {
cacdata += "<attr name=\"Phase\" value=\""+phase+"\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Conc\" value=\"" + datavalue[0][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"OContent\" value=\"" + datavalue[1][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"Tmp\" value=\"" + datavalue[2][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"Dew\" value=\"" + datavalue[3][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"Tmp\" value=\"" + datavalue[2][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"Dew\" value=\"" + datavalue[3][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
@ -572,14 +509,14 @@ public class GenerateXmlbak {
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"TotalCoreCurrent\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"AlarmLevel\" value=\""+ datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"TotalCoreCurrent\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"AlarmLevel\" value=\""+ datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"threshold\" value=\""+ datavalue[1][0] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
return cacdata;
}
public static String createCACData_jdw(String cacid, String sensorid, String equipmentid, String timestamp, String phase,String[][] datavalue,String code)
{ //接地网
@ -594,36 +531,13 @@ public class GenerateXmlbak {
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"resistance\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[1][0] + "\" threshold=\"" +datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"resistance\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[1][0] + "\" threshold=\"" +datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
return cacdata;
}
public static String test(String cacid, String sensorid, String equipmentid, String timestamp, String phase,String[][] datavalue,String code)
{ //接地网
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>"+ code +"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\""+ datavalue[0][0] + "\" alarm=\"" +datavalue[1][0] + "\" threshold=\"" +datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//储能点机
public static String createCACData_DLQChargeTime(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue)
{
String cacdata = "";
@ -722,7 +636,7 @@ public class GenerateXmlbak {
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_ampli_day_rate(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
@ -743,7 +657,7 @@ public class GenerateXmlbak {
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_day_rate(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
@ -764,7 +678,8 @@ public class GenerateXmlbak {
return cacdata;
}
}
}

@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Form version="1.3" maxVersion="1.9" type="org.netbeans.modules.form.forminfo.JFrameFormInfo">
<Properties>
<Property name="defaultCloseOperation" type="int" value="3"/>
<Property name="title" type="java.lang.String" value="I2&#x901a;&#x9053;&#x6570;&#x636e;&#x663e;&#x793a;"/>
</Properties>
<SyntheticProperties>
<SyntheticProperty name="formSizePolicy" type="int" value="1"/>
<SyntheticProperty name="generateCenter" type="boolean" value="false"/>
</SyntheticProperties>
<AuxValues>
<AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/>
<AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="1"/>
<AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/>
<AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/>
<AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/>
</AuxValues>
<Layout>
<DimensionLayout dim="0">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane1" pref="785" max="32767" attributes="0"/>
<EmptySpace max="-2" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
<Group type="102" alignment="0" attributes="0">
<EmptySpace max="-2" attributes="0"/>
<Component id="jScrollPane1" min="-2" pref="344" max="-2" attributes="0"/>
<EmptySpace pref="19" max="32767" attributes="0"/>
</Group>
</Group>
</DimensionLayout>
</Layout>
<SubComponents>
<Container class="javax.swing.JScrollPane" name="jScrollPane1">
<AuxValues>
<AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/>
</AuxValues>
<Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/>
<SubComponents>
<Component class="javax.swing.JTextArea" name="jTextArea1">
<Properties>
<Property name="columns" type="int" value="20"/>
<Property name="rows" type="int" value="5"/>
</Properties>
</Component>
</SubComponents>
</Container>
</SubComponents>
</Form>

File diff suppressed because it is too large Load Diff

@ -1,778 +0,0 @@
package com.shxy.i2;
import com.shxy.i2.entity.Data_SF6_Qtyl;
import com.shxy.i2.entity.Niec_Sensors;
import java.io.IOException;
import java.io.StringReader;
import java.util.TreeMap;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class GenerateXml {
// //解析xml
// public static TreeMap<String, String> xmlElements(String xmlDoc) throws JDOMException, IOException {
// if (xmlDoc!=null && !xmlDoc.equals("")) {
// Pattern p = Pattern.compile("\r|\n");
// Matcher m = p.matcher(xmlDoc);
// xmlDoc = m.replaceAll("");
// }//创建一个新的字符串
// StringReader read = new StringReader(xmlDoc);
// //创建新的输入源SAX 解析器将使用 InputSource 对象来确定如何读取 XML 输入
// InputSource source = new InputSource(read);
// //创建一个新的SAXBuilder
// SAXBuilder sb = new SAXBuilder();
// TreeMap<String, String> rtnMap = new TreeMap<String, String>();
// SAXBuilder builder = new SAXBuilder();
// Document doc = (Document) builder.build(new StringReader(xmlDoc));
// // 得到根节点
// Element root = doc.getRootElement();
// String rootName = root.getName();
// rtnMap.put("root.name", rootName);
// // 调用递归函数得到所有最底层元素的名称和值加入map中
// convert(root, rtnMap, rootName);
// return rtnMap;
// }
// public static void convert(Element e, Map<String, String> map, String lastname) {
// if (e.getAttributes().size() > 0) {
// Iterator it_attr = e.getAttributes().iterator();
// while (it_attr.hasNext()) {
// Attribute attribute = (Attribute) it_attr.next();
// String attrname = attribute.getName();
// String attrvalue = e.getAttributeValue(attrname);
// // map.put( attrname, attrvalue);
// map.put(lastname + "." + attrname, attrvalue); // key 根据根节点 进行生成
// }
// }
// List children = e.getChildren();
// Iterator it = children.iterator();
// while (it.hasNext()) {
// Element child = (Element) it.next();
// /* String name = lastname + "." + child.getName(); */
// String name = child.getName();
// // 如果有子节点,则递归调用
// if (child.getChildren().size() > 0) {
// convert(child, map, lastname + "." + child.getName());
// } else {
// // 如果没有子节点则把值加入map
// map.put(name, child.getText());
// // 如果该节点有属性则把所有的属性值也加入map
// if (child.getAttributes().size() > 0) {
// Iterator attr = child.getAttributes().iterator();
// while (attr.hasNext()) {
// Attribute attribute = (Attribute) attr.next();
// String attrname = attribute.getName();
// String attrvalue = child.getAttributeValue(attrname);
// map.put(lastname + "." + child.getName() + "." + attrname, attrvalue);
// }
// }
// }
// }
// }
// 变压器/电抗器断路器局部放电
public static String createCACData_byq_pd_h(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"DischargeCapacity\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"DischargePosition\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"PulseCount\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"DischargeWaveform\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//油色谱
public static String createCACData_YSP(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"H2\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"CH4\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"C2H6\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"C2H4\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"C2H2\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"CO\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"CO2\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"O2\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"N2\" value=\"" + datavalue[8][0] + "\" alarm=\"" + datavalue[8][1] + "\" threshold=\"" + datavalue[8][2] + "\"/> ";
cacdata += "<attr name=\"TotalHydrocarbon\" value=\"" + datavalue[9][0] + "\" alarm=\"" + datavalue[9][1] + "\" threshold=\"" + datavalue[9][2] + "\"/> ";
cacdata += "<attr name=\"GasPress\" value=\"" + datavalue[10][0] + "\" alarm=\"" + datavalue[10][1] + "\" threshold=\"" + datavalue[10][2] + "\"/> ";
cacdata += "<attr name=\"H2O\" value=\"" + datavalue[11][0] + "\" alarm=\"" + datavalue[11][1] + "\" threshold=\"" + datavalue[11][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_YSP2(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"H2\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"CH4\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"C2H6\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"C2H4\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"C2H2\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\" threshold=\"" + datavalue[4][2] + "\"/> ";
cacdata += "<attr name=\"CO\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"CO2\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"O2\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "<attr name=\"N2\" value=\"" + datavalue[8][0] + "\" alarm=\"" + datavalue[8][1] + "\" threshold=\"" + datavalue[8][2] + "\"/> ";
cacdata += "<attr name=\"TotalHydrocarbon\" value=\"" + datavalue[9][0] + "\" alarm=\"" + datavalue[9][1] + "\" threshold=\"" + datavalue[9][2] + "\"/> ";
cacdata += "<attr name=\"CmbuGas\" value=\"" + datavalue[10][0] + "\" alarm=\"" + datavalue[10][1] + "\" threshold=\"" + datavalue[10][2] + "\"/> ";
cacdata += "<attr name=\"MicroMoisture\" value=\"" + datavalue[11][0] + "\" alarm=\"" + datavalue[11][1] + "\" threshold=\"" + datavalue[11][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_YSP3(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"CmbuGas\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Humidity\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "<attr name=\"MicroMoisture\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//微水接入
public static String createCACData_Moisture(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021003</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Moisture\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" /> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//铁芯
public static String createCACData_tx(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021004</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"TotalCoreCurrent\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//顶层油
public static String createCACData_yw(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021005</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//金属氧化物避雷器绝缘监测·
public static String createCACData_moa(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>023001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"SystemVoltage\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"TotalCurrent\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"ResistiveCurrent\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"ActionCount\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"LastActionTime\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_eaif(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) {
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"MaxTmp\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"MinTmp\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"AvgTmp\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\" threshold=\"" + datavalue[2][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//电容型设备绝缘监测
public static String createCACData_eia(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>022001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Capacitance\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"LossFactor\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"UnbalanceCurrent\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"UnbalanceVoltage\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"TotalCurrent\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"SystemVoltage\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//SF6气体压力
public static String createCACData_sf6pressure(String cacid, String sensorid, String equipmentid, String timestamp, String phase, Data_SF6_Qtyl item) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024004</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
if (phase != null) {
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
}
Float temperature = item.getTemperature();
if (temperature != null) {
cacdata += "<attr name=\"Temperature\" value=\"" + temperature + "\" alarm=\"FALSE\" /> ";
}
Float absolutepressure = item.getAbsolutepressure();
if (absolutepressure != null) {
cacdata += "<attr name=\"AbsolutePressure\" value=\"" + absolutepressure + "\" alarm=\"FALSE\" /> ";
}
Float density = item.getDensity();
if (density != null) {
cacdata += "<attr name=\"Density\" value=\"" + density + "\" alarm=\"FALSE\" /> ";
}
Float pressure20c = item.getPressure20c();
if (pressure20c != null) {
cacdata += "<attr name=\"Pressure20C\" value=\"" + pressure20c + "\" alarm=\"FALSE\" /> ";
}
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//SF6 气体水分
public static String createCACData_sf6moisture(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024005</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Temperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"Moisture\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_mlh(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"AirTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "<attr name=\"AirPressure\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\" threshold=\"" + datavalue[3][2] + "\"/> ";
cacdata += "<attr name=\"Humidity\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\" threshold=\"" + datavalue[1][2] + "\"/> ";
cacdata += "<attr name=\"Precipitation\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\" threshold=\"" + datavalue[5][2] + "\"/> ";
cacdata += "<attr name=\"PrecipitationIntensity\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"RadiationIntensity\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"wdgustspd\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\" threshold=\"" + datavalue[6][2] + "\"/> ";
cacdata += "<attr name=\"wddir\" value=\"" + datavalue[7][0] + "\" alarm=\"" + datavalue[7][1] + "\" threshold=\"" + datavalue[7][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_dmh(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>025001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//断路器局部放电
public static String createCACData_pd_h(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"DischargeCapacity\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"DischargePosition\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"PulseCount\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"DischargeWaveform\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"PaDschAlm\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"DschType\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//分合闸线圈电流波形
public static String createCACData_DLQWave(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Action\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"CoilWaveform\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//负荷电流波形接
public static String createCACData_FHDLQWave(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Action\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"LoadWaveform\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_KGG(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>026001</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OlTmpA\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"OlTmpB\" value=\"" + datavalue[1][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"OlTmpC\" value=\"" + datavalue[2][0] + "\" alarm=\"" + datavalue[2][1] + "\"/> ";
cacdata += "<attr name=\"IlTmpA\" value=\"" + datavalue[3][0] + "\" alarm=\"" + datavalue[3][1] + "\"/> ";
cacdata += "<attr name=\"IlTmpB\" value=\"" + datavalue[4][0] + "\" alarm=\"" + datavalue[4][1] + "\"/> ";
cacdata += "<attr name=\"IlTmpC\" value=\"" + datavalue[5][0] + "\" alarm=\"" + datavalue[5][1] + "\"/> ";
cacdata += "<attr name=\"OntologyTmp\" value=\"" + datavalue[6][0] + "\" alarm=\"" + datavalue[6][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_TMT(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>026002</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Tmp\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_TMT1(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>021012</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"MaxTmp\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\" threshold=\"" + datavalue[0][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_sf6env(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024009</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"Conc\" value=\"" + datavalue[0][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"OContent\" value=\"" + datavalue[1][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"Tmp\" value=\"" + datavalue[2][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "<attr name=\"Dew\" value=\"" + datavalue[3][0] + "\" alarm=\"FALSE\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_scur(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) { //电缆环流
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"TotalCoreCurrent\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[1][1] + "\"/> ";
cacdata += "<attr name=\"AlarmLevel\" value=\"" + datavalue[0][1] + "\"/> ";
cacdata += "<attr name=\"threshold\" value=\"" + datavalue[1][0] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String createCACData_jdw(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) { //接地网
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"resistance\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[1][0] + "\" threshold=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
public static String test(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue, String code) { //接地网
String cacdata = "";
cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + code + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"OilTemperature\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[1][0] + "\" threshold=\"" + datavalue[1][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
//储能点机
public static String createCACData_DLQChargeTime(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] datavalue) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
//A相
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>024006</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"FALSE\" /> ";
cacdata += "<attr name=\"ChargeTime\" value=\"" + datavalue[0][0] + "\" alarm=\"" + datavalue[0][1] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_environment(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>\"" + code + "\"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\"/> ";
cacdata += "<attr name=\"temperature\" value=\"" + data[0][0] + "\" alarm=\"" + data[0][1] + "\" threshold=\"" + data[0][2] + "\"/> ";
cacdata += "<attr name=\"humidity\" value=\"" + data[1][0] + "\" alarm=\"" + data[1][1] + "\" threshold=\"" + data[1][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_center(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>\"" + code + "\"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\"/> ";
cacdata += "<attr name=\"center\" value=\"" + data[0][0] + "\" alarm=\"" + data[0][1] + "\" threshold=\"" + data[0][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_noise(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>\"" + code + "\"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\"/> ";
cacdata += "<attr name=\"noise\" value=\"" + data[0][0] + "\" alarm=\"" + data[0][1] + "\" threshold=\"" + data[0][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_ampli(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>\"" + code + "\"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\"/> ";
cacdata += "<attr name=\"frequency\" value=\"" + data[0][0] + "\"/> ";
cacdata += "<attr name=\"amplitude\" value=\"" + data[1][0] + "\" alarm=\"" + data[1][1] + "\" threshold=\"" + data[1][2] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_ampli_day_rate(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>\"" + code + "\"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\"/> ";
cacdata += "<attr name=\"frequency\" value=\"" + data[0][0] + "\"/> ";
cacdata += "<attr name=\"dailyRate(Yesterday)\" value=\"" + data[1][0] + "\" alarm=\"" + data[1][1] + "\" threshold=\"" + data[1][2] + "\"/> ";
cacdata += "<attr name=\"statisticalData(Yesterday)\" value=\"" + data[2][0] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
static String createSJZDData_day_rate(String cacid, String sensorid, String equipmentid, String timestamp, String phase, String[][] data, String code) {
String cacdata = "";
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + cacid + "\" datanodenum=\"1\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>\"" + code + "\"</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\"/> ";
cacdata += "<attr name=\"dailyRate(Yesterday)\" value=\"" + data[0][0] + "\" alarm=\"" + data[0][1] + "\" threshold=\"" + data[0][2] + "\"/> ";
cacdata += "<attr name=\"statisticalData(Yesterday)\" value=\"" + data[1][0] + "\"/> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
return cacdata;
}
}

@ -1,32 +0,0 @@
package com.shxy.i2;
import lombok.extern.slf4j.Slf4j;
//import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
//@SpringBootApplication
@MapperScan("com.shxy.i2.dao")
@EnableAspectJAutoProxy(exposeProxy = true)
@Slf4j
@EnableConfigurationProperties
@ComponentScan(basePackages = {"com.shxy"})
//@EnableCaching
//@EnableAsync
public class I2Application {
public static void main(String[] args) {
SpringApplication.run(I2Application.class, args);
log.info("系统启动");
}
}

@ -1,59 +0,0 @@
package com.shxy.i2.Tool;
import cn.hutool.json.JSONObject;
import cn.hutool.json.XML;
import com.shxy.i2.dao.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.cxf.endpoint.Client;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import java.math.BigInteger;
import java.util.Date;
@Slf4j
@Component
//@EnableAsync
public class AsyncMethod {
@Autowired
private Upload_checkDao upload_checkDao;
@Autowired
private Client createDynamicClient;
// @Async(value = "asyncServiceExecutor")
public void sendData2(String xml) throws Exception {
Object[] objects = createDynamicClient.invoke("uploadCACData", xml);
String threadId = Thread.currentThread().getName();
log.info("线程序号: " + threadId + "当前时间:" + new Date());
if (objects != null && objects.length > 0) {
String string = String.valueOf(objects[0]);
log.info("返回的长度 " + objects.length + " 返回的对象 " + string);
JSONObject jsonObject = XML.toJSONObject(string);
if (jsonObject != null) {
JSONObject response = (JSONObject) jsonObject.get("response");
if (response != null) {
JSONObject result = (JSONObject) response.get("result");
if (result != null) {
Integer code = (Integer) result.get("code");
if (code != null && code.intValue() == 0) {
log.info("上传成功");
} else {
log.info("上传失败");
}
}
}
}
}
}
// @Async(value = "asyncServiceExecutor")
public void updateRecordId(BigInteger maxid,String type) {
if (maxid != null && maxid.longValue() > 0) {
upload_checkDao.updateByPrimaryKey(type, maxid, new Date());
}
}
}

@ -1,83 +0,0 @@
package com.shxy.i2.Tool;
import cn.hutool.core.util.StrUtil;
import com.shxy.i2.bean.AttrBean;
import com.shxy.i2.bean.YxAttrBean;
import com.shxy.i2.constant.Constant;
import java.util.ArrayList;
public class GenerateI2Xml {
public static String generateCacXml(String type, String sensorid, String equipmentid, String timestamp, ArrayList<AttrBean> attrlist) {
String cacdata = "";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + type + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
if (StrUtil.isNotEmpty(timestamp)) {
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
}
cacdata += "<attrs> ";
for (AttrBean bean : attrlist) {
cacdata += "<attr name=\"" + bean.getKey() + "\" value=\"" + bean.getValue() + "\" alarm=\"FALSE\" /> ";
}
cacdata += "</attrs> ";
cacdata += "</datanode>";
return cacdata;
}
public static String generateEndCacXml(ArrayList<String> cacdatalist) {
String cacxml = "";
cacxml += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacxml += "<request> ";
cacxml += "<monitordata cacid=\"" + Constant.Cacid + "\" datanodenum=\"" + cacdatalist.size() + "\"> ";
for (String str : cacdatalist) {
cacxml += str;
}
// cacxml += "</attrs> ";
// cacxml += "</datanode>";
cacxml += "</monitordata> ";
cacxml += "</request> ";
return cacxml;
}
public static String generateYxCacXml(YxAttrBean<Integer> attr) {
String cacdata = "";
String sensorid = attr.getSensorid();
String equipmentid = attr.getEquipmentid();
String devicetype = attr.getDevicetype();
String timestamp = attr.getTimestamp();
String key = attr.getKey();
Integer value = attr.getValue();
String phase = attr.getPhase();
String status = "FALSE";
if (value != null) {
if (value.intValue() == 0) {
status = "FALSE";
} else {
status = "TRUE";
}
if (StrUtil.isNotEmpty(sensorid) && StrUtil.isNotEmpty(equipmentid) && StrUtil.isNotEmpty(timestamp) && StrUtil.isNotEmpty(key)) {
cacdata += "<?xml version=\"1.0\" encoding=\"UTF-8\"?> ";
cacdata += "<request> ";
cacdata += "<monitordata cacid=\"" + Constant.Cacid + "\" datanodenum=\"" + 1 + "\"> ";
cacdata += "<datanode sensorid=\"" + sensorid + "\"> ";
cacdata += "<type>" + devicetype + "</type> ";
cacdata += "<equipmentid>" + equipmentid + "</equipmentid> ";
if (StrUtil.isNotEmpty(timestamp)) {
cacdata += "<timestamp>" + timestamp + "</timestamp> ";
}
cacdata += "<attrs> ";
cacdata += "<attr name=\"Phase\" value=\"" + phase + "\" alarm=\"" + status + "\" /> ";
cacdata += "<attr name=\"" + key + "\" value=\"" + value + "\" alarm=\"" + status + "\" /> ";
cacdata += "</attrs> ";
cacdata += "</datanode>";
cacdata += "</monitordata> ";
cacdata += "</request> ";
}
}
return cacdata;
}
}

@ -1,449 +0,0 @@
package com.shxy.i2.Tool;
import cn.hutool.core.text.StrFormatter;
import org.springframework.util.AntPathMatcher;
import java.util.*;
/**
*
*
* @author
*/
public class StringUtils extends org.apache.commons.lang3.StringUtils {
/**
*
*/
private static final String NULLSTR = "";
/**
* 线
*/
private static final char SEPARATOR = '_';
/**
*
*
* @param value defaultValue value
* @return value
*/
public static <T> T nvl(T value, T defaultValue) {
return value != null ? value : defaultValue;
}
/**
* * Collection ListSetQueue
*
* @param coll Collection
* @return true false
*/
public static boolean isEmpty(Collection<?> coll) {
return isNull(coll) || coll.isEmpty();
}
/**
* * CollectionListSetQueue
*
* @param coll Collection
* @return true false
*/
public static boolean isNotEmpty(Collection<?> coll) {
return !isEmpty(coll);
}
/**
* *
*
* @param objects
* * @return true false
*/
public static boolean isEmpty(Object[] objects) {
return isNull(objects) || (objects.length == 0);
}
/**
* *
*
* @param objects
* @return true false
*/
public static boolean isNotEmpty(Object[] objects) {
return !isEmpty(objects);
}
/**
* * Map
*
* @param map Map
* @return true false
*/
public static boolean isEmpty(Map<?, ?> map) {
return isNull(map) || map.isEmpty();
}
/**
* * Map
*
* @param map Map
* @return true false
*/
public static boolean isNotEmpty(Map<?, ?> map) {
return !isEmpty(map);
}
/**
* *
*
* @param str String
* @return true false
*/
public static boolean isEmpty(String str) {
return isNull(str) || NULLSTR.equals(str.trim());
}
/**
* *
*
* @param str String
* @return true false
*/
public static boolean isNotEmpty(String str) {
return !isEmpty(str);
}
/**
* *
*
* @param object Object
* @return true false
*/
public static boolean isNull(Object object) {
return object == null;
}
/**
* *
*
* @param object Object
* @return true false
*/
public static boolean isNotNull(Object object) {
return !isNull(object);
}
/**
* * Java
*
* @param object
* @return true false
*/
public static boolean isArray(Object object) {
return isNotNull(object) && object.getClass().isArray();
}
/**
*
*/
public static String trim(String str) {
return (str == null ? "" : str.trim());
}
/**
*
*
* @param str
* @param start
* @return
*/
public static String substring(final String str, int start) {
if (str == null) {
return NULLSTR;
}
if (start < 0) {
start = str.length() + start;
}
if (start < 0) {
start = 0;
}
if (start > str.length()) {
return NULLSTR;
}
return str.substring(start);
}
/**
*
*
* @param str
* @param start
* @param end
* @return
*/
public static String substring(final String str, int start, int end) {
if (str == null) {
return NULLSTR;
}
if (end < 0) {
end = str.length() + end;
}
if (start < 0) {
start = str.length() + start;
}
if (end > str.length()) {
end = str.length();
}
if (start > end) {
return NULLSTR;
}
if (start < 0) {
start = 0;
}
if (end < 0) {
end = 0;
}
return str.substring(start, end);
}
/**
* , {} <br>
* {} <br>
* {} 使 \\ { {} \ 使 \\\\ <br>
* <br>
* 使format("this is {} for {}", "a", "b") -> this is a for b<br>
* {} format("this is \\{} for {}", "a", "b") -> this is \{} for a<br>
* \ format("this is \\\\{} for {}", "a", "b") -> this is \a for b<br>
*
* @param template {}
* @param params
* @return
*/
public static String format(String template, Object... params) {
if (isEmpty(params) || isEmpty(template)) {
return template;
}
return StrFormatter.format(template, params);
}
/**
* set
*
* @param str
* @param sep
* @return set
*/
public static final Set<String> str2Set(String str, String sep) {
return new HashSet<String>(str2List(str, sep, true, false));
}
/**
* list
*
* @param str
* @param sep
* @param filterBlank
* @param trim
* @return list
*/
public static final List<String> str2List(String str, String sep, boolean filterBlank, boolean trim) {
List<String> list = new ArrayList<String>();
if (StringUtils.isEmpty(str)) {
return list;
}
// 过滤空白字符串
if (StringUtils.isBlank(str)) {
return list;
}
String[] split = str.split(sep);
for (String string : split) {
if (StringUtils.isBlank(string)) {
continue;
}
if (trim) {
string = string.trim();
}
list.add(string);
}
return list;
}
/**
*
*
* @param cs
* @param searchCharSequences
* @return
*/
public static boolean containsAnyIgnoreCase(CharSequence cs, CharSequence... searchCharSequences) {
if (isEmpty(cs) || isEmpty(searchCharSequences)) {
return false;
}
for (CharSequence testStr : searchCharSequences) {
if (containsIgnoreCase(cs, testStr)) {
return true;
}
}
return false;
}
/**
* 线
*/
public static String toUnderScoreCase(String str) {
if (str == null) {
return null;
}
StringBuilder sb = new StringBuilder();
// 前置字符是否大写
boolean preCharIsUpperCase = true;
// 当前字符是否大写
boolean curreCharIsUpperCase = true;
// 下一字符是否大写
boolean nexteCharIsUpperCase = true;
for (int i = 0; i < str.length(); i++) {
char c = str.charAt(i);
if (i > 0) {
preCharIsUpperCase = Character.isUpperCase(str.charAt(i - 1));
} else {
preCharIsUpperCase = false;
}
curreCharIsUpperCase = Character.isUpperCase(c);
if (i < (str.length() - 1)) {
nexteCharIsUpperCase = Character.isUpperCase(str.charAt(i + 1));
}
if (preCharIsUpperCase && curreCharIsUpperCase && !nexteCharIsUpperCase) {
sb.append(SEPARATOR);
} else if ((i != 0 && !preCharIsUpperCase) && curreCharIsUpperCase) {
sb.append(SEPARATOR);
}
sb.append(Character.toLowerCase(c));
}
return sb.toString();
}
/**
*
*
* @param str
* @param strs
* @return true
*/
public static boolean inStringIgnoreCase(String str, String... strs) {
if (str != null && strs != null) {
for (String s : strs) {
if (str.equalsIgnoreCase(trim(s))) {
return true;
}
}
}
return false;
}
/**
* 线线 HELLO_WORLD->HelloWorld
*
* @param name 线
* @return
*/
public static String convertToCamelCase(String name) {
StringBuilder result = new StringBuilder();
// 快速检查
if (name == null || name.isEmpty()) {
// 没必要转换
return "";
} else if (!name.contains("_")) {
// 不含下划线,仅将首字母大写
return name.substring(0, 1).toUpperCase() + name.substring(1);
}
// 用下划线将原始字符串分割
String[] camels = name.split("_");
for (String camel : camels) {
// 跳过原始字符串中开头、结尾的下换线或双重下划线
if (camel.isEmpty()) {
continue;
}
// 首字母大写
result.append(camel.substring(0, 1).toUpperCase());
result.append(camel.substring(1).toLowerCase());
}
return result.toString();
}
/**
* user_name->userName
*/
public static String toCamelCase(String s) {
if (s == null) {
return null;
}
s = s.toLowerCase();
StringBuilder sb = new StringBuilder(s.length());
boolean upperCase = false;
for (int i = 0; i < s.length(); i++) {
char c = s.charAt(i);
if (c == SEPARATOR) {
upperCase = true;
} else if (upperCase) {
sb.append(Character.toUpperCase(c));
upperCase = false;
} else {
sb.append(c);
}
}
return sb.toString();
}
/**
*
*
* @param str
* @param strs
* @return
*/
public static boolean matches(String str, List<String> strs) {
if (isEmpty(str) || isEmpty(strs)) {
return false;
}
for (String pattern : strs) {
if (isMatch(pattern, str)) {
return true;
}
}
return false;
}
/**
* url:
* ? ;
* * ;
* ** ;
*
* @param pattern
* @param url url
* @return
*/
public static boolean isMatch(String pattern, String url) {
AntPathMatcher matcher = new AntPathMatcher();
return matcher.match(pattern, url);
}
@SuppressWarnings("unchecked")
public static <T> T cast(Object obj) {
return (T) obj;
}
}

@ -1,62 +0,0 @@
package com.shxy.i2.Tool.sql;
import cn.hutool.core.exceptions.UtilException;
import com.shxy.i2.Tool.StringUtils;
/**
* sql
*
* @author ruoyi
*/
public class SqlUtils extends cn.hutool.db.sql.SqlUtil
{
/**
* sql
*/
public static String SQL_REGEX = "select |insert |delete |update |drop |count |exec |chr |mid |master |truncate |char |and |declare ";
/**
* 线
*/
public static String SQL_PATTERN = "[a-zA-Z0-9_\\ \\,\\.]+";
/**
*
*/
public static String escapeOrderBySql(String value)
{
if (StringUtils.isNotEmpty(value) && !isValidOrderBySql(value))
{
throw new UtilException("参数不符合规范,不能进行查询");
}
return value;
}
/**
* order by
*/
public static boolean isValidOrderBySql(String value)
{
return value.matches(SQL_PATTERN);
}
/**
* SQL
*/
public static void filterKeyword(String value)
{
if (StringUtils.isEmpty(value))
{
return;
}
String[] sqlKeywords = StringUtils.split(SQL_REGEX, "\\|");
for (String sqlKeyword : sqlKeywords)
{
if (StringUtils.indexOfIgnoreCase(value, sqlKeyword) > -1)
{
throw new UtilException("参数存在SQL注入风险");
}
}
}
}

@ -1,9 +0,0 @@
package com.shxy.i2.bean;
import lombok.Data;
@Data
public class AttrBean<T> {
private String key;
private T value;
}

@ -1,17 +0,0 @@
package com.shxy.i2.bean;
/**
* API
*
*/
public interface IErrorCode {
/**
*
*/
int getCode();
/**
*
*/
String getMessage();
}

@ -1,34 +0,0 @@
package com.shxy.i2.bean;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.List;
/**
* 线
*/
@Data
public class ListModel implements Serializable {
private List<Beans> list = new ArrayList<>();
@Data
public static class Beans {
private String name;
private BigInteger history;//历史数据量
private BigInteger uploadnum;//已上传数据量
private BigInteger nownum;//今日数据量
private BigInteger nowuploadnum;//今日上传数据量
}
}

@ -1,121 +0,0 @@
package com.shxy.i2.bean;
import cn.hutool.http.HttpStatus;
import java.io.Serializable;
public class ResponseReult<T> implements Serializable {
/**
*
*/
private T data;
/**
*
*/
private int code;
/**
*
*/
private String msg;
public T getData() {
return data;
}
public void setData(T data) {
this.data = data;
}
public int getCode() {
return code;
}
public void setCode(int code) {
this.code = code;
}
public void setCode(int code, String msg) {
this.code = code;
this.msg = msg;
}
public String getMsg() {
return msg;
}
public void setMsg(String msg) {
this.msg = msg;
}
/**
*
*
* @return
*/
public static <T> ResponseReult<T> success(T obj) {
ResponseReult<T> success = ResponseReult.success();
if (obj != null) {
success.setData(obj);
}
return success;
}
/**
*
*
* @return
*/
public static <T> ResponseReult<T> success() {
ResponseReult<T> response = new ResponseReult<>();
response.setCode(HttpStatus.HTTP_OK, "操作成功");
return response;
}
/**
*
*
* @param message
*/
public static <T> ResponseReult<T> fail(String message) {
return ResponseReult.error(HttpStatus.HTTP_BAD_REQUEST, message);
}
public static <T> ResponseReult<T> fail(int code, String msg) {
ResponseReult<T> response = new ResponseReult<>();
response.setCode(code, msg);
return response;
}
/**
*
*
* @return
*/
public static <T> ResponseReult<T> error(int code, String msg) {
ResponseReult<T> response = new ResponseReult<>();
response.setCode(code, msg);
return response;
}
/**
*
*
* @param errorCode
*/
public static <T> ResponseReult<T> error(IErrorCode errorCode) {
return ResponseReult.error(errorCode.getCode(), errorCode.getMessage());
}
/**
*
*
* @param message
*/
public static <T> ResponseReult<T> error(String message) {
return ResponseReult.error(HttpStatus.HTTP_INTERNAL_ERROR, message);
}
}

@ -1,11 +0,0 @@
package com.shxy.i2.bean;
import lombok.Data;
import java.math.BigInteger;
@Data
public class SendDataBean {
private Integer eqmid;
private BigInteger maxid;
}

@ -1,25 +0,0 @@
package com.shxy.i2.bean;
import lombok.Data;
/**
* service
*
* @author
*/
@Data
public class ServiceBody<T> {
/**
*
*/
private T data;
/**
*
*/
private int code;
/**
*
*/
private String msg;
}

@ -1,17 +0,0 @@
package com.shxy.i2.bean;
/**
*
*
* @author xzg
*/
public class ServiceStatus {
/**
*
*/
public static final int SUCCESS = 200;
/**
*
*/
public static final int ERROR = 400;
}

@ -1,14 +0,0 @@
package com.shxy.i2.bean;
import lombok.Data;
@Data
public class YxAttrBean<T> {
private String devicetype;
private String sensorid;
private String equipmentid;
private String timestamp;
private String phase;
private String key;
private T value;
}

@ -1,59 +0,0 @@
package com.shxy.i2.configure;
import lombok.extern.slf4j.Slf4j;
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
@Slf4j
public class CxfClientConfig {
@Value("${webservice.address}")
public String address;
//
@Value("${webservice.connecttime}")
public int connecttime;
@Value("${webservice.receivetime}")
public int receivetime;
/**
*
*
* @return NBAPlayerSoap
*/
// @Bean
// public NBAPlayerSoap createAuthorPortTypeProxy() {
// JaxWsProxyFactoryBean jaxWsProxyFactoryBean = new JaxWsProxyFactoryBean();
// jaxWsProxyFactoryBean.setServiceClass(NBAPlayerSoap.class);
// jaxWsProxyFactoryBean.setAddress(WsConst.SERVICE_ADDRESS);
// return (NBAPlayerSoap) jaxWsProxyFactoryBean.create();
// }
/**
*
* "http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl"
*
*/
@Bean
public Client createDynamicClient() {
// 动态客户端
JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
log.info("实时数据 publicsecurity webService url : {}", address);
//根据WebServices接口地址创建client
Client client = clientFactory.createClient(address);
HTTPConduit conduit = (HTTPConduit) client.getConduit();
HTTPClientPolicy policy = new HTTPClientPolicy();
policy.setAllowChunking(false);
// 连接服务器超时时间 60秒
policy.setConnectionTimeout(connecttime);
// 等待服务器响应超时时间 60秒
policy.setReceiveTimeout(receivetime);
conduit.setClient(policy);
return client;
}
}

@ -1,32 +0,0 @@
//package com.shxy.i2.configure;
//
//import lombok.extern.slf4j.Slf4j;
//import org.apache.cxf.endpoint.Client;
//import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
//import org.apache.cxf.transport.http.HTTPConduit;
//import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//@Configuration
//@Slf4j
//public class JaxWsClientConfig {
//
// @Bean("JaxWsClient")
// public Client client() {
// // 创建动态客户端
// JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
// log.info("publicsecurity webService url : {}", "http://10.238.71.98:18096/ppa/webservice/CAGAccessService?wsdl");
// //根据WebServices接口地址创建client
// Client client = clientFactory.createClient("http://10.238.71.98:18096/ppa/webservice/CAGAccessService?wsdl");
// HTTPConduit conduit = (HTTPConduit) client.getConduit();
// HTTPClientPolicy policy = new HTTPClientPolicy();
// policy.setAllowChunking(false);
// // 连接服务器超时时间 10秒
// policy.setConnectionTimeout(60000);
// // 等待服务器响应超时时间 20秒
// policy.setReceiveTimeout(20000);
// conduit.setClient(policy);
// return client;
// }
//}

@ -1,37 +0,0 @@
//package com.shxy.i2.configure;
//
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.scheduling.annotation.EnableAsync;
//import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
//
//import java.util.concurrent.Executor;
//import java.util.concurrent.ThreadPoolExecutor;
//
//
//@Configuration
//@EnableAsync
//public class ThreadPoolConfig {
//
// /**
// * 自定义线程池配置
// *
// * @return
// */
// @Bean(name = "asyncServiceExecutor")
// public Executor asyncServiceExecutor() {
// ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
// //配置核心线程数
// executor.setCorePoolSize(50);
// //配置最大线程数
// executor.setMaxPoolSize(200);
// //配置队列大小
// executor.setQueueCapacity(1000000);
// //配置线程池中的线程的名称前缀
// executor.setThreadNamePrefix("async-cron-table");
// executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
// executor.initialize();
// return executor;
// }
//
//}

@ -1,51 +0,0 @@
//package com.shxy.i2;
//
//import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.oxm.jaxb.Jaxb2Marshaller;
//import org.springframework.ws.client.core.WebServiceTemplate;
//import org.springframework.ws.transport.http.HttpUrlConnectionMessageSender;
//
//import javax.xml.ws.soap.SOAPBinding;
//
//@Configuration
//public class WebServiceConfig {
//
// @Bean(name = "webServiceTemplate")
// public WebServiceTemplate webServiceTemplate(Jaxb2Marshaller marshaller) {
// WebServiceTemplate webServiceTemplate = new WebServiceTemplate();
// webServiceTemplate.setMarshaller(marshaller);
// webServiceTemplate.setUnmarshaller(marshaller);
// webServiceTemplate.setMessageSender(httpUrlConnectionMessageSender());
// return webServiceTemplate;
// }
//
// @Bean(name="httpUrlConnectionMessageSender")
// public HttpUrlConnectionMessageSender httpUrlConnectionMessageSender() {
// return new HttpUrlConnectionMessageSender();
// }
//
// @Bean
// public Jaxb2Marshaller marshaller() {
// Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
// marshaller.setContextPath("com.example.demo");
// return marshaller;
// }
//
// @Bean(name="testServiceClient")
// public TestService testServiceClient(Jaxb2Marshaller marshaller) {
// JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
// factory.setServiceClass(TestService.class);
// factory.setAddress("http://localhost:8080/services/TestService");
// factory.setServiceName(new QName("http://example.com/", "TestServicePort"));
// factory.setEndpointName(new QName("http://example.com/", "TestServiceSoap"));
// factory.setBindingId(SOAPBinding.SOAP11HTTP_BINDING);
// factory.setUnmarshaller(marshaller);
// factory.setMarshaller(marshaller);
//
// Object obj = factory.create();
// return (TestService) obj;
// }
//
//}

@ -1,29 +0,0 @@
package com.shxy.i2.constant;
/**
*
* "0---删除 1---生效中"
*
* @author
*/
public enum CommonStatus {
UNUPLOAD("UNUPLOAD", 0), UPLOAD("UPLOAD", 1);
private String name;
private Integer value;
CommonStatus(String name, Integer value) {
this.name = name;
this.value = value;
}
@Override
public String toString() {
return this.value + "_" + this.name;
}
public Integer value() {
return this.value;
}
}

@ -1,53 +0,0 @@
package com.shxy.i2.constant;
public class Constant {
public static String Cacid = "changtai";
public static String YXID = "yxid";
public static String YSPID = "yspid";
public static String BYQJBFDID = "byqjbfdid";
public static String DLQJBFDID = "dlqjbfdid";
public static String CNJID = "cnjid";
public static String DCYWID = "dcywid";
public static String DRJYJCID = "drjyjcid";
public static String FHDLBXID = "fhdlbxid";
public static String FHZXQID = "fhzxqid";
public static String JSYHWJYJCID = "jsyhwjyjcid";
public static String SF6QTSFID = "sf6qtsfid";
public static String SF6QTYLID = "sf6qtylid";
public static String TXID = "txid";
public static String WSID = "wsid";
public static String MICROCLIMATEID = "microclimateid";
public static String BYQ_JBFD = "021001";
public static String YSP = "021002";
public static String WS = "021003";
public static String TX = "021004";
public static String DCYW = "021005";
public static String DRJYJC = "022001";
public static String JSYHW = "023001";
public static String DLQJBFD = "024001";
public static String FHZXQ = "024002";
public static String FHDLBX = "024003";
public static String SF6_QTYL = "024004";
public static String SF6_QTSF = "024005";
public static String CNJ = "024006";
public static String WQX = "025001";
public static String data_byq_jbfd = "data_byq_jbfd";
public static String data_cnj = "data_cnj";
public static String data_dcyw = "data_dcyw";
public static String data_dlq_jbfd = "data_dlq_jbfd";
public static String data_dr_jyjc = "data_dr_jyjc";
public static String data_fhdlbx = "data_fhdlbx";
public static String data_fhzxq = "data_fhzxq";
public static String data_jsyhw_jyjc = "data_jsyhw_jyjc";
public static String data_microclimate = "data_microclimate";
public static String data_sf6_qtsf = "data_sf6_qtsf";
public static String data_sf6_qtyl = "data_sf6_qtyl";
public static String data_tx = "data_tx";
public static String data_ws = "data_ws";
public static String data_ysp = "data_ysp";
}

@ -1,32 +0,0 @@
package com.shxy.i2.controller;
import com.shxy.i2.bean.ListModel;
import com.shxy.i2.bean.ResponseReult;
import com.shxy.i2.bean.ServiceBody;
import com.shxy.i2.bean.ServiceStatus;
import com.shxy.i2.service.XydlI2Service;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Slf4j
public class CheckController {
@Autowired
XydlI2Service xydlI2Service;
@RequestMapping("/list")
public ResponseReult<ListModel> list() {
ServiceBody<ListModel> serviceBody = xydlI2Service.list();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
}

@ -1,21 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.bean.SendDataBean;
import com.shxy.i2.entity.Data_Byq_Jbfd;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public interface Data_Byq_JbfdDao {
List<Data_Byq_Jbfd> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Byq_Jbfd selectMaxId();
Data_Byq_Jbfd selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Byq_Jbfd;
import com.shxy.i2.entity.Data_Cnj;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_CnjDao {
List<Data_Cnj> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Cnj selectMaxId();
Data_Cnj selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Cnj;
import com.shxy.i2.entity.Data_Dcyw;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_DcywDao {
List<Data_Dcyw> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Dcyw selectMaxId();
Data_Dcyw selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,23 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.bean.SendDataBean;
import com.shxy.i2.entity.Data_Dcyw;
import com.shxy.i2.entity.Data_Dlq_Jbfd;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public interface Data_Dlq_JbfdDao {
Data_Dlq_Jbfd selectMaxId();
Data_Dlq_Jbfd selectNowId(@Param("date") Date date);
List<Data_Dlq_Jbfd> selectUploadById(@Param("maxid") BigInteger maxid);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Dlq_Jbfd;
import com.shxy.i2.entity.Data_Dr_Jyjc;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_Dr_JyjcDao {
List<Data_Dr_Jyjc> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Dr_Jyjc selectMaxId();
Data_Dr_Jyjc selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Dr_Jyjc;
import com.shxy.i2.entity.Data_Fhdlbx;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_FhdlbxDao {
List<Data_Fhdlbx> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Fhdlbx selectMaxId();
Data_Fhdlbx selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Fhdlbx;
import com.shxy.i2.entity.Data_Fhzxq;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_FhzxqDao {
List<Data_Fhzxq> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Fhzxq selectMaxId();
Data_Fhzxq selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Fhzxq;
import com.shxy.i2.entity.Data_Jsyhw_Jyjc;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_Jsyhw_JyjcDao {
List<Data_Jsyhw_Jyjc> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Jsyhw_Jyjc selectMaxId();
Data_Jsyhw_Jyjc selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Jsyhw_Jyjc;
import com.shxy.i2.entity.Data_Microclimate;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_MicroclimateDao {
List<Data_Microclimate> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Microclimate selectMaxId();
Data_Microclimate selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Microclimate;
import com.shxy.i2.entity.Data_SF6_Qtsf;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_SF6_QtsfDao {
List<Data_SF6_Qtsf> selectUploadById(@Param("maxid") BigInteger maxid);
Data_SF6_Qtsf selectMaxId();
Data_SF6_Qtsf selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_SF6_Qtsf;
import com.shxy.i2.entity.Data_SF6_Qtyl;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_SF6_QtylDao {
List<Data_SF6_Qtyl> selectUploadById(@Param("maxid") BigInteger maxid);
Data_SF6_Qtyl selectMaxId();
Data_SF6_Qtyl selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,21 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_SF6_Qtyl;
import com.shxy.i2.entity.Data_Tx;
import com.shxy.i2.entity.Data_Ysp;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_TxDao {
List<Data_Tx> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Tx selectMaxId();
Data_Tx selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Data_Tx;
import com.shxy.i2.entity.Data_Ws;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_WsDao {
List<Data_Ws> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Ws selectMaxId();
Data_Ws selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,23 +0,0 @@
package com.shxy.i2.dao;
import cn.hutool.core.date.DateTime;
import com.shxy.i2.bean.SendDataBean;
import com.shxy.i2.entity.Data_Byq_Jbfd;
import com.shxy.i2.entity.Data_Ysp;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public interface Data_YspDao {
List<Data_Ysp> selectUploadById(@Param("maxid") BigInteger maxid);
Data_Ysp selectMaxId();
Data_Ysp selectNowId(@Param("date") Date time);
int deleteData(@Param("time") Date time);
}

@ -1,20 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.dto.Data_YxlDto;
import com.shxy.i2.entity.Data_Ws;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Data_YxDao {
List<Data_YxlDto> selectByPrimaryKey(@Param("maxid") BigInteger maxid);
Data_YxlDto selectMaxId();
Data_YxlDto selectNowId(@Param("date") Date date);
int deleteData(@Param("time") Date time);
}

@ -1,11 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Niec_Sensors;
import java.util.List;
public interface Niec_SensorsDao {
List<Niec_Sensors> selectAll();
}

@ -1,30 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Upload_Statics;
import com.shxy.i2.entity.Upload_StaticsExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface Upload_StaticsDao {
long countByExample(Upload_StaticsExample example);
int deleteByExample(Upload_StaticsExample example);
int deleteByPrimaryKey(String checkType);
int insert(Upload_Statics record);
int insertSelective(Upload_Statics record);
List<Upload_Statics> selectByExample(Upload_StaticsExample example);
Upload_Statics selectByPrimaryKey(String checkType);
int updateByExampleSelective(@Param("record") Upload_Statics record, @Param("example") Upload_StaticsExample example);
int updateByExample(@Param("record") Upload_Statics record, @Param("example") Upload_StaticsExample example);
int updateByPrimaryKeySelective(Upload_Statics record);
int updateByPrimaryKey(Upload_Statics record);
}

@ -1,17 +0,0 @@
package com.shxy.i2.dao;
import com.shxy.i2.entity.Upload_check;
import org.apache.ibatis.annotations.Param;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
public interface Upload_checkDao {
Upload_check selectByPrimaryKey(String checkType);
List<Upload_check> selectAll();
int updateByPrimaryKey(@Param("checkType") String checkType, @Param("value") BigInteger value, @Param("updateTime") Date updateTime);
}

@ -1,31 +0,0 @@
package com.shxy.i2.dto;
import lombok.Data;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_SF6_QtylDetailDto {
private BigInteger id;
private Integer eqmid;
private Date acquisitiontime;
private Float temperature;
private Float absolutepressure;
private Float density;
private Float pressure20c;
private Integer isupload;
private Date createTime;
private Date updateTime;
}

@ -1,17 +0,0 @@
package com.shxy.i2.dto;
import lombok.Data;
import java.util.List;
@Data
public class Data_SF6_QtylDto {
private Integer eqmid;
private List<Data_SF6_QtylDetailDto> list;
}

@ -1,24 +0,0 @@
package com.shxy.i2.dto;
import lombok.Data;
import java.math.BigInteger;
import java.util.Date;
import java.util.List;
@Data
public class Data_YxlDto {
BigInteger id;
BigInteger maxid;
BigInteger minid;
Integer sadr;
Date dtime;
Integer ival;
String field;
String sensorCode;
String equipmentId;
String tableName;
String phase;
}

@ -1,35 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Byq_Jbfd implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Float dischargecapacity;
private Float dischargeposition;
private Float pulsecount;
private Integer isupload;
private Date createTime;
private Date updateTime;
private byte[] dischargewaveform;
private static final long serialVersionUID = 1L;
}

@ -1,28 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Cnj implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Float chargetime;
private Integer isupload;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -1,28 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Dcyw implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Float oiltemperature;
private Integer isupload;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -1,35 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Dlq_Jbfd implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private String phase;
private Float dischargecapacity;
private Float dischargeposition;
private Float pulsecount;
private Integer isupload;
private Date createTime;
private Date updateTime;
private byte[] dischargewaveform;
private static final long serialVersionUID = 1L;
}

@ -1,38 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Dr_Jyjc implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Float capacitance;
private Float lossfactor;
private Float unbalancecurrent;
private Float unbalancevoltage;
private Float totalcurrent;
private Float systemvoltage;
private Integer isupload;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -1,30 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Fhdlbx implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Integer action;
private Integer isupload;
private Date createTime;
private Date updateTime;
private byte[] loadwaveform;
private static final long serialVersionUID = 1L;
}

@ -1,30 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Fhzxq implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Integer action;
private Integer isupload;
private Date createTime;
private Date updateTime;
private byte[] coilwaveform;
private static final long serialVersionUID = 1L;
}

@ -1,36 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Jsyhw_Jyjc implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Float systemvoltage;
private Float totalcurrent;
private Float resistivecurrent;
private Float actioncount;
private Date lastactiontime;
private Integer isupload;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -1,40 +0,0 @@
package com.shxy.i2.entity;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class Data_Microclimate implements Serializable {
private BigInteger id;
private BigInteger maxid;
private BigInteger minid;
private Integer eqmid;
private Date acquisitiontime;
private Float airtemperature;
private Float airpressure;
private Float humidity;
private Float precipitation;
private Float wddir;
private Float precipitationintensity;
private Float radiationintensity;
private Integer isupload;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save