I2代码提交
commit
9cda928880
@ -0,0 +1,33 @@
|
||||
HELP.md
|
||||
target/
|
||||
!.mvn/wrapper/maven-wrapper.jar
|
||||
!**/src/main/**/target/
|
||||
!**/src/test/**/target/
|
||||
|
||||
### STS ###
|
||||
.apt_generated
|
||||
.classpath
|
||||
.factorypath
|
||||
.project
|
||||
.settings
|
||||
.springBeans
|
||||
.sts4-cache
|
||||
|
||||
### IntelliJ IDEA ###
|
||||
.idea
|
||||
*.iws
|
||||
*.iml
|
||||
*.ipr
|
||||
|
||||
### NetBeans ###
|
||||
/nbproject/private/
|
||||
/nbbuild/
|
||||
/dist/
|
||||
/nbdist/
|
||||
/.nb-gradle/
|
||||
build/
|
||||
!**/src/main/**/build/
|
||||
!**/src/test/**/build/
|
||||
|
||||
### VS Code ###
|
||||
.vscode/
|
Binary file not shown.
@ -0,0 +1,2 @@
|
||||
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,308 @@
|
||||
#!/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 "$@"
|
@ -0,0 +1,205 @@
|
||||
@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%
|
@ -0,0 +1,32 @@
|
||||
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("系统启动");
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,43 @@
|
||||
package com.shxy.i2.Tool;
|
||||
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import com.shxy.i2.bean.AttrBean;
|
||||
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;
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
package com.shxy.i2.bean;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class AttrBean<T> {
|
||||
private String key;
|
||||
private T value;
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.shxy.i2.bean;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
@Data
|
||||
public class SendDataBean {
|
||||
private Integer eqmid;
|
||||
private BigInteger maxid;
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
//package com.shxy.i2.configure;
|
||||
//
|
||||
//import org.apache.cxf.endpoint.Client;
|
||||
//import org.apache.cxf.jaxws.JaxWsProxyFactoryBean;
|
||||
//import org.apache.cxf.jaxws.endpoint.dynamic.JaxWsDynamicClientFactory;
|
||||
//import org.springframework.context.annotation.Bean;
|
||||
//import org.springframework.context.annotation.Configuration;
|
||||
//
|
||||
//@Configuration
|
||||
//public class CxfClientConfig {
|
||||
// /**
|
||||
// * 采用代理方式
|
||||
// *
|
||||
// * @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 dcf = JaxWsDynamicClientFactory.newInstance();
|
||||
// Client client = dcf.createClient("http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl");
|
||||
// return client;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,32 @@
|
||||
//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;
|
||||
// }
|
||||
//}
|
@ -0,0 +1,37 @@
|
||||
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(20);
|
||||
//配置最大线程数
|
||||
executor.setMaxPoolSize(200);
|
||||
//配置队列大小
|
||||
executor.setQueueCapacity(1000000);
|
||||
//配置线程池中的线程的名称前缀
|
||||
executor.setThreadNamePrefix("async-cron-table");
|
||||
executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
|
||||
executor.initialize();
|
||||
return executor;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
//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;
|
||||
// }
|
||||
//
|
||||
//}
|
@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
@ -0,0 +1,19 @@
|
||||
package com.shxy.i2.constant;
|
||||
|
||||
public class Constant {
|
||||
public static String Cacid = "changtai";
|
||||
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";
|
||||
}
|
@ -0,0 +1,25 @@
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateDataList(@Param("isupload") Integer isupload, @Param("idlist") ArrayList<SendDataBean> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateDataList2(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") ArrayList<Integer> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
import com.shxy.i2.bean.SendDataBean;
|
||||
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 {
|
||||
|
||||
List<Data_Dlq_Jbfd> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateDataList(@Param("isupload") Integer isupload, @Param("idlist") ArrayList<SendDataBean> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateDataList2(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") ArrayList<Integer> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
import com.shxy.i2.entity.Data_Tx;
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,24 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
import com.shxy.i2.bean.SendDataBean;
|
||||
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> selectUpload(@Param("isupload") Integer isupload);
|
||||
|
||||
int updateByPrimaryKey(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateList(@Param("isupload") Integer isupload, @Param("idlist") List<BigInteger> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateDataList(@Param("isupload") Integer isupload, @Param("idlist") ArrayList<SendDataBean> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
int updateDataList2(@Param("isupload") Integer isupload, @Param("maxid") BigInteger maxid, @Param("idlist") ArrayList<Integer> id, @Param("updateTime") Date updateTime);
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.shxy.i2.dao;
|
||||
|
||||
import com.shxy.i2.entity.Niec_Sensors;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public interface Niec_SensorsDao {
|
||||
|
||||
List<Niec_Sensors> selectAll();
|
||||
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
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;
|
||||
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
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;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,33 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
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 Integer eqmid;
|
||||
|
||||
private Date acquisitiontime;
|
||||
|
||||
private Float chargetime;
|
||||
|
||||
private Integer isupload;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
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 Integer eqmid;
|
||||
|
||||
private Date acquisitiontime;
|
||||
|
||||
private Float oiltemperature;
|
||||
|
||||
private Integer isupload;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
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 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;
|
||||
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.shxy.i2.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class Data_SF6_Qtsf implements Serializable {
|
||||
private BigInteger id;
|
||||
|
||||
private Integer eqmid;
|
||||
|
||||
private Date acquisitiontime;
|
||||
|
||||
private Float temperature;
|
||||
|
||||
private Float moisture;
|
||||
|
||||
private Integer isupload;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.shxy.i2.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class Data_SF6_Qtyl implements Serializable {
|
||||
|
||||
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;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package com.shxy.i2.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class Data_Tx implements Serializable {
|
||||
private BigInteger id;
|
||||
|
||||
private Integer eqmid;
|
||||
|
||||
private Date acquisitiontime;
|
||||
|
||||
private Float totalcorecurrent;
|
||||
|
||||
private Integer isupload;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.shxy.i2.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
@Data
|
||||
public class Data_Ws implements Serializable {
|
||||
private BigInteger id;
|
||||
|
||||
private Integer eqmid;
|
||||
|
||||
private Date acquisitiontime;
|
||||
|
||||
private Float moisture;
|
||||
|
||||
private Integer isupload;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.shxy.i2.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class Data_Ysp implements Serializable {
|
||||
private BigInteger id;
|
||||
|
||||
private Integer eqmid;
|
||||
|
||||
private Date acquisitiontime;
|
||||
|
||||
private Float h2;
|
||||
|
||||
private Float ch4;
|
||||
|
||||
private Float c2h6;
|
||||
|
||||
private Float c2h4;
|
||||
|
||||
private Float c2h2;
|
||||
|
||||
private Float co;
|
||||
|
||||
private Float co2;
|
||||
|
||||
private Float o2;
|
||||
|
||||
private Float n2;
|
||||
|
||||
private Float totalhydrocarbon;
|
||||
|
||||
private Integer isupload;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private Date updateTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,45 @@
|
||||
package com.shxy.i2.entity;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class Niec_Sensors implements Serializable {
|
||||
|
||||
private Integer id;
|
||||
|
||||
private Integer parentId;
|
||||
|
||||
private String siteId;
|
||||
|
||||
private String sensorCode;
|
||||
|
||||
private String equipmentId;
|
||||
|
||||
private String phase;
|
||||
|
||||
private String name;
|
||||
|
||||
private Integer grpNo;
|
||||
|
||||
private Integer status;
|
||||
|
||||
private String equipmentType;
|
||||
|
||||
private String systemCode;
|
||||
|
||||
private String tableName;
|
||||
|
||||
private String devidFieldName;
|
||||
|
||||
private String dtimeFieldName;
|
||||
|
||||
private Integer oneDtime;
|
||||
|
||||
private Date createTime;
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
package com.shxy.i2.service;
|
||||
|
||||
public interface Webservcies {
|
||||
|
||||
void uploadData();
|
||||
void uploadyspData();
|
||||
void uploadjfjcData();
|
||||
|
||||
|
||||
// void test(String str);
|
||||
}
|
@ -0,0 +1,37 @@
|
||||
package com.shxy.i2.service;
|
||||
|
||||
import com.shxy.i2.entity.Niec_Sensors;
|
||||
import org.apache.cxf.endpoint.Client;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public interface XydlI2Service {
|
||||
|
||||
void upload_byq_jbfd(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_sf6_qtyl(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_dcyw(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_fhdlbx(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_fhzxq(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_sf6_qtsf(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_tx(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_ws(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_dr_jyjc(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_jsyhw_jyjc(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_microclimate(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_dlq_jbfd(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_ysp(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
|
||||
void upload_cnj(Client client, HashMap<Integer, Niec_Sensors> equipMap);
|
||||
}
|
@ -0,0 +1,131 @@
|
||||
package com.shxy.i2.serviceimpl;
|
||||
|
||||
import com.shxy.i2.Tool.AsyncMethod;
|
||||
import com.shxy.i2.dao.*;
|
||||
import com.shxy.i2.entity.*;
|
||||
import com.shxy.i2.service.Webservcies;
|
||||
import com.shxy.i2.service.XydlI2Service;
|
||||
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.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
@EnableAsync
|
||||
public class WebServiceImpl implements Webservcies {
|
||||
|
||||
@Autowired
|
||||
XydlI2Service xydlI2Service;
|
||||
|
||||
@Autowired
|
||||
AsyncMethod asyncMethod;
|
||||
|
||||
@Autowired
|
||||
private Niec_SensorsDao niec_sensorsDao;
|
||||
|
||||
private static String address = "http://10.238.71.98:18096/ppa/webservice/CAGAccessService?wsdl";
|
||||
|
||||
/**
|
||||
* 上传cac数据
|
||||
*/
|
||||
@Override
|
||||
public void uploadData() {
|
||||
log.info("实时数据定时任务启动");
|
||||
// 动态客户端
|
||||
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(60000);
|
||||
// 等待服务器响应超时时间 60秒
|
||||
policy.setReceiveTimeout(30000);
|
||||
conduit.setClient(policy);
|
||||
|
||||
log.info("开始执行定时任务-查询数据库");
|
||||
HashMap<Integer, Niec_Sensors> equipMap = new HashMap();
|
||||
List<Niec_Sensors> niec_sensors = niec_sensorsDao.selectAll();
|
||||
for (Niec_Sensors item : niec_sensors) {
|
||||
equipMap.put(item.getId(), item);
|
||||
}
|
||||
xydlI2Service.upload_sf6_qtyl(client, equipMap);
|
||||
xydlI2Service.upload_dcyw(client, equipMap);
|
||||
xydlI2Service.upload_fhdlbx(client, equipMap);
|
||||
xydlI2Service.upload_fhzxq(client, equipMap);
|
||||
xydlI2Service.upload_sf6_qtsf(client, equipMap);
|
||||
xydlI2Service.upload_tx(client, equipMap);
|
||||
xydlI2Service.upload_ws(client, equipMap);
|
||||
xydlI2Service.upload_dr_jyjc(client, equipMap);
|
||||
xydlI2Service.upload_jsyhw_jyjc(client, equipMap);
|
||||
xydlI2Service.upload_microclimate(client, equipMap);
|
||||
xydlI2Service.upload_cnj(client, equipMap);
|
||||
log.info("实时数据定时任务结束");
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void uploadyspData() {
|
||||
log.info("油色谱数据定时任务启动");
|
||||
// 动态客户端
|
||||
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(60000);
|
||||
// 等待服务器响应超时时间 60秒
|
||||
policy.setReceiveTimeout(60000);
|
||||
conduit.setClient(policy);
|
||||
|
||||
log.info("开始执行定时任务-查询数据库");
|
||||
HashMap<Integer, Niec_Sensors> equipMap = new HashMap();
|
||||
List<Niec_Sensors> niec_sensors = niec_sensorsDao.selectAll();
|
||||
for (Niec_Sensors item : niec_sensors) {
|
||||
equipMap.put(item.getId(), item);
|
||||
}
|
||||
xydlI2Service.upload_ysp(client, equipMap);
|
||||
log.info("油色谱数据定时任务结束");
|
||||
}
|
||||
|
||||
@Override
|
||||
public void uploadjfjcData() {
|
||||
|
||||
log.info("局放监测数据定时任务启动");
|
||||
// 动态客户端
|
||||
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(60000);
|
||||
// 等待服务器响应超时时间 60秒
|
||||
policy.setReceiveTimeout(60000);
|
||||
conduit.setClient(policy);
|
||||
HashMap<Integer, Niec_Sensors> equipMap = new HashMap();
|
||||
List<Niec_Sensors> niec_sensors = niec_sensorsDao.selectAll();
|
||||
for (Niec_Sensors item : niec_sensors) {
|
||||
equipMap.put(item.getId(), item);
|
||||
}
|
||||
xydlI2Service.upload_dlq_jbfd(client, equipMap);
|
||||
xydlI2Service.upload_byq_jbfd(client, equipMap);
|
||||
log.info("局放监测数据定时任务结束");
|
||||
}
|
||||
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,58 @@
|
||||
package com.shxy.i2.timeTask;
|
||||
|
||||
import com.shxy.i2.service.Webservcies;
|
||||
import com.shxy.i2.service.XydlI2Service;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.scheduling.annotation.Async;
|
||||
import org.springframework.scheduling.annotation.EnableAsync;
|
||||
import org.springframework.scheduling.annotation.EnableScheduling;
|
||||
import org.springframework.scheduling.annotation.Scheduled;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
/**
|
||||
* @author jingjing
|
||||
* @date 2023-11-16 15:06
|
||||
*/
|
||||
@Component
|
||||
@EnableScheduling
|
||||
@Slf4j
|
||||
@EnableAsync
|
||||
public class ScheduledTask {
|
||||
|
||||
|
||||
@Autowired
|
||||
Webservcies webservcies;
|
||||
|
||||
@Async(value = "asyncServiceExecutor")
|
||||
@Scheduled(fixedDelay = 60 * 60 * 1000)
|
||||
public void cacyspupload() {
|
||||
webservcies.uploadyspData();
|
||||
}
|
||||
|
||||
@Async(value = "asyncServiceExecutor")
|
||||
@Scheduled(fixedDelay = 10 * 60 * 1000)
|
||||
public void cacjfjcupload() {
|
||||
webservcies.uploadjfjcData();
|
||||
}
|
||||
|
||||
// @Scheduled(cron = "0 0/1 * * * ?")
|
||||
@Scheduled(fixedDelay = 5 * 30 * 1000)
|
||||
public void cacupload() {
|
||||
webservcies.uploadData();
|
||||
// String str = "aaaa";
|
||||
// webservcies.test(str);
|
||||
}
|
||||
|
||||
//
|
||||
// @Scheduled(cron = "0 * * * * ?")
|
||||
// @Async(value = "asyncServiceExecutor")
|
||||
|
||||
|
||||
// @Async(value = "asyncServiceExecutor")
|
||||
// @Scheduled(fixedDelay = 10 * 60 * 1000)
|
||||
// public void cacjfjcupload() {
|
||||
|
||||
// webservcies.uploadjfjcData();
|
||||
// }
|
||||
}
|
@ -0,0 +1,4 @@
|
||||
# Spring配置
|
||||
spring:
|
||||
profiles:
|
||||
active: test
|
@ -0,0 +1,31 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.shxy.i2.dao.Niec_SensorsDao">
|
||||
<resultMap id="BaseResultMap" type="com.shxy.i2.entity.Niec_Sensors">
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="parent_id" jdbcType="INTEGER" property="parentId"/>
|
||||
<result column="site_id" jdbcType="VARCHAR" property="siteId"/>
|
||||
<result column="sensor_code" jdbcType="VARCHAR" property="sensorCode"/>
|
||||
<result column="equipment_id" jdbcType="VARCHAR" property="equipmentId"/>
|
||||
<result column="phase" jdbcType="VARCHAR" property="phase"/>
|
||||
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="grp_no" jdbcType="INTEGER" property="grpNo"/>
|
||||
<result column="status" jdbcType="INTEGER" property="status"/>
|
||||
<result column="equipment_type" jdbcType="VARCHAR" property="equipmentType"/>
|
||||
<result column="system_code" jdbcType="VARCHAR" property="systemCode"/>
|
||||
<result column="table_name" jdbcType="VARCHAR" property="tableName"/>
|
||||
<result column="devid_field_name" jdbcType="VARCHAR" property="devidFieldName"/>
|
||||
<result column="dtime_field_name" jdbcType="VARCHAR" property="dtimeFieldName"/>
|
||||
<result column="one_dtime" jdbcType="INTEGER" property="oneDtime"/>
|
||||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime"/>
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
id, parent_id, site_id, sensor_code, equipment_id,phase,name, grp_no, status, equipment_type, system_code,
|
||||
table_name, devid_field_name, dtime_field_name, one_dtime, create_time
|
||||
</sql>
|
||||
<select id="selectAll" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from niec_sensors
|
||||
</select>
|
||||
</mapper>
|
@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE configuration
|
||||
PUBLIC "-//mybatis.org//DTD Config 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-config.dtd">
|
||||
<configuration>
|
||||
<!-- 全局参数 -->
|
||||
<settings>
|
||||
<!-- 使全局的映射器启用或禁用缓存 -->
|
||||
<setting name="cacheEnabled" value="true" />
|
||||
<!-- 允许JDBC 支持自动生成主键 -->
|
||||
<setting name="useGeneratedKeys" value="true" />
|
||||
<!-- 配置默认的执行器.SIMPLE就是普通执行器;REUSE执行器会重用预处理语句(prepared statements);BATCH执行器将重用语句并执行批量更新 -->
|
||||
<setting name="defaultExecutorType" value="SIMPLE" />
|
||||
<!-- 指定 MyBatis 所用日志的具体实现 -->
|
||||
<setting name="logImpl" value="SLF4J" />
|
||||
<!-- 使用驼峰命名法转换字段 -->
|
||||
<!-- <setting name="mapUnderscoreToCamelCase" value="true"/> -->
|
||||
</settings>
|
||||
|
||||
</configuration>
|
@ -0,0 +1,87 @@
|
||||
//package com.shxy.i2;
|
||||
//
|
||||
//import com.shxy.i2.constant.CommonStatus;
|
||||
//import com.shxy.i2.dao.Data_SF6_QtylDao;
|
||||
//import com.shxy.i2.dao.Niec_SensorsDao;
|
||||
//import com.shxy.i2.dto.Data_SF6_QtylDto;
|
||||
//import com.shxy.i2.entity.Niec_Sensors;
|
||||
//import com.shxy.i2.service.Webservcies;
|
||||
//import org.junit.jupiter.api.Test;
|
||||
//import org.springframework.beans.factory.annotation.Autowired;
|
||||
//import org.springframework.boot.test.context.SpringBootTest;
|
||||
//
|
||||
//import java.util.HashMap;
|
||||
//import java.util.List;
|
||||
//
|
||||
//@SpringBootTest
|
||||
//class I2ApplicationTests {
|
||||
//
|
||||
// @Autowired
|
||||
// private Webservcies webservcies;
|
||||
//
|
||||
//// @Autowired
|
||||
//// private TestService testServiceClient;
|
||||
//
|
||||
//// @Autowired
|
||||
//// private Niec_SensorsDao niec_sensorsDao;
|
||||
////
|
||||
//// @Autowired
|
||||
//// private Data_SF6_QtylDao data_sf6_qtylDao;
|
||||
//
|
||||
// @Test
|
||||
// void contextLoads() {
|
||||
//// HashMap<Integer, Niec_Sensors> equipMap = new HashMap();
|
||||
//// List<Niec_Sensors> niec_sensors = niec_sensorsDao.selectAll();
|
||||
//// for (Niec_Sensors item : niec_sensors) {
|
||||
//// equipMap.put(item.getId(), item);
|
||||
//// }
|
||||
//// List<Data_SF6_QtylDto> list = data_sf6_qtylDao.selectUpload(CommonStatus.UNUPLOAD.value());
|
||||
//// System.out.println("sdfadf");
|
||||
//// JaxWsDynamicClientFactory clientFactory = JaxWsDynamicClientFactory.newInstance();
|
||||
////// log.info("publicsecurity webService url : {}", "http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl");
|
||||
//// //根据WebServices接口地址创建client
|
||||
//// Client client = clientFactory.createClient("http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl");
|
||||
//// HTTPConduit conduit = (HTTPConduit) client.getConduit();
|
||||
//// HTTPClientPolicy policy = new HTTPClientPolicy();
|
||||
//// policy.setAllowChunking(false);
|
||||
//// // 连接服务器超时时间 10秒
|
||||
//// policy.setConnectionTimeout(10000);
|
||||
//// // 等待服务器响应超时时间 20秒
|
||||
//// policy.setReceiveTimeout(20000);
|
||||
//// conduit.setClient(policy);
|
||||
//// try {
|
||||
//// //invoke(接口中的方法名称,方法的参数)
|
||||
//// Object[] objects = client.invoke("qqCheckOnline", "1440265357");
|
||||
//// if (objects != null && objects.length > 0) {
|
||||
//// String isOnlineStr = (String) objects[0];
|
||||
////// log.info(qqNumber + " is {}", isOnlineStr.equals("Y") ? "在线" : "离线");
|
||||
//// System.out.println("fsasd");
|
||||
//// }
|
||||
//// } catch (Exception e) {
|
||||
////// log.error("抛出了异常:{}" + e.getMessage());
|
||||
//// System.out.println("r334324");
|
||||
//// }
|
||||
//// webservcies.checkOnline("1440265357");
|
||||
//
|
||||
//// JSONObject jsonObject = XML.toJSONObject("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
||||
//// "<response>\n" +
|
||||
//// "<result code=\"0\" />\n" +
|
||||
//// "<commands>\n" +
|
||||
//// "<command objid=\"26M00090990000987\" type=\"SETCONFIG\">\n" +
|
||||
//// "<action name=\"CAGIP\" value=\"10.144.98.101\" />\n" +
|
||||
//// "<action name=\"CURTIME\" value=\"2011-04-10 22:10:11\" />\n" +
|
||||
//// "</command>\n" +
|
||||
//// "<command objid=\"26M00090990000986\" type=\"SETCONFIG\">\n" +
|
||||
//// "<action name=\"MAINTIME\" value=\"20\" />\n" +
|
||||
//// "<action name=\"SAMPLECOUNT\" value=\"15\" />\n" +
|
||||
//// "</command>\n" +
|
||||
//// "</commands>\n" +
|
||||
//// "</response>");
|
||||
//// System.out.println(jsonObject.toString());
|
||||
//
|
||||
// webservcies.uploadData();
|
||||
//
|
||||
// }
|
||||
//
|
||||
//
|
||||
//}
|
@ -0,0 +1,31 @@
|
||||
//package com.shxy.i2;
|
||||
//
|
||||
//import cn.hutool.core.util.XmlUtil;
|
||||
//import cn.hutool.json.JSONObject;
|
||||
//import cn.hutool.json.XML;
|
||||
//
|
||||
//import java.util.Map;
|
||||
//
|
||||
//public class test {
|
||||
// public static void main(String[] args){
|
||||
// JSONObject jsonObject = XML.toJSONObject("<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
|
||||
// "<response>\n" +
|
||||
// "<result code=\"0\" />\n" +
|
||||
// "<commands>\n" +
|
||||
// "<command objid=\"26M00090990000987\" type=\"SETCONFIG\">\n" +
|
||||
// "<action name=\"CAGIP\" value=\"10.144.98.101\" />\n" +
|
||||
// "<action name=\"CURTIME\" value=\"2011-04-10 22:10:11\" />\n" +
|
||||
// "</command>\n" +
|
||||
// "<command objid=\"26M00090990000986\" type=\"SETCONFIG\">\n" +
|
||||
// "<action name=\"MAINTIME\" value=\"20\" />\n" +
|
||||
// "<action name=\"SAMPLECOUNT\" value=\"15\" />\n" +
|
||||
// "</command>\n" +
|
||||
// "</commands>\n" +
|
||||
// "</response>");
|
||||
// JSONObject response = (JSONObject) jsonObject.get("response");
|
||||
//
|
||||
// JSONObject result = (JSONObject) response.get("result");
|
||||
// Integer code = (Integer) result.get("code");
|
||||
// System.out.println(jsonObject.toString());
|
||||
// }
|
||||
//}
|
Loading…
Reference in New Issue