51 changed files with 3007 additions and 98 deletions
@ -0,0 +1,33 @@ |
|||
HELP.md |
|||
target/ |
|||
!.mvn/wrapper/maven-wrapper.jar |
|||
!**/src/main/**/target/ |
|||
!**/src/test/**/target/ |
|||
|
|||
### STS ### |
|||
.apt_generated |
|||
.classpath |
|||
.factorypath |
|||
.project |
|||
.settings |
|||
.springBeans |
|||
.sts4-cache |
|||
|
|||
### IntelliJ IDEA ### |
|||
.idea |
|||
*.iws |
|||
*.iml |
|||
*.ipr |
|||
|
|||
### NetBeans ### |
|||
/nbproject/private/ |
|||
/nbbuild/ |
|||
/dist/ |
|||
/nbdist/ |
|||
/.nb-gradle/ |
|||
build/ |
|||
!**/src/main/**/build/ |
|||
!**/src/test/**/build/ |
|||
|
|||
### VS Code ### |
|||
.vscode/ |
@ -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. |
|||
# ---------------------------------------------------------------------------- |
|||
|
|||
# ---------------------------------------------------------------------------- |
|||
# Maven 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.6/maven-wrapper-0.5.6.jar" |
|||
else |
|||
jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.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 Maven 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 keystroke before ending |
|||
@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven |
|||
@REM e.g. to debug Maven itself, use |
|||
@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 |
|||
@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files |
|||
@REM ---------------------------------------------------------------------------- |
|||
|
|||
@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' |
|||
@echo off |
|||
@REM set title of command window |
|||
title %0 |
|||
@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on' |
|||
@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% |
|||
|
|||
@REM set %HOME% to equivalent of $HOME |
|||
if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") |
|||
|
|||
@REM Execute a user defined script before this one |
|||
if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre |
|||
@REM check for pre script, once with legacy .bat ending and once with .cmd ending |
|||
if exist "%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.6/maven-wrapper-0.5.6.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.6/maven-wrapper-0.5.6.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,49 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
<parent> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-parent</artifactId> |
|||
<version>2.3.1.RELEASE</version> |
|||
<relativePath/> <!-- lookup parent from repository --> |
|||
</parent> |
|||
<groupId>com.ccsens</groupId> |
|||
<artifactId>pims</artifactId> |
|||
<version>0.0.1-SNAPSHOT</version> |
|||
<name>pims</name> |
|||
<description>Demo project for Spring Boot</description> |
|||
|
|||
<properties> |
|||
<java.version>1.8</java.version> |
|||
</properties> |
|||
|
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-web</artifactId> |
|||
</dependency> |
|||
|
|||
<dependency> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-starter-test</artifactId> |
|||
<scope>test</scope> |
|||
<exclusions> |
|||
<exclusion> |
|||
<groupId>org.junit.vintage</groupId> |
|||
<artifactId>junit-vintage-engine</artifactId> |
|||
</exclusion> |
|||
</exclusions> |
|||
</dependency> |
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
</plugin> |
|||
</plugins> |
|||
</build> |
|||
|
|||
</project> |
@ -0,0 +1,16 @@ |
|||
package com.ccsens.pims; |
|||
|
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@SpringBootApplication |
|||
public class PimsApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(PimsApplication.class, args); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,25 @@ |
|||
package com.ccsens.pims.api; |
|||
|
|||
|
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
//@Api(tags = "DEBUG" , description = "DebugController | ")
|
|||
@RestController |
|||
@RequestMapping("/debug") |
|||
public class DebugController { |
|||
|
|||
// @ApiOperation(value = "/测试",notes = "")
|
|||
// @ApiImplicitParams({
|
|||
// })
|
|||
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
|||
public String getSmsCode(HttpServletRequest request) throws Exception { |
|||
|
|||
return "测试"; |
|||
} |
|||
|
|||
|
|||
} |
@ -0,0 +1 @@ |
|||
|
@ -0,0 +1,13 @@ |
|||
package com.ccsens.pims; |
|||
|
|||
import org.junit.jupiter.api.Test; |
|||
import org.springframework.boot.test.context.SpringBootTest; |
|||
|
|||
@SpringBootTest |
|||
class PimsApplicationTests { |
|||
|
|||
@Test |
|||
void contextLoads() { |
|||
} |
|||
|
|||
} |
@ -0,0 +1,150 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class SysUserInfo implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long userId; |
|||
|
|||
private String signature; |
|||
|
|||
private String introduction; |
|||
|
|||
private String birthday; |
|||
|
|||
private String address; |
|||
|
|||
private String webPath; |
|||
|
|||
private String company; |
|||
|
|||
private String position; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getSignature() { |
|||
return signature; |
|||
} |
|||
|
|||
public void setSignature(String signature) { |
|||
this.signature = signature == null ? null : signature.trim(); |
|||
} |
|||
|
|||
public String getIntroduction() { |
|||
return introduction; |
|||
} |
|||
|
|||
public void setIntroduction(String introduction) { |
|||
this.introduction = introduction == null ? null : introduction.trim(); |
|||
} |
|||
|
|||
public String getBirthday() { |
|||
return birthday; |
|||
} |
|||
|
|||
public void setBirthday(String birthday) { |
|||
this.birthday = birthday == null ? null : birthday.trim(); |
|||
} |
|||
|
|||
public String getAddress() { |
|||
return address; |
|||
} |
|||
|
|||
public void setAddress(String address) { |
|||
this.address = address == null ? null : address.trim(); |
|||
} |
|||
|
|||
public String getWebPath() { |
|||
return webPath; |
|||
} |
|||
|
|||
public void setWebPath(String webPath) { |
|||
this.webPath = webPath == null ? null : webPath.trim(); |
|||
} |
|||
|
|||
public String getCompany() { |
|||
return company; |
|||
} |
|||
|
|||
public void setCompany(String company) { |
|||
this.company = company == null ? null : company.trim(); |
|||
} |
|||
|
|||
public String getPosition() { |
|||
return position; |
|||
} |
|||
|
|||
public void setPosition(String position) { |
|||
this.position = position == null ? null : position.trim(); |
|||
} |
|||
|
|||
public Date getCreatedAt() { |
|||
return createdAt; |
|||
} |
|||
|
|||
public void setCreatedAt(Date createdAt) { |
|||
this.createdAt = createdAt; |
|||
} |
|||
|
|||
public Date getUpdatedAt() { |
|||
return updatedAt; |
|||
} |
|||
|
|||
public void setUpdatedAt(Date updatedAt) { |
|||
this.updatedAt = updatedAt; |
|||
} |
|||
|
|||
public Byte getRecStatus() { |
|||
return recStatus; |
|||
} |
|||
|
|||
public void setRecStatus(Byte recStatus) { |
|||
this.recStatus = recStatus; |
|||
} |
|||
|
|||
@Override |
|||
public String toString() { |
|||
StringBuilder sb = new StringBuilder(); |
|||
sb.append(getClass().getSimpleName()); |
|||
sb.append(" ["); |
|||
sb.append("Hash = ").append(hashCode()); |
|||
sb.append(", id=").append(id); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", signature=").append(signature); |
|||
sb.append(", introduction=").append(introduction); |
|||
sb.append(", birthday=").append(birthday); |
|||
sb.append(", address=").append(address); |
|||
sb.append(", webPath=").append(webPath); |
|||
sb.append(", company=").append(company); |
|||
sb.append(", position=").append(position); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,991 @@ |
|||
package com.ccsens.tall.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class SysUserInfoExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public SysUserInfoExample() { |
|||
oredCriteria = new ArrayList<Criteria>(); |
|||
} |
|||
|
|||
public void setOrderByClause(String orderByClause) { |
|||
this.orderByClause = orderByClause; |
|||
} |
|||
|
|||
public String getOrderByClause() { |
|||
return orderByClause; |
|||
} |
|||
|
|||
public void setDistinct(boolean distinct) { |
|||
this.distinct = distinct; |
|||
} |
|||
|
|||
public boolean isDistinct() { |
|||
return distinct; |
|||
} |
|||
|
|||
public List<Criteria> getOredCriteria() { |
|||
return oredCriteria; |
|||
} |
|||
|
|||
public void or(Criteria criteria) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
|
|||
public Criteria or() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
oredCriteria.add(criteria); |
|||
return criteria; |
|||
} |
|||
|
|||
public Criteria createCriteria() { |
|||
Criteria criteria = createCriteriaInternal(); |
|||
if (oredCriteria.size() == 0) { |
|||
oredCriteria.add(criteria); |
|||
} |
|||
return criteria; |
|||
} |
|||
|
|||
protected Criteria createCriteriaInternal() { |
|||
Criteria criteria = new Criteria(); |
|||
return criteria; |
|||
} |
|||
|
|||
public void clear() { |
|||
oredCriteria.clear(); |
|||
orderByClause = null; |
|||
distinct = false; |
|||
} |
|||
|
|||
protected abstract static class GeneratedCriteria { |
|||
protected List<Criterion> criteria; |
|||
|
|||
protected GeneratedCriteria() { |
|||
super(); |
|||
criteria = new ArrayList<Criterion>(); |
|||
} |
|||
|
|||
public boolean isValid() { |
|||
return criteria.size() > 0; |
|||
} |
|||
|
|||
public List<Criterion> getAllCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
public List<Criterion> getCriteria() { |
|||
return criteria; |
|||
} |
|||
|
|||
protected void addCriterion(String condition) { |
|||
if (condition == null) { |
|||
throw new RuntimeException("Value for condition cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value, String property) { |
|||
if (value == null) { |
|||
throw new RuntimeException("Value for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value)); |
|||
} |
|||
|
|||
protected void addCriterion(String condition, Object value1, Object value2, String property) { |
|||
if (value1 == null || value2 == null) { |
|||
throw new RuntimeException("Between values for " + property + " cannot be null"); |
|||
} |
|||
criteria.add(new Criterion(condition, value1, value2)); |
|||
} |
|||
|
|||
public Criteria andIdIsNull() { |
|||
addCriterion("id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIsNotNull() { |
|||
addCriterion("id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdEqualTo(Long value) { |
|||
addCriterion("id =", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotEqualTo(Long value) { |
|||
addCriterion("id <>", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThan(Long value) { |
|||
addCriterion("id >", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("id >=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThan(Long value) { |
|||
addCriterion("id <", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("id <=", value, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdIn(List<Long> values) { |
|||
addCriterion("id in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotIn(List<Long> values) { |
|||
addCriterion("id not in", values, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdBetween(Long value1, Long value2) { |
|||
addCriterion("id between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("id not between", value1, value2, "id"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNull() { |
|||
addCriterion("user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIsNotNull() { |
|||
addCriterion("user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdEqualTo(Long value) { |
|||
addCriterion("user_id =", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotEqualTo(Long value) { |
|||
addCriterion("user_id <>", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThan(Long value) { |
|||
addCriterion("user_id >", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("user_id >=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThan(Long value) { |
|||
addCriterion("user_id <", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("user_id <=", value, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdIn(List<Long> values) { |
|||
addCriterion("user_id in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotIn(List<Long> values) { |
|||
addCriterion("user_id not in", values, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("user_id between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("user_id not between", value1, value2, "userId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureIsNull() { |
|||
addCriterion("signature is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureIsNotNull() { |
|||
addCriterion("signature is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureEqualTo(String value) { |
|||
addCriterion("signature =", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureNotEqualTo(String value) { |
|||
addCriterion("signature <>", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureGreaterThan(String value) { |
|||
addCriterion("signature >", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureGreaterThanOrEqualTo(String value) { |
|||
addCriterion("signature >=", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureLessThan(String value) { |
|||
addCriterion("signature <", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureLessThanOrEqualTo(String value) { |
|||
addCriterion("signature <=", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureLike(String value) { |
|||
addCriterion("signature like", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureNotLike(String value) { |
|||
addCriterion("signature not like", value, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureIn(List<String> values) { |
|||
addCriterion("signature in", values, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureNotIn(List<String> values) { |
|||
addCriterion("signature not in", values, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureBetween(String value1, String value2) { |
|||
addCriterion("signature between", value1, value2, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSignatureNotBetween(String value1, String value2) { |
|||
addCriterion("signature not between", value1, value2, "signature"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionIsNull() { |
|||
addCriterion("introduction is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionIsNotNull() { |
|||
addCriterion("introduction is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionEqualTo(String value) { |
|||
addCriterion("introduction =", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionNotEqualTo(String value) { |
|||
addCriterion("introduction <>", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionGreaterThan(String value) { |
|||
addCriterion("introduction >", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("introduction >=", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionLessThan(String value) { |
|||
addCriterion("introduction <", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionLessThanOrEqualTo(String value) { |
|||
addCriterion("introduction <=", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionLike(String value) { |
|||
addCriterion("introduction like", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionNotLike(String value) { |
|||
addCriterion("introduction not like", value, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionIn(List<String> values) { |
|||
addCriterion("introduction in", values, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionNotIn(List<String> values) { |
|||
addCriterion("introduction not in", values, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionBetween(String value1, String value2) { |
|||
addCriterion("introduction between", value1, value2, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroductionNotBetween(String value1, String value2) { |
|||
addCriterion("introduction not between", value1, value2, "introduction"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayIsNull() { |
|||
addCriterion("birthday is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayIsNotNull() { |
|||
addCriterion("birthday is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayEqualTo(String value) { |
|||
addCriterion("birthday =", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayNotEqualTo(String value) { |
|||
addCriterion("birthday <>", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayGreaterThan(String value) { |
|||
addCriterion("birthday >", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayGreaterThanOrEqualTo(String value) { |
|||
addCriterion("birthday >=", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayLessThan(String value) { |
|||
addCriterion("birthday <", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayLessThanOrEqualTo(String value) { |
|||
addCriterion("birthday <=", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayLike(String value) { |
|||
addCriterion("birthday like", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayNotLike(String value) { |
|||
addCriterion("birthday not like", value, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayIn(List<String> values) { |
|||
addCriterion("birthday in", values, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayNotIn(List<String> values) { |
|||
addCriterion("birthday not in", values, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayBetween(String value1, String value2) { |
|||
addCriterion("birthday between", value1, value2, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andBirthdayNotBetween(String value1, String value2) { |
|||
addCriterion("birthday not between", value1, value2, "birthday"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressIsNull() { |
|||
addCriterion("address is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressIsNotNull() { |
|||
addCriterion("address is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressEqualTo(String value) { |
|||
addCriterion("address =", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressNotEqualTo(String value) { |
|||
addCriterion("address <>", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressGreaterThan(String value) { |
|||
addCriterion("address >", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressGreaterThanOrEqualTo(String value) { |
|||
addCriterion("address >=", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressLessThan(String value) { |
|||
addCriterion("address <", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressLessThanOrEqualTo(String value) { |
|||
addCriterion("address <=", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressLike(String value) { |
|||
addCriterion("address like", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressNotLike(String value) { |
|||
addCriterion("address not like", value, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressIn(List<String> values) { |
|||
addCriterion("address in", values, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressNotIn(List<String> values) { |
|||
addCriterion("address not in", values, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressBetween(String value1, String value2) { |
|||
addCriterion("address between", value1, value2, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAddressNotBetween(String value1, String value2) { |
|||
addCriterion("address not between", value1, value2, "address"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathIsNull() { |
|||
addCriterion("web_path is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathIsNotNull() { |
|||
addCriterion("web_path is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathEqualTo(String value) { |
|||
addCriterion("web_path =", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathNotEqualTo(String value) { |
|||
addCriterion("web_path <>", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathGreaterThan(String value) { |
|||
addCriterion("web_path >", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathGreaterThanOrEqualTo(String value) { |
|||
addCriterion("web_path >=", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathLessThan(String value) { |
|||
addCriterion("web_path <", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathLessThanOrEqualTo(String value) { |
|||
addCriterion("web_path <=", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathLike(String value) { |
|||
addCriterion("web_path like", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathNotLike(String value) { |
|||
addCriterion("web_path not like", value, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathIn(List<String> values) { |
|||
addCriterion("web_path in", values, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathNotIn(List<String> values) { |
|||
addCriterion("web_path not in", values, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathBetween(String value1, String value2) { |
|||
addCriterion("web_path between", value1, value2, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWebPathNotBetween(String value1, String value2) { |
|||
addCriterion("web_path not between", value1, value2, "webPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIsNull() { |
|||
addCriterion("company is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIsNotNull() { |
|||
addCriterion("company is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyEqualTo(String value) { |
|||
addCriterion("company =", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyNotEqualTo(String value) { |
|||
addCriterion("company <>", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyGreaterThan(String value) { |
|||
addCriterion("company >", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyGreaterThanOrEqualTo(String value) { |
|||
addCriterion("company >=", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyLessThan(String value) { |
|||
addCriterion("company <", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyLessThanOrEqualTo(String value) { |
|||
addCriterion("company <=", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyLike(String value) { |
|||
addCriterion("company like", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyNotLike(String value) { |
|||
addCriterion("company not like", value, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyIn(List<String> values) { |
|||
addCriterion("company in", values, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyNotIn(List<String> values) { |
|||
addCriterion("company not in", values, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyBetween(String value1, String value2) { |
|||
addCriterion("company between", value1, value2, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCompanyNotBetween(String value1, String value2) { |
|||
addCriterion("company not between", value1, value2, "company"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionIsNull() { |
|||
addCriterion("position is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionIsNotNull() { |
|||
addCriterion("position is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionEqualTo(String value) { |
|||
addCriterion("position =", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotEqualTo(String value) { |
|||
addCriterion("position <>", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionGreaterThan(String value) { |
|||
addCriterion("position >", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("position >=", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionLessThan(String value) { |
|||
addCriterion("position <", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionLessThanOrEqualTo(String value) { |
|||
addCriterion("position <=", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionLike(String value) { |
|||
addCriterion("position like", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotLike(String value) { |
|||
addCriterion("position not like", value, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionIn(List<String> values) { |
|||
addCriterion("position in", values, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotIn(List<String> values) { |
|||
addCriterion("position not in", values, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionBetween(String value1, String value2) { |
|||
addCriterion("position between", value1, value2, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPositionNotBetween(String value1, String value2) { |
|||
addCriterion("position not between", value1, value2, "position"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNull() { |
|||
addCriterion("created_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIsNotNull() { |
|||
addCriterion("created_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtEqualTo(Date value) { |
|||
addCriterion("created_at =", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotEqualTo(Date value) { |
|||
addCriterion("created_at <>", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThan(Date value) { |
|||
addCriterion("created_at >", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("created_at >=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThan(Date value) { |
|||
addCriterion("created_at <", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("created_at <=", value, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtIn(List<Date> values) { |
|||
addCriterion("created_at in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotIn(List<Date> values) { |
|||
addCriterion("created_at not in", values, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("created_at between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("created_at not between", value1, value2, "createdAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNull() { |
|||
addCriterion("updated_at is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIsNotNull() { |
|||
addCriterion("updated_at is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtEqualTo(Date value) { |
|||
addCriterion("updated_at =", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotEqualTo(Date value) { |
|||
addCriterion("updated_at <>", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThan(Date value) { |
|||
addCriterion("updated_at >", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at >=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThan(Date value) { |
|||
addCriterion("updated_at <", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtLessThanOrEqualTo(Date value) { |
|||
addCriterion("updated_at <=", value, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtIn(List<Date> values) { |
|||
addCriterion("updated_at in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotIn(List<Date> values) { |
|||
addCriterion("updated_at not in", values, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdatedAtNotBetween(Date value1, Date value2) { |
|||
addCriterion("updated_at not between", value1, value2, "updatedAt"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNull() { |
|||
addCriterion("rec_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIsNotNull() { |
|||
addCriterion("rec_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusEqualTo(Byte value) { |
|||
addCriterion("rec_status =", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotEqualTo(Byte value) { |
|||
addCriterion("rec_status <>", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThan(Byte value) { |
|||
addCriterion("rec_status >", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status >=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThan(Byte value) { |
|||
addCriterion("rec_status <", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("rec_status <=", value, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusIn(List<Byte> values) { |
|||
addCriterion("rec_status in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotIn(List<Byte> values) { |
|||
addCriterion("rec_status not in", values, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRecStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("rec_status not between", value1, value2, "recStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
} |
|||
|
|||
public static class Criteria extends GeneratedCriteria { |
|||
|
|||
protected Criteria() { |
|||
super(); |
|||
} |
|||
} |
|||
|
|||
public static class Criterion { |
|||
private String condition; |
|||
|
|||
private Object value; |
|||
|
|||
private Object secondValue; |
|||
|
|||
private boolean noValue; |
|||
|
|||
private boolean singleValue; |
|||
|
|||
private boolean betweenValue; |
|||
|
|||
private boolean listValue; |
|||
|
|||
private String typeHandler; |
|||
|
|||
public String getCondition() { |
|||
return condition; |
|||
} |
|||
|
|||
public Object getValue() { |
|||
return value; |
|||
} |
|||
|
|||
public Object getSecondValue() { |
|||
return secondValue; |
|||
} |
|||
|
|||
public boolean isNoValue() { |
|||
return noValue; |
|||
} |
|||
|
|||
public boolean isSingleValue() { |
|||
return singleValue; |
|||
} |
|||
|
|||
public boolean isBetweenValue() { |
|||
return betweenValue; |
|||
} |
|||
|
|||
public boolean isListValue() { |
|||
return listValue; |
|||
} |
|||
|
|||
public String getTypeHandler() { |
|||
return typeHandler; |
|||
} |
|||
|
|||
protected Criterion(String condition) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.typeHandler = null; |
|||
this.noValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.typeHandler = typeHandler; |
|||
if (value instanceof List<?>) { |
|||
this.listValue = true; |
|||
} else { |
|||
this.singleValue = true; |
|||
} |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value) { |
|||
this(condition, value, null); |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { |
|||
super(); |
|||
this.condition = condition; |
|||
this.value = value; |
|||
this.secondValue = secondValue; |
|||
this.typeHandler = typeHandler; |
|||
this.betweenValue = true; |
|||
} |
|||
|
|||
protected Criterion(String condition, Object value, Object secondValue) { |
|||
this(condition, value, secondValue, null); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,8 @@ |
|||
package com.ccsens.tall.persist.dao; |
|||
|
|||
import com.ccsens.tall.persist.mapper.SysUserInfoMapper; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
@Repository |
|||
public interface SysUserInfoDao extends SysUserInfoMapper { |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.tall.persist.mapper; |
|||
|
|||
import com.ccsens.tall.bean.po.SysUserInfo; |
|||
import com.ccsens.tall.bean.po.SysUserInfoExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface SysUserInfoMapper { |
|||
long countByExample(SysUserInfoExample example); |
|||
|
|||
int deleteByExample(SysUserInfoExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(SysUserInfo record); |
|||
|
|||
int insertSelective(SysUserInfo record); |
|||
|
|||
List<SysUserInfo> selectByExample(SysUserInfoExample example); |
|||
|
|||
SysUserInfo selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") SysUserInfo record, @Param("example") SysUserInfoExample example); |
|||
|
|||
int updateByExample(@Param("record") SysUserInfo record, @Param("example") SysUserInfoExample example); |
|||
|
|||
int updateByPrimaryKeySelective(SysUserInfo record); |
|||
|
|||
int updateByPrimaryKey(SysUserInfo record); |
|||
} |
@ -0,0 +1,323 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
|||
<mapper namespace="com.ccsens.tall.persist.mapper.SysUserInfoMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.tall.bean.po.SysUserInfo"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="signature" jdbcType="VARCHAR" property="signature" /> |
|||
<result column="introduction" jdbcType="VARCHAR" property="introduction" /> |
|||
<result column="birthday" jdbcType="VARCHAR" property="birthday" /> |
|||
<result column="address" jdbcType="VARCHAR" property="address" /> |
|||
<result column="web_path" jdbcType="VARCHAR" property="webPath" /> |
|||
<result column="company" jdbcType="VARCHAR" property="company" /> |
|||
<result column="position" jdbcType="VARCHAR" property="position" /> |
|||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|||
</resultMap> |
|||
<sql id="Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Update_By_Example_Where_Clause"> |
|||
<where> |
|||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
|||
<if test="criteria.valid"> |
|||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
|||
<foreach collection="criteria.criteria" item="criterion"> |
|||
<choose> |
|||
<when test="criterion.noValue"> |
|||
and ${criterion.condition} |
|||
</when> |
|||
<when test="criterion.singleValue"> |
|||
and ${criterion.condition} #{criterion.value} |
|||
</when> |
|||
<when test="criterion.betweenValue"> |
|||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
|||
</when> |
|||
<when test="criterion.listValue"> |
|||
and ${criterion.condition} |
|||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
|||
#{listItem} |
|||
</foreach> |
|||
</when> |
|||
</choose> |
|||
</foreach> |
|||
</trim> |
|||
</if> |
|||
</foreach> |
|||
</where> |
|||
</sql> |
|||
<sql id="Base_Column_List"> |
|||
id, user_id, signature, introduction, birthday, address, web_path, company, position, |
|||
created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.tall.bean.po.SysUserInfoExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_user_info |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
from t_sys_user_info |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_sys_user_info |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.tall.bean.po.SysUserInfoExample"> |
|||
delete from t_sys_user_info |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.tall.bean.po.SysUserInfo"> |
|||
insert into t_sys_user_info (id, user_id, signature, |
|||
introduction, birthday, address, |
|||
web_path, company, position, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{signature,jdbcType=VARCHAR}, |
|||
#{introduction,jdbcType=VARCHAR}, #{birthday,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, |
|||
#{webPath,jdbcType=VARCHAR}, #{company,jdbcType=VARCHAR}, #{position,jdbcType=VARCHAR}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.tall.bean.po.SysUserInfo"> |
|||
insert into t_sys_user_info |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="signature != null"> |
|||
signature, |
|||
</if> |
|||
<if test="introduction != null"> |
|||
introduction, |
|||
</if> |
|||
<if test="birthday != null"> |
|||
birthday, |
|||
</if> |
|||
<if test="address != null"> |
|||
address, |
|||
</if> |
|||
<if test="webPath != null"> |
|||
web_path, |
|||
</if> |
|||
<if test="company != null"> |
|||
company, |
|||
</if> |
|||
<if test="position != null"> |
|||
position, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="signature != null"> |
|||
#{signature,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="introduction != null"> |
|||
#{introduction,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="birthday != null"> |
|||
#{birthday,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="address != null"> |
|||
#{address,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="webPath != null"> |
|||
#{webPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="company != null"> |
|||
#{company,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="position != null"> |
|||
#{position,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
#{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
#{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
#{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.tall.bean.po.SysUserInfoExample" resultType="java.lang.Long"> |
|||
select count(*) from t_sys_user_info |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_sys_user_info |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.signature != null"> |
|||
signature = #{record.signature,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.introduction != null"> |
|||
introduction = #{record.introduction,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.birthday != null"> |
|||
birthday = #{record.birthday,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.address != null"> |
|||
address = #{record.address,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.webPath != null"> |
|||
web_path = #{record.webPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.company != null"> |
|||
company = #{record.company,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.position != null"> |
|||
position = #{record.position,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.createdAt != null"> |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updatedAt != null"> |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.recStatus != null"> |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_sys_user_info |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
signature = #{record.signature,jdbcType=VARCHAR}, |
|||
introduction = #{record.introduction,jdbcType=VARCHAR}, |
|||
birthday = #{record.birthday,jdbcType=VARCHAR}, |
|||
address = #{record.address,jdbcType=VARCHAR}, |
|||
web_path = #{record.webPath,jdbcType=VARCHAR}, |
|||
company = #{record.company,jdbcType=VARCHAR}, |
|||
position = #{record.position,jdbcType=VARCHAR}, |
|||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.tall.bean.po.SysUserInfo"> |
|||
update t_sys_user_info |
|||
<set> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="signature != null"> |
|||
signature = #{signature,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="introduction != null"> |
|||
introduction = #{introduction,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="birthday != null"> |
|||
birthday = #{birthday,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="address != null"> |
|||
address = #{address,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="webPath != null"> |
|||
web_path = #{webPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="company != null"> |
|||
company = #{company,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="position != null"> |
|||
position = #{position,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="createdAt != null"> |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updatedAt != null"> |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="recStatus != null"> |
|||
rec_status = #{recStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.tall.bean.po.SysUserInfo"> |
|||
update t_sys_user_info |
|||
set user_id = #{userId,jdbcType=BIGINT}, |
|||
signature = #{signature,jdbcType=VARCHAR}, |
|||
introduction = #{introduction,jdbcType=VARCHAR}, |
|||
birthday = #{birthday,jdbcType=VARCHAR}, |
|||
address = #{address,jdbcType=VARCHAR}, |
|||
web_path = #{webPath,jdbcType=VARCHAR}, |
|||
company = #{company,jdbcType=VARCHAR}, |
|||
position = #{position,jdbcType=VARCHAR}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Binary file not shown.
@ -0,0 +1,140 @@ |
|||
package com.ccsens.util; |
|||
|
|||
|
|||
import cn.hutool.core.codec.Base64; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
|
|||
import java.awt.*; |
|||
import java.awt.image.BufferedImage; |
|||
import java.io.*; |
|||
import java.util.HashMap; |
|||
import java.util.Map; |
|||
import java.util.Random; |
|||
|
|||
import javax.imageio.ImageIO; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Slf4j |
|||
public class ImageCodeGeneratorUtil { |
|||
|
|||
|
|||
|
|||
/** |
|||
* 验证码字符的范围 |
|||
*/ |
|||
public static final String VERTIFICATION_CODE ="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"; |
|||
|
|||
|
|||
/** |
|||
* |
|||
* @param size 字符长度 |
|||
* @param sourceCode 字符范围 |
|||
* @return 返回随机生成的字符 |
|||
*/ |
|||
public static String generateCode(int size,String sourceCode) { |
|||
Random random = new Random(System.currentTimeMillis()); |
|||
char[] codes= new char[size]; |
|||
for(int i=0;i<size;i++) { |
|||
codes[i]=sourceCode.charAt(random.nextInt(sourceCode.length()-1)); |
|||
} |
|||
return String.valueOf(codes); |
|||
} |
|||
|
|||
/** |
|||
* 生成算数验证码 |
|||
* @return 返回 |
|||
*/ |
|||
public static Map<String,Object> generateCountCode() { |
|||
//生成两个随机数
|
|||
Random random = new Random(); |
|||
int i1 = random.nextInt(50); |
|||
int i2 = random.nextInt(50); |
|||
//计算两个数的和,并生成验证码的内容
|
|||
int sum = i1 + i2; |
|||
String imageCode = i1 + "+" + i2 + "=" + "?"; |
|||
|
|||
//返回
|
|||
Map<String,Object> codeMap = new HashMap<>(); |
|||
codeMap.put("imageCode",imageCode); |
|||
codeMap.put("sum",sum); |
|||
return codeMap; |
|||
} |
|||
|
|||
|
|||
public static String generateCodeImage(OutputStream os,String vertifyCode,int width,int height) { |
|||
int verifySize = vertifyCode.length(); |
|||
BufferedImage image = new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); |
|||
// 获取图形上下文
|
|||
Graphics g = image.getGraphics(); |
|||
// 生成随机类
|
|||
Random random = new Random(); |
|||
// 设定背景色
|
|||
g.setColor(getRandColor(230, 255)); |
|||
g.fillRect(0, 0, width, height); |
|||
// 设定字体
|
|||
g.setFont(new Font("Arial", Font.CENTER_BASELINE | Font.ITALIC, 28)); |
|||
// 产生0条干扰线,
|
|||
g.drawLine(0, 0, 0, 0); |
|||
// 取随机产生的认证码(4位数字)
|
|||
for (int i = 0; i < verifySize; i++) { |
|||
|
|||
// 将认证码显示到图象中
|
|||
// 调用函数出来的颜色相同,可能是因为种子太接近,所以只能直接生成
|
|||
g.setColor(getRandColor(100, 150)); |
|||
g.drawString(String.valueOf(vertifyCode.charAt(i)), i * (width/verifySize) +5, 50); |
|||
} |
|||
//画干扰线
|
|||
for(int i=0;i<(random.nextInt(20)+5);i++){ |
|||
g.setColor(new Color(random.nextInt(255)+1,random.nextInt(255)+1,random.nextInt(255)+1)); |
|||
g.drawLine(random.nextInt(width),random.nextInt(height),random.nextInt(width)+5,random.nextInt(height)+5); |
|||
} |
|||
// 图象生效
|
|||
g.dispose(); |
|||
// 输出图象到页面
|
|||
try { |
|||
// ImageIO.write(image, "jpg", os);
|
|||
|
|||
ByteArrayOutputStream outputStream = new ByteArrayOutputStream (); |
|||
ImageIO.write(image, "png", outputStream); |
|||
ByteArrayInputStream input = new ByteArrayInputStream(outputStream.toByteArray()); |
|||
return Base64.encode(input); |
|||
} catch (IOException e) { |
|||
// TODO Auto-generated catch block
|
|||
e.printStackTrace(); |
|||
log.error("生成图片验证码异常",e); |
|||
return null; |
|||
} |
|||
} |
|||
|
|||
public static void main(String[] args) { |
|||
// System.out.println(generateCode(6, VERTIFICATION_CODE));
|
|||
// int iRandom = (int)(1+Math.random()*50);
|
|||
// Double a = Math.random();
|
|||
// System.out.println(a);
|
|||
// System.out.println(a*50);
|
|||
// System.out.println(1+a*50);
|
|||
// System.out.println(new Random().nextInt(9)+1);
|
|||
String c = new String("aaa"); |
|||
String a = "helloword"; |
|||
String b = "ewor"; |
|||
a.indexOf(b); |
|||
|
|||
} |
|||
|
|||
private static Color getRandColor(int fc, int bc) { |
|||
Random random = new Random(); |
|||
if (fc > 255) { |
|||
fc = 255; |
|||
} |
|||
if (bc > 255) { |
|||
bc = 255; |
|||
} |
|||
int r = fc + random.nextInt(bc - fc); |
|||
int g = fc + random.nextInt(bc - fc); |
|||
int b = fc + random.nextInt(bc - fc); |
|||
return new Color(r, g, b); |
|||
} |
|||
|
|||
} |
File diff suppressed because one or more lines are too long
Loading…
Reference in new issue