Initial Commit
parent
302d43abe7
commit
a5e796658c
@ -0,0 +1,310 @@
|
||||
#!/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.
|
||||
# ----------------------------------------------------------------------------
|
||||
|
||||
# ----------------------------------------------------------------------------
|
||||
# Maven2 Start Up Batch script
|
||||
#
|
||||
# Required ENV vars:
|
||||
# ------------------
|
||||
# JAVA_HOME - location of a JDK home dir
|
||||
#
|
||||
# Optional ENV vars
|
||||
# -----------------
|
||||
# M2_HOME - location of maven2's installed home dir
|
||||
# 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 /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
|
||||
export JAVA_HOME="`/usr/libexec/java_home`"
|
||||
else
|
||||
export JAVA_HOME="/Library/Java/Home"
|
||||
fi
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
|
||||
if [ -z "$JAVA_HOME" ] ; then
|
||||
if [ -r /etc/gentoo-release ] ; then
|
||||
JAVA_HOME=`java-config --jre-home`
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -z "$M2_HOME" ] ; then
|
||||
## resolve links - $0 may be a link to maven's home
|
||||
PRG="$0"
|
||||
|
||||
# need this for relative symlinks
|
||||
while [ -h "$PRG" ] ; do
|
||||
ls=`ls -ld "$PRG"`
|
||||
link=`expr "$ls" : '.*-> \(.*\)$'`
|
||||
if expr "$link" : '/.*' > /dev/null; then
|
||||
PRG="$link"
|
||||
else
|
||||
PRG="`dirname "$PRG"`/$link"
|
||||
fi
|
||||
done
|
||||
|
||||
saveddir=`pwd`
|
||||
|
||||
M2_HOME=`dirname "$PRG"`/..
|
||||
|
||||
# make it fully qualified
|
||||
M2_HOME=`cd "$M2_HOME" && pwd`
|
||||
|
||||
cd "$saveddir"
|
||||
# echo Using m2 at $M2_HOME
|
||||
fi
|
||||
|
||||
# For Cygwin, ensure paths are in UNIX format before anything is touched
|
||||
if $cygwin ; then
|
||||
[ -n "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --unix "$M2_HOME"`
|
||||
[ -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 "$M2_HOME" ] &&
|
||||
M2_HOME="`(cd "$M2_HOME"; pwd)`"
|
||||
[ -n "$JAVA_HOME" ] &&
|
||||
JAVA_HOME="`(cd "$JAVA_HOME"; 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="`which 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
|
||||
|
||||
CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
|
||||
|
||||
# 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/.."; pwd`
|
||||
fi
|
||||
# end of workaround
|
||||
done
|
||||
echo "${basedir}"
|
||||
}
|
||||
|
||||
# concatenates all lines of a file
|
||||
concat_lines() {
|
||||
if [ -f "$1" ]; then
|
||||
echo "$(tr -s '\n' ' ' < "$1")"
|
||||
fi
|
||||
}
|
||||
|
||||
BASE_DIR=`find_maven_basedir "$(pwd)"`
|
||||
if [ -z "$BASE_DIR" ]; then
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
##########################################################################################
|
||||
# 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.
|
||||
##########################################################################################
|
||||
if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found .mvn/wrapper/maven-wrapper.jar"
|
||||
fi
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
|
||||
fi
|
||||
if [ -n "$MVNW_REPOURL" ]; then
|
||||
jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
|
||||
else
|
||||
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
|
||||
fi
|
||||
while IFS="=" read key value; do
|
||||
case "$key" in (wrapperUrl) jarUrl="$value"; break ;;
|
||||
esac
|
||||
done < "$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Downloading from: $jarUrl"
|
||||
fi
|
||||
wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
|
||||
if $cygwin; then
|
||||
wrapperJarPath=`cygpath --path --windows "$wrapperJarPath"`
|
||||
fi
|
||||
|
||||
if command -v wget > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found wget ... using wget"
|
||||
fi
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
wget "$jarUrl" -O "$wrapperJarPath"
|
||||
else
|
||||
wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
|
||||
fi
|
||||
elif command -v curl > /dev/null; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Found curl ... using curl"
|
||||
fi
|
||||
if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
|
||||
curl -o "$wrapperJarPath" "$jarUrl" -f
|
||||
else
|
||||
curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
|
||||
fi
|
||||
|
||||
else
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo "Falling back to using Java to download"
|
||||
fi
|
||||
javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
|
||||
# For Cygwin, switch paths to Windows format before running javac
|
||||
if $cygwin; then
|
||||
javaClass=`cygpath --path --windows "$javaClass"`
|
||||
fi
|
||||
if [ -e "$javaClass" ]; then
|
||||
if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Compiling MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
# Compiling the Java class
|
||||
("$JAVA_HOME/bin/javac" "$javaClass")
|
||||
fi
|
||||
if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
|
||||
# Running the downloader
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo " - Running MavenWrapperDownloader.java ..."
|
||||
fi
|
||||
("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
##########################################################################################
|
||||
# End of extension
|
||||
##########################################################################################
|
||||
|
||||
export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
|
||||
if [ "$MVNW_VERBOSE" = true ]; then
|
||||
echo $MAVEN_PROJECTBASEDIR
|
||||
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 "$M2_HOME" ] &&
|
||||
M2_HOME=`cygpath --path --windows "$M2_HOME"`
|
||||
[ -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
|
||||
|
||||
exec "$JAVACMD" \
|
||||
$MAVEN_OPTS \
|
||||
-classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
|
||||
"-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
|
||||
${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
|
@ -0,0 +1,182 @@
|
||||
@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 Maven2 Start Up Batch script
|
||||
@REM
|
||||
@REM Required ENV vars:
|
||||
@REM JAVA_HOME - location of a JDK home dir
|
||||
@REM
|
||||
@REM Optional ENV vars
|
||||
@REM M2_HOME - location of maven2's installed home dir
|
||||
@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 key stroke 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 "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
|
||||
if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\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 DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
|
||||
|
||||
FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
|
||||
IF "%%A"=="wrapperUrl" SET DOWNLOAD_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 DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.5/maven-wrapper-0.5.5.jar"
|
||||
)
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Couldn't find %WRAPPER_JAR%, downloading it ...
|
||||
echo Downloading from: %DOWNLOAD_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('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
|
||||
"}"
|
||||
if "%MVNW_VERBOSE%" == "true" (
|
||||
echo Finished downloading %WRAPPER_JAR%
|
||||
)
|
||||
)
|
||||
@REM End of extension
|
||||
|
||||
@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 "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
|
||||
if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\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%
|
||||
|
||||
exit /B %ERROR_CODE%
|
@ -0,0 +1,7 @@
|
||||
public class TestMain {
|
||||
|
||||
// public static void main(String[] args)
|
||||
// {
|
||||
// new BigDecimal(0.002364345566222).setScale(4, RoundingMode.UP).doubleValue();
|
||||
// }
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.chenxuan;
|
||||
|
||||
import org.mybatis.spring.annotation.MapperScan;
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
||||
import org.springframework.context.annotation.ComponentScan;
|
||||
|
||||
@EnableAutoConfiguration(exclude = DataSourceAutoConfiguration.class)
|
||||
@ComponentScan(value = "com.chenxuan")
|
||||
@MapperScan("com.chenxuan.mapper")
|
||||
@SpringBootApplication
|
||||
public class ChenxiApplication {
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run( ChenxiApplication.class, args );
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.chenxuan.base.entity;
|
||||
|
||||
|
||||
public class JobConstant {
|
||||
|
||||
/**
|
||||
* 任务调度参数key
|
||||
*/
|
||||
public static final String JOB_PARAM_KEY = "JOB_PARAM_KEY";
|
||||
|
||||
/**
|
||||
* 任务调度
|
||||
*/
|
||||
public final static String JOB_KEY = "JOB_KEY";
|
||||
|
||||
|
||||
/**
|
||||
* 任务调度
|
||||
*/
|
||||
public final static String TRIGGER_kEY = "TRIGGER_kEY";
|
||||
}
|
@ -0,0 +1,65 @@
|
||||
package com.chenxuan.base.entity;
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
public class Query implements Serializable {
|
||||
|
||||
public String page = "1";
|
||||
public String limit = "10";
|
||||
public String orderByField = "";
|
||||
public String isAsc = "";
|
||||
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
private String params;
|
||||
|
||||
public Integer getPage() {
|
||||
return Integer.parseInt( page );
|
||||
}
|
||||
|
||||
public void setPage(String page) {
|
||||
this.page = page;
|
||||
}
|
||||
|
||||
public Integer getLimit() {
|
||||
return Integer.parseInt( limit );
|
||||
}
|
||||
|
||||
public void setLimit(String limit) {
|
||||
this.limit = limit;
|
||||
}
|
||||
|
||||
public String getOrderByField() {
|
||||
return orderByField;
|
||||
}
|
||||
|
||||
public void setOrderByField(String orderByField) {
|
||||
this.orderByField = orderByField;
|
||||
}
|
||||
|
||||
public String getIsAsc() {
|
||||
return isAsc;
|
||||
}
|
||||
|
||||
public void setIsAsc(String isAsc) {
|
||||
this.isAsc = isAsc;
|
||||
}
|
||||
|
||||
public Map<String, Object> getParams() {
|
||||
if (params == null) {
|
||||
return new HashMap<>();
|
||||
}
|
||||
return JSON.parseObject(params , Map.class );
|
||||
}
|
||||
|
||||
public void setParams(String params) {
|
||||
this.params = params;
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
package com.chenxuan.config;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.boot.web.servlet.ServletContextInitializer;
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletException;
|
||||
|
||||
@Configuration
|
||||
public class CookieConfig {
|
||||
/**
|
||||
* 在配置文件配置APP.NAME参数即可
|
||||
*/
|
||||
@Value("${APP.NAME}")
|
||||
private String appName;
|
||||
|
||||
@Bean
|
||||
public ServletContextInitializer servletContextInitializer() {
|
||||
return new ServletContextInitializer() {
|
||||
@Override
|
||||
public void onStartup(ServletContext servletContext) throws ServletException {
|
||||
servletContext.getSessionCookieConfig().setName(appName);
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.chenxuan.config;
|
||||
|
||||
import org.springframework.context.annotation.Bean;
|
||||
import org.springframework.context.annotation.Configuration;
|
||||
import org.springframework.http.client.ClientHttpRequestFactory;
|
||||
import org.springframework.http.client.SimpleClientHttpRequestFactory;
|
||||
import org.springframework.web.client.RestTemplate;
|
||||
|
||||
@Configuration
|
||||
public class RestTemplateConfig {
|
||||
//最好是用不注释的方法,在注入的同时设置连接时间,这种注释的也可以,但是没有设置超时时间
|
||||
/*@Bean
|
||||
public RestTemplate restTemplate(RestTemplateBuilder builder){
|
||||
return builder.build();
|
||||
}*/
|
||||
|
||||
@Bean
|
||||
public RestTemplate restTemplate(ClientHttpRequestFactory factory){
|
||||
return new RestTemplate(factory);
|
||||
}
|
||||
|
||||
@Bean
|
||||
public ClientHttpRequestFactory simpleClientHttpRequestFactory(){
|
||||
SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
|
||||
factory.setReadTimeout(5000);//单位为ms
|
||||
factory.setConnectTimeout(5000);//单位为ms
|
||||
return factory;
|
||||
}
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.chenxuan.constants;
|
||||
|
||||
/**
|
||||
* 系统路径
|
||||
* @author Jordan_Li
|
||||
*
|
||||
*/
|
||||
public class BusiUrlConstants {
|
||||
|
||||
public static final String HEADER = "";
|
||||
|
||||
public static final String IS_DELETE = "0";
|
||||
|
||||
//主变信息
|
||||
public static final String BUSI_MAIN_DEVICE = HEADER + "busiMainDeviceController";
|
||||
|
||||
//主变装置信息
|
||||
public static final String BUSI_SUB_DEVICE = HEADER + "busiSubDeviceController";
|
||||
|
||||
//原副边电流电压实时数据配置
|
||||
public static final String BUSI_TRANSFORMER_CONF = HEADER + "busiTransformerConfController";
|
||||
|
||||
//控制参数设置
|
||||
public static final String BUSI_CONTROL_CONFIG = HEADER + "busiControlConfigController";
|
||||
|
||||
//振动装置阈值配置
|
||||
public static final String BUSI_AMPLI_THRESHOLD_CONF = HEADER + "busiAmpliThresholdConfController";
|
||||
|
||||
//中心点电流阈值配置
|
||||
public static final String BUSI_CENTER_THRESHOLD_CONF = HEADER + "busiCenterThresholdConfController";
|
||||
|
||||
//噪声装置阈值配置
|
||||
public static final String BUSI_NOISE_THRESHOLD_CONF = HEADER + "busiNoiseThresholdConfController";
|
||||
|
||||
//振动装置-频率定义
|
||||
public static final String BUSI_FREQUENCY_CONF = HEADER + "busiFrequencyConfController";
|
||||
|
||||
//振动装置-日增长率
|
||||
public static final String BUSI_AMPLI_DAY_INCREASE = HEADER + "busiAmpliDayIncreaseController";
|
||||
|
||||
//原副边电流电压实时数据
|
||||
public static final String BUSI_TRANSFORMER_REAL = HEADER + "busiTransformerRealController";
|
||||
|
||||
//中心点实时数据
|
||||
public static final String BUSI_CENTER_REAL = HEADER + "busiCenterRealController";
|
||||
|
||||
//噪声实时数据
|
||||
public static final String BUSI_NOISE_REAL = HEADER + "busiNoiseRealController";
|
||||
|
||||
//振动实时数据
|
||||
public static final String BUSI_SHOCK_REAL = HEADER + "busiShockRealController";
|
||||
|
||||
//告警信息
|
||||
public static final String BUSI_WARNING = HEADER + "busiWarningController";
|
||||
|
||||
//通信参数设置
|
||||
public static final String BUSI_COMMUNICATION_PARAMETERS = HEADER + "busiCommunicationParametersController";
|
||||
|
||||
//评估页面
|
||||
public static final String BUSI_CALC_PARAM_CONF = HEADER + "busiCalcParamConfController";
|
||||
|
||||
//评估页面
|
||||
public static final String BUSI_DEVICE_CALIBRATION = HEADER + "busiDeviceCalibrationContorller";
|
||||
|
||||
//装置特殊展示页面
|
||||
public static final String BUSI_DEVICE_SPECIAL_SHOW = HEADER + "busiDeviceSpecialShowContorller";
|
||||
|
||||
//远程登录
|
||||
public static final String REMOTE_LOGIN = HEADER + "sysLoginRemoteController";
|
||||
|
||||
//远程新增用户
|
||||
public static final String REMOTE_USER = HEADER + "userRemote";
|
||||
|
||||
//IED信息
|
||||
public static final String BUSI_IED = HEADER + "iedController";
|
||||
|
||||
//IED参数绑定
|
||||
public static final String BUSI_PARAM_BIND = HEADER + "busiParamBindController";
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package com.chenxuan.constants;
|
||||
|
||||
import java.util.Random;
|
||||
|
||||
/**
|
||||
* 主变生成systemCode
|
||||
* @author Jordan_Li
|
||||
*
|
||||
*/
|
||||
public class GenerateUtil {
|
||||
|
||||
public static String generateCode(int length) {
|
||||
String ALLCHAR2 = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";
|
||||
StringBuffer sb = new StringBuffer();
|
||||
Random random = new Random();
|
||||
for (int i = 0; i < length; i++) {
|
||||
sb.append(ALLCHAR2.charAt(random.nextInt(ALLCHAR2.length())));
|
||||
}
|
||||
return sb.toString();
|
||||
}
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.chenxuan.constants;
|
||||
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* Uuid Utils
|
||||
* @author Jordan_Li
|
||||
*
|
||||
*/
|
||||
public class UuidUtils {
|
||||
|
||||
public static String getUUID() {
|
||||
return UUID.randomUUID().toString().replace("-", "");
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.BusiAmpliDayIncrease;
|
||||
import com.chenxuan.entity.vo.BusiAmpliDayIncreaseVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiAmpliDayIncreaseService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "振动装置日增长率")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_AMPLI_DAY_INCREASE)
|
||||
public class BusiAmpliDayIncreaseController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiAmpliDayIncreaseService busiAmpliDayIncreaseService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取振动装置日增长率列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取振动装置日增长率列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(Query queryParam) {
|
||||
Page<BusiAmpliDayIncreaseVo> page = busiAmpliDayIncreaseService.page( queryParam );
|
||||
return AjaxResult.success( page );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增振动装置日增长率信息
|
||||
*/
|
||||
@ApiOperation(value = "新增振动装置日增长率信息")
|
||||
@LogAnnotation(module = "振动装置日增长率", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiAmpliDayIncrease busiAmpliDayIncrease) {
|
||||
return returnAjax( busiAmpliDayIncreaseService.insertAmpliDayIncrease( busiAmpliDayIncrease ) );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改振动装置日增长率信息
|
||||
*/
|
||||
@ApiOperation(value = "修改振动装置日增长率信息")
|
||||
@LogAnnotation(module = "振动装置日增长率", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiAmpliDayIncrease busiAmpliDayIncrease) {
|
||||
return returnAjax( busiAmpliDayIncreaseService.updateAmpliDayIncrease( busiAmpliDayIncrease ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载其振动装置日增长率信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载其振动装置日增长率信息")
|
||||
@GetMapping(value = "/getAmpliDayIncreaseByMainId/{mainId}")
|
||||
public AjaxResult getAmpliDayIncreaseByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success( busiAmpliDayIncreaseService.selectAmpliDayIncreaseByMainId( mainId ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id删除振动装置日增长率信息
|
||||
*/
|
||||
@ApiOperation(value = "根据id删除振动装置日增长率信息")
|
||||
@LogAnnotation(module = "振动装置日增长率", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete/{id}")
|
||||
public AjaxResult delete(@RequestParam("id") String id) {
|
||||
return returnAjax( busiAmpliDayIncreaseService.delete( id ) );
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,114 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiAmpliRealDto;
|
||||
import com.chenxuan.entity.model.BusiAmpliReal;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiAmpliRealService;
|
||||
import com.chenxuan.service.BusiExportDataService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "振动实时数据")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_SHOCK_REAL)
|
||||
public class BusiAmpliRealController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiAmpliRealService busiAmpliRealService;
|
||||
|
||||
@Autowired
|
||||
private BusiExportDataService busiExportDataService;
|
||||
|
||||
/**
|
||||
* 新增振动实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "新增振动实时数据信息")
|
||||
@LogAnnotation(module = "振动实时数据", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiAmpliReal> busiAmpliRealList) {
|
||||
return returnAjax(busiAmpliRealService.insertShockReal(busiAmpliRealList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据条件加载振动实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "根据条件加载振动实时数据信息")
|
||||
@PostMapping(value = "/getShockRealByMainId")
|
||||
public AjaxResult getShockRealByMainId(@RequestBody BusiAmpliRealDto dto) {
|
||||
return AjaxResult.success(busiAmpliRealService.selectShockRealByMainId(dto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载振动实时数据详细信息
|
||||
*/
|
||||
@ApiOperation(value = "根据条件加载振动实时数据详细信息")
|
||||
@PostMapping(value = "/getShockRealDetailsByCondition")
|
||||
public AjaxResult getShockRealDetailsByCondition(@RequestBody BusiAmpliRealDto busiAmpliRealDto) {
|
||||
return AjaxResult.success(busiAmpliRealService.getShockRealDetailsByCondition(busiAmpliRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id以及对应装置信息加载振动装置振幅和频率谱图信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id以及对应装置信息加载振动装置振幅和频率谱图信息")
|
||||
@PostMapping(value = "/queryShockRealChartByInfo")
|
||||
public AjaxResult queryShockRealChartByInfo(@RequestBody BusiAmpliRealDto busiAmpliRealDto) {
|
||||
return AjaxResult.success(busiAmpliRealService.getShockRealChartByInfo(busiAmpliRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id以及对应装置信息加载振动装置振幅和频率三维图信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id以及对应装置信息加载振动装置振幅和频率三维图信息")
|
||||
@PostMapping(value = "/getAmpliRealChart")
|
||||
public AjaxResult getAmpliRealChart(@RequestBody BusiAmpliRealDto busiAmpliRealDto) {
|
||||
return AjaxResult.success(busiAmpliRealService.getAmpliRealThreeChart(busiAmpliRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 三级界面重新计算接口
|
||||
*/
|
||||
@ApiOperation(value = "三级界面重新计算接口")
|
||||
@PostMapping(value = "/recountData")
|
||||
public AjaxResult recountData(@RequestBody BusiAmpliRealDto busiAmpliRealDto) {
|
||||
return AjaxResult.success(busiAmpliRealService.recount(busiAmpliRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 二级页面跳转详情加载三级页面
|
||||
*/
|
||||
@ApiOperation(value = "二级页面跳转详情加载三级页面")
|
||||
@PostMapping(value = "/showShockRealDetails")
|
||||
public AjaxResult showShockRealDetails(@RequestBody BusiAmpliRealDto busiAmpliRealDto) {
|
||||
return AjaxResult.success(busiAmpliRealService.loadingDetails(busiAmpliRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出震动实时数据三级界面列表信息Excel
|
||||
*/
|
||||
@ApiOperation(value = "导出震动实时数据三级界面列表信息Excel")
|
||||
@PostMapping(value = "/exportShockRealDetailsPage")
|
||||
public AjaxResult exportShockRealDetailsPage(@RequestBody BusiAmpliRealDto dto) {
|
||||
return busiExportDataService.exportShockRealDetails(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出传感器实时数据
|
||||
*/
|
||||
@ApiOperation(value = "导出传感器实时数据")
|
||||
@PostMapping(value = "/exportAmpliRealByCondition")
|
||||
public AjaxResult exportAmpliRealByCondition(@RequestBody BusiAmpliRealDto dto) {
|
||||
return busiExportDataService.exportAmpliReal(dto);
|
||||
}
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.constants.HttpStatusCode;
|
||||
import com.chenxuan.entity.dto.BusiAmpliThresholdConfDto;
|
||||
import com.chenxuan.entity.model.BusiAmpliThresholdConf;
|
||||
import com.chenxuan.entity.vo.BusiAmpliThresholdConfNewVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiAmpliThresholdConfService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "振动装置阈值配置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_AMPLI_THRESHOLD_CONF)
|
||||
public class BusiAmpliThresholdConfController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiAmpliThresholdConfService busiAmpliThresholdConfService;
|
||||
|
||||
/**
|
||||
* @Description: 获取振动装置阈值配置列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取振动装置阈值配置列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(@RequestBody BusiAmpliThresholdConfDto dto) {
|
||||
Page<BusiAmpliThresholdConfNewVo> page = busiAmpliThresholdConfService.page(dto);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增振动装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "新增振动装置阈值配置信息")
|
||||
@LogAnnotation(module = "振动装置阈值配置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiAmpliThresholdConf> busiAmpliThresholdConfList) {
|
||||
return returnAjax(busiAmpliThresholdConfService.insertThresholdConf(busiAmpliThresholdConfList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改振动装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "修改振动装置阈值配置信息")
|
||||
@LogAnnotation(module = "振动装置阈值配置", operateType = OperateType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiAmpliThresholdConfNewVo busiAmpliThresholdConfNewVo) {
|
||||
boolean b = busiAmpliThresholdConfService.updateThresholdConf(busiAmpliThresholdConfNewVo);
|
||||
if (!b) {
|
||||
return new AjaxResult(HttpStatusCode.ERROR, "主变有未配置的装置");
|
||||
}
|
||||
return returnAjax(b);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载振动装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载振动装置阈值配置信息")
|
||||
@GetMapping(value = "/getAmpliThresholdConfByMainId/{mainId}")
|
||||
public AjaxResult getAmpliThresholdConfByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiAmpliThresholdConfService.selectThresholdConfByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据振动装置阈值配置id删除其配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据振动装置阈值配置id删除其配置信息")
|
||||
@LogAnnotation(module = "振动装置阈值配置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete/{id}")
|
||||
public AjaxResult delete(@RequestParam("id") String id) {
|
||||
return returnAjax(busiAmpliThresholdConfService.delete(id));
|
||||
}
|
||||
}
|
@ -0,0 +1,53 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiCalcParamConfDto;
|
||||
import com.chenxuan.entity.vo.BusiCalcParamConfVo;
|
||||
import com.chenxuan.service.BusiCalcParamConfService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Carrey Zheng
|
||||
* @create 2020-06-28 8:10 PM
|
||||
**/
|
||||
@Api(tags = "评估页面")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_CALC_PARAM_CONF)
|
||||
public class BusiCalcParamConfController {
|
||||
|
||||
@Autowired
|
||||
private BusiCalcParamConfService busiParamGisService;
|
||||
|
||||
/**
|
||||
* 评估参数列表
|
||||
*
|
||||
* @param mainEquipmentId
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "列表查询")
|
||||
@GetMapping(value = "/list/{mainId}", produces = {"application/json;charset=utf-8"})
|
||||
public Map<String, Object> queryList(@PathVariable("mainId") String mainEquipmentId) {
|
||||
List<BusiCalcParamConfVo> busiParamGis = busiParamGisService.findBusiParamGis(mainEquipmentId);
|
||||
return AjaxResult.success(busiParamGis);
|
||||
}
|
||||
|
||||
/**
|
||||
* 评估参数提交
|
||||
*
|
||||
* @param busiParams
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "参数提交")
|
||||
@PostMapping(value = "/save")
|
||||
public AjaxResult saveBusiSite(@RequestBody List<BusiCalcParamConfDto> busiParams) {
|
||||
return busiParamGisService.saveBusiParamGis(busiParams);
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiCenterRealDto;
|
||||
import com.chenxuan.entity.model.BusiCenterReal;
|
||||
import com.chenxuan.entity.vo.BusiCenterRealDetailsVo;
|
||||
import com.chenxuan.entity.vo.BusiCenterRealVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiCenterRealService;
|
||||
import com.chenxuan.service.BusiExportDataService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "中心点实时数据")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_CENTER_REAL)
|
||||
public class BusiCenterRealController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiCenterRealService busiCenterRealService;
|
||||
|
||||
@Autowired
|
||||
private BusiExportDataService busiExportDataService;
|
||||
|
||||
/**
|
||||
* 新增中心点实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "新增中心点实时数据信息")
|
||||
@LogAnnotation(module = "中心点实时数据", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiCenterReal> busiCenterRealList) {
|
||||
return returnAjax(busiCenterRealService.insertCenterReal(busiCenterRealList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载中心点实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载中心点实时数据信息")
|
||||
@GetMapping(value = "/getCenterRealByMainId/{mainId}")
|
||||
public AjaxResult getCenterRealByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiCenterRealService.selectCenterRealByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id及当天时间加载中心点谱图信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id及当天时间加载中心点谱图信息")
|
||||
@PostMapping(value = "/queryCenterRealChartByInfo")
|
||||
public AjaxResult queryCenterRealChartByInfo(@RequestBody BusiCenterRealDto busiCenterRealDto) {
|
||||
return AjaxResult.success(busiCenterRealService.findCenterRealChartByInfo(busiCenterRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id和时间加载中心点实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id和时间加载中心点实时数据信息")
|
||||
@PostMapping(value = "/getCenterRealByMainIdAndCreateTime")
|
||||
public AjaxResult getCenterRealByMainIdAndCreateTime(@RequestBody BusiCenterRealVo busiCenterRealVo) {
|
||||
return AjaxResult.success(busiCenterRealService.selectCenterRealByMainIdAndCreateTime(busiCenterRealVo));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载中心点实时数据详细信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载中心点实时数据详细信息")
|
||||
@PostMapping(value = "/getCenterRealDetailsByMainId")
|
||||
public AjaxResult getCenterRealDetailsByMainId(@RequestBody BusiCenterRealDto dto) {
|
||||
Page<BusiCenterRealDetailsVo> centerRealDetailsByMainId = busiCenterRealService.getCenterRealDetailsByMainId(dto);
|
||||
return AjaxResult.success(centerRealDetailsByMainId);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出中心点实时数据详细信息Excel
|
||||
*/
|
||||
@ApiOperation(value = "导出中心点实时数据详细信息Excel")
|
||||
@PostMapping(value = "/exportCenterRealDetails")
|
||||
public AjaxResult exportCenterRealDetails(@RequestBody BusiCenterRealDto dto) {
|
||||
return busiExportDataService.exportCenterRealDetails(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出中心点实时数据
|
||||
*/
|
||||
@ApiOperation(value = "导出中心点实时数据")
|
||||
@PostMapping(value = "/exportCenterRealByMainId")
|
||||
public AjaxResult exportCenterRealByMainId(@RequestBody BusiCenterRealDto dto) {
|
||||
return busiExportDataService.exportCenterReal(dto);
|
||||
}
|
||||
}
|
@ -0,0 +1,87 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiCenterThresholdConfDto;
|
||||
import com.chenxuan.entity.model.BusiCenterThresholdConf;
|
||||
import com.chenxuan.entity.vo.BusiCenterThresholdConfVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiCenterThresholdConfService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Api(tags = "中心点电流阈值配置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_CENTER_THRESHOLD_CONF)
|
||||
public class BusiCenterThresholdConfController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiCenterThresholdConfService busiCenterThresholdConfService;
|
||||
|
||||
/**
|
||||
* @Description: 获取中心点电流阈值配置列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取中心点电流阈值配置列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(@RequestBody BusiCenterThresholdConfDto busiCenterThresholdConfDto) {
|
||||
Page<BusiCenterThresholdConfVo> page = busiCenterThresholdConfService.page(busiCenterThresholdConfDto);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增中心点电流阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "新增中心点电流阈值配置信息")
|
||||
@LogAnnotation(module = "中心点电流阈值配置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiCenterThresholdConf busiCenterThresholdConf) {
|
||||
return busiCenterThresholdConfService.insertThresholdConf(busiCenterThresholdConf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改中心点电流阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "修改中心点电流阈值配置信息")
|
||||
@LogAnnotation(module = "中心点电流阈值配置", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiCenterThresholdConf busiCenterThresholdConf) {
|
||||
return busiCenterThresholdConfService.updateThresholdConf(busiCenterThresholdConf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载中心点电流阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载中心点电流阈值配置信息")
|
||||
@GetMapping(value = "/getCenterThresholdConfByMainId/{mainId}")
|
||||
public AjaxResult getCenterThresholdConfByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiCenterThresholdConfService.selectCenterThresholdConfByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id删除中心点电流阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id删除中心点电流阈值配置信息")
|
||||
@LogAnnotation(module = "中心点电流阈值配置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/deleteByMainId/{mainId}")
|
||||
public AjaxResult remove(@RequestParam("mainId") String mainId) {
|
||||
return returnAjax(busiCenterThresholdConfService.deleteThresholdConfByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据中心点电流阈值配置id删除其配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据中心点电流阈值配置id删除其配置信息")
|
||||
@LogAnnotation(module = "中心点电流阈值配置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult delete(@RequestParam("id") String id) {
|
||||
return returnAjax(busiCenterThresholdConfService.delete(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.BusiCommunicationParameters;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiCommunicationParametersService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "通信参数设置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_COMMUNICATION_PARAMETERS)
|
||||
public class BusiCommunicationParametersController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiCommunicationParametersService busiCommunicationParametersService;
|
||||
|
||||
/**
|
||||
* @Description: 获取通信参数信息列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "分页查询通信参数列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(Query queryParam) {
|
||||
Page<BusiCommunicationParameters> page = busiCommunicationParametersService.page(queryParam);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增通信参数信息
|
||||
*/
|
||||
@ApiOperation(value = "新增通信参数信息")
|
||||
// @LogAnnotation(module = "通信参数设置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiCommunicationParameters busiCommunicationParameters) {
|
||||
return returnAjax(busiCommunicationParametersService.insertBusiCommunicationParameters(busiCommunicationParameters));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改通信参数信息
|
||||
*/
|
||||
@ApiOperation(value = "修改通信参数信息")
|
||||
@LogAnnotation(module = "通信参数设置", operateType = OperateType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiCommunicationParameters busiCommunicationParameters) {
|
||||
return returnAjax(busiCommunicationParametersService.updateBusiCommunicationParameters(busiCommunicationParameters));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id加载通信参数信息
|
||||
*/
|
||||
@ApiOperation(value = "根据id加载通信参数信息")
|
||||
@GetMapping(value = "/getBusiCommunicationParametersById/{id}")
|
||||
public AjaxResult getBusiCommunicationParametersById(@PathVariable("id") String id) {
|
||||
return AjaxResult.success(busiCommunicationParametersService.selectBusiCommunicationParametersById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除主变信息
|
||||
*/
|
||||
@ApiOperation(value = "删除通信参数信息")
|
||||
// @LogAnnotation(module = "通信参数设置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete/{id}")
|
||||
public AjaxResult remove(@RequestParam("id") String id) {
|
||||
return returnAjax(busiCommunicationParametersService.deleteById(id));
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value = "根据通信协议类型加载通信参数信息")
|
||||
@GetMapping(value = "/getBusiCommunicationParametersByProtocol/{protocol}")
|
||||
public AjaxResult getBusiCommunicationParametersByProtocol(@PathVariable("protocol") String protocol) {
|
||||
return AjaxResult.success(busiCommunicationParametersService.selectBusiCommunicationParametersByProtocol(protocol));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,95 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.BusiControlConfig;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiControlConfigService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "控制参数设置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_CONTROL_CONFIG)
|
||||
public class BusiControlConfigController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiControlConfigService busiControlConfigService;
|
||||
|
||||
/**
|
||||
* @Description: 获取控制参数设置列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取控制参数设置列表")
|
||||
@GetMapping(value = "/page")
|
||||
public AjaxResult page(Query queryParam) {
|
||||
Page<BusiControlConfig> page = busiControlConfigService.page(queryParam);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增控制参数设置信息
|
||||
*/
|
||||
@ApiOperation(value = "新增控制参数设置信息")
|
||||
@LogAnnotation(module = "控制参数设置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiControlConfig> busiControlConfigList) {
|
||||
return returnAjax(busiControlConfigService.insertConfigs(busiControlConfigList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改控制参数设置信息
|
||||
*/
|
||||
@ApiOperation(value = "修改控制参数设置信息")
|
||||
@LogAnnotation(module = "控制参数设置", operateType = OperateType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody List<BusiControlConfig> busiControlConfigList) {
|
||||
return busiControlConfigService.updateConfigs(busiControlConfigList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载对应主变的控制参数设置信息
|
||||
*/
|
||||
@ApiOperation(value = "加载对应主变的控制参数设置信息")
|
||||
@GetMapping(value = "/getTransformerConfigByMainId/{mainId}")
|
||||
public AjaxResult getTransformerConfigByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiControlConfigService.selectConfigsByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除控制参数设置
|
||||
*/
|
||||
@ApiOperation(value = "删除控制参数设置")
|
||||
@LogAnnotation(module = "控制参数设置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult remove(@RequestParam("id") String id) {
|
||||
return returnAjax(busiControlConfigService.deleteConfById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id删除该主变对应的控制参数设置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id删除该主变对应的控制参数设置信息")
|
||||
@LogAnnotation(module = "控制参数设置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/deleteByMainId")
|
||||
public AjaxResult deleteByMainId(@RequestParam("mainId") String mainId) {
|
||||
return returnAjax(busiControlConfigService.deleteConfsByMainId(mainId));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,39 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.BusiDeviceCalibration;
|
||||
import com.chenxuan.service.BusiDeviceCalibrationService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Api(tags = "装置校时设置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_DEVICE_CALIBRATION)
|
||||
public class BusiDeviceCalibrationContorller extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiDeviceCalibrationService busiDeviceCalibrationService;
|
||||
|
||||
/**
|
||||
* 加载对应主变的校时设置信息
|
||||
*/
|
||||
@ApiOperation(value = "加载对应主变装置校时设置设置信息")
|
||||
@GetMapping(value = "/getBusiDeviceCalibrationByMainId")
|
||||
public AjaxResult getBusiDeviceCalibrationByMainId(@RequestParam("mainId") String mainId) {
|
||||
return AjaxResult.success(busiDeviceCalibrationService.selectBusiDeviceCalibrationByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 主变校准时间
|
||||
*/
|
||||
@ApiOperation(value = "主变校准时间")
|
||||
@PostMapping(value = "/timing")
|
||||
public AjaxResult timing(@RequestBody BusiDeviceCalibration busiDeviceCalibration) {
|
||||
return returnAjax(busiDeviceCalibrationService.timingBusiDeviceCalibration(busiDeviceCalibration));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,51 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiVibrationContrastDto;
|
||||
import com.chenxuan.entity.model.BusiVibrationSeparation;
|
||||
import com.chenxuan.service.BusiDeviceSpecialShowService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "装置特殊展示页面")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_DEVICE_SPECIAL_SHOW)
|
||||
public class BusiDeviceSpecialShowContorller {
|
||||
|
||||
@Autowired
|
||||
private BusiDeviceSpecialShowService specialShowService;
|
||||
|
||||
/**
|
||||
* 振动分离
|
||||
*/
|
||||
@ApiOperation(value = "振动分离")
|
||||
@PostMapping(value = "/getShockRealChartByDevice")
|
||||
public AjaxResult getShockRealChartByDevice(@RequestBody BusiVibrationSeparation vibrationSeparation) {
|
||||
return AjaxResult.success(specialShowService.getShockRealChartByDevice(vibrationSeparation));
|
||||
}
|
||||
|
||||
/**
|
||||
* 振动对比实验
|
||||
*/
|
||||
@ApiOperation(value = "振动对比实验")
|
||||
@PostMapping(value = "/vibrationContrastExper")
|
||||
public AjaxResult vibrationContrastExper(@RequestBody BusiVibrationContrastDto dto) {
|
||||
return AjaxResult.success(specialShowService.getVibrationContrastExper(dto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 原副边数据
|
||||
*/
|
||||
@ApiOperation(value = "原副边数据")
|
||||
@PostMapping(value = "/fixation")
|
||||
public AjaxResult getFixation() {
|
||||
return AjaxResult.success(specialShowService.getFixation());
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,89 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.BusiFrequencyConf;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiFrequencyConfService;
|
||||
|
||||
@Api(tags = "振动装置-频率配置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_FREQUENCY_CONF)
|
||||
public class BusiFrequencyConfController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiFrequencyConfService busiFrequencyConfService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取振动装置频率配置信息列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "分页查询振动装置频率配置列表")
|
||||
@GetMapping(value = "/page")
|
||||
public AjaxResult page(Query queryParam) {
|
||||
Page<BusiFrequencyConf> page = busiFrequencyConfService.page( queryParam );
|
||||
return AjaxResult.success( page );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增振动装置频率配置信息
|
||||
*/
|
||||
@ApiOperation(value = "新增振动装置频率配置信息")
|
||||
@LogAnnotation(module = "振动装置频率配置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiFrequencyConf busiFrequencyConf) {
|
||||
return returnAjax( busiFrequencyConfService.insertFrequencyConf( busiFrequencyConf ) );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改振动装置频率配置信息
|
||||
*/
|
||||
@ApiOperation(value = "修改振动装置频率配置信息")
|
||||
@LogAnnotation(module = "振动装置频率配置", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiFrequencyConf busiFrequencyConf) {
|
||||
return returnAjax( busiFrequencyConfService.updateFrequencyConf( busiFrequencyConf ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id加载振动装置频率配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据id加载振动装置频率配置信息")
|
||||
@GetMapping(value = "/getMainDeviceById/{id}")
|
||||
public AjaxResult getMainDeviceByMainId(@PathVariable("id") String id) {
|
||||
return AjaxResult.success( busiFrequencyConfService.selectFrequencyConfById( id ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除振动装置频率配置信息
|
||||
*/
|
||||
@ApiOperation(value = "删除振动装置频率配置信息")
|
||||
@LogAnnotation(module = "振动装置频率配置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult remove(@RequestParam("id") String id) {
|
||||
return returnAjax( busiFrequencyConfService.deleteFrequencyConfById( id ) );
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,126 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiMainDeviceDto;
|
||||
import com.chenxuan.entity.model.BusiMainDevice;
|
||||
import com.chenxuan.entity.vo.BusiMainDeviceVo;
|
||||
import com.chenxuan.entity.vo.PercentageVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiMainDeviceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "主变设置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_MAIN_DEVICE)
|
||||
public class BusiMainDeviceController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiMainDeviceService busiMainDeviceService;
|
||||
/**
|
||||
* @Description: 获取主变压器信息列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "分页查询主变列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(@RequestBody BusiMainDeviceDto busiMainDeviceDto) {
|
||||
Page<BusiMainDeviceVo> page = busiMainDeviceService.page(busiMainDeviceDto);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增主变信息
|
||||
*/
|
||||
@ApiOperation(value = "新增主变信息")
|
||||
@LogAnnotation(module = "主变信息", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiMainDevice busiMainDevice) {
|
||||
return busiMainDeviceService.insertMainDevice(busiMainDevice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改主变信息
|
||||
*/
|
||||
@ApiOperation(value = "修改主变信息")
|
||||
@LogAnnotation(module = "主变信息", operateType = OperateType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiMainDevice busiMainDevice) {
|
||||
return busiMainDeviceService.updateMainDevice(busiMainDevice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id加载主变信息
|
||||
*/
|
||||
@ApiOperation(value = "根据id加载主变信息")
|
||||
@GetMapping(value = "/getMainDeviceById/{id}")
|
||||
public AjaxResult getMainDeviceByMainId(@PathVariable("id") String id) {
|
||||
return AjaxResult.success(busiMainDeviceService.selectMainDeviceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除主变信息
|
||||
*/
|
||||
@ApiOperation(value = "删除主变信息")
|
||||
@LogAnnotation(module = "主变信息", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult remove(@RequestParam("id") String id) {
|
||||
return returnAjax(busiMainDeviceService.deleteMainDeviceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 获取主变压器信息List
|
||||
* @Param:
|
||||
* @Return:
|
||||
**/
|
||||
@ApiOperation(value = "获取主变压器信息List")
|
||||
@PostMapping(value = "/list")
|
||||
public AjaxResult list() {
|
||||
List<BusiMainDevice> list = busiMainDeviceService.selectBusiMainDeviceList();
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 获取设备总数
|
||||
* @Param:
|
||||
* @Return:
|
||||
**/
|
||||
@ApiOperation(value = "获取设备总数")
|
||||
@GetMapping(value = "/selectCountDeviceTotal")
|
||||
public AjaxResult selectCountDeviceTotal() {
|
||||
PercentageVo percentageVo = busiMainDeviceService.selectCountDeviceTotal();
|
||||
return AjaxResult.success(percentageVo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 获取运行正常设备总数
|
||||
* @Param:
|
||||
* @Return:
|
||||
**/
|
||||
@ApiOperation(value = "获取设备总数")
|
||||
@GetMapping(value = "/selectNormalDevice")
|
||||
public AjaxResult selectNormalDevice() {
|
||||
PercentageVo percentageVo = busiMainDeviceService.selectNormalDevice();
|
||||
return AjaxResult.success(percentageVo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @Description: 获取运行异常设备总数
|
||||
* @Param:
|
||||
* @Return:
|
||||
**/
|
||||
@ApiOperation(value = "获取设备总数")
|
||||
@GetMapping(value = "/selectCountEcpDevice")
|
||||
public AjaxResult selectCountEcpDevice() {
|
||||
PercentageVo percentageVo = busiMainDeviceService.selectCountEcpDevice();
|
||||
return AjaxResult.success(percentageVo);
|
||||
}
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiNoiseRealDto;
|
||||
import com.chenxuan.entity.model.BusiNoiseReal;
|
||||
import com.chenxuan.entity.vo.BusiNoiseRealDetailsVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiExportDataService;
|
||||
import com.chenxuan.service.BusiNoiseRealService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "噪声实时数据")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_NOISE_REAL)
|
||||
public class BusiNoiseRealController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiNoiseRealService busiNoiseRealService;
|
||||
|
||||
@Autowired
|
||||
private BusiExportDataService busiExportDataService;
|
||||
|
||||
/**
|
||||
* 新增噪声实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "新增噪声实时数据信息")
|
||||
@LogAnnotation(module = "噪声实时数据", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiNoiseReal> busiNoiseRealList) {
|
||||
return returnAjax(busiNoiseRealService.insertNoiseReal(busiNoiseRealList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载噪声实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载噪声实时数据信息")
|
||||
@GetMapping(value = "/getNoiseRealByMainId/{mainId}")
|
||||
public AjaxResult getNoiseRealByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiNoiseRealService.selectNoiseRealByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id及当天时间加载噪声谱图信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id及当天时间加载噪声谱图信息")
|
||||
@PostMapping(value = "/queryNoiseRealChartByInfo")
|
||||
public AjaxResult queryNoiseRealChartByInfo(@RequestBody BusiNoiseRealDto busiNoiseRealDto) {
|
||||
return AjaxResult.success(busiNoiseRealService.findNoiseRealChartByInfo(busiNoiseRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id和时间加载噪声实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id和时间加载噪声实时数据信息")
|
||||
@PostMapping(value = "/getNoiseRealByMainIdAndCreateTime")
|
||||
public AjaxResult getNoiseRealByMainIdAndCreateTime(@RequestBody BusiNoiseRealDto busiNoiseRealDto) {
|
||||
return AjaxResult.success(busiNoiseRealService.selectNoiseRealByMainIdAndCreateTime(busiNoiseRealDto));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载噪声实时数据详细信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载噪声实时数据详细信息")
|
||||
@PostMapping(value = "/getNoiseRealDetailsByMainId")
|
||||
public AjaxResult getNoiseRealDetailsByMainId(@RequestBody BusiNoiseRealDto dto) {
|
||||
Page<BusiNoiseRealDetailsVo> pageList = busiNoiseRealService.getNoiseRealDetailsByMainId(dto);
|
||||
return AjaxResult.success(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出噪声实时数据详细信息Excel
|
||||
*/
|
||||
@ApiOperation(value = "导出噪声实时数据详细信息Excel")
|
||||
@PostMapping(value = "/exportNoiseRealDetails")
|
||||
public AjaxResult exportNoiseRealDetails(@RequestBody BusiNoiseRealDto dto) {
|
||||
return busiExportDataService.exportNoiseRealDetails(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出噪声实时数据
|
||||
*/
|
||||
@ApiOperation(value = "导出噪声实时数据")
|
||||
@PostMapping(value = "/exportNoiseRealByMainId")
|
||||
public AjaxResult exportNoiseRealByMainId(@RequestBody BusiNoiseRealDto dto) {
|
||||
return busiExportDataService.exportNoiseReal(dto);
|
||||
}
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiNoiseThresholdConfDto;
|
||||
import com.chenxuan.entity.model.BusiNoiseThresholdConf;
|
||||
import com.chenxuan.entity.vo.BusiNoiseThresholdConfVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiNoiseThresholdConfService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Api(tags = "噪声装置阈值配置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_NOISE_THRESHOLD_CONF)
|
||||
public class BusiNoiseThresholdConfController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiNoiseThresholdConfService busiNoiseThresholdConfService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取噪声装置阈值配置列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取噪声装置阈值配置列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(@RequestBody BusiNoiseThresholdConfDto dto) {
|
||||
Page<BusiNoiseThresholdConfVo> page = busiNoiseThresholdConfService.page(dto);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增噪声装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "新增噪声装置阈值配置信息")
|
||||
@LogAnnotation(module = "噪声装置阈值配置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiNoiseThresholdConf busiNoiseThresholdConf) {
|
||||
return busiNoiseThresholdConfService.insertThresholdConf(busiNoiseThresholdConf);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改噪声装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "修改噪声装置阈值配置信息")
|
||||
@LogAnnotation(module = "噪声装置阈值配置", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiNoiseThresholdConf busiNoiseThresholdConf) {
|
||||
return busiNoiseThresholdConfService.updateThresholdConf(busiNoiseThresholdConf);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载噪声装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载噪声装置阈值配置信息")
|
||||
@GetMapping(value = "/getCenterThresholdConfByMainId/{mainId}")
|
||||
public AjaxResult getCenterThresholdConfByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiNoiseThresholdConfService.selectThresholdConfByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id删除噪声装置阈值配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id删除噪声装置阈值配置信息")
|
||||
@LogAnnotation(module = "噪声装置阈值配置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/deleteByMainId")
|
||||
public AjaxResult remove(@RequestParam("mainId") String mainId) {
|
||||
return returnAjax(busiNoiseThresholdConfService.deleteThresholdConfByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据噪声装置阈值配置id删除其配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据噪声装置阈值配置id删除其配置信息")
|
||||
@LogAnnotation(module = "噪声装置阈值配置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult delete(@RequestParam("ids") String id) {
|
||||
return returnAjax(busiNoiseThresholdConfService.delete(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,63 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiParamBindDto;
|
||||
import com.chenxuan.entity.model.BusiParamBind;
|
||||
import com.chenxuan.entity.vo.BusiMainDeviceVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiParamBindService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Api(tags = "ied参数绑定")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_PARAM_BIND)
|
||||
public class BusiParamBindController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiParamBindService busiParamBindService;
|
||||
/**
|
||||
* 新增ied参数绑定
|
||||
*/
|
||||
@ApiOperation(value = "新增ied参数信息")
|
||||
@LogAnnotation(module = "ied参数信息", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/addParamBind")
|
||||
public AjaxResult addParamBind(@RequestBody BusiParamBind busiParamBind) {
|
||||
// return busiParamBindService.addParamBind(busiParamBind);
|
||||
return returnAjax(busiParamBindService.addParamBind(busiParamBind));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改ied参数绑定
|
||||
*/
|
||||
@ApiOperation(value = "修改ied参数信息")
|
||||
@LogAnnotation(module = "ied参数信息", operateType = OperateType.UPDATE)
|
||||
@PostMapping(value = "/updateParamBind")
|
||||
public AjaxResult updateParamBind(@RequestBody BusiParamBind busiParamBind) {
|
||||
return returnAjax(busiParamBindService.updateParamBind(busiParamBind));
|
||||
}
|
||||
|
||||
@ApiOperation(value = "分页查询")
|
||||
@PostMapping(value = "/queryParamBind")
|
||||
public AjaxResult queryParamBind(@RequestBody BusiParamBindDto dto) {
|
||||
Page<BusiMainDeviceVo> page = busiParamBindService.queryParamBind(dto);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 删除用户
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delParamBind")
|
||||
public AjaxResult delParamBind(@RequestParam("iedIds") int[] iedIds) {
|
||||
return returnAjax(busiParamBindService.delParamBind(iedIds) > 0 ? true : false);
|
||||
}
|
||||
}
|
@ -0,0 +1,124 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiSubDeviceDto;
|
||||
import com.chenxuan.entity.model.BusiSubDevice;
|
||||
import com.chenxuan.entity.vo.BusiSubDeviceVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiSubDeviceService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "主变装置设置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_SUB_DEVICE)
|
||||
public class BusiSubDeviceController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiSubDeviceService busiSubDeviceService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取主变压器装置信息列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取主变压器装置信息列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(@RequestBody BusiSubDeviceDto dto) {
|
||||
Page<BusiSubDeviceVo> page = busiSubDeviceService.page(dto);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
@ApiOperation(value = "获取主变压器装置信息列表")
|
||||
@GetMapping(value = "/queryAll")
|
||||
public AjaxResult queryAll() {
|
||||
List<BusiSubDeviceVo> list = busiSubDeviceService.queryAll();
|
||||
return AjaxResult.success(list);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 新增主变装置信息
|
||||
*/
|
||||
@ApiOperation(value = "新增主变装置信息")
|
||||
@LogAnnotation(module = "主变装置信息", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiSubDeviceDto dto) {
|
||||
return busiSubDeviceService.insertSubDevice(dto);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改主变装置信息
|
||||
*/
|
||||
@ApiOperation(value = "修改主变装置信息")
|
||||
@LogAnnotation(module = "主变装置信息", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiSubDevice busiSubDevice) {
|
||||
return busiSubDeviceService.updateSubDevice(busiSubDevice);
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载主变装置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载主变装置信息")
|
||||
@GetMapping(value = "/getSubDeviceByMainId/{mainId}")
|
||||
public AjaxResult getSubDeviceByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiSubDeviceService.selectSubDeviceByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载主变装置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载主变装置信息")
|
||||
@GetMapping(value = "/querySubDeviceById/{id}")
|
||||
public AjaxResult querySubDeviceById(@PathVariable("id") String id) {
|
||||
return AjaxResult.success(busiSubDeviceService.querySubDeviceById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id加载主变装置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id加载主变装置信息")
|
||||
@GetMapping(value = "/querySubDeviceByMainId/{mainId}")
|
||||
public AjaxResult querySubDeviceByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiSubDeviceService.querySubDeviceByMainId(mainId));
|
||||
}
|
||||
// @ApiOperation(value = "根据通信协议类型加载通信参数信息")
|
||||
// @GetMapping(value = "/getBusiCommunicationParametersByProtocol/{protocol}")
|
||||
// public AjaxResult getBusiCommunicationParametersByProtocol(@PathVariable("protocol") String protocol) {
|
||||
// return AjaxResult.success(busiCommunicationParametersService.selectBusiCommunicationParametersByProtocol(protocol));
|
||||
// }
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 根据主变id删除主变装置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id删除该主变下对应的装置信息")
|
||||
@LogAnnotation(module = "主变装置信息", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/deleteByMainId/{mainId}")
|
||||
public AjaxResult remove(@RequestParam("mainId") String mainId) {
|
||||
return returnAjax(busiSubDeviceService.deleteSubDeviceByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据装置id删除装置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据装置id删除装置信息")
|
||||
@LogAnnotation(module = "主变装置信息", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete/{id}")
|
||||
public AjaxResult delete(@RequestParam("id") String id) {
|
||||
return returnAjax(busiSubDeviceService.delete(id));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,97 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.BusiTransformerConf;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiTransformerConfService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "原副边电流电压配置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_TRANSFORMER_CONF)
|
||||
public class BusiTransformerConfController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiTransformerConfService busiTransformerConfService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取原副边电流电压配置列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取原副边电流电压配置列表")
|
||||
@GetMapping(value = "/page")
|
||||
public AjaxResult page(Query queryParam) {
|
||||
Page<BusiTransformerConf> page = busiTransformerConfService.page(queryParam);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增电流电压配置
|
||||
*/
|
||||
@ApiOperation(value = "新增电流电压配置")
|
||||
@LogAnnotation(module = "电流电压设置", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiTransformerConf> busiTransformerConfList) {
|
||||
return returnAjax(busiTransformerConfService.insertConfigs(busiTransformerConfList));
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改电流电压配置
|
||||
*/
|
||||
@ApiOperation(value = "修改电流电压配置")
|
||||
// @LogAnnotation(module = "电流电压设置", operateType = OperateType.UPDATE)
|
||||
@PostMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody List<BusiTransformerConf> busiTransformerConfList) {
|
||||
return returnAjax(busiTransformerConfService.updateConfigs(busiTransformerConfList));
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载对应主变的原边副边电流电压信息
|
||||
*/
|
||||
@ApiOperation(value = "加载对应主变的原边副边电流电压信息")
|
||||
@GetMapping(value = "/getTransformerConfigByMainId/{mainId}")
|
||||
public AjaxResult getTransformerConfigByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success(busiTransformerConfService.selectConfigsByMainId(mainId));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除配置
|
||||
*/
|
||||
@ApiOperation(value = "根据配置id删除电流电压配置")
|
||||
@LogAnnotation(module = "电流电压设置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult remove(@RequestParam("id") String id) {
|
||||
return returnAjax(busiTransformerConfService.deleteConfById(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据主变id删除该主变下对应的电流电压配置信息
|
||||
*/
|
||||
@ApiOperation(value = "根据主变id删除该主变下对应的电流电压配置信息")
|
||||
@LogAnnotation(module = "电流电压设置", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/deleteByMainId")
|
||||
public AjaxResult deleteByMainId(@RequestParam("mainId") String mainId) {
|
||||
return returnAjax(busiTransformerConfService.deleteConfsByMainId(mainId));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiTransformerRealDto;
|
||||
import com.chenxuan.entity.model.BusiTransformerReal;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiTransformerRealService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Api(tags = "原副边电流电压实时数据")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_TRANSFORMER_REAL)
|
||||
public class BusiTransformerRealController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiTransformerRealService busiTransformerRealService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取原副边电流电压实时数据列表
|
||||
* @Param:
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@ApiOperation(value = "获取原副边电流电压实时数据列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(Query queryParam) {
|
||||
Page<BusiTransformerReal> page = busiTransformerRealService.page( queryParam );
|
||||
return AjaxResult.success( page );
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增原副边电流电压实时数据
|
||||
*/
|
||||
@ApiOperation(value = "新增原副边电流电压实时数据")
|
||||
@LogAnnotation(module = "原副边电流电压实时数据", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody List<BusiTransformerReal> busiTransformerRealList) {
|
||||
return returnAjax( busiTransformerRealService.insertTransformerReals( busiTransformerRealList ) );
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 加载对应主变的原副边电流电压实时数据信息
|
||||
*/
|
||||
@ApiOperation(value = "加载对应主变的原副边电流电压实时数据信息")
|
||||
@GetMapping(value = "/getTransformerConfigByMainId/{mainId}")
|
||||
public AjaxResult getTransformerConfigByMainId(@PathVariable("mainId") String mainId) {
|
||||
return AjaxResult.success( busiTransformerRealService.selectTransformerRealByMainId( mainId ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出原副边电流电压实时数据Excel
|
||||
*/
|
||||
@ApiOperation(value = "导出原副边电流电压实时数据Excel")
|
||||
@PostMapping(value = "/exporTransformReal")
|
||||
public AjaxResult exporTransformReal(@RequestBody BusiTransformerRealDto dto) {
|
||||
return AjaxResult.success(busiTransformerRealService.exporTransformReal(dto));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,64 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.dto.BusiWarningDto;
|
||||
import com.chenxuan.entity.model.BusiWarning;
|
||||
import com.chenxuan.entity.vo.BusiWarningVo;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.BusiWarningService;
|
||||
import com.chenxuan.utils.StringUtils;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
@Api(tags = "告警信息")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_WARNING)
|
||||
public class BusiWarningController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private BusiWarningService busiWarningService;
|
||||
|
||||
/**
|
||||
* 获取告警信息列表
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@ApiOperation(value = "获取告警信息列表")
|
||||
@PostMapping(value = "/page")
|
||||
public AjaxResult page(@RequestBody BusiWarningDto dto) {
|
||||
Page<BusiWarningVo> page;
|
||||
if (StringUtils.isNotBlank(dto.getWarnType())) {
|
||||
page = busiWarningService.getPage(dto);
|
||||
} else {
|
||||
page = busiWarningService.page(dto);
|
||||
}
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增告警信息
|
||||
*/
|
||||
@ApiOperation(value = "新增告警信息")
|
||||
@LogAnnotation(module = "告警信息", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody BusiWarning busiWarning) {
|
||||
return returnAjax(busiWarningService.insertWarning(busiWarning));
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改告警阈值信息
|
||||
*/
|
||||
@ApiOperation(value = "修改告警信息")
|
||||
@LogAnnotation(module = "告警信息", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody BusiWarning busiWarning) {
|
||||
return returnAjax(busiWarningService.updateWarning(busiWarning));
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.service.BusiIedparamService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.PathVariable;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "主变装置设置")
|
||||
@RestController
|
||||
@RequestMapping(value = BusiUrlConstants.BUSI_IED)
|
||||
public class IedController {
|
||||
@Autowired
|
||||
private BusiIedparamService busiIedparamService;
|
||||
|
||||
@ApiOperation(value = "加载对应主变的原副边电流电压实时数据信息")
|
||||
@GetMapping(value = "/quereyIcdById/{id}")
|
||||
public AjaxResult quereyIcdById(@PathVariable("id") String id) {
|
||||
return AjaxResult.success(busiIedparamService.quereyIcdById(id) );
|
||||
}
|
||||
}
|
@ -0,0 +1,29 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.entity.model.SysUser;
|
||||
import com.chenxuan.service.SysPostService;
|
||||
import com.chenxuan.service.SysRoleService;
|
||||
import com.chenxuan.service.SysExecService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/system/exec")
|
||||
public class SysExecController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private SysExecService sysExecService;
|
||||
|
||||
@GetMapping(value = "/exec")
|
||||
public AjaxResult page(String command) {
|
||||
sysExecService.runtimeExec( command );
|
||||
return AjaxResult.success( );
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,78 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.entity.dto.SysLoginLogDto;
|
||||
import com.chenxuan.entity.model.SysLoginLog;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.SysExportDataService;
|
||||
import com.chenxuan.service.SysLoginLogService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* 系统访问记录
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/monitor/loginlog")
|
||||
public class SysLoginLogController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private SysLoginLogService sysLoginLogService;
|
||||
@Autowired
|
||||
private SysExportDataService sysExportDataService;
|
||||
|
||||
/**
|
||||
* 登录日志分页
|
||||
*
|
||||
* @param query
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
public AjaxResult page(Query query) {
|
||||
Page<SysLoginLog> page = sysLoginLogService.selectLoginLogPage(query);
|
||||
return AjaxResult.success(page);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出登录日志
|
||||
*
|
||||
* @param dto
|
||||
* @return
|
||||
*/
|
||||
@LogAnnotation(module = "登录日志", operateType = OperateType.EXPORT)
|
||||
@PostMapping("/export")
|
||||
public AjaxResult export(@RequestBody SysLoginLogDto dto) {
|
||||
return sysExportDataService.exportLoginLog(dto);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除登录日志信息
|
||||
*
|
||||
* @param infoIds
|
||||
* @return
|
||||
*/
|
||||
@LogAnnotation(module = "登陆日志", operateType = OperateType.DELETE)
|
||||
@DeleteMapping("/delete")
|
||||
public AjaxResult delete(@RequestParam("infoIds") Long[] infoIds) {
|
||||
return returnAjax(sysLoginLogService.deleteLoginLogByIds(infoIds));
|
||||
}
|
||||
|
||||
/**
|
||||
* 清空登录日志信息
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
@LogAnnotation(module = "登陆日志", operateType = OperateType.CLEAN)
|
||||
@DeleteMapping("/clean")
|
||||
public AjaxResult clean() {
|
||||
sysLoginLogService.cleanLoginLog();
|
||||
return AjaxResult.success();
|
||||
}
|
||||
}
|
@ -0,0 +1,94 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.entity.model.SysUser;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.security.LoginUser;
|
||||
import com.chenxuan.security.service.JwtTokenService;
|
||||
import com.chenxuan.service.SysUserService;
|
||||
|
||||
import com.chenxuan.utils.SecurityUtils;
|
||||
import com.chenxuan.utils.ServletUtils;
|
||||
import lombok.extern.java.Log;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* 个人信息 业务处理
|
||||
*
|
||||
* @author ruoyi
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/system/user/profile")
|
||||
public class SysProfileController extends BaseController {
|
||||
@Autowired
|
||||
private SysUserService sysUserService;
|
||||
|
||||
@Autowired
|
||||
private JwtTokenService jwtTokenService;
|
||||
|
||||
/**
|
||||
* 个人信息
|
||||
*/
|
||||
@GetMapping
|
||||
public AjaxResult profile() {
|
||||
LoginUser loginUser = jwtTokenService.getLoginUser( ServletUtils.getRequest() );
|
||||
SysUser user = loginUser.getUser();
|
||||
AjaxResult ajax = AjaxResult.success( user );
|
||||
ajax.put( "roleGroup", sysUserService.selectUserRoleGroup( loginUser.getUsername() ) );
|
||||
ajax.put( "postGroup", sysUserService.selectUserPostGroup( loginUser.getUsername() ) );
|
||||
return ajax;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户
|
||||
*/
|
||||
@LogAnnotation(module = "个人信息", operateType = OperateType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult updateProfile(@RequestBody SysUser user) {
|
||||
return returnAjax( sysUserService.updateUserProfile( user ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置密码
|
||||
*/
|
||||
@LogAnnotation(module = "个人信息", operateType = OperateType.UPDATE)
|
||||
@PutMapping("/updatePwd")
|
||||
public AjaxResult updatePwd(String oldPassword, String newPassword) {
|
||||
LoginUser loginUser = jwtTokenService.getLoginUser( ServletUtils.getRequest() );
|
||||
String userName = loginUser.getUsername();
|
||||
String password = loginUser.getPassword();
|
||||
if (!SecurityUtils.matchesPassword( oldPassword, password )) {
|
||||
return AjaxResult.error( "修改密码失败,旧密码错误" );
|
||||
}
|
||||
if (SecurityUtils.matchesPassword( newPassword, password )) {
|
||||
return AjaxResult.error( "新密码不能与旧密码相同" );
|
||||
}
|
||||
return returnAjax( sysUserService.resetUserPwd( userName, SecurityUtils.encryptPassword( newPassword ) ) );
|
||||
}
|
||||
|
||||
/**
|
||||
* 头像上传
|
||||
*/
|
||||
@LogAnnotation(module = "用户头像", operateType = OperateType.UPDATE)
|
||||
@PostMapping("/avatar")
|
||||
public AjaxResult avatar(@RequestParam("avatarfile") MultipartFile file) throws IOException {
|
||||
// if (!file.isEmpty()) {
|
||||
// LoginUser loginUser = jwtTokenService.getLoginUser( ServletUtils.getRequest() );
|
||||
// String avatar = FileUploadUtils.upload( RuoYiConfig.getAvatarPath(), file );
|
||||
// if (userService.updateUserAvatar( loginUser.getUsername(), avatar )) {
|
||||
// AjaxResult ajax = AjaxResult.success();
|
||||
// ajax.put( "imgUrl", avatar );
|
||||
// loginUser.getUser().setAvatar( avatar );
|
||||
// tokenService.setLoginUser( loginUser );
|
||||
// return ajax;
|
||||
// }
|
||||
// }
|
||||
return AjaxResult.error( "上传图片异常,请联系管理员" );
|
||||
}
|
||||
}
|
@ -0,0 +1,145 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.UuidUtils;
|
||||
import com.chenxuan.entity.model.SysUser;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.SysExportDataService;
|
||||
import com.chenxuan.service.SysPostService;
|
||||
import com.chenxuan.service.SysRoleService;
|
||||
import com.chenxuan.service.SysUserService;
|
||||
import com.chenxuan.utils.Md5;
|
||||
import com.chenxuan.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
@RestController
|
||||
@RequestMapping("/system/user")
|
||||
public class SysUserController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private SysUserService sysUserService;
|
||||
|
||||
@Autowired
|
||||
private SysRoleService sysRoleService;
|
||||
|
||||
@Autowired
|
||||
private SysPostService sysPostService;
|
||||
@Autowired
|
||||
private SysExportDataService sysExportDataService;
|
||||
|
||||
|
||||
/**
|
||||
* @Description: 获取用户列表
|
||||
* @Param: user
|
||||
* @Return: TableDataInfo
|
||||
**/
|
||||
@GetMapping(value = "/page")
|
||||
public AjaxResult page(Query query) {
|
||||
return AjaxResult.success(sysUserService.page(query));
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出用户信息
|
||||
*
|
||||
* @param query
|
||||
* @return
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(Query query) {
|
||||
return sysExportDataService.exportUserInfo(query);
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增用户
|
||||
*
|
||||
* @param sysUser
|
||||
* @return
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.INSERT)
|
||||
@PostMapping(value = "/add")
|
||||
public AjaxResult add(@RequestBody SysUser sysUser) {
|
||||
if (!sysUserService.checkUserNameUnique(sysUser.getUserName())) {
|
||||
return AjaxResult.error("新增用户'" + sysUser.getUserName() + "'失败,登录账号已存在");
|
||||
}
|
||||
if (!sysUserService.checkPhoneUnique(sysUser)) {
|
||||
return AjaxResult.error("新增用户'" + sysUser.getUserName() + "'失败,手机号码已存在");
|
||||
}
|
||||
String salt = UuidUtils.getUUID();
|
||||
sysUser.setCreateTime(new Date());
|
||||
sysUser.setPasswordSalt(salt);
|
||||
sysUser.setPassword(Md5.getMD5Code(salt + sysUser.getPassword()));
|
||||
return returnAjax(sysUserService.insertUser(sysUser));
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据用户id获取用户信息
|
||||
*
|
||||
* @param userId
|
||||
* @return
|
||||
*/
|
||||
@GetMapping(value = "/info")
|
||||
public AjaxResult getInfo(@RequestParam("userId") Long userId) {
|
||||
AjaxResult ajax = AjaxResult.success(sysUserService.getById(userId));
|
||||
ajax.put("postIds", sysPostService.selectPostListByUserId(userId));
|
||||
ajax.put("roleIds", sysRoleService.selectRoleListByUserId(userId));
|
||||
return ajax;
|
||||
}
|
||||
|
||||
/**
|
||||
* 修改用户
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/update")
|
||||
public AjaxResult update(@RequestBody SysUser user) {
|
||||
sysUserService.checkUserAllowed(user);
|
||||
if (!sysUserService.checkPhoneUnique(user)) {
|
||||
return AjaxResult.error("修改用户'" + user.getUserName() + "'失败,手机号码已存在");
|
||||
}
|
||||
user.setUpdateBy(SecurityUtils.getUsername());
|
||||
user.setUpdateTime(new Date());
|
||||
return returnAjax(sysUserService.updateUser(user));
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除用户
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.DELETE)
|
||||
@DeleteMapping(value = "/delete")
|
||||
public AjaxResult remove(@RequestParam("userIds") Long[] userIds) {
|
||||
return returnAjax(sysUserService.deleteUserByIds(userIds) > 0 ? true : false);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 重置密码
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/resetPwd")
|
||||
public AjaxResult resetPwd(@RequestBody SysUser user) {
|
||||
sysUserService.checkUserAllowed(user);
|
||||
String salt = UuidUtils.getUUID();
|
||||
user.setPasswordSalt(salt);
|
||||
user.setPassword(Md5.getMD5Code(salt + user.getPassword()));
|
||||
user.setUpdateBy(SecurityUtils.getUsername());
|
||||
return returnAjax(sysUserService.resetPwd(user));
|
||||
}
|
||||
|
||||
/**
|
||||
* 状态修改
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.UPDATE)
|
||||
@PutMapping(value = "/changeStatus")
|
||||
public AjaxResult changeStatus(@RequestBody SysUser user) {
|
||||
sysUserService.checkUserAllowed(user);
|
||||
user.setUpdateBy(SecurityUtils.getUsername());
|
||||
return returnAjax(sysUserService.updateUserStatus(user));
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
package com.chenxuan.controller;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
@Api(tags = "swaager测试")
|
||||
@RestController
|
||||
@RequestMapping("/test")
|
||||
public class TestController extends BaseController {
|
||||
@ApiOperation(value = "测试")
|
||||
@PostMapping(value = "/info")
|
||||
public String info() {
|
||||
|
||||
return "test Success";
|
||||
}
|
||||
}
|
@ -0,0 +1,32 @@
|
||||
package com.chenxuan.controller.remote;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.service.remote.RemoteService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Api(tags = "主变设置")
|
||||
@RestController
|
||||
@RequestMapping(value = "remote/busiMainDeviceRemote")
|
||||
public class BusiMainDeviceRemoteController extends BaseController {
|
||||
@Autowired
|
||||
private RemoteService remoteService;
|
||||
/**
|
||||
* @Description: 获取运行异常设备总数BusiMainDeviceController
|
||||
* @Param:
|
||||
* @Return:
|
||||
**/
|
||||
@ApiOperation(value = "获取设备总数")
|
||||
@GetMapping(value = "/findTransformerSubTree")
|
||||
public AjaxResult findTransformerSubTree() {
|
||||
Map<String,Object> map = remoteService.findTransformerSubTree();
|
||||
return AjaxResult.success(map);
|
||||
}
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.chenxuan.controller.remote;
|
||||
|
||||
import com.chenxuan.base.controller.BaseController;
|
||||
import com.chenxuan.base.entity.AjaxResult;
|
||||
import com.chenxuan.bean.annotation.LogAnnotation;
|
||||
import com.chenxuan.constants.BusiUrlConstants;
|
||||
import com.chenxuan.entity.model.SysUser;
|
||||
import com.chenxuan.enums.OperateType;
|
||||
import com.chenxuan.service.SysExportDataService;
|
||||
import com.chenxuan.service.SysPostService;
|
||||
import com.chenxuan.service.SysRoleService;
|
||||
import com.chenxuan.service.SysUserService;
|
||||
import com.chenxuan.utils.SecurityUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
//@RequestMapping("/remote/user")
|
||||
@RequestMapping(value = BusiUrlConstants.REMOTE_USER)
|
||||
public class SysUserRemoteController extends BaseController {
|
||||
|
||||
@Autowired
|
||||
private SysUserService sysUserService;
|
||||
|
||||
@Autowired
|
||||
private SysRoleService sysRoleService;
|
||||
|
||||
@Autowired
|
||||
private SysPostService sysPostService;
|
||||
@Autowired
|
||||
private SysExportDataService sysExportDataService;
|
||||
|
||||
/**
|
||||
* 新增用户
|
||||
*
|
||||
* @param param
|
||||
* @return
|
||||
*/
|
||||
@LogAnnotation(module = "用户管理", operateType = OperateType.INSERT)
|
||||
@RequestMapping(value = "/addUser",method = RequestMethod.POST)
|
||||
public AjaxResult add(@RequestBody Map<String,Object> param) {
|
||||
if (!sysUserService.checkUserNameUnique(param.get("userName").toString())) {
|
||||
return AjaxResult.error("新增用户'" + param.get("userName") + "'失败,登录账号已存在");
|
||||
}
|
||||
if (!sysUserService.checkPhoneUnique(param.get("phone").toString())) {
|
||||
return AjaxResult.error("新增用户'" + param.get("userName") + "'失败,手机号码已存在");
|
||||
}
|
||||
SysUser sysUser = new SysUser();
|
||||
String userName = param.get("userName").toString();
|
||||
String nickName= userName;
|
||||
// if(userName.length()>8)
|
||||
// {
|
||||
// nickName = userName.substring(0,7);
|
||||
// }
|
||||
sysUser.setUserName(userName);
|
||||
sysUser.setNickName(nickName);
|
||||
|
||||
sysUser.setCreateTime(new Date());
|
||||
sysUser.setPassword(SecurityUtils.encryptPassword(param.get("password").toString()));
|
||||
sysUser.setEmail(param.get("email").toString());
|
||||
sysUser.setPhone(param.get("phone").toString());
|
||||
return returnAjax(sysUserService.insertUser(sysUser));
|
||||
}
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class AmplitudeDto implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
@ApiModelProperty(value="名称", name="name")
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* 数据集合
|
||||
*/
|
||||
@ApiModelProperty(value="数据集合", name="data")
|
||||
private List<BigDecimal> data;
|
||||
}
|
@ -0,0 +1,96 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class BusiAmpliComtradResultDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public static final String PRISIDE = "P"; // 原边
|
||||
public static final String SECSIDE = "S"; // 副边
|
||||
|
||||
public static final String APHASE = "A"; // A相
|
||||
public static final String BPHASE = "B"; // B相
|
||||
public static final String CPHASE = "C"; // C相
|
||||
|
||||
public static final String UINOUT = "U"; // 上侧
|
||||
public static final String DINOUT = "D"; // 下侧
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty(value="id", name="id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 录播文件记录id
|
||||
*/
|
||||
@ApiModelProperty(value="录播文件记录id", name="fileId")
|
||||
private String fileId;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(value="主变id", name="mainId")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 装置id
|
||||
*/
|
||||
@ApiModelProperty(value="装置id", name="subId")
|
||||
private String subId;
|
||||
|
||||
/**
|
||||
* 负载类型 1:空载 2:负载
|
||||
*/
|
||||
@ApiModelProperty(value="负载类型 1:空载 2:负载", name="loadType")
|
||||
private String loadType;
|
||||
|
||||
/**
|
||||
* 原副边 (P: 原边 S:副边,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(value="原副边 (P: 原边 S:副边,仅当device_type=1时有效)", name="side")
|
||||
private String side;
|
||||
|
||||
/**
|
||||
* 相位 (A:A相 B:B相 C:C相 Q:全相;,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(value="相位 (A:A相 B:B相 C:C相 Q:全相;,仅当device_type=1时有效)", name="phase")
|
||||
private String phase;
|
||||
|
||||
/**
|
||||
* 上下侧或进出侧(U:上侧/进口侧 D:下侧/出口侧)
|
||||
*/
|
||||
@ApiModelProperty(value="上下侧或进出侧(U:上侧/进口侧 D:下侧/出口侧)", name="inOut")
|
||||
private String inOut;
|
||||
|
||||
/**
|
||||
* 振动频率
|
||||
*/
|
||||
@ApiModelProperty(value="振动频率", name="frequency")
|
||||
private String frequency;
|
||||
|
||||
/**
|
||||
* 最大振幅
|
||||
*/
|
||||
@ApiModelProperty(value="最大振幅", name="maxAmplitude")
|
||||
private String maxAmplitude;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value="创建时间", name="insTime")
|
||||
private Date insTime;
|
||||
|
||||
/**
|
||||
* hbase中的rowkey
|
||||
*/
|
||||
@ApiModelProperty(value="hbase中的rowkey", name="hbaseRowkey")
|
||||
private String hbaseRowkey;
|
||||
}
|
@ -0,0 +1,109 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class BusiAmpliRealDetailsDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty(value = "id", name = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(value = "主变id", name = "mainId")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 装置id
|
||||
*/
|
||||
@ApiModelProperty(value = "装置id", name = "subId")
|
||||
private String subId;
|
||||
|
||||
/**
|
||||
* 原副边 (P: 原边 S:副边,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(value = "原副边 (P: 原边 S:副边,仅当device_type=1时有效)", name = "side")
|
||||
private String side;
|
||||
|
||||
/**
|
||||
* 相位 (A:A相 B:B相 C:C相 Q:全相;,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(value = "相位 (A:A相 B:B相 C:C相 Q:全相;,仅当device_type=1时有效)", name = "phase")
|
||||
private String phase;
|
||||
|
||||
/**
|
||||
* 上下侧或进出侧(I:上侧/进口侧 O:下侧/出口侧)
|
||||
*/
|
||||
@ApiModelProperty(value = "上下侧或进出侧(I:上侧/进口侧 O:下侧/出口侧)", name = "inOut")
|
||||
private String inOut;
|
||||
|
||||
/**
|
||||
* 振动频率
|
||||
*/
|
||||
@ApiModelProperty(value = "振动频率", name = "frequency")
|
||||
private String frequency;
|
||||
|
||||
/**
|
||||
* 最大振幅
|
||||
*/
|
||||
@ApiModelProperty(value = "最大振幅", name = "maxAmplitude")
|
||||
private String maxAmplitude;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间", name = "insTime")
|
||||
private String insTime;
|
||||
|
||||
/**
|
||||
* hbase中的rowkey
|
||||
*/
|
||||
@ApiModelProperty(value = "hbase中的rowkey", name = "hbaseRowkey")
|
||||
private String hbaseRowkey;
|
||||
|
||||
/**
|
||||
* 负载类型
|
||||
*/
|
||||
@ApiModelProperty(value = "负载类型", name = "loadType")
|
||||
private String loadType;
|
||||
|
||||
/**
|
||||
* 日增长率
|
||||
*/
|
||||
@ApiModelProperty(value = "日增长率", name = "dayRate")
|
||||
private String dayRate;
|
||||
|
||||
/**
|
||||
* 月增长率
|
||||
*/
|
||||
@ApiModelProperty(value = "月增长率", name = "monthRate")
|
||||
private String monthRate;
|
||||
|
||||
/**
|
||||
* 月偏差率
|
||||
*/
|
||||
@ApiModelProperty(value = "月偏差率", name = "deviationRate")
|
||||
private String deviationRate;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
@ApiModelProperty(value = "开始日期", name = "startTime")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 终止日期
|
||||
*/
|
||||
@ApiModelProperty(value = "终止日期", name = "endTime")
|
||||
private String endTime;
|
||||
}
|
@ -0,0 +1,119 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author Carrey Zheng
|
||||
* @create 2020-07-13 5:56 PM
|
||||
**/
|
||||
@Data
|
||||
public class BusiAmpliThresholdConfDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty(value = "id", name = "id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(value = "主变id", name = "mainId")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 主变名称
|
||||
*/
|
||||
@ApiModelProperty(value = "主变名称", name = "deviceName")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 装置id
|
||||
*/
|
||||
@ApiModelProperty(value = "装置id", name = "subId")
|
||||
private String subId;
|
||||
|
||||
/**
|
||||
* 装置名称
|
||||
*/
|
||||
@ApiModelProperty(value = "装置名称", name = "subDeviceName")
|
||||
private String subDeviceName;
|
||||
|
||||
/**
|
||||
* 装置类别 (1:振动装置 2:噪声装置 3:中心点装置)
|
||||
*/
|
||||
@ApiModelProperty(value = "装置类别 (1:振动装置 2:噪声装置 3:中心点装置)", name = "deviceType")
|
||||
private String deviceType;
|
||||
|
||||
/**
|
||||
* 原副边 (P: 原边 S:副边,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(value = "原副边 (P: 原边 S:副边,仅当device_type=1时有效)", name = "side")
|
||||
private String side;
|
||||
|
||||
/**
|
||||
* 相位 (A:A相 B:B相 C:C相 O:全相;,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(value = "相位 (A:A相 B:B相 C:C相 O:全相;,仅当device_type=1时有效)", name = "phase")
|
||||
private String phase;
|
||||
|
||||
/**
|
||||
* 上下侧或进出侧(I:上侧/进口侧 O:下侧/出口侧)
|
||||
*/
|
||||
@ApiModelProperty(value = "上下侧或进出侧(I:上侧/进口侧 O:下侧/出口侧)", name = "inAndOut")
|
||||
private String inAndOut;
|
||||
|
||||
/**
|
||||
* 频率段ID
|
||||
*/
|
||||
@ApiModelProperty(value = "频率段ID", name = "frequencyId")
|
||||
private String frequencyId;
|
||||
|
||||
/**
|
||||
* 频率
|
||||
*/
|
||||
@ApiModelProperty(value = "频率", name = "frequency")
|
||||
private String frequency;
|
||||
|
||||
/**
|
||||
* 频率状态
|
||||
*/
|
||||
@ApiModelProperty(value = "频率状态", name = "state")
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 振幅阈值(mm/s2)
|
||||
*/
|
||||
@ApiModelProperty(value = "振幅阈值(mm/s2)", name = "amplitude")
|
||||
private String amplitude;
|
||||
|
||||
/**
|
||||
* 振动幅值日增长率(%)
|
||||
*/
|
||||
@ApiModelProperty(value = "振动幅值日增长率(%)", name = "dayRate")
|
||||
private String dayRate;
|
||||
|
||||
/**
|
||||
* 振动幅值月增长率(%)
|
||||
*/
|
||||
@ApiModelProperty(value = "振动幅值月增长率(%)", name = "monthRate")
|
||||
private String monthRate;
|
||||
|
||||
/**
|
||||
* 振动幅值月偏差率(%)
|
||||
*/
|
||||
@ApiModelProperty(value = "振动幅值月偏差率(%)", name = "deviationRate")
|
||||
private String deviationRate;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(value = "创建时间", name = "insTime")
|
||||
private String insTime;
|
||||
}
|
@ -0,0 +1,90 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* @author Carrey Zheng
|
||||
* @create 2020-06-22 3:01 PM
|
||||
**/
|
||||
@Data
|
||||
public class BusiCenterRealDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(name = "id", value = "主键id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(name = "mainId", value = "主变id")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceName", value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 振动频率
|
||||
*/
|
||||
@ApiModelProperty(name = "frequency", value = "振动频率")
|
||||
private String frequency;
|
||||
|
||||
/**
|
||||
* 最大振幅
|
||||
*/
|
||||
@ApiModelProperty(name = "maxAmplitude", value = "最大振幅")
|
||||
private String maxAmplitude;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(name = "insTime", value = "创建时间")
|
||||
private String insTime;
|
||||
|
||||
/**
|
||||
* hbase中的rowkey
|
||||
*/
|
||||
@ApiModelProperty(name = "hbaseRowkey", value = "hbase中的rowkey")
|
||||
private String hbaseRowkey;
|
||||
|
||||
/**
|
||||
* 统计时间集合
|
||||
*/
|
||||
@ApiModelProperty(name = "gatherTimeList", value = "统计时间集合")
|
||||
private List<String> gatherTimeList;
|
||||
|
||||
/**
|
||||
* 最大幅值集合
|
||||
*/
|
||||
@ApiModelProperty(name = "maxAmplitudeList", value = "最大幅值集合")
|
||||
private List<String> maxAmplitudeList;
|
||||
|
||||
/**
|
||||
* 统计时间
|
||||
*/
|
||||
@ApiModelProperty(name = "createTime", value = "统计时间")
|
||||
private String createTime;
|
||||
|
||||
/**
|
||||
* 开始日期
|
||||
*/
|
||||
@ApiModelProperty(name = "startTime", value = "开始日期")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 结束日期
|
||||
*/
|
||||
@ApiModelProperty(name = "endTime", value = "结束日期")
|
||||
private String endTime;
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author buck_guo
|
||||
*/
|
||||
@Data
|
||||
public class BusiIedparamDto extends Query implements Serializable {
|
||||
/**
|
||||
* 振动传感器
|
||||
*/
|
||||
@ApiModelProperty(value="振动传感器", name="nodeId")
|
||||
private String nodeId;
|
||||
|
||||
/**
|
||||
* 振动分量
|
||||
*/
|
||||
@ApiModelProperty(value="振动分量", name="nodeName")
|
||||
private String nodeName;
|
||||
|
||||
/**
|
||||
* 振动类型
|
||||
*/
|
||||
@ApiModelProperty(value="振动类型", name="nodeType")
|
||||
private String nodeType;
|
||||
}
|
@ -0,0 +1,79 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class BusiMainDeviceDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(name = "id", value = "主键id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变名称
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceName", value = "主变名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 主变状态 (N(0):非正常 Y(1):正常)
|
||||
*/
|
||||
@ApiModelProperty(name = "state", value = "主变状态 (N(0):非正常 Y(1):正常)")
|
||||
private String state;
|
||||
|
||||
/**
|
||||
* 投运日期
|
||||
*/
|
||||
@ApiModelProperty(name = "deliveryTime", value = "投运日期")
|
||||
private String deliveryTime;
|
||||
|
||||
/**
|
||||
* 设备型号
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceModel", value = "设备型号")
|
||||
private String deviceModel;
|
||||
|
||||
/**
|
||||
* 制造厂家名称
|
||||
*/
|
||||
@ApiModelProperty(name = "manufacturer", value = "制造厂家名称")
|
||||
private String manufacturer;
|
||||
|
||||
/**
|
||||
* 出厂日期
|
||||
*/
|
||||
@ApiModelProperty(name = "factoryTime", value = "出厂日期")
|
||||
private String factoryTime;
|
||||
|
||||
/**
|
||||
* 出厂序号
|
||||
*/
|
||||
@ApiModelProperty(name = "factoryNumber", value = "出厂序号")
|
||||
private String factoryNumber;
|
||||
|
||||
/**
|
||||
* 设计使用寿命(年)
|
||||
*/
|
||||
@ApiModelProperty(name = "designLife", value = "设计使用寿命(年)")
|
||||
private String designLife;
|
||||
|
||||
/**
|
||||
* 系统编码
|
||||
*/
|
||||
@ApiModelProperty(name = "systemCode", value = "系统编码")
|
||||
private String systemCode;
|
||||
|
||||
/**
|
||||
* hbase中的rowkey
|
||||
*/
|
||||
@ApiModelProperty(name = "hbaseRowkey", value = "hbase中的rowkey")
|
||||
private String hbaseRowkey;
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
@Data
|
||||
public class BusiParamBindDto extends Query implements Serializable {
|
||||
|
||||
/**
|
||||
* id
|
||||
*/
|
||||
@ApiModelProperty(value="主键", name="id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(value="主设备ID,源自表busi_main_device.id", name="mainId")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 装置id
|
||||
*/
|
||||
@ApiModelProperty(value="装置ID,源自表busi_sub_device.id", name="subId")
|
||||
private String subId;
|
||||
|
||||
/**
|
||||
* 传感器code
|
||||
*/
|
||||
@ApiModelProperty(value="传感器code,源自表busi_sub_device.sensor_code", name="sensorCode")
|
||||
private String sensorCode;
|
||||
|
||||
/**
|
||||
* 振动传感器
|
||||
*/
|
||||
@ApiModelProperty(value="振动传感器", name="nodeId")
|
||||
private String nodeId;
|
||||
|
||||
|
||||
/**
|
||||
* 振动分量
|
||||
*/
|
||||
@ApiModelProperty(value="振动分量", name="nodeName")
|
||||
private String nodeName;
|
||||
|
||||
/**
|
||||
* 频率(Hz)
|
||||
*/
|
||||
@ApiModelProperty(value="频率(Hz)", name="frequency")
|
||||
private String frequency;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceName", value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 装置名称
|
||||
*/
|
||||
@ApiModelProperty(name = "subDeviceName", value = "装置名称")
|
||||
private String subDeviceName;
|
||||
|
||||
}
|
@ -0,0 +1,110 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* @author Carrey Zheng
|
||||
* @create 2020-06-30 2:48 PM
|
||||
**/
|
||||
@Data
|
||||
public class BusiSubDeviceDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public static final Integer Ampli = 1; //传感器
|
||||
public static final Integer NOISE = 2; //噪声
|
||||
public static final Integer CENTER = 3; //中心点
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(name = "id", value = "主键id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(name = "mainId", value = "主变id")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceName", value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 装置名称
|
||||
*/
|
||||
@ApiModelProperty(name = "subDeviceName", value = "装置名称")
|
||||
private String subDeviceName;
|
||||
|
||||
/**
|
||||
* 传感器编码
|
||||
*/
|
||||
@ApiModelProperty(name = "sensorCode", value = "传感器编码")
|
||||
private String sensorCode;
|
||||
|
||||
/**
|
||||
* 装置类别 (1:振动装置 2:噪声装置 3:中心点装置)
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceType", value = "装置类别 (1:振动装置 2:噪声装置 3:中心点装置)")
|
||||
private Integer deviceType;
|
||||
|
||||
/**
|
||||
* 原副边 (P: 原边 S:副边,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(name = "side", value = "原副边 (P: 原边 S:副边,仅当device_type=1时有效)")
|
||||
private String side;
|
||||
|
||||
/**
|
||||
* 相位 (A:A相 B:B相 C:C相 Q:全相;,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(name = "phase", value = "相位 (A:A相 B:B相 C:C相 Q:全相;,仅当device_type=1时有效)")
|
||||
private String phase;
|
||||
|
||||
/**
|
||||
* 上下侧或进出侧(I:上侧/进口侧 O:下侧/出口侧)
|
||||
*/
|
||||
@ApiModelProperty(name = "inOut", value = "上下侧或进出侧(I:上侧/进口侧 O:下侧/出口侧)")
|
||||
private String inOut;
|
||||
|
||||
/**
|
||||
* 创建日期
|
||||
*/
|
||||
@ApiModelProperty(name = "insTime", value = "创建日期")
|
||||
private String insTime;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty(name = "startTime", value = "开始时间")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty(name = "endTime", value = "结束时间")
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* 请求参数
|
||||
*/
|
||||
@ApiModelProperty(name = "params", value = "请求参数")
|
||||
private Object params;
|
||||
|
||||
public Map<String, Object> getParams() {
|
||||
if (params == null) {
|
||||
return new HashMap<>();
|
||||
}
|
||||
return JSON.parseObject(JSONObject.toJSONString(params), Map.class);
|
||||
}
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
@Data
|
||||
public class BusiTransformerRealDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 主键id
|
||||
*/
|
||||
@ApiModelProperty(name = "id", value = "主键id")
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 主变id
|
||||
*/
|
||||
@ApiModelProperty(name = "mainId", value = "主变id")
|
||||
private String mainId;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
@ApiModelProperty(name = "deviceName", value = "设备名称")
|
||||
private String deviceName;
|
||||
|
||||
/**
|
||||
* 原副边 (P: 原边 S:副边,仅当device_type=1时有效)
|
||||
*/
|
||||
@ApiModelProperty(name = "side", value = "原副边 (P: 原边 S:副边,仅当device_type=1时有效)")
|
||||
private String side;
|
||||
|
||||
/**
|
||||
* 电压(kV)
|
||||
*/
|
||||
@ApiModelProperty(name = "voltage", value = "电压(kV)")
|
||||
private BigDecimal voltage;
|
||||
|
||||
/**
|
||||
* 电流(A)
|
||||
*/
|
||||
@ApiModelProperty(name = "current", value = "电流(A)")
|
||||
private BigDecimal current;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(name = "insTime", value = "创建时间")
|
||||
private String insTime;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty(name = "startTime", value = "开始时间")
|
||||
private String startTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty(name = "endTime", value = "结束时间")
|
||||
private String endTime;
|
||||
|
||||
/**
|
||||
* hbase中的rowkey
|
||||
*/
|
||||
@ApiModelProperty(name = "hbaseRowkey", value = "hbase中的rowkey")
|
||||
private String hbaseRowkey;
|
||||
|
||||
/**
|
||||
* 导出时间
|
||||
*/
|
||||
@ApiModelProperty(name = "createTime", value = "导出时间")
|
||||
private String createTime;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class ScheduleJobDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 参数主键
|
||||
*/
|
||||
@ApiModelProperty(name = "jobId", value = "参数主键")
|
||||
private Long jobId;
|
||||
|
||||
/**
|
||||
* cron表达式
|
||||
*/
|
||||
@ApiModelProperty(name = "cronExpression", value = "cron表达式")
|
||||
private String cronExpression;
|
||||
|
||||
/**
|
||||
* 服务名称
|
||||
*/
|
||||
@ApiModelProperty(name = "beanName", value = "服务名称")
|
||||
private String beanName;
|
||||
|
||||
/**
|
||||
* 方法名称
|
||||
*/
|
||||
@ApiModelProperty(name = "methodName", value = "方法名称")
|
||||
private String methodName;
|
||||
|
||||
/**
|
||||
* 方法参数
|
||||
*/
|
||||
@ApiModelProperty(name = "methodParams", value = "方法参数")
|
||||
private String methodParams;
|
||||
|
||||
/**
|
||||
* 状态 1.启动 2.暂停
|
||||
*/
|
||||
@ApiModelProperty(name = "status", value = "状态 1.启动 2.暂停")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 创建者
|
||||
*/
|
||||
@ApiModelProperty(name = "createBy", value = "创建者")
|
||||
private String createBy;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
@ApiModelProperty(name = "createTime", value = "创建时间")
|
||||
private Date createTime;
|
||||
|
||||
/**
|
||||
* 更新者
|
||||
*/
|
||||
@ApiModelProperty(name = "updateBy", value = "更新者")
|
||||
private String updateBy;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@ApiModelProperty(name = "updateTime", value = "更新时间")
|
||||
private Date updateTime;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
@ApiModelProperty(name = "remark", value = "备注")
|
||||
private String remark;
|
||||
}
|
@ -0,0 +1,80 @@
|
||||
package com.chenxuan.entity.dto;
|
||||
|
||||
import com.chenxuan.base.entity.Query;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
@Data
|
||||
public class SysLoginLogDto extends Query implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* 登录id
|
||||
*/
|
||||
@ApiModelProperty(name = "loginId", value = "登录id")
|
||||
private Long loginId;
|
||||
|
||||
/**
|
||||
* 用户账号
|
||||
*/
|
||||
@ApiModelProperty(name = "userName", value = "用户账号")
|
||||
private String userName;
|
||||
|
||||
/**
|
||||
* 登录状态 0成功 1失败
|
||||
*/
|
||||
@ApiModelProperty(name = "status", value = "登录状态 0成功 1失败")
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 登录IP地址
|
||||
*/
|
||||
@ApiModelProperty(name = "ipaddr", value = "登录IP地址")
|
||||
private String ipaddr;
|
||||
|
||||
/**
|
||||
* 登录地点
|
||||
*/
|
||||
@ApiModelProperty(name = "loginLocation", value = "登录地点")
|
||||
private String loginLocation;
|
||||
|
||||
/**
|
||||
* 浏览器类型
|
||||
*/
|
||||
@ApiModelProperty(name = "browser", value = "浏览器类型")
|
||||
private String browser;
|
||||
|
||||
/**
|
||||
* 操作系统
|
||||
*/
|
||||
@ApiModelProperty(name = "os", value = "操作系统")
|
||||
private String os;
|
||||
|
||||
/**
|
||||
* 提示消息
|
||||
*/
|
||||
@ApiModelProperty(name = "msg", value = "提示消息")
|
||||
private String msg;
|
||||
|
||||
/**
|
||||
* 访问时间
|
||||
*/
|
||||
@ApiModelProperty(name = "loginTime", value = "访问时间")
|
||||
private Date loginTime;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
@ApiModelProperty(name = "beginTime", value = "开始时间")
|
||||
private String beginTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
@ApiModelProperty(name = "endTime", value = "结束时间")
|
||||
private String endTime;
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue