61 changed files with 13828 additions and 2 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,322 @@ |
|||
#!/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,72 @@ |
|||
<?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"> |
|||
<parent> |
|||
<artifactId>ccsenscloud</artifactId> |
|||
<groupId>com.ccsens</groupId> |
|||
<version>1.0-SNAPSHOT</version> |
|||
</parent> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
|
|||
<artifactId>form</artifactId> |
|||
<properties> |
|||
<java.version>1.8</java.version> |
|||
</properties> |
|||
|
|||
<dependencies> |
|||
<!--cloud 工具类--> |
|||
<dependency> |
|||
<artifactId>cloudutil</artifactId> |
|||
<groupId>com.ccsens</groupId> |
|||
<version>1.0-SNAPSHOT</version> |
|||
</dependency> |
|||
<!--util 工具类--> |
|||
|
|||
<dependency> |
|||
<groupId>com.ccsens</groupId> |
|||
<artifactId>util</artifactId> |
|||
<version>1.0-SNAPSHOT</version> |
|||
<scope>compile</scope> |
|||
</dependency> |
|||
|
|||
</dependencies> |
|||
|
|||
<build> |
|||
<plugins> |
|||
<plugin> |
|||
<groupId>org.mybatis.generator</groupId> |
|||
<artifactId>mybatis-generator-maven-plugin</artifactId> |
|||
<version>1.3.7</version> |
|||
<configuration> |
|||
<configurationFile>${basedir}/src/main/resources/mbg.xml</configurationFile> |
|||
<overwrite>true</overwrite> |
|||
</configuration> |
|||
<dependencies> |
|||
<dependency> |
|||
<groupId>mysql</groupId> |
|||
<artifactId>mysql-connector-java</artifactId> |
|||
<version>5.1.34</version> |
|||
</dependency> |
|||
</dependencies> |
|||
</plugin> |
|||
<plugin> |
|||
<groupId>org.springframework.boot</groupId> |
|||
<artifactId>spring-boot-maven-plugin</artifactId> |
|||
<configuration> |
|||
<mainClass>com.ccsens.form.FormApplication</mainClass> |
|||
<!--<skip>true</skip>--> |
|||
</configuration> |
|||
<executions> |
|||
<execution> |
|||
<goals> |
|||
<goal>repackage</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
|
|||
</plugins> |
|||
</build> |
|||
|
|||
|
|||
</project> |
@ -0,0 +1,24 @@ |
|||
package com.ccsens.form; |
|||
|
|||
import org.mybatis.spring.annotation.MapperScan; |
|||
import org.springframework.boot.SpringApplication; |
|||
import org.springframework.boot.autoconfigure.SpringBootApplication; |
|||
import org.springframework.boot.web.servlet.ServletComponentScan; |
|||
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker; |
|||
import org.springframework.cloud.openfeign.EnableFeignClients; |
|||
import org.springframework.scheduling.annotation.EnableAsync; |
|||
|
|||
@MapperScan(basePackages = {"com.ccsens.form.persist.*"}) |
|||
@ServletComponentScan |
|||
@EnableAsync |
|||
//开启断路器功能
|
|||
@EnableCircuitBreaker |
|||
@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") |
|||
@SpringBootApplication(scanBasePackages = "com.ccsens") |
|||
public class FormApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(FormApplication.class, args); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,28 @@ |
|||
package com.ccsens.form.api; |
|||
|
|||
import com.ccsens.util.JsonResponse; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
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") |
|||
@Slf4j |
|||
public class DebugController { |
|||
@ApiOperation(value = "/测试",notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse debug(HttpServletRequest request) throws Exception { |
|||
|
|||
return JsonResponse.newInstance().ok("测试"); |
|||
} |
|||
|
|||
} |
@ -0,0 +1,150 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FormBasic implements Serializable { |
|||
private Long id; |
|||
|
|||
private String title; |
|||
|
|||
private String description; |
|||
|
|||
private String coverImage; |
|||
|
|||
private String accessPath; |
|||
|
|||
private String qrcodePath; |
|||
|
|||
private Byte submitStatus; |
|||
|
|||
private Long userId; |
|||
|
|||
private Long operator; |
|||
|
|||
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 String getTitle() { |
|||
return title; |
|||
} |
|||
|
|||
public void setTitle(String title) { |
|||
this.title = title == null ? null : title.trim(); |
|||
} |
|||
|
|||
public String getDescription() { |
|||
return description; |
|||
} |
|||
|
|||
public void setDescription(String description) { |
|||
this.description = description == null ? null : description.trim(); |
|||
} |
|||
|
|||
public String getCoverImage() { |
|||
return coverImage; |
|||
} |
|||
|
|||
public void setCoverImage(String coverImage) { |
|||
this.coverImage = coverImage == null ? null : coverImage.trim(); |
|||
} |
|||
|
|||
public String getAccessPath() { |
|||
return accessPath; |
|||
} |
|||
|
|||
public void setAccessPath(String accessPath) { |
|||
this.accessPath = accessPath == null ? null : accessPath.trim(); |
|||
} |
|||
|
|||
public String getQrcodePath() { |
|||
return qrcodePath; |
|||
} |
|||
|
|||
public void setQrcodePath(String qrcodePath) { |
|||
this.qrcodePath = qrcodePath == null ? null : qrcodePath.trim(); |
|||
} |
|||
|
|||
public Byte getSubmitStatus() { |
|||
return submitStatus; |
|||
} |
|||
|
|||
public void setSubmitStatus(Byte submitStatus) { |
|||
this.submitStatus = submitStatus; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", title=").append(title); |
|||
sb.append(", description=").append(description); |
|||
sb.append(", coverImage=").append(coverImage); |
|||
sb.append(", accessPath=").append(accessPath); |
|||
sb.append(", qrcodePath=").append(qrcodePath); |
|||
sb.append(", submitStatus=").append(submitStatus); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,971 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FormBasicExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FormBasicExample() { |
|||
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 andTitleIsNull() { |
|||
addCriterion("title is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleIsNotNull() { |
|||
addCriterion("title is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleEqualTo(String value) { |
|||
addCriterion("title =", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotEqualTo(String value) { |
|||
addCriterion("title <>", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleGreaterThan(String value) { |
|||
addCriterion("title >", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleGreaterThanOrEqualTo(String value) { |
|||
addCriterion("title >=", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleLessThan(String value) { |
|||
addCriterion("title <", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleLessThanOrEqualTo(String value) { |
|||
addCriterion("title <=", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleLike(String value) { |
|||
addCriterion("title like", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotLike(String value) { |
|||
addCriterion("title not like", value, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleIn(List<String> values) { |
|||
addCriterion("title in", values, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotIn(List<String> values) { |
|||
addCriterion("title not in", values, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleBetween(String value1, String value2) { |
|||
addCriterion("title between", value1, value2, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTitleNotBetween(String value1, String value2) { |
|||
addCriterion("title not between", value1, value2, "title"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNull() { |
|||
addCriterion("description is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIsNotNull() { |
|||
addCriterion("description is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionEqualTo(String value) { |
|||
addCriterion("description =", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotEqualTo(String value) { |
|||
addCriterion("description <>", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThan(String value) { |
|||
addCriterion("description >", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("description >=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThan(String value) { |
|||
addCriterion("description <", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLessThanOrEqualTo(String value) { |
|||
addCriterion("description <=", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionLike(String value) { |
|||
addCriterion("description like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotLike(String value) { |
|||
addCriterion("description not like", value, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionIn(List<String> values) { |
|||
addCriterion("description in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotIn(List<String> values) { |
|||
addCriterion("description not in", values, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionBetween(String value1, String value2) { |
|||
addCriterion("description between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDescriptionNotBetween(String value1, String value2) { |
|||
addCriterion("description not between", value1, value2, "description"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageIsNull() { |
|||
addCriterion("cover_image is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageIsNotNull() { |
|||
addCriterion("cover_image is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageEqualTo(String value) { |
|||
addCriterion("cover_image =", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageNotEqualTo(String value) { |
|||
addCriterion("cover_image <>", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageGreaterThan(String value) { |
|||
addCriterion("cover_image >", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageGreaterThanOrEqualTo(String value) { |
|||
addCriterion("cover_image >=", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageLessThan(String value) { |
|||
addCriterion("cover_image <", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageLessThanOrEqualTo(String value) { |
|||
addCriterion("cover_image <=", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageLike(String value) { |
|||
addCriterion("cover_image like", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageNotLike(String value) { |
|||
addCriterion("cover_image not like", value, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageIn(List<String> values) { |
|||
addCriterion("cover_image in", values, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageNotIn(List<String> values) { |
|||
addCriterion("cover_image not in", values, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageBetween(String value1, String value2) { |
|||
addCriterion("cover_image between", value1, value2, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCoverImageNotBetween(String value1, String value2) { |
|||
addCriterion("cover_image not between", value1, value2, "coverImage"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathIsNull() { |
|||
addCriterion("access_path is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathIsNotNull() { |
|||
addCriterion("access_path is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathEqualTo(String value) { |
|||
addCriterion("access_path =", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathNotEqualTo(String value) { |
|||
addCriterion("access_path <>", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathGreaterThan(String value) { |
|||
addCriterion("access_path >", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathGreaterThanOrEqualTo(String value) { |
|||
addCriterion("access_path >=", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathLessThan(String value) { |
|||
addCriterion("access_path <", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathLessThanOrEqualTo(String value) { |
|||
addCriterion("access_path <=", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathLike(String value) { |
|||
addCriterion("access_path like", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathNotLike(String value) { |
|||
addCriterion("access_path not like", value, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathIn(List<String> values) { |
|||
addCriterion("access_path in", values, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathNotIn(List<String> values) { |
|||
addCriterion("access_path not in", values, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathBetween(String value1, String value2) { |
|||
addCriterion("access_path between", value1, value2, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAccessPathNotBetween(String value1, String value2) { |
|||
addCriterion("access_path not between", value1, value2, "accessPath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathIsNull() { |
|||
addCriterion("qrcode_path is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathIsNotNull() { |
|||
addCriterion("qrcode_path is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathEqualTo(String value) { |
|||
addCriterion("qrcode_path =", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathNotEqualTo(String value) { |
|||
addCriterion("qrcode_path <>", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathGreaterThan(String value) { |
|||
addCriterion("qrcode_path >", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathGreaterThanOrEqualTo(String value) { |
|||
addCriterion("qrcode_path >=", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathLessThan(String value) { |
|||
addCriterion("qrcode_path <", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathLessThanOrEqualTo(String value) { |
|||
addCriterion("qrcode_path <=", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathLike(String value) { |
|||
addCriterion("qrcode_path like", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathNotLike(String value) { |
|||
addCriterion("qrcode_path not like", value, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathIn(List<String> values) { |
|||
addCriterion("qrcode_path in", values, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathNotIn(List<String> values) { |
|||
addCriterion("qrcode_path not in", values, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathBetween(String value1, String value2) { |
|||
addCriterion("qrcode_path between", value1, value2, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQrcodePathNotBetween(String value1, String value2) { |
|||
addCriterion("qrcode_path not between", value1, value2, "qrcodePath"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIsNull() { |
|||
addCriterion("submit_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIsNotNull() { |
|||
addCriterion("submit_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusEqualTo(Byte value) { |
|||
addCriterion("submit_status =", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotEqualTo(Byte value) { |
|||
addCriterion("submit_status <>", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusGreaterThan(Byte value) { |
|||
addCriterion("submit_status >", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_status >=", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusLessThan(Byte value) { |
|||
addCriterion("submit_status <", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_status <=", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIn(List<Byte> values) { |
|||
addCriterion("submit_status in", values, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotIn(List<Byte> values) { |
|||
addCriterion("submit_status not in", values, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_status between", value1, value2, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_status not between", value1, value2, "submitStatus"); |
|||
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 andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,106 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FormModule implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long formId; |
|||
|
|||
private Long moduleId; |
|||
|
|||
private Integer sequence; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getFormId() { |
|||
return formId; |
|||
} |
|||
|
|||
public void setFormId(Long formId) { |
|||
this.formId = formId; |
|||
} |
|||
|
|||
public Long getModuleId() { |
|||
return moduleId; |
|||
} |
|||
|
|||
public void setModuleId(Long moduleId) { |
|||
this.moduleId = moduleId; |
|||
} |
|||
|
|||
public Integer getSequence() { |
|||
return sequence; |
|||
} |
|||
|
|||
public void setSequence(Integer sequence) { |
|||
this.sequence = sequence; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", formId=").append(formId); |
|||
sb.append(", moduleId=").append(moduleId); |
|||
sb.append(", sequence=").append(sequence); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FormModuleConfig implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long formModuleId; |
|||
|
|||
private Byte type; |
|||
|
|||
private String configKey; |
|||
|
|||
private String configValue; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getFormModuleId() { |
|||
return formModuleId; |
|||
} |
|||
|
|||
public void setFormModuleId(Long formModuleId) { |
|||
this.formModuleId = formModuleId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getConfigKey() { |
|||
return configKey; |
|||
} |
|||
|
|||
public void setConfigKey(String configKey) { |
|||
this.configKey = configKey == null ? null : configKey.trim(); |
|||
} |
|||
|
|||
public String getConfigValue() { |
|||
return configValue; |
|||
} |
|||
|
|||
public void setConfigValue(String configValue) { |
|||
this.configValue = configValue == null ? null : configValue.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", formModuleId=").append(formModuleId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", configKey=").append(configKey); |
|||
sb.append(", configValue=").append(configValue); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,761 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FormModuleConfigExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FormModuleConfigExample() { |
|||
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 andFormModuleIdIsNull() { |
|||
addCriterion("form_module_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdIsNotNull() { |
|||
addCriterion("form_module_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdEqualTo(Long value) { |
|||
addCriterion("form_module_id =", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdNotEqualTo(Long value) { |
|||
addCriterion("form_module_id <>", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdGreaterThan(Long value) { |
|||
addCriterion("form_module_id >", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("form_module_id >=", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdLessThan(Long value) { |
|||
addCriterion("form_module_id <", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("form_module_id <=", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdIn(List<Long> values) { |
|||
addCriterion("form_module_id in", values, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdNotIn(List<Long> values) { |
|||
addCriterion("form_module_id not in", values, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdBetween(Long value1, Long value2) { |
|||
addCriterion("form_module_id between", value1, value2, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("form_module_id not between", value1, value2, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyIsNull() { |
|||
addCriterion("config_key is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyIsNotNull() { |
|||
addCriterion("config_key is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyEqualTo(String value) { |
|||
addCriterion("config_key =", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotEqualTo(String value) { |
|||
addCriterion("config_key <>", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyGreaterThan(String value) { |
|||
addCriterion("config_key >", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyGreaterThanOrEqualTo(String value) { |
|||
addCriterion("config_key >=", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyLessThan(String value) { |
|||
addCriterion("config_key <", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyLessThanOrEqualTo(String value) { |
|||
addCriterion("config_key <=", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyLike(String value) { |
|||
addCriterion("config_key like", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotLike(String value) { |
|||
addCriterion("config_key not like", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyIn(List<String> values) { |
|||
addCriterion("config_key in", values, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotIn(List<String> values) { |
|||
addCriterion("config_key not in", values, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyBetween(String value1, String value2) { |
|||
addCriterion("config_key between", value1, value2, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotBetween(String value1, String value2) { |
|||
addCriterion("config_key not between", value1, value2, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueIsNull() { |
|||
addCriterion("config_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueIsNotNull() { |
|||
addCriterion("config_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueEqualTo(String value) { |
|||
addCriterion("config_value =", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotEqualTo(String value) { |
|||
addCriterion("config_value <>", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueGreaterThan(String value) { |
|||
addCriterion("config_value >", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("config_value >=", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueLessThan(String value) { |
|||
addCriterion("config_value <", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueLessThanOrEqualTo(String value) { |
|||
addCriterion("config_value <=", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueLike(String value) { |
|||
addCriterion("config_value like", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotLike(String value) { |
|||
addCriterion("config_value not like", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueIn(List<String> values) { |
|||
addCriterion("config_value in", values, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotIn(List<String> values) { |
|||
addCriterion("config_value not in", values, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueBetween(String value1, String value2) { |
|||
addCriterion("config_value between", value1, value2, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotBetween(String value1, String value2) { |
|||
addCriterion("config_value not between", value1, value2, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,128 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FormModuleConfigOption implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long formModuleConfigId; |
|||
|
|||
private Long parentId; |
|||
|
|||
private String optionKey; |
|||
|
|||
private String optionValue; |
|||
|
|||
private Integer sequence; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getFormModuleConfigId() { |
|||
return formModuleConfigId; |
|||
} |
|||
|
|||
public void setFormModuleConfigId(Long formModuleConfigId) { |
|||
this.formModuleConfigId = formModuleConfigId; |
|||
} |
|||
|
|||
public Long getParentId() { |
|||
return parentId; |
|||
} |
|||
|
|||
public void setParentId(Long parentId) { |
|||
this.parentId = parentId; |
|||
} |
|||
|
|||
public String getOptionKey() { |
|||
return optionKey; |
|||
} |
|||
|
|||
public void setOptionKey(String optionKey) { |
|||
this.optionKey = optionKey == null ? null : optionKey.trim(); |
|||
} |
|||
|
|||
public String getOptionValue() { |
|||
return optionValue; |
|||
} |
|||
|
|||
public void setOptionValue(String optionValue) { |
|||
this.optionValue = optionValue == null ? null : optionValue.trim(); |
|||
} |
|||
|
|||
public Integer getSequence() { |
|||
return sequence; |
|||
} |
|||
|
|||
public void setSequence(Integer sequence) { |
|||
this.sequence = sequence; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", formModuleConfigId=").append(formModuleConfigId); |
|||
sb.append(", parentId=").append(parentId); |
|||
sb.append(", optionKey=").append(optionKey); |
|||
sb.append(", optionValue=").append(optionValue); |
|||
sb.append(", sequence=").append(sequence); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,821 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FormModuleConfigOptionExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FormModuleConfigOptionExample() { |
|||
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 andFormModuleConfigIdIsNull() { |
|||
addCriterion("form_module_config_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdIsNotNull() { |
|||
addCriterion("form_module_config_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdEqualTo(Long value) { |
|||
addCriterion("form_module_config_id =", value, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdNotEqualTo(Long value) { |
|||
addCriterion("form_module_config_id <>", value, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdGreaterThan(Long value) { |
|||
addCriterion("form_module_config_id >", value, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("form_module_config_id >=", value, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdLessThan(Long value) { |
|||
addCriterion("form_module_config_id <", value, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("form_module_config_id <=", value, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdIn(List<Long> values) { |
|||
addCriterion("form_module_config_id in", values, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdNotIn(List<Long> values) { |
|||
addCriterion("form_module_config_id not in", values, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdBetween(Long value1, Long value2) { |
|||
addCriterion("form_module_config_id between", value1, value2, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleConfigIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("form_module_config_id not between", value1, value2, "formModuleConfigId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNull() { |
|||
addCriterion("parent_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIsNotNull() { |
|||
addCriterion("parent_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdEqualTo(Long value) { |
|||
addCriterion("parent_id =", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotEqualTo(Long value) { |
|||
addCriterion("parent_id <>", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThan(Long value) { |
|||
addCriterion("parent_id >", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("parent_id >=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThan(Long value) { |
|||
addCriterion("parent_id <", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("parent_id <=", value, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdIn(List<Long> values) { |
|||
addCriterion("parent_id in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotIn(List<Long> values) { |
|||
addCriterion("parent_id not in", values, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdBetween(Long value1, Long value2) { |
|||
addCriterion("parent_id between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("parent_id not between", value1, value2, "parentId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyIsNull() { |
|||
addCriterion("option_key is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyIsNotNull() { |
|||
addCriterion("option_key is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyEqualTo(String value) { |
|||
addCriterion("option_key =", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyNotEqualTo(String value) { |
|||
addCriterion("option_key <>", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyGreaterThan(String value) { |
|||
addCriterion("option_key >", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyGreaterThanOrEqualTo(String value) { |
|||
addCriterion("option_key >=", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyLessThan(String value) { |
|||
addCriterion("option_key <", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyLessThanOrEqualTo(String value) { |
|||
addCriterion("option_key <=", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyLike(String value) { |
|||
addCriterion("option_key like", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyNotLike(String value) { |
|||
addCriterion("option_key not like", value, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyIn(List<String> values) { |
|||
addCriterion("option_key in", values, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyNotIn(List<String> values) { |
|||
addCriterion("option_key not in", values, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyBetween(String value1, String value2) { |
|||
addCriterion("option_key between", value1, value2, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionKeyNotBetween(String value1, String value2) { |
|||
addCriterion("option_key not between", value1, value2, "optionKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueIsNull() { |
|||
addCriterion("option_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueIsNotNull() { |
|||
addCriterion("option_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueEqualTo(String value) { |
|||
addCriterion("option_value =", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueNotEqualTo(String value) { |
|||
addCriterion("option_value <>", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueGreaterThan(String value) { |
|||
addCriterion("option_value >", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("option_value >=", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueLessThan(String value) { |
|||
addCriterion("option_value <", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueLessThanOrEqualTo(String value) { |
|||
addCriterion("option_value <=", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueLike(String value) { |
|||
addCriterion("option_value like", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueNotLike(String value) { |
|||
addCriterion("option_value not like", value, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueIn(List<String> values) { |
|||
addCriterion("option_value in", values, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueNotIn(List<String> values) { |
|||
addCriterion("option_value not in", values, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueBetween(String value1, String value2) { |
|||
addCriterion("option_value between", value1, value2, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionValueNotBetween(String value1, String value2) { |
|||
addCriterion("option_value not between", value1, value2, "optionValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIsNull() { |
|||
addCriterion("sequence is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIsNotNull() { |
|||
addCriterion("sequence is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceEqualTo(Integer value) { |
|||
addCriterion("sequence =", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotEqualTo(Integer value) { |
|||
addCriterion("sequence <>", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceGreaterThan(Integer value) { |
|||
addCriterion("sequence >", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sequence >=", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceLessThan(Integer value) { |
|||
addCriterion("sequence <", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sequence <=", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIn(List<Integer> values) { |
|||
addCriterion("sequence in", values, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotIn(List<Integer> values) { |
|||
addCriterion("sequence not in", values, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceBetween(Integer value1, Integer value2) { |
|||
addCriterion("sequence between", value1, value2, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sequence not between", value1, value2, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,681 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FormModuleExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FormModuleExample() { |
|||
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 andFormIdIsNull() { |
|||
addCriterion("form_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdIsNotNull() { |
|||
addCriterion("form_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdEqualTo(Long value) { |
|||
addCriterion("form_id =", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdNotEqualTo(Long value) { |
|||
addCriterion("form_id <>", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdGreaterThan(Long value) { |
|||
addCriterion("form_id >", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("form_id >=", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdLessThan(Long value) { |
|||
addCriterion("form_id <", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("form_id <=", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdIn(List<Long> values) { |
|||
addCriterion("form_id in", values, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdNotIn(List<Long> values) { |
|||
addCriterion("form_id not in", values, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdBetween(Long value1, Long value2) { |
|||
addCriterion("form_id between", value1, value2, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("form_id not between", value1, value2, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdIsNull() { |
|||
addCriterion("module_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdIsNotNull() { |
|||
addCriterion("module_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdEqualTo(Long value) { |
|||
addCriterion("module_id =", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdNotEqualTo(Long value) { |
|||
addCriterion("module_id <>", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdGreaterThan(Long value) { |
|||
addCriterion("module_id >", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("module_id >=", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdLessThan(Long value) { |
|||
addCriterion("module_id <", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("module_id <=", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdIn(List<Long> values) { |
|||
addCriterion("module_id in", values, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdNotIn(List<Long> values) { |
|||
addCriterion("module_id not in", values, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdBetween(Long value1, Long value2) { |
|||
addCriterion("module_id between", value1, value2, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("module_id not between", value1, value2, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIsNull() { |
|||
addCriterion("sequence is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIsNotNull() { |
|||
addCriterion("sequence is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceEqualTo(Integer value) { |
|||
addCriterion("sequence =", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotEqualTo(Integer value) { |
|||
addCriterion("sequence <>", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceGreaterThan(Integer value) { |
|||
addCriterion("sequence >", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceGreaterThanOrEqualTo(Integer value) { |
|||
addCriterion("sequence >=", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceLessThan(Integer value) { |
|||
addCriterion("sequence <", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceLessThanOrEqualTo(Integer value) { |
|||
addCriterion("sequence <=", value, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceIn(List<Integer> values) { |
|||
addCriterion("sequence in", values, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotIn(List<Integer> values) { |
|||
addCriterion("sequence not in", values, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceBetween(Integer value1, Integer value2) { |
|||
addCriterion("sequence between", value1, value2, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSequenceNotBetween(Integer value1, Integer value2) { |
|||
addCriterion("sequence not between", value1, value2, "sequence"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,128 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FormUser implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long formId; |
|||
|
|||
private Long userId; |
|||
|
|||
private String userName; |
|||
|
|||
private String avatarUrl; |
|||
|
|||
private Byte submitStatus; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getFormId() { |
|||
return formId; |
|||
} |
|||
|
|||
public void setFormId(Long formId) { |
|||
this.formId = formId; |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public String getUserName() { |
|||
return userName; |
|||
} |
|||
|
|||
public void setUserName(String userName) { |
|||
this.userName = userName == null ? null : userName.trim(); |
|||
} |
|||
|
|||
public String getAvatarUrl() { |
|||
return avatarUrl; |
|||
} |
|||
|
|||
public void setAvatarUrl(String avatarUrl) { |
|||
this.avatarUrl = avatarUrl == null ? null : avatarUrl.trim(); |
|||
} |
|||
|
|||
public Byte getSubmitStatus() { |
|||
return submitStatus; |
|||
} |
|||
|
|||
public void setSubmitStatus(Byte submitStatus) { |
|||
this.submitStatus = submitStatus; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", formId=").append(formId); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", userName=").append(userName); |
|||
sb.append(", avatarUrl=").append(avatarUrl); |
|||
sb.append(", submitStatus=").append(submitStatus); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,821 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FormUserExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FormUserExample() { |
|||
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 andFormIdIsNull() { |
|||
addCriterion("form_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdIsNotNull() { |
|||
addCriterion("form_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdEqualTo(Long value) { |
|||
addCriterion("form_id =", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdNotEqualTo(Long value) { |
|||
addCriterion("form_id <>", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdGreaterThan(Long value) { |
|||
addCriterion("form_id >", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("form_id >=", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdLessThan(Long value) { |
|||
addCriterion("form_id <", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("form_id <=", value, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdIn(List<Long> values) { |
|||
addCriterion("form_id in", values, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdNotIn(List<Long> values) { |
|||
addCriterion("form_id not in", values, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdBetween(Long value1, Long value2) { |
|||
addCriterion("form_id between", value1, value2, "formId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("form_id not between", value1, value2, "formId"); |
|||
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 andUserNameIsNull() { |
|||
addCriterion("user_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameIsNotNull() { |
|||
addCriterion("user_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameEqualTo(String value) { |
|||
addCriterion("user_name =", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotEqualTo(String value) { |
|||
addCriterion("user_name <>", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameGreaterThan(String value) { |
|||
addCriterion("user_name >", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("user_name >=", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameLessThan(String value) { |
|||
addCriterion("user_name <", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameLessThanOrEqualTo(String value) { |
|||
addCriterion("user_name <=", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameLike(String value) { |
|||
addCriterion("user_name like", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotLike(String value) { |
|||
addCriterion("user_name not like", value, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameIn(List<String> values) { |
|||
addCriterion("user_name in", values, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotIn(List<String> values) { |
|||
addCriterion("user_name not in", values, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameBetween(String value1, String value2) { |
|||
addCriterion("user_name between", value1, value2, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUserNameNotBetween(String value1, String value2) { |
|||
addCriterion("user_name not between", value1, value2, "userName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlIsNull() { |
|||
addCriterion("avatar_url is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlIsNotNull() { |
|||
addCriterion("avatar_url is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlEqualTo(String value) { |
|||
addCriterion("avatar_url =", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotEqualTo(String value) { |
|||
addCriterion("avatar_url <>", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlGreaterThan(String value) { |
|||
addCriterion("avatar_url >", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlGreaterThanOrEqualTo(String value) { |
|||
addCriterion("avatar_url >=", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlLessThan(String value) { |
|||
addCriterion("avatar_url <", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlLessThanOrEqualTo(String value) { |
|||
addCriterion("avatar_url <=", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlLike(String value) { |
|||
addCriterion("avatar_url like", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotLike(String value) { |
|||
addCriterion("avatar_url not like", value, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlIn(List<String> values) { |
|||
addCriterion("avatar_url in", values, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotIn(List<String> values) { |
|||
addCriterion("avatar_url not in", values, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlBetween(String value1, String value2) { |
|||
addCriterion("avatar_url between", value1, value2, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAvatarUrlNotBetween(String value1, String value2) { |
|||
addCriterion("avatar_url not between", value1, value2, "avatarUrl"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIsNull() { |
|||
addCriterion("submit_status is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIsNotNull() { |
|||
addCriterion("submit_status is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusEqualTo(Byte value) { |
|||
addCriterion("submit_status =", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotEqualTo(Byte value) { |
|||
addCriterion("submit_status <>", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusGreaterThan(Byte value) { |
|||
addCriterion("submit_status >", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_status >=", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusLessThan(Byte value) { |
|||
addCriterion("submit_status <", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusLessThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_status <=", value, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusIn(List<Byte> values) { |
|||
addCriterion("submit_status in", values, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotIn(List<Byte> values) { |
|||
addCriterion("submit_status not in", values, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_status between", value1, value2, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitStatusNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_status not between", value1, value2, "submitStatus"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,106 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FormWrite implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long formUserId; |
|||
|
|||
private Long formModuleId; |
|||
|
|||
private String answer; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getFormUserId() { |
|||
return formUserId; |
|||
} |
|||
|
|||
public void setFormUserId(Long formUserId) { |
|||
this.formUserId = formUserId; |
|||
} |
|||
|
|||
public Long getFormModuleId() { |
|||
return formModuleId; |
|||
} |
|||
|
|||
public void setFormModuleId(Long formModuleId) { |
|||
this.formModuleId = formModuleId; |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", formUserId=").append(formUserId); |
|||
sb.append(", formModuleId=").append(formModuleId); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,691 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FormWriteExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FormWriteExample() { |
|||
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 andFormUserIdIsNull() { |
|||
addCriterion("form_user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdIsNotNull() { |
|||
addCriterion("form_user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdEqualTo(Long value) { |
|||
addCriterion("form_user_id =", value, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdNotEqualTo(Long value) { |
|||
addCriterion("form_user_id <>", value, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdGreaterThan(Long value) { |
|||
addCriterion("form_user_id >", value, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("form_user_id >=", value, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdLessThan(Long value) { |
|||
addCriterion("form_user_id <", value, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("form_user_id <=", value, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdIn(List<Long> values) { |
|||
addCriterion("form_user_id in", values, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdNotIn(List<Long> values) { |
|||
addCriterion("form_user_id not in", values, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("form_user_id between", value1, value2, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("form_user_id not between", value1, value2, "formUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdIsNull() { |
|||
addCriterion("form_module_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdIsNotNull() { |
|||
addCriterion("form_module_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdEqualTo(Long value) { |
|||
addCriterion("form_module_id =", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdNotEqualTo(Long value) { |
|||
addCriterion("form_module_id <>", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdGreaterThan(Long value) { |
|||
addCriterion("form_module_id >", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("form_module_id >=", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdLessThan(Long value) { |
|||
addCriterion("form_module_id <", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("form_module_id <=", value, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdIn(List<Long> values) { |
|||
addCriterion("form_module_id in", values, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdNotIn(List<Long> values) { |
|||
addCriterion("form_module_id not in", values, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdBetween(Long value1, Long value2) { |
|||
addCriterion("form_module_id between", value1, value2, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFormModuleIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("form_module_id not between", value1, value2, "formModuleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIsNull() { |
|||
addCriterion("answer is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIsNotNull() { |
|||
addCriterion("answer is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerEqualTo(String value) { |
|||
addCriterion("answer =", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotEqualTo(String value) { |
|||
addCriterion("answer <>", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerGreaterThan(String value) { |
|||
addCriterion("answer >", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerGreaterThanOrEqualTo(String value) { |
|||
addCriterion("answer >=", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLessThan(String value) { |
|||
addCriterion("answer <", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLessThanOrEqualTo(String value) { |
|||
addCriterion("answer <=", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerLike(String value) { |
|||
addCriterion("answer like", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotLike(String value) { |
|||
addCriterion("answer not like", value, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerIn(List<String> values) { |
|||
addCriterion("answer in", values, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotIn(List<String> values) { |
|||
addCriterion("answer not in", values, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerBetween(String value1, String value2) { |
|||
addCriterion("answer between", value1, value2, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andAnswerNotBetween(String value1, String value2) { |
|||
addCriterion("answer not between", value1, value2, "answer"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,128 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Module implements Serializable { |
|||
private Long id; |
|||
|
|||
private String type; |
|||
|
|||
private String logo; |
|||
|
|||
private String name; |
|||
|
|||
private Byte option; |
|||
|
|||
private Byte hierarchy; |
|||
|
|||
private Long operator; |
|||
|
|||
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 String getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(String type) { |
|||
this.type = type == null ? null : type.trim(); |
|||
} |
|||
|
|||
public String getLogo() { |
|||
return logo; |
|||
} |
|||
|
|||
public void setLogo(String logo) { |
|||
this.logo = logo == null ? null : logo.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getOption() { |
|||
return option; |
|||
} |
|||
|
|||
public void setOption(Byte option) { |
|||
this.option = option; |
|||
} |
|||
|
|||
public Byte getHierarchy() { |
|||
return hierarchy; |
|||
} |
|||
|
|||
public void setHierarchy(Byte hierarchy) { |
|||
this.hierarchy = hierarchy; |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", type=").append(type); |
|||
sb.append(", logo=").append(logo); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", option=").append(option); |
|||
sb.append(", hierarchy=").append(hierarchy); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,117 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class ModuleConfig implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long moduleId; |
|||
|
|||
private Byte type; |
|||
|
|||
private String configKey; |
|||
|
|||
private String configValue; |
|||
|
|||
private Long operator; |
|||
|
|||
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 getModuleId() { |
|||
return moduleId; |
|||
} |
|||
|
|||
public void setModuleId(Long moduleId) { |
|||
this.moduleId = moduleId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getConfigKey() { |
|||
return configKey; |
|||
} |
|||
|
|||
public void setConfigKey(String configKey) { |
|||
this.configKey = configKey == null ? null : configKey.trim(); |
|||
} |
|||
|
|||
public String getConfigValue() { |
|||
return configValue; |
|||
} |
|||
|
|||
public void setConfigValue(String configValue) { |
|||
this.configValue = configValue == null ? null : configValue.trim(); |
|||
} |
|||
|
|||
public Long getOperator() { |
|||
return operator; |
|||
} |
|||
|
|||
public void setOperator(Long operator) { |
|||
this.operator = operator; |
|||
} |
|||
|
|||
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(", moduleId=").append(moduleId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", configKey=").append(configKey); |
|||
sb.append(", configValue=").append(configValue); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,761 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ModuleConfigExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ModuleConfigExample() { |
|||
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 andModuleIdIsNull() { |
|||
addCriterion("module_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdIsNotNull() { |
|||
addCriterion("module_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdEqualTo(Long value) { |
|||
addCriterion("module_id =", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdNotEqualTo(Long value) { |
|||
addCriterion("module_id <>", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdGreaterThan(Long value) { |
|||
addCriterion("module_id >", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("module_id >=", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdLessThan(Long value) { |
|||
addCriterion("module_id <", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("module_id <=", value, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdIn(List<Long> values) { |
|||
addCriterion("module_id in", values, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdNotIn(List<Long> values) { |
|||
addCriterion("module_id not in", values, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdBetween(Long value1, Long value2) { |
|||
addCriterion("module_id between", value1, value2, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andModuleIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("module_id not between", value1, value2, "moduleId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(Byte value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(Byte value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(Byte value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(Byte value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<Byte> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<Byte> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyIsNull() { |
|||
addCriterion("config_key is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyIsNotNull() { |
|||
addCriterion("config_key is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyEqualTo(String value) { |
|||
addCriterion("config_key =", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotEqualTo(String value) { |
|||
addCriterion("config_key <>", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyGreaterThan(String value) { |
|||
addCriterion("config_key >", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyGreaterThanOrEqualTo(String value) { |
|||
addCriterion("config_key >=", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyLessThan(String value) { |
|||
addCriterion("config_key <", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyLessThanOrEqualTo(String value) { |
|||
addCriterion("config_key <=", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyLike(String value) { |
|||
addCriterion("config_key like", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotLike(String value) { |
|||
addCriterion("config_key not like", value, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyIn(List<String> values) { |
|||
addCriterion("config_key in", values, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotIn(List<String> values) { |
|||
addCriterion("config_key not in", values, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyBetween(String value1, String value2) { |
|||
addCriterion("config_key between", value1, value2, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigKeyNotBetween(String value1, String value2) { |
|||
addCriterion("config_key not between", value1, value2, "configKey"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueIsNull() { |
|||
addCriterion("config_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueIsNotNull() { |
|||
addCriterion("config_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueEqualTo(String value) { |
|||
addCriterion("config_value =", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotEqualTo(String value) { |
|||
addCriterion("config_value <>", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueGreaterThan(String value) { |
|||
addCriterion("config_value >", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("config_value >=", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueLessThan(String value) { |
|||
addCriterion("config_value <", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueLessThanOrEqualTo(String value) { |
|||
addCriterion("config_value <=", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueLike(String value) { |
|||
addCriterion("config_value like", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotLike(String value) { |
|||
addCriterion("config_value not like", value, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueIn(List<String> values) { |
|||
addCriterion("config_value in", values, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotIn(List<String> values) { |
|||
addCriterion("config_value not in", values, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueBetween(String value1, String value2) { |
|||
addCriterion("config_value between", value1, value2, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andConfigValueNotBetween(String value1, String value2) { |
|||
addCriterion("config_value not between", value1, value2, "configValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,831 @@ |
|||
package com.ccsens.form.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class ModuleExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public ModuleExample() { |
|||
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 andTypeIsNull() { |
|||
addCriterion("type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIsNotNull() { |
|||
addCriterion("type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeEqualTo(String value) { |
|||
addCriterion("type =", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotEqualTo(String value) { |
|||
addCriterion("type <>", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThan(String value) { |
|||
addCriterion("type >", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("type >=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThan(String value) { |
|||
addCriterion("type <", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLessThanOrEqualTo(String value) { |
|||
addCriterion("type <=", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeLike(String value) { |
|||
addCriterion("type like", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotLike(String value) { |
|||
addCriterion("type not like", value, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeIn(List<String> values) { |
|||
addCriterion("type in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotIn(List<String> values) { |
|||
addCriterion("type not in", values, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeBetween(String value1, String value2) { |
|||
addCriterion("type between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTypeNotBetween(String value1, String value2) { |
|||
addCriterion("type not between", value1, value2, "type"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoIsNull() { |
|||
addCriterion("logo is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoIsNotNull() { |
|||
addCriterion("logo is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoEqualTo(String value) { |
|||
addCriterion("logo =", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoNotEqualTo(String value) { |
|||
addCriterion("logo <>", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoGreaterThan(String value) { |
|||
addCriterion("logo >", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoGreaterThanOrEqualTo(String value) { |
|||
addCriterion("logo >=", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoLessThan(String value) { |
|||
addCriterion("logo <", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoLessThanOrEqualTo(String value) { |
|||
addCriterion("logo <=", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoLike(String value) { |
|||
addCriterion("logo like", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoNotLike(String value) { |
|||
addCriterion("logo not like", value, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoIn(List<String> values) { |
|||
addCriterion("logo in", values, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoNotIn(List<String> values) { |
|||
addCriterion("logo not in", values, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoBetween(String value1, String value2) { |
|||
addCriterion("logo between", value1, value2, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andLogoNotBetween(String value1, String value2) { |
|||
addCriterion("logo not between", value1, value2, "logo"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNull() { |
|||
addCriterion("name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIsNotNull() { |
|||
addCriterion("name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameEqualTo(String value) { |
|||
addCriterion("name =", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotEqualTo(String value) { |
|||
addCriterion("name <>", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThan(String value) { |
|||
addCriterion("name >", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("name >=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThan(String value) { |
|||
addCriterion("name <", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLessThanOrEqualTo(String value) { |
|||
addCriterion("name <=", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameLike(String value) { |
|||
addCriterion("name like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotLike(String value) { |
|||
addCriterion("name not like", value, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameIn(List<String> values) { |
|||
addCriterion("name in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotIn(List<String> values) { |
|||
addCriterion("name not in", values, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameBetween(String value1, String value2) { |
|||
addCriterion("name between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andNameNotBetween(String value1, String value2) { |
|||
addCriterion("name not between", value1, value2, "name"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIsNull() { |
|||
addCriterion("option is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIsNotNull() { |
|||
addCriterion("option is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionEqualTo(Byte value) { |
|||
addCriterion("option =", value, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionNotEqualTo(Byte value) { |
|||
addCriterion("option <>", value, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionGreaterThan(Byte value) { |
|||
addCriterion("option >", value, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("option >=", value, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionLessThan(Byte value) { |
|||
addCriterion("option <", value, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionLessThanOrEqualTo(Byte value) { |
|||
addCriterion("option <=", value, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionIn(List<Byte> values) { |
|||
addCriterion("option in", values, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionNotIn(List<Byte> values) { |
|||
addCriterion("option not in", values, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionBetween(Byte value1, Byte value2) { |
|||
addCriterion("option between", value1, value2, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOptionNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("option not between", value1, value2, "option"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyIsNull() { |
|||
addCriterion("hierarchy is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyIsNotNull() { |
|||
addCriterion("hierarchy is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyEqualTo(Byte value) { |
|||
addCriterion("hierarchy =", value, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyNotEqualTo(Byte value) { |
|||
addCriterion("hierarchy <>", value, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyGreaterThan(Byte value) { |
|||
addCriterion("hierarchy >", value, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("hierarchy >=", value, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyLessThan(Byte value) { |
|||
addCriterion("hierarchy <", value, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyLessThanOrEqualTo(Byte value) { |
|||
addCriterion("hierarchy <=", value, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyIn(List<Byte> values) { |
|||
addCriterion("hierarchy in", values, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyNotIn(List<Byte> values) { |
|||
addCriterion("hierarchy not in", values, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyBetween(Byte value1, Byte value2) { |
|||
addCriterion("hierarchy between", value1, value2, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHierarchyNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("hierarchy not between", value1, value2, "hierarchy"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNull() { |
|||
addCriterion("operator is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIsNotNull() { |
|||
addCriterion("operator is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorEqualTo(Long value) { |
|||
addCriterion("operator =", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotEqualTo(Long value) { |
|||
addCriterion("operator <>", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThan(Long value) { |
|||
addCriterion("operator >", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("operator >=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThan(Long value) { |
|||
addCriterion("operator <", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorLessThanOrEqualTo(Long value) { |
|||
addCriterion("operator <=", value, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorIn(List<Long> values) { |
|||
addCriterion("operator in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotIn(List<Long> values) { |
|||
addCriterion("operator not in", values, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorBetween(Long value1, Long value2) { |
|||
addCriterion("operator between", value1, value2, "operator"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andOperatorNotBetween(Long value1, Long value2) { |
|||
addCriterion("operator not between", value1, value2, "operator"); |
|||
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,31 @@ |
|||
package com.ccsens.form.config; |
|||
|
|||
import com.ccsens.form.intercept.MybatisInterceptor; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: wuHuiJuan |
|||
* @create: 2019/12/03 18:01 |
|||
*/ |
|||
@Configuration |
|||
public class BeanConfig { |
|||
// @Bean
|
|||
// public static PropertySourcesPlaceholderConfigurer properties(){
|
|||
// PropertySourcesPlaceholderConfigurer conf = new PropertySourcesPlaceholderConfigurer();
|
|||
// YamlPropertiesFactoryBean yml = new YamlPropertiesFactoryBean();
|
|||
// yml.setResources(new ClassPathResource("business.yml"));
|
|||
// conf.setProperties(yml.getObject());
|
|||
// return conf;
|
|||
// }
|
|||
|
|||
/** |
|||
* 注册拦截器 |
|||
*/ |
|||
@Bean |
|||
public MybatisInterceptor mybatisInterceptor() { |
|||
MybatisInterceptor interceptor = new MybatisInterceptor(); |
|||
return interceptor; |
|||
} |
|||
} |
@ -0,0 +1,168 @@ |
|||
package com.ccsens.form.config; |
|||
|
|||
|
|||
import cn.hutool.core.lang.Snowflake; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import com.ccsens.util.config.DruidProps; |
|||
import com.fasterxml.jackson.databind.DeserializationFeature; |
|||
import com.fasterxml.jackson.databind.ObjectMapper; |
|||
import com.fasterxml.jackson.databind.module.SimpleModule; |
|||
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; |
|||
import org.springframework.beans.factory.annotation.Value; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import org.springframework.http.MediaType; |
|||
import org.springframework.http.converter.HttpMessageConverter; |
|||
import org.springframework.http.converter.StringHttpMessageConverter; |
|||
import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter; |
|||
import org.springframework.web.servlet.config.annotation.*; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.sql.DataSource; |
|||
import java.nio.charset.Charset; |
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
@Configuration |
|||
public class SpringConfig implements WebMvcConfigurer { |
|||
@Resource |
|||
private DruidProps druidPropsUtil; |
|||
@Value("${spring.snowflake.workerId}") |
|||
private String workerId; |
|||
@Value("${spring.snowflake.datacenterId}") |
|||
private String datacenterId; |
|||
|
|||
/** |
|||
* 配置Converter |
|||
* @return |
|||
*/ |
|||
@Bean |
|||
public HttpMessageConverter<String> responseStringConverter() { |
|||
StringHttpMessageConverter converter = new StringHttpMessageConverter( |
|||
Charset.forName("UTF-8")); |
|||
return converter; |
|||
} |
|||
|
|||
@Bean |
|||
public HttpMessageConverter<Object> responseJsonConverter(){ |
|||
MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); |
|||
List<MediaType> mediaTypeList = new ArrayList<>(); |
|||
mediaTypeList.add(MediaType.TEXT_HTML); |
|||
mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); |
|||
converter.setSupportedMediaTypes(mediaTypeList); |
|||
|
|||
//converter.setObjectMapper();
|
|||
ObjectMapper objectMapper = new ObjectMapper(); |
|||
SimpleModule simpleModule = new SimpleModule(); |
|||
simpleModule.addSerializer(Long.class, ToStringSerializer.instance); |
|||
simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); |
|||
objectMapper.registerModule(simpleModule); |
|||
objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); |
|||
converter.setObjectMapper(objectMapper); |
|||
|
|||
return converter; |
|||
} |
|||
|
|||
@Override |
|||
public void configureMessageConverters(List<HttpMessageConverter<?>> converters) { |
|||
//super.configureMessageConverters(converters);
|
|||
converters.add(responseStringConverter()); |
|||
converters.add(responseJsonConverter()); |
|||
} |
|||
|
|||
@Override |
|||
public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { |
|||
configurer.favorPathExtension(false); |
|||
} |
|||
|
|||
@Override |
|||
public void addCorsMappings(CorsRegistry registry) { |
|||
registry.addMapping("/**").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS") |
|||
// .allowedMethods("*") // 允许提交请求的方法,*表示全部允许
|
|||
.allowedOrigins("*") // #允许向该服务器提交请求的URI,*表示全部允许
|
|||
.allowCredentials(true) // 允许cookies跨域
|
|||
.allowedHeaders("*") // #允许访问的头信息,*表示全部
|
|||
.maxAge(18000L); // 预检请求的缓存时间(秒),即在这个时间段里,对于相同的跨域请求不会再预检了
|
|||
|
|||
} |
|||
|
|||
/** |
|||
* 配置视图解析器 SpringBoot建议使用Thymeleaf代替jsp,动态页面默认路径:resources/template,静态页面默认路径: resources/static |
|||
* @return |
|||
*/ |
|||
// @Bean
|
|||
// public ViewResolver getViewResolver() {
|
|||
// InternalResourceViewResolver resolver = new InternalResourceViewResolver();
|
|||
// resolver.setPrefix("/WEB-INF/views/");
|
|||
// resolver.setSuffix(".jsp");
|
|||
// return resolver;
|
|||
// }
|
|||
// @Override
|
|||
// public void configureDefaultServletHandling(
|
|||
// DefaultServletHandlerConfigurer configurer) {
|
|||
// configurer.enable();
|
|||
// }
|
|||
|
|||
|
|||
/** |
|||
* 配置静态资源 |
|||
*/ |
|||
@Override |
|||
public void addResourceHandlers(ResourceHandlerRegistry registry) { |
|||
registry.addResourceHandler("swagger-ui.html") |
|||
.addResourceLocations("classpath:/META-INF/resources/"); |
|||
registry.addResourceHandler("/webjars/**") |
|||
.addResourceLocations("classpath:/META-INF/resources/webjars/"); |
|||
|
|||
registry.addResourceHandler("/uploads/**") |
|||
.addResourceLocations("file:///home/cloud/form/uploads/"); |
|||
//super.addResourceHandlers(registry);
|
|||
} |
|||
|
|||
/** |
|||
* 配置拦截器 |
|||
* @param registry |
|||
*/ |
|||
@Override |
|||
public void addInterceptors(InterceptorRegistry registry) { |
|||
//addPathPatterns 用于添加拦截规则
|
|||
//excludePathPatterns 用于排除拦截
|
|||
// registry.addInterceptor(tokenInterceptor())
|
|||
// .addPathPatterns("/projects/**")
|
|||
// .addPathPatterns("/messages/**")
|
|||
// .addPathPatterns("/users/**")
|
|||
// .excludePathPatterns("/users/signin")
|
|||
// .excludePathPatterns("/users/smscode")
|
|||
// .excludePathPatterns("/users/signup")
|
|||
// .excludePathPatterns("/users/password")
|
|||
// .excludePathPatterns("/users/account")
|
|||
// .excludePathPatterns("/users/token")
|
|||
// .excludePathPatterns("/users/claims")
|
|||
// .addPathPatterns("/plugins/**")
|
|||
// .addPathPatterns("/delivers/**")
|
|||
// .addPathPatterns("/tasks/**")
|
|||
// .addPathPatterns("/members/**")
|
|||
// .addPathPatterns("/templates/**")
|
|||
// .addPathPatterns("/hardware/**");
|
|||
//super.addInterceptors(registry);
|
|||
} |
|||
//
|
|||
// @Bean
|
|||
// public TokenInterceptor tokenInterceptor(){
|
|||
// return new TokenInterceptor();
|
|||
// }
|
|||
|
|||
/** |
|||
* 配置数据源(单数据源) |
|||
*/ |
|||
@Bean |
|||
public DataSource dataSource(){ |
|||
return druidPropsUtil.createDruidDataSource(); |
|||
} |
|||
|
|||
@Bean |
|||
public Snowflake snowflake(){ |
|||
// return new Snowflake(Long.valueOf(workerId),Long.valueOf(datacenterId));
|
|||
return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); |
|||
} |
|||
} |
@ -0,0 +1,56 @@ |
|||
package com.ccsens.form.config; |
|||
|
|||
import com.ccsens.util.WebConstant; |
|||
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; |
|||
import org.springframework.context.annotation.Bean; |
|||
import org.springframework.context.annotation.Configuration; |
|||
import springfox.documentation.builders.ParameterBuilder; |
|||
import springfox.documentation.builders.RequestHandlerSelectors; |
|||
import springfox.documentation.schema.ModelRef; |
|||
import springfox.documentation.service.ApiInfo; |
|||
import springfox.documentation.service.Parameter; |
|||
import springfox.documentation.spi.DocumentationType; |
|||
import springfox.documentation.spring.web.plugins.Docket; |
|||
import springfox.documentation.swagger2.annotations.EnableSwagger2; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.List; |
|||
|
|||
@Configuration |
|||
@EnableSwagger2 |
|||
@ConditionalOnExpression("${swagger.enable}") |
|||
//public class SwaggerConfigure extends WebMvcConfigurationSupport {
|
|||
public class SwaggerConfigure /*implements WebMvcConfigurer*/ { |
|||
@Bean |
|||
public Docket customDocket() { |
|||
//
|
|||
return new Docket(DocumentationType.SWAGGER_2) |
|||
.apiInfo(apiInfo()) |
|||
.select() |
|||
.apis(RequestHandlerSelectors |
|||
.basePackage("com.ccsens.form.api")) |
|||
.build() |
|||
.globalOperationParameters(setHeaderToken()); |
|||
} |
|||
|
|||
private ApiInfo apiInfo() { |
|||
return new ApiInfo("Swagger Tall-game",//大标题 title
|
|||
"This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题
|
|||
"1.0.0",//版本
|
|||
"http://swagger.io/terms/",//termsOfServiceUrl
|
|||
"zhangsan",//作者
|
|||
"Apache 2.0",//链接显示文字
|
|||
"http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接
|
|||
); |
|||
} |
|||
|
|||
private List<Parameter> setHeaderToken() { |
|||
ParameterBuilder tokenPar = new ParameterBuilder(); |
|||
List<Parameter> pars = new ArrayList<>(); |
|||
tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") |
|||
.defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) |
|||
.modelRef(new ModelRef("string")).parameterType("header").required(false).build(); |
|||
pars.add(tokenPar.build()); |
|||
return pars; |
|||
} |
|||
} |
@ -0,0 +1,159 @@ |
|||
package com.ccsens.form.intercept; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import com.ccsens.util.WebConstant; |
|||
import org.apache.ibatis.executor.Executor; |
|||
import org.apache.ibatis.mapping.BoundSql; |
|||
import org.apache.ibatis.mapping.MappedStatement; |
|||
import org.apache.ibatis.mapping.ResultMap; |
|||
import org.apache.ibatis.mapping.SqlSource; |
|||
import org.apache.ibatis.plugin.*; |
|||
import org.apache.ibatis.reflection.DefaultReflectorFactory; |
|||
import org.apache.ibatis.reflection.MetaObject; |
|||
import org.apache.ibatis.reflection.factory.DefaultObjectFactory; |
|||
import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory; |
|||
import org.apache.ibatis.session.ResultHandler; |
|||
import org.apache.ibatis.session.RowBounds; |
|||
|
|||
import java.lang.reflect.InvocationTargetException; |
|||
import java.lang.reflect.Method; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
import java.util.Properties; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: wuHuiJuan |
|||
* @create: 2019/12/11 10:58 |
|||
*/ |
|||
@Intercepts({ |
|||
@Signature( |
|||
type = Executor.class, |
|||
method = "query", |
|||
args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class} |
|||
) |
|||
}) |
|||
public class MybatisInterceptor implements Interceptor { |
|||
@Override |
|||
public Object intercept(Invocation invocation) throws Throwable { |
|||
|
|||
|
|||
String selectByExample = "selectByExample"; |
|||
String countByExample = "countByExample"; |
|||
String countByExample2 = "selectByExample_COUNT"; |
|||
String selectByPrimaryKey = "selectByPrimaryKey"; |
|||
|
|||
Object[] args = invocation.getArgs(); |
|||
MappedStatement statement = (MappedStatement) args[0]; |
|||
if (statement.getId().endsWith(selectByExample) |
|||
|| statement.getId().endsWith(countByExample) |
|||
|| statement.getId().endsWith(countByExample2)) { |
|||
//XXXExample
|
|||
Object example = args[1]; |
|||
|
|||
addCondition(statement, example); |
|||
|
|||
|
|||
|
|||
|
|||
} else if (statement.getId().endsWith(selectByPrimaryKey)) { |
|||
BoundSql boundSql = statement.getBoundSql(args[1]); |
|||
String sql = boundSql.getSql() + " and rec_status = 0"; |
|||
MappedStatement newStatement = newMappedStatement(statement, new BoundSqlSqlSource(boundSql)); |
|||
MetaObject msObject = MetaObject.forObject(newStatement, new DefaultObjectFactory(), new DefaultObjectWrapperFactory(),new DefaultReflectorFactory()); |
|||
msObject.setValue("sqlSource.boundSql.sql", sql); |
|||
args[0] = newStatement; |
|||
} |
|||
|
|||
return invocation.proceed(); |
|||
} |
|||
|
|||
private void addCondition(MappedStatement statement, Object example) throws NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException, ClassNotFoundException { |
|||
if (example instanceof Map) { |
|||
example = ((Map) example).get("_ORIGINAL_PARAMETER_OBJECT"); |
|||
} |
|||
|
|||
|
|||
Method method = example.getClass().getMethod("getOredCriteria", null); |
|||
//获取到条件数组,第一个是Criteria
|
|||
List list = (List) method.invoke(example); |
|||
if (CollectionUtil.isEmpty(list)) { |
|||
Class clazz = ((ResultMap) statement.getResultMaps().get(0)).getType(); |
|||
String exampleName = clazz.getName() + "Example"; |
|||
Object paramExample = Class.forName(exampleName).newInstance(); |
|||
Method createCriteria = paramExample.getClass().getMethod("createCriteria"); |
|||
Object criteria = createCriteria.invoke(paramExample); |
|||
Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); |
|||
andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); |
|||
list.add(criteria); |
|||
} else { |
|||
Object criteria = list.get(0); |
|||
Method getCriteria = criteria.getClass().getMethod("getCriteria"); |
|||
List params = (List) getCriteria.invoke(criteria); |
|||
boolean hasDel = false; |
|||
for (Object param : params) { |
|||
Method getCondition = param.getClass().getMethod("getCondition"); |
|||
Object condition = getCondition.invoke(param); |
|||
if ("rec_status =".equals(condition)) { |
|||
hasDel = true; |
|||
} |
|||
} |
|||
if (!hasDel) { |
|||
Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); |
|||
andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); |
|||
} |
|||
|
|||
} |
|||
|
|||
} |
|||
|
|||
@Override |
|||
public Object plugin(Object target) { |
|||
return Plugin.wrap(target, this); |
|||
} |
|||
|
|||
@Override |
|||
public void setProperties(Properties properties) { |
|||
|
|||
} |
|||
|
|||
private MappedStatement newMappedStatement(MappedStatement ms, SqlSource newSqlSource) { |
|||
MappedStatement.Builder builder = |
|||
new MappedStatement.Builder(ms.getConfiguration(), ms.getId(), newSqlSource, ms.getSqlCommandType()); |
|||
builder.resource(ms.getResource()); |
|||
builder.fetchSize(ms.getFetchSize()); |
|||
builder.statementType(ms.getStatementType()); |
|||
builder.keyGenerator(ms.getKeyGenerator()); |
|||
if (ms.getKeyProperties() != null && ms.getKeyProperties().length != 0) { |
|||
StringBuilder keyProperties = new StringBuilder(); |
|||
for (String keyProperty : ms.getKeyProperties()) { |
|||
keyProperties.append(keyProperty).append(","); |
|||
} |
|||
keyProperties.delete(keyProperties.length() - 1, keyProperties.length()); |
|||
builder.keyProperty(keyProperties.toString()); |
|||
} |
|||
builder.timeout(ms.getTimeout()); |
|||
builder.parameterMap(ms.getParameterMap()); |
|||
builder.resultMaps(ms.getResultMaps()); |
|||
builder.resultSetType(ms.getResultSetType()); |
|||
builder.cache(ms.getCache()); |
|||
builder.flushCacheRequired(ms.isFlushCacheRequired()); |
|||
builder.useCache(ms.isUseCache()); |
|||
|
|||
return builder.build(); |
|||
} |
|||
|
|||
|
|||
// 定义一个内部辅助类,作用是包装sq
|
|||
class BoundSqlSqlSource implements SqlSource { |
|||
private BoundSql boundSql; |
|||
public BoundSqlSqlSource(BoundSql boundSql) { |
|||
this.boundSql = boundSql; |
|||
} |
|||
@Override |
|||
public BoundSql getBoundSql(Object parameterObject) { |
|||
return boundSql; |
|||
} |
|||
} |
|||
|
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.FormBasic; |
|||
import com.ccsens.form.bean.po.FormBasicExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FormBasicMapper { |
|||
long countByExample(FormBasicExample example); |
|||
|
|||
int deleteByExample(FormBasicExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FormBasic record); |
|||
|
|||
int insertSelective(FormBasic record); |
|||
|
|||
List<FormBasic> selectByExample(FormBasicExample example); |
|||
|
|||
FormBasic selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FormBasic record, @Param("example") FormBasicExample example); |
|||
|
|||
int updateByExample(@Param("record") FormBasic record, @Param("example") FormBasicExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FormBasic record); |
|||
|
|||
int updateByPrimaryKey(FormBasic record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.FormModuleConfig; |
|||
import com.ccsens.form.bean.po.FormModuleConfigExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FormModuleConfigMapper { |
|||
long countByExample(FormModuleConfigExample example); |
|||
|
|||
int deleteByExample(FormModuleConfigExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FormModuleConfig record); |
|||
|
|||
int insertSelective(FormModuleConfig record); |
|||
|
|||
List<FormModuleConfig> selectByExample(FormModuleConfigExample example); |
|||
|
|||
FormModuleConfig selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FormModuleConfig record, @Param("example") FormModuleConfigExample example); |
|||
|
|||
int updateByExample(@Param("record") FormModuleConfig record, @Param("example") FormModuleConfigExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FormModuleConfig record); |
|||
|
|||
int updateByPrimaryKey(FormModuleConfig record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.FormModuleConfigOption; |
|||
import com.ccsens.form.bean.po.FormModuleConfigOptionExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FormModuleConfigOptionMapper { |
|||
long countByExample(FormModuleConfigOptionExample example); |
|||
|
|||
int deleteByExample(FormModuleConfigOptionExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FormModuleConfigOption record); |
|||
|
|||
int insertSelective(FormModuleConfigOption record); |
|||
|
|||
List<FormModuleConfigOption> selectByExample(FormModuleConfigOptionExample example); |
|||
|
|||
FormModuleConfigOption selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FormModuleConfigOption record, @Param("example") FormModuleConfigOptionExample example); |
|||
|
|||
int updateByExample(@Param("record") FormModuleConfigOption record, @Param("example") FormModuleConfigOptionExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FormModuleConfigOption record); |
|||
|
|||
int updateByPrimaryKey(FormModuleConfigOption record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.FormModule; |
|||
import com.ccsens.form.bean.po.FormModuleExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FormModuleMapper { |
|||
long countByExample(FormModuleExample example); |
|||
|
|||
int deleteByExample(FormModuleExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FormModule record); |
|||
|
|||
int insertSelective(FormModule record); |
|||
|
|||
List<FormModule> selectByExample(FormModuleExample example); |
|||
|
|||
FormModule selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FormModule record, @Param("example") FormModuleExample example); |
|||
|
|||
int updateByExample(@Param("record") FormModule record, @Param("example") FormModuleExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FormModule record); |
|||
|
|||
int updateByPrimaryKey(FormModule record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.FormUser; |
|||
import com.ccsens.form.bean.po.FormUserExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FormUserMapper { |
|||
long countByExample(FormUserExample example); |
|||
|
|||
int deleteByExample(FormUserExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FormUser record); |
|||
|
|||
int insertSelective(FormUser record); |
|||
|
|||
List<FormUser> selectByExample(FormUserExample example); |
|||
|
|||
FormUser selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FormUser record, @Param("example") FormUserExample example); |
|||
|
|||
int updateByExample(@Param("record") FormUser record, @Param("example") FormUserExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FormUser record); |
|||
|
|||
int updateByPrimaryKey(FormUser record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.FormWrite; |
|||
import com.ccsens.form.bean.po.FormWriteExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface FormWriteMapper { |
|||
long countByExample(FormWriteExample example); |
|||
|
|||
int deleteByExample(FormWriteExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(FormWrite record); |
|||
|
|||
int insertSelective(FormWrite record); |
|||
|
|||
List<FormWrite> selectByExample(FormWriteExample example); |
|||
|
|||
FormWrite selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") FormWrite record, @Param("example") FormWriteExample example); |
|||
|
|||
int updateByExample(@Param("record") FormWrite record, @Param("example") FormWriteExample example); |
|||
|
|||
int updateByPrimaryKeySelective(FormWrite record); |
|||
|
|||
int updateByPrimaryKey(FormWrite record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.ModuleConfig; |
|||
import com.ccsens.form.bean.po.ModuleConfigExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ModuleConfigMapper { |
|||
long countByExample(ModuleConfigExample example); |
|||
|
|||
int deleteByExample(ModuleConfigExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(ModuleConfig record); |
|||
|
|||
int insertSelective(ModuleConfig record); |
|||
|
|||
List<ModuleConfig> selectByExample(ModuleConfigExample example); |
|||
|
|||
ModuleConfig selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") ModuleConfig record, @Param("example") ModuleConfigExample example); |
|||
|
|||
int updateByExample(@Param("record") ModuleConfig record, @Param("example") ModuleConfigExample example); |
|||
|
|||
int updateByPrimaryKeySelective(ModuleConfig record); |
|||
|
|||
int updateByPrimaryKey(ModuleConfig record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.form.persist.mapper; |
|||
|
|||
import com.ccsens.form.bean.po.Module; |
|||
import com.ccsens.form.bean.po.ModuleExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface ModuleMapper { |
|||
long countByExample(ModuleExample example); |
|||
|
|||
int deleteByExample(ModuleExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(Module record); |
|||
|
|||
int insertSelective(Module record); |
|||
|
|||
List<Module> selectByExample(ModuleExample example); |
|||
|
|||
Module selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") Module record, @Param("example") ModuleExample example); |
|||
|
|||
int updateByExample(@Param("record") Module record, @Param("example") ModuleExample example); |
|||
|
|||
int updateByPrimaryKeySelective(Module record); |
|||
|
|||
int updateByPrimaryKey(Module record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
logging: |
|||
level: |
|||
com: |
|||
favorites: DEBUG |
|||
org: |
|||
hibernate: ERROR |
|||
springframework: |
|||
web: DEBUG |
|||
mybatis: |
|||
config-location: classpath:mybatis/mybatis-config.xml |
|||
mapper-locations: classpath*:mapper_*/*.xml |
|||
type-aliases-package: com.ccsens.mtpro.bean |
|||
#server: |
|||
# tomcat: |
|||
# uri-encoding: UTF-8 |
|||
spring: |
|||
http: |
|||
encoding: |
|||
charset: UTF-8 |
|||
enabled: true |
|||
force: true |
|||
log-request-details: true |
|||
servlet: |
|||
multipart: |
|||
max-file-size: 10MB |
|||
max-request-size: 100MB |
|||
snowflake: |
|||
datacenterId: 2 |
|||
workerId: 2 |
|||
|
@ -0,0 +1,38 @@ |
|||
server: |
|||
port: 7130 |
|||
servlet: |
|||
context-path: |
|||
spring: |
|||
application: |
|||
name: wisdomcar |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
rabbitmq: |
|||
# host: 192.144.182.42 |
|||
# host: test.tall.wiki |
|||
host: 192.168.0.99 |
|||
password: 111111 |
|||
port: 5672 |
|||
username: admin |
|||
redis: |
|||
database: 0 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1ms |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000ms |
|||
swagger: |
|||
enable: true |
|||
file: |
|||
path: /home/cloud/form/uploads/ |
|||
signUpUrl: https://test.tall.wiki/compete/ |
|||
domain: https://test.tall.wiki/gateway/form/ |
|||
imgDomain: https://test.tall.wiki/gateway/form/uploads/ |
|||
#gameMqName: game_status_wisdom |
|||
logging: |
|||
path: |
@ -0,0 +1,39 @@ |
|||
server: |
|||
port: 7130 |
|||
servlet: |
|||
context-path: |
|||
spring: |
|||
application: |
|||
name: form |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
rabbitmq: |
|||
host: 127.0.0.1 |
|||
password: 111111 |
|||
port: 5672 |
|||
username: admin |
|||
redis: |
|||
database: 0 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1ms |
|||
min-idle: 0 |
|||
# password: '' |
|||
password: 'areowqr!@43ef' |
|||
port: 6379 |
|||
timeout: 1000ms |
|||
swagger: |
|||
enable: true |
|||
eureka: |
|||
instance: |
|||
ip-address: 192.144.182.42 |
|||
|
|||
gatewayUrl: https://www.tall.wiki/gateway/ |
|||
notGatewayUrl: https://www.tall.wiki/ |
|||
file: |
|||
path: /home/cloud/form/uploads/ |
|||
domain: https://www.tall.wiki/gateway/form/ |
|||
imgDomain: https://www.tall.wiki/gateway/form/uploads/ |
@ -0,0 +1,35 @@ |
|||
server: |
|||
port: 7130 |
|||
servlet: |
|||
context-path: |
|||
spring: |
|||
application: |
|||
name: form |
|||
datasource: |
|||
type: com.alibaba.druid.pool.DruidDataSource |
|||
rabbitmq: |
|||
host: 127.0.0.1 |
|||
password: 111111 |
|||
port: 5672 |
|||
username: admin |
|||
redis: |
|||
database: 0 |
|||
host: 127.0.0.1 |
|||
jedis: |
|||
pool: |
|||
max-active: 200 |
|||
max-idle: 10 |
|||
max-wait: -1ms |
|||
min-idle: 0 |
|||
password: '' |
|||
port: 6379 |
|||
timeout: 1000ms |
|||
swagger: |
|||
enable: true |
|||
eureka: |
|||
instance: |
|||
ip-address: 192.168.0.99 |
|||
file: |
|||
path: /home/cloud/form/uploads/ |
|||
domain: https://test.tall.wiki/gateway/form/ |
|||
imgDomain: https://test.tall.wiki/gateway/form/uploads/ |
@ -0,0 +1,6 @@ |
|||
spring: |
|||
profiles: |
|||
active: dev |
|||
include: common, util-dev |
|||
|
|||
|
@ -0,0 +1,36 @@ |
|||
spring: |
|||
datasource: |
|||
druid: |
|||
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
|||
driverClassName: com.mysql.cj.jdbc.Driver |
|||
dynamicUrl: jdbc:mysql://localhost:3306/${schema} |
|||
filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' |
|||
filterName: druidFilter |
|||
filterProfileEnable: true |
|||
filterUrlPattern: /* |
|||
filters: stat,wall |
|||
initialSize: 5 |
|||
maxActive: 20 |
|||
maxPoolPreparedStatementPerConnectionSize: 20 |
|||
maxWait: 60000 |
|||
minEvictableIdleTimeMillis: 300000 |
|||
minIdle: 5 |
|||
# password: 37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9 |
|||
password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 |
|||
poolPreparedStatements: true |
|||
servletLogSlowSql: true |
|||
servletLoginPassword: 111111 |
|||
servletLoginUsername: druid |
|||
servletName: druidServlet |
|||
servletResetEnable: true |
|||
servletUrlMapping: /druid/* |
|||
testOnBorrow: false |
|||
testOnReturn: false |
|||
testWhileIdle: true |
|||
timeBetweenEvictionRunsMillis: 60000 |
|||
url: jdbc:mysql://49.233.89.188:3306/form?useUnicode=true&characterEncoding=UTF-8 |
|||
# url: jdbc:mysql://127.0.0.1/mt?useUnicode=true&characterEncoding=UTF-8 |
|||
username: root |
|||
validationQuery: SELECT 1 FROM DUAL |
|||
# env: CCSENS_GAME |
|||
env: CCSENS_TALL |
@ -0,0 +1,33 @@ |
|||
spring: |
|||
datasource: |
|||
druid: |
|||
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
|||
driverClassName: com.mysql.cj.jdbc.Driver |
|||
dynamicUrl: jdbc:mysql://localhost:3306/${schema} |
|||
filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' |
|||
filterName: druidFilter |
|||
filterProfileEnable: true |
|||
filterUrlPattern: /* |
|||
filters: stat,wall |
|||
initialSize: 5 |
|||
maxActive: 20 |
|||
maxPoolPreparedStatementPerConnectionSize: 20 |
|||
maxWait: 60000 |
|||
minEvictableIdleTimeMillis: 300000 |
|||
minIdle: 5 |
|||
password: |
|||
poolPreparedStatements: true |
|||
servletLogSlowSql: true |
|||
servletLoginPassword: 111111 |
|||
servletLoginUsername: druid |
|||
servletName: druidServlet |
|||
servletResetEnable: true |
|||
servletUrlMapping: /druid/* |
|||
testOnBorrow: false |
|||
testOnReturn: false |
|||
testWhileIdle: true |
|||
timeBetweenEvictionRunsMillis: 60000 |
|||
url: jdbc:mysql://127.0.0.1/form?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&autoReconnect=true |
|||
username: root |
|||
validationQuery: SELECT 1 FROM DUAL |
|||
env: CCSENS_GAME |
@ -0,0 +1,33 @@ |
|||
spring: |
|||
datasource: |
|||
druid: |
|||
connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 |
|||
driverClassName: com.mysql.cj.jdbc.Driver |
|||
dynamicUrl: jdbc:mysql://localhost:3306/${schema} |
|||
filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' |
|||
filterName: druidFilter |
|||
filterProfileEnable: true |
|||
filterUrlPattern: /* |
|||
filters: stat,wall |
|||
initialSize: 5 |
|||
maxActive: 20 |
|||
maxPoolPreparedStatementPerConnectionSize: 20 |
|||
maxWait: 60000 |
|||
minEvictableIdleTimeMillis: 300000 |
|||
minIdle: 5 |
|||
password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 |
|||
poolPreparedStatements: true |
|||
servletLogSlowSql: true |
|||
servletLoginPassword: 111111 |
|||
servletLoginUsername: druid |
|||
servletName: druidServlet |
|||
servletResetEnable: true |
|||
servletUrlMapping: /druid/* |
|||
testOnBorrow: false |
|||
testOnReturn: false |
|||
testWhileIdle: true |
|||
timeBetweenEvictionRunsMillis: 60000 |
|||
url: jdbc:mysql://test.tall.wiki/form?useUnicode=true&characterEncoding=UTF-8 |
|||
username: root |
|||
validationQuery: SELECT 1 FROM DUAL |
|||
env: CCSENS_TALL |
@ -0,0 +1,196 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<!-- 日志级别从低到高分为TRACE < DEBUG < INFO < WARN < ERROR < FATAL,如果设置为WARN,则低于WARN的信息都不会输出 --> |
|||
<!-- scan:当此属性设置为true时,配置文件如果发生改变,将会被重新加载,默认值为true --> |
|||
<!-- scanPeriod:设置监测配置文件是否有修改的时间间隔,如果没有给出时间单位,默认单位是毫秒。当scan为true时,此属性生效。默认的时间间隔为1分钟。 --> |
|||
<!-- debug:当此属性设置为true时,将打印出logback内部日志信息,实时查看logback运行状态。默认值为false。 --> |
|||
<configuration scan="true" scanPeriod="10 seconds"> |
|||
|
|||
<!--<include resource="org/springframework/boot/logging/logback/base.xml" />--> |
|||
|
|||
<contextName>logback</contextName> |
|||
<!-- name的值是变量的名称,value的值时变量定义的值。通过定义的值会被插入到logger上下文中。定义变量后,可以使“${}”来使用变量。 --> |
|||
<property name="log.path" value="/home/cloud/form/log/" /> |
|||
|
|||
<!-- 彩色日志 --> |
|||
<!-- 彩色日志依赖的渲染类 --> |
|||
<conversionRule conversionWord="clr" converterClass="org.springframework.boot.logging.logback.ColorConverter" /> |
|||
<conversionRule conversionWord="wex" converterClass="org.springframework.boot.logging.logback.WhitespaceThrowableProxyConverter" /> |
|||
<conversionRule conversionWord="wEx" converterClass="org.springframework.boot.logging.logback.ExtendedWhitespaceThrowableProxyConverter" /> |
|||
<!-- 彩色日志格式 --> |
|||
<property name="CONSOLE_LOG_PATTERN" value="${CONSOLE_LOG_PATTERN:-%clr(%d{yyyy-MM-dd HH:mm:ss.SSS}){faint} %clr(${LOG_LEVEL_PATTERN:-%5p}) %clr(${PID:- }){magenta} %clr(---){faint} %clr([%15.15t]){faint} %clr(%-40.40logger{39}){cyan} %clr(:){faint} %m%n${LOG_EXCEPTION_CONVERSION_WORD:-%wEx}}"/> |
|||
|
|||
|
|||
<!--输出到控制台--> |
|||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> |
|||
<!--此日志appender是为开发使用,只配置最底级别,控制台输出的日志级别是大于或等于此级别的日志信息--> |
|||
<filter class="ch.qos.logback.classic.filter.ThresholdFilter"> |
|||
<level>info</level> |
|||
</filter> |
|||
<encoder> |
|||
<Pattern>${CONSOLE_LOG_PATTERN}</Pattern> |
|||
<!-- 设置字符集 --> |
|||
<charset>UTF-8</charset> |
|||
</encoder> |
|||
</appender> |
|||
|
|||
|
|||
<!--输出到文件--> |
|||
|
|||
<!-- 时间滚动输出 level为 DEBUG 日志 --> |
|||
<appender name="DEBUG_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<!-- 正在记录的日志文件的路径及文件名 --> |
|||
<file>${log.path}/log_debug.log</file> |
|||
<!--日志文件输出格式--> |
|||
<encoder> |
|||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> |
|||
<charset>UTF-8</charset> <!-- 设置字符集 --> |
|||
</encoder> |
|||
<!-- 日志记录器的滚动策略,按日期,按大小记录 --> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|||
<!-- 日志归档 --> |
|||
<fileNamePattern>${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
|||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
|||
<maxFileSize>100MB</maxFileSize> |
|||
</timeBasedFileNamingAndTriggeringPolicy> |
|||
<!--日志文件保留天数--> |
|||
<maxHistory>15</maxHistory> |
|||
</rollingPolicy> |
|||
<!-- 此日志文件只记录debug级别的 --> |
|||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> |
|||
<level>debug</level> |
|||
<onMatch>ACCEPT</onMatch> |
|||
<onMismatch>DENY</onMismatch> |
|||
</filter> |
|||
</appender> |
|||
|
|||
<!-- 时间滚动输出 level为 INFO 日志 --> |
|||
<appender name="INFO_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<!-- 正在记录的日志文件的路径及文件名 --> |
|||
<file>${log.path}/log_info.log</file> |
|||
<!--日志文件输出格式--> |
|||
<encoder> |
|||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> |
|||
<charset>UTF-8</charset> |
|||
</encoder> |
|||
<!-- 日志记录器的滚动策略,按日期,按大小记录 --> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|||
<!-- 每天日志归档路径以及格式 --> |
|||
<fileNamePattern>${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
|||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
|||
<maxFileSize>100MB</maxFileSize> |
|||
</timeBasedFileNamingAndTriggeringPolicy> |
|||
<!--日志文件保留天数--> |
|||
<maxHistory>15</maxHistory> |
|||
</rollingPolicy> |
|||
<!-- 此日志文件只记录info级别的 --> |
|||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> |
|||
<level>info</level> |
|||
<onMatch>ACCEPT</onMatch> |
|||
<onMismatch>DENY</onMismatch> |
|||
</filter> |
|||
</appender> |
|||
|
|||
<!-- 时间滚动输出 level为 WARN 日志 --> |
|||
<appender name="WARN_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<!-- 正在记录的日志文件的路径及文件名 --> |
|||
<file>${log.path}/log_warn.log</file> |
|||
<!--日志文件输出格式--> |
|||
<encoder> |
|||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> |
|||
<charset>UTF-8</charset> <!-- 此处设置字符集 --> |
|||
</encoder> |
|||
<!-- 日志记录器的滚动策略,按日期,按大小记录 --> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|||
<fileNamePattern>${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
|||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
|||
<maxFileSize>100MB</maxFileSize> |
|||
</timeBasedFileNamingAndTriggeringPolicy> |
|||
<!--日志文件保留天数--> |
|||
<maxHistory>15</maxHistory> |
|||
</rollingPolicy> |
|||
<!-- 此日志文件只记录warn级别的 --> |
|||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> |
|||
<level>warn</level> |
|||
<onMatch>ACCEPT</onMatch> |
|||
<onMismatch>DENY</onMismatch> |
|||
</filter> |
|||
</appender> |
|||
|
|||
|
|||
<!-- 时间滚动输出 level为 ERROR 日志 --> |
|||
<appender name="ERROR_FILE" class="ch.qos.logback.core.rolling.RollingFileAppender"> |
|||
<!-- 正在记录的日志文件的路径及文件名 --> |
|||
<file>${log.path}/log_error.log</file> |
|||
<!--日志文件输出格式--> |
|||
<encoder> |
|||
<pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> |
|||
<charset>UTF-8</charset> <!-- 此处设置字符集 --> |
|||
</encoder> |
|||
<!-- 日志记录器的滚动策略,按日期,按大小记录 --> |
|||
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> |
|||
<fileNamePattern>${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log</fileNamePattern> |
|||
<timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> |
|||
<maxFileSize>100MB</maxFileSize> |
|||
</timeBasedFileNamingAndTriggeringPolicy> |
|||
<!--日志文件保留天数--> |
|||
<maxHistory>15</maxHistory> |
|||
</rollingPolicy> |
|||
<!-- 此日志文件只记录ERROR级别的 --> |
|||
<filter class="ch.qos.logback.classic.filter.LevelFilter"> |
|||
<level>ERROR</level> |
|||
<onMatch>ACCEPT</onMatch> |
|||
<onMismatch>DENY</onMismatch> |
|||
</filter> |
|||
</appender> |
|||
|
|||
<!-- |
|||
<logger>用来设置某一个包或者具体的某一个类的日志打印级别、 |
|||
以及指定<appender>。<logger>仅有一个name属性, |
|||
一个可选的level和一个可选的addtivity属性。 |
|||
name:用来指定受此logger约束的某一个包或者具体的某一个类。 |
|||
level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, |
|||
还有一个特俗值INHERITED或者同义词NULL,代表强制执行上级的级别。 |
|||
如果未设置此属性,那么当前logger将会继承上级的级别。 |
|||
addtivity:是否向上级logger传递打印信息。默认是true。 |
|||
--> |
|||
<!--<logger name="org.springframework.web" level="info"/>--> |
|||
<!--<logger name="org.springframework.scheduling.annotation.ScheduledAnnotationBeanPostProcessor" level="INFO"/>--> |
|||
<!-- |
|||
使用mybatis的时候,sql语句是debug下才会打印,而这里我们只配置了info,所以想要查看sql语句的话,有以下两种操作: |
|||
第一种把<root level="info">改成<root level="DEBUG">这样就会打印sql,不过这样日志那边会出现很多其他消息 |
|||
第二种就是单独给dao下目录配置debug模式,代码如下,这样配置sql语句会打印,其他还是正常info级别: |
|||
--> |
|||
|
|||
|
|||
<!-- |
|||
root节点是必选节点,用来指定最基础的日志输出级别,只有一个level属性 |
|||
level:用来设置打印级别,大小写无关:TRACE, DEBUG, INFO, WARN, ERROR, ALL 和 OFF, |
|||
不能设置为INHERITED或者同义词NULL。默认是DEBUG |
|||
可以包含零个或多个元素,标识这个appender将会添加到这个logger。 |
|||
--> |
|||
|
|||
<!--开发环境:打印控制台--> |
|||
<springProfile name="dev"> |
|||
<logger name="com.ccsens.ptpro.persist.*" level="debug"/> |
|||
</springProfile> |
|||
|
|||
<root level="info"> |
|||
<appender-ref ref="CONSOLE" /> |
|||
<appender-ref ref="DEBUG_FILE" /> |
|||
<appender-ref ref="INFO_FILE" /> |
|||
<appender-ref ref="WARN_FILE" /> |
|||
<appender-ref ref="ERROR_FILE" /> |
|||
</root> |
|||
|
|||
<!--生产环境:输出到文件--> |
|||
<!--<springProfile name="pro">--> |
|||
<!--<root level="info">--> |
|||
<!--<appender-ref ref="CONSOLE" />--> |
|||
<!--<appender-ref ref="DEBUG_FILE" />--> |
|||
<!--<appender-ref ref="INFO_FILE" />--> |
|||
<!--<appender-ref ref="ERROR_FILE" />--> |
|||
<!--<appender-ref ref="WARN_FILE" />--> |
|||
<!--</root>--> |
|||
<!--</springProfile>--> |
|||
|
|||
</configuration> |
@ -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.form.persist.mapper.FormBasicMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormBasic"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="title" jdbcType="VARCHAR" property="title" /> |
|||
<result column="description" jdbcType="VARCHAR" property="description" /> |
|||
<result column="cover_image" jdbcType="VARCHAR" property="coverImage" /> |
|||
<result column="access_path" jdbcType="VARCHAR" property="accessPath" /> |
|||
<result column="qrcode_path" jdbcType="VARCHAR" property="qrcodePath" /> |
|||
<result column="submit_status" jdbcType="TINYINT" property="submitStatus" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, title, description, cover_image, access_path, qrcode_path, submit_status, user_id, |
|||
operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormBasicExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_form_basic |
|||
<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_form_basic |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_form_basic |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormBasicExample"> |
|||
delete from t_form_basic |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormBasic"> |
|||
insert into t_form_basic (id, title, description, |
|||
cover_image, access_path, qrcode_path, |
|||
submit_status, user_id, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, |
|||
#{coverImage,jdbcType=VARCHAR}, #{accessPath,jdbcType=VARCHAR}, #{qrcodePath,jdbcType=VARCHAR}, |
|||
#{submitStatus,jdbcType=TINYINT}, #{userId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormBasic"> |
|||
insert into t_form_basic |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="title != null"> |
|||
title, |
|||
</if> |
|||
<if test="description != null"> |
|||
description, |
|||
</if> |
|||
<if test="coverImage != null"> |
|||
cover_image, |
|||
</if> |
|||
<if test="accessPath != null"> |
|||
access_path, |
|||
</if> |
|||
<if test="qrcodePath != null"> |
|||
qrcode_path, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
submit_status, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="title != null"> |
|||
#{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="description != null"> |
|||
#{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="coverImage != null"> |
|||
#{coverImage,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="accessPath != null"> |
|||
#{accessPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="qrcodePath != null"> |
|||
#{qrcodePath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
#{submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormBasicExample" resultType="java.lang.Long"> |
|||
select count(*) from t_form_basic |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_form_basic |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.title != null"> |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.description != null"> |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.coverImage != null"> |
|||
cover_image = #{record.coverImage,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.accessPath != null"> |
|||
access_path = #{record.accessPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.qrcodePath != null"> |
|||
qrcode_path = #{record.qrcodePath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.submitStatus != null"> |
|||
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_form_basic |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
title = #{record.title,jdbcType=VARCHAR}, |
|||
description = #{record.description,jdbcType=VARCHAR}, |
|||
cover_image = #{record.coverImage,jdbcType=VARCHAR}, |
|||
access_path = #{record.accessPath,jdbcType=VARCHAR}, |
|||
qrcode_path = #{record.qrcodePath,jdbcType=VARCHAR}, |
|||
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.FormBasic"> |
|||
update t_form_basic |
|||
<set> |
|||
<if test="title != null"> |
|||
title = #{title,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="description != null"> |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="coverImage != null"> |
|||
cover_image = #{coverImage,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="accessPath != null"> |
|||
access_path = #{accessPath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="qrcodePath != null"> |
|||
qrcode_path = #{qrcodePath,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormBasic"> |
|||
update t_form_basic |
|||
set title = #{title,jdbcType=VARCHAR}, |
|||
description = #{description,jdbcType=VARCHAR}, |
|||
cover_image = #{coverImage,jdbcType=VARCHAR}, |
|||
access_path = #{accessPath,jdbcType=VARCHAR}, |
|||
qrcode_path = #{qrcodePath,jdbcType=VARCHAR}, |
|||
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,276 @@ |
|||
<?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.form.persist.mapper.FormModuleConfigMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormModuleConfig"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="form_module_id" jdbcType="BIGINT" property="formModuleId" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="config_key" jdbcType="VARCHAR" property="configKey" /> |
|||
<result column="config_value" jdbcType="VARCHAR" property="configValue" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, form_module_id, type, config_key, config_value, operator, created_at, updated_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_form_module_config |
|||
<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_form_module_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_form_module_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigExample"> |
|||
delete from t_form_module_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormModuleConfig"> |
|||
insert into t_form_module_config (id, form_module_id, type, |
|||
config_key, config_value, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{formModuleId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, |
|||
#{configKey,jdbcType=VARCHAR}, #{configValue,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormModuleConfig"> |
|||
insert into t_form_module_config |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="formModuleId != null"> |
|||
form_module_id, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="configKey != null"> |
|||
config_key, |
|||
</if> |
|||
<if test="configValue != null"> |
|||
config_value, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="formModuleId != null"> |
|||
#{formModuleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="configKey != null"> |
|||
#{configKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="configValue != null"> |
|||
#{configValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormModuleConfigExample" resultType="java.lang.Long"> |
|||
select count(*) from t_form_module_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_form_module_config |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.formModuleId != null"> |
|||
form_module_id = #{record.formModuleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.configKey != null"> |
|||
config_key = #{record.configKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.configValue != null"> |
|||
config_value = #{record.configValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_form_module_config |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
form_module_id = #{record.formModuleId,jdbcType=BIGINT}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
config_key = #{record.configKey,jdbcType=VARCHAR}, |
|||
config_value = #{record.configValue,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.FormModuleConfig"> |
|||
update t_form_module_config |
|||
<set> |
|||
<if test="formModuleId != null"> |
|||
form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="configKey != null"> |
|||
config_key = #{configKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="configValue != null"> |
|||
config_value = #{configValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormModuleConfig"> |
|||
update t_form_module_config |
|||
set form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
config_key = #{configKey,jdbcType=VARCHAR}, |
|||
config_value = #{configValue,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,291 @@ |
|||
<?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.form.persist.mapper.FormModuleConfigOptionMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="form_module_config_id" jdbcType="BIGINT" property="formModuleConfigId" /> |
|||
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
|||
<result column="option_key" jdbcType="VARCHAR" property="optionKey" /> |
|||
<result column="option_value" jdbcType="VARCHAR" property="optionValue" /> |
|||
<result column="sequence" jdbcType="INTEGER" property="sequence" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, form_module_config_id, parent_id, option_key, option_value, sequence, operator, |
|||
created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigOptionExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_form_module_config_option |
|||
<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_form_module_config_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_form_module_config_option |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormModuleConfigOptionExample"> |
|||
delete from t_form_module_config_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|||
insert into t_form_module_config_option (id, form_module_config_id, parent_id, |
|||
option_key, option_value, sequence, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{formModuleConfigId,jdbcType=BIGINT}, #{parentId,jdbcType=BIGINT}, |
|||
#{optionKey,jdbcType=VARCHAR}, #{optionValue,jdbcType=VARCHAR}, #{sequence,jdbcType=INTEGER}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormModuleConfigOption"> |
|||
insert into t_form_module_config_option |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="formModuleConfigId != null"> |
|||
form_module_config_id, |
|||
</if> |
|||
<if test="parentId != null"> |
|||
parent_id, |
|||
</if> |
|||
<if test="optionKey != null"> |
|||
option_key, |
|||
</if> |
|||
<if test="optionValue != null"> |
|||
option_value, |
|||
</if> |
|||
<if test="sequence != null"> |
|||
sequence, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="formModuleConfigId != null"> |
|||
#{formModuleConfigId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="parentId != null"> |
|||
#{parentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionKey != null"> |
|||
#{optionKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionValue != null"> |
|||
#{optionValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sequence != null"> |
|||
#{sequence,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormModuleConfigOptionExample" resultType="java.lang.Long"> |
|||
select count(*) from t_form_module_config_option |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_form_module_config_option |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.formModuleConfigId != null"> |
|||
form_module_config_id = #{record.formModuleConfigId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.parentId != null"> |
|||
parent_id = #{record.parentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.optionKey != null"> |
|||
option_key = #{record.optionKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.optionValue != null"> |
|||
option_value = #{record.optionValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.sequence != null"> |
|||
sequence = #{record.sequence,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_form_module_config_option |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
form_module_config_id = #{record.formModuleConfigId,jdbcType=BIGINT}, |
|||
parent_id = #{record.parentId,jdbcType=BIGINT}, |
|||
option_key = #{record.optionKey,jdbcType=VARCHAR}, |
|||
option_value = #{record.optionValue,jdbcType=VARCHAR}, |
|||
sequence = #{record.sequence,jdbcType=INTEGER}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.FormModuleConfigOption"> |
|||
update t_form_module_config_option |
|||
<set> |
|||
<if test="formModuleConfigId != null"> |
|||
form_module_config_id = #{formModuleConfigId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="parentId != null"> |
|||
parent_id = #{parentId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="optionKey != null"> |
|||
option_key = #{optionKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="optionValue != null"> |
|||
option_value = #{optionValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="sequence != null"> |
|||
sequence = #{sequence,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormModuleConfigOption"> |
|||
update t_form_module_config_option |
|||
set form_module_config_id = #{formModuleConfigId,jdbcType=BIGINT}, |
|||
parent_id = #{parentId,jdbcType=BIGINT}, |
|||
option_key = #{optionKey,jdbcType=VARCHAR}, |
|||
option_value = #{optionValue,jdbcType=VARCHAR}, |
|||
sequence = #{sequence,jdbcType=INTEGER}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,258 @@ |
|||
<?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.form.persist.mapper.FormModuleMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormModule"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="form_id" jdbcType="BIGINT" property="formId" /> |
|||
<result column="module_id" jdbcType="BIGINT" property="moduleId" /> |
|||
<result column="sequence" jdbcType="INTEGER" property="sequence" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, form_id, module_id, sequence, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormModuleExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_form_module |
|||
<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_form_module |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_form_module |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormModuleExample"> |
|||
delete from t_form_module |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormModule"> |
|||
insert into t_form_module (id, form_id, module_id, |
|||
sequence, operator, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{formId,jdbcType=BIGINT}, #{moduleId,jdbcType=BIGINT}, |
|||
#{sequence,jdbcType=INTEGER}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormModule"> |
|||
insert into t_form_module |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="formId != null"> |
|||
form_id, |
|||
</if> |
|||
<if test="moduleId != null"> |
|||
module_id, |
|||
</if> |
|||
<if test="sequence != null"> |
|||
sequence, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="formId != null"> |
|||
#{formId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="moduleId != null"> |
|||
#{moduleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sequence != null"> |
|||
#{sequence,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormModuleExample" resultType="java.lang.Long"> |
|||
select count(*) from t_form_module |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_form_module |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.formId != null"> |
|||
form_id = #{record.formId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.moduleId != null"> |
|||
module_id = #{record.moduleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.sequence != null"> |
|||
sequence = #{record.sequence,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_form_module |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
form_id = #{record.formId,jdbcType=BIGINT}, |
|||
module_id = #{record.moduleId,jdbcType=BIGINT}, |
|||
sequence = #{record.sequence,jdbcType=INTEGER}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.FormModule"> |
|||
update t_form_module |
|||
<set> |
|||
<if test="formId != null"> |
|||
form_id = #{formId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="moduleId != null"> |
|||
module_id = #{moduleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="sequence != null"> |
|||
sequence = #{sequence,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormModule"> |
|||
update t_form_module |
|||
set form_id = #{formId,jdbcType=BIGINT}, |
|||
module_id = #{moduleId,jdbcType=BIGINT}, |
|||
sequence = #{sequence,jdbcType=INTEGER}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,291 @@ |
|||
<?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.form.persist.mapper.FormUserMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormUser"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="form_id" jdbcType="BIGINT" property="formId" /> |
|||
<result column="user_id" jdbcType="BIGINT" property="userId" /> |
|||
<result column="user_name" jdbcType="VARCHAR" property="userName" /> |
|||
<result column="avatar_url" jdbcType="VARCHAR" property="avatarUrl" /> |
|||
<result column="submit_status" jdbcType="TINYINT" property="submitStatus" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, form_id, user_id, user_name, avatar_url, submit_status, operator, created_at, |
|||
updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormUserExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_form_user |
|||
<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_form_user |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_form_user |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormUserExample"> |
|||
delete from t_form_user |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormUser"> |
|||
insert into t_form_user (id, form_id, user_id, |
|||
user_name, avatar_url, submit_status, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{formId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, |
|||
#{userName,jdbcType=VARCHAR}, #{avatarUrl,jdbcType=VARCHAR}, #{submitStatus,jdbcType=TINYINT}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormUser"> |
|||
insert into t_form_user |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="formId != null"> |
|||
form_id, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id, |
|||
</if> |
|||
<if test="userName != null"> |
|||
user_name, |
|||
</if> |
|||
<if test="avatarUrl != null"> |
|||
avatar_url, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
submit_status, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="formId != null"> |
|||
#{formId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
#{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userName != null"> |
|||
#{userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="avatarUrl != null"> |
|||
#{avatarUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
#{submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormUserExample" resultType="java.lang.Long"> |
|||
select count(*) from t_form_user |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_form_user |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.formId != null"> |
|||
form_id = #{record.formId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userId != null"> |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.userName != null"> |
|||
user_name = #{record.userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.avatarUrl != null"> |
|||
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.submitStatus != null"> |
|||
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_form_user |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
form_id = #{record.formId,jdbcType=BIGINT}, |
|||
user_id = #{record.userId,jdbcType=BIGINT}, |
|||
user_name = #{record.userName,jdbcType=VARCHAR}, |
|||
avatar_url = #{record.avatarUrl,jdbcType=VARCHAR}, |
|||
submit_status = #{record.submitStatus,jdbcType=TINYINT}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.FormUser"> |
|||
update t_form_user |
|||
<set> |
|||
<if test="formId != null"> |
|||
form_id = #{formId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userId != null"> |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="userName != null"> |
|||
user_name = #{userName,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="avatarUrl != null"> |
|||
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="submitStatus != null"> |
|||
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormUser"> |
|||
update t_form_user |
|||
set form_id = #{formId,jdbcType=BIGINT}, |
|||
user_id = #{userId,jdbcType=BIGINT}, |
|||
user_name = #{userName,jdbcType=VARCHAR}, |
|||
avatar_url = #{avatarUrl,jdbcType=VARCHAR}, |
|||
submit_status = #{submitStatus,jdbcType=TINYINT}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,258 @@ |
|||
<?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.form.persist.mapper.FormWriteMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.FormWrite"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="form_user_id" jdbcType="BIGINT" property="formUserId" /> |
|||
<result column="form_module_id" jdbcType="BIGINT" property="formModuleId" /> |
|||
<result column="answer" jdbcType="VARCHAR" property="answer" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, form_user_id, form_module_id, answer, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.FormWriteExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_form_write |
|||
<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_form_write |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_form_write |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.FormWriteExample"> |
|||
delete from t_form_write |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.FormWrite"> |
|||
insert into t_form_write (id, form_user_id, form_module_id, |
|||
answer, operator, created_at, |
|||
updated_at, rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{formUserId,jdbcType=BIGINT}, #{formModuleId,jdbcType=BIGINT}, |
|||
#{answer,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|||
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.FormWrite"> |
|||
insert into t_form_write |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="formUserId != null"> |
|||
form_user_id, |
|||
</if> |
|||
<if test="formModuleId != null"> |
|||
form_module_id, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="formUserId != null"> |
|||
#{formUserId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="formModuleId != null"> |
|||
#{formModuleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
#{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormWriteExample" resultType="java.lang.Long"> |
|||
select count(*) from t_form_write |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_form_write |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.formUserId != null"> |
|||
form_user_id = #{record.formUserId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.formModuleId != null"> |
|||
form_module_id = #{record.formModuleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.answer != null"> |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_form_write |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
form_user_id = #{record.formUserId,jdbcType=BIGINT}, |
|||
form_module_id = #{record.formModuleId,jdbcType=BIGINT}, |
|||
answer = #{record.answer,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.FormWrite"> |
|||
update t_form_write |
|||
<set> |
|||
<if test="formUserId != null"> |
|||
form_user_id = #{formUserId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="formModuleId != null"> |
|||
form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="answer != null"> |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.FormWrite"> |
|||
update t_form_write |
|||
set form_user_id = #{formUserId,jdbcType=BIGINT}, |
|||
form_module_id = #{formModuleId,jdbcType=BIGINT}, |
|||
answer = #{answer,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,276 @@ |
|||
<?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.form.persist.mapper.ModuleConfigMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.ModuleConfig"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="module_id" jdbcType="BIGINT" property="moduleId" /> |
|||
<result column="type" jdbcType="TINYINT" property="type" /> |
|||
<result column="config_key" jdbcType="VARCHAR" property="configKey" /> |
|||
<result column="config_value" jdbcType="VARCHAR" property="configValue" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, module_id, type, config_key, config_value, operator, created_at, updated_at, |
|||
rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.ModuleConfigExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_module_config |
|||
<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_module_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_module_config |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.ModuleConfigExample"> |
|||
delete from t_module_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.ModuleConfig"> |
|||
insert into t_module_config (id, module_id, type, |
|||
config_key, config_value, operator, |
|||
created_at, updated_at, rec_status |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{moduleId,jdbcType=BIGINT}, #{type,jdbcType=TINYINT}, |
|||
#{configKey,jdbcType=VARCHAR}, #{configValue,jdbcType=VARCHAR}, #{operator,jdbcType=BIGINT}, |
|||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.ModuleConfig"> |
|||
insert into t_module_config |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="moduleId != null"> |
|||
module_id, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="configKey != null"> |
|||
config_key, |
|||
</if> |
|||
<if test="configValue != null"> |
|||
config_value, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="moduleId != null"> |
|||
#{moduleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="type != null"> |
|||
#{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="configKey != null"> |
|||
#{configKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="configValue != null"> |
|||
#{configValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.ModuleConfigExample" resultType="java.lang.Long"> |
|||
select count(*) from t_module_config |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_module_config |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.moduleId != null"> |
|||
module_id = #{record.moduleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.configKey != null"> |
|||
config_key = #{record.configKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.configValue != null"> |
|||
config_value = #{record.configValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_module_config |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
module_id = #{record.moduleId,jdbcType=BIGINT}, |
|||
type = #{record.type,jdbcType=TINYINT}, |
|||
config_key = #{record.configKey,jdbcType=VARCHAR}, |
|||
config_value = #{record.configValue,jdbcType=VARCHAR}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.ModuleConfig"> |
|||
update t_module_config |
|||
<set> |
|||
<if test="moduleId != null"> |
|||
module_id = #{moduleId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="configKey != null"> |
|||
config_key = #{configKey,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="configValue != null"> |
|||
config_value = #{configValue,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.ModuleConfig"> |
|||
update t_module_config |
|||
set module_id = #{moduleId,jdbcType=BIGINT}, |
|||
type = #{type,jdbcType=TINYINT}, |
|||
config_key = #{configKey,jdbcType=VARCHAR}, |
|||
config_value = #{configValue,jdbcType=VARCHAR}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,290 @@ |
|||
<?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.form.persist.mapper.ModuleMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.form.bean.po.Module"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="type" jdbcType="VARCHAR" property="type" /> |
|||
<result column="logo" jdbcType="VARCHAR" property="logo" /> |
|||
<result column="name" jdbcType="VARCHAR" property="name" /> |
|||
<result column="option" jdbcType="TINYINT" property="option" /> |
|||
<result column="hierarchy" jdbcType="TINYINT" property="hierarchy" /> |
|||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
|||
<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, type, logo, name, option, hierarchy, operator, created_at, updated_at, rec_status |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.form.bean.po.ModuleExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_module |
|||
<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_module |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_module |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.form.bean.po.ModuleExample"> |
|||
delete from t_module |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.form.bean.po.Module"> |
|||
insert into t_module (id, type, logo, |
|||
name, option, hierarchy, |
|||
operator, created_at, updated_at, |
|||
rec_status) |
|||
values (#{id,jdbcType=BIGINT}, #{type,jdbcType=VARCHAR}, #{logo,jdbcType=VARCHAR}, |
|||
#{name,jdbcType=VARCHAR}, #{option,jdbcType=TINYINT}, #{hierarchy,jdbcType=TINYINT}, |
|||
#{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|||
#{recStatus,jdbcType=TINYINT}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.form.bean.po.Module"> |
|||
insert into t_module |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="type != null"> |
|||
type, |
|||
</if> |
|||
<if test="logo != null"> |
|||
logo, |
|||
</if> |
|||
<if test="name != null"> |
|||
name, |
|||
</if> |
|||
<if test="option != null"> |
|||
option, |
|||
</if> |
|||
<if test="hierarchy != null"> |
|||
hierarchy, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator, |
|||
</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="type != null"> |
|||
#{type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="logo != null"> |
|||
#{logo,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
#{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="option != null"> |
|||
#{option,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="hierarchy != null"> |
|||
#{hierarchy,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
#{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.ModuleExample" resultType="java.lang.Long"> |
|||
select count(*) from t_module |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_module |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.type != null"> |
|||
type = #{record.type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.logo != null"> |
|||
logo = #{record.logo,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.name != null"> |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.option != null"> |
|||
option = #{record.option,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.hierarchy != null"> |
|||
hierarchy = #{record.hierarchy,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.operator != null"> |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
</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_module |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
type = #{record.type,jdbcType=VARCHAR}, |
|||
logo = #{record.logo,jdbcType=VARCHAR}, |
|||
name = #{record.name,jdbcType=VARCHAR}, |
|||
option = #{record.option,jdbcType=TINYINT}, |
|||
hierarchy = #{record.hierarchy,jdbcType=TINYINT}, |
|||
operator = #{record.operator,jdbcType=BIGINT}, |
|||
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.form.bean.po.Module"> |
|||
update t_module |
|||
<set> |
|||
<if test="type != null"> |
|||
type = #{type,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="logo != null"> |
|||
logo = #{logo,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="name != null"> |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="option != null"> |
|||
option = #{option,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="hierarchy != null"> |
|||
hierarchy = #{hierarchy,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="operator != null"> |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
</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.form.bean.po.Module"> |
|||
update t_module |
|||
set type = #{type,jdbcType=VARCHAR}, |
|||
logo = #{logo,jdbcType=VARCHAR}, |
|||
name = #{name,jdbcType=VARCHAR}, |
|||
option = #{option,jdbcType=TINYINT}, |
|||
hierarchy = #{hierarchy,jdbcType=TINYINT}, |
|||
operator = #{operator,jdbcType=BIGINT}, |
|||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|||
rec_status = #{recStatus,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,62 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<!DOCTYPE configuration |
|||
PUBLIC "-//mybatis.org//DTD Config 3.0//EN" |
|||
"http://mybatis.org/dtd/mybatis-3-config.dtd"> |
|||
|
|||
<configuration> |
|||
<!-- 全局参数 --> |
|||
<settings> |
|||
<!-- 打印SQL语句 --> |
|||
<setting name="logImpl" value="STDOUT_LOGGING" /> |
|||
<!-- 使全局的映射器启用或禁用缓存。 --> |
|||
<setting name="cacheEnabled" value="true"/> |
|||
<!-- 全局启用或禁用延迟加载。当禁用时,所有关联对象都会即时加载。 --> |
|||
<setting name="lazyLoadingEnabled" value="true"/> |
|||
<!-- 当启用时,有延迟加载属性的对象在被调用时将会完全加载任意属性。否则,每种属性将会按需要加载。 --> |
|||
<setting name="aggressiveLazyLoading" value="true"/> |
|||
<!-- 是否允许单条sql 返回多个数据集 (取决于驱动的兼容性) default:true --> |
|||
<setting name="multipleResultSetsEnabled" value="true"/> |
|||
<!-- 是否可以使用列的别名 (取决于驱动的兼容性) default:true --> |
|||
<setting name="useColumnLabel" value="true"/> |
|||
<!-- 允许JDBC 生成主键。需要驱动器支持。如果设为了true,这个设置将强制使用被生成的主键,有一些驱动器不兼容不过仍然可以执行。 default:false --> |
|||
<setting name="useGeneratedKeys" value="true"/> |
|||
<!-- 指定 MyBatis 如何自动映射 数据基表的列 NONE:不隐射 PARTIAL:部分 FULL:全部 --> |
|||
<setting name="autoMappingBehavior" value="PARTIAL"/> |
|||
<!-- 这是默认的执行类型 (SIMPLE: 简单; REUSE: 执行器可能重复使用prepared statements语句;BATCH: 执行器可以重复执行语句和批量更新) --> |
|||
<setting name="defaultExecutorType" value="SIMPLE"/> |
|||
<!-- 使用驼峰命名法转换字段。 --> |
|||
<setting name="mapUnderscoreToCamelCase" value="true"/> |
|||
<!-- 设置本地缓存范围 session:就会有数据的共享 statement:语句范围 (这样就不会有数据的共享 ) defalut:session --> |
|||
<setting name="localCacheScope" value="SESSION"/> |
|||
<!-- 设置但JDBC类型为空时,某些驱动程序 要指定值,default:OTHER,插入空值时不需要指定类型 --> |
|||
<setting name="jdbcTypeForNull" value="NULL"/> |
|||
</settings> |
|||
|
|||
<typeAliases> |
|||
<typeAlias alias="Integer" type="java.lang.Integer" /> |
|||
<typeAlias alias="Long" type="java.lang.Long" /> |
|||
<typeAlias alias="HashMap" type="java.util.HashMap" /> |
|||
<typeAlias alias="LinkedHashMap" type="java.util.LinkedHashMap" /> |
|||
<typeAlias alias="ArrayList" type="java.util.ArrayList" /> |
|||
<typeAlias alias="LinkedList" type="java.util.LinkedList" /> |
|||
<typeAlias alias="String" type="java.lang.String" /> |
|||
</typeAliases> |
|||
|
|||
<plugins> |
|||
<!-- com.github.pagehelper为PageHelper类所在包名 --> |
|||
<plugin interceptor="com.github.pagehelper.PageHelper"> |
|||
<property name="dialect" value="mysql"/> |
|||
<!-- 该参数默认为false --> |
|||
<!-- 设置为true时,会将RowBounds第一个参数offset当成pageNum页码使用 --> |
|||
<!-- 和startPage中的pageNum效果一样--> |
|||
<property name="offsetAsPageNum" value="false"/> |
|||
<!-- 该参数默认为false --> |
|||
<!-- 设置为true时,使用RowBounds分页会进行count查询 --> |
|||
<property name="rowBoundsWithCount" value="false"/> |
|||
<property name="pageSizeZero" value="true"/> |
|||
<property name="reasonable" value="false"/> |
|||
<property name="supportMethodsArguments" value="false"/> |
|||
<property name="returnPageInfo" value="none"/> |
|||
</plugin> |
|||
</plugins> |
|||
</configuration> |
@ -0,0 +1,161 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientCanvas implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientReportId; |
|||
|
|||
private Long questionId; |
|||
|
|||
private Long beginTime; |
|||
|
|||
private Integer canvasWidth; |
|||
|
|||
private Integer canvasHeight; |
|||
|
|||
private String lineColor; |
|||
|
|||
private Integer lineWidth; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private Long openCanvasTime; |
|||
|
|||
private String beyondProportion; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientReportId() { |
|||
return patientReportId; |
|||
} |
|||
|
|||
public void setPatientReportId(Long patientReportId) { |
|||
this.patientReportId = patientReportId; |
|||
} |
|||
|
|||
public Long getQuestionId() { |
|||
return questionId; |
|||
} |
|||
|
|||
public void setQuestionId(Long questionId) { |
|||
this.questionId = questionId; |
|||
} |
|||
|
|||
public Long getBeginTime() { |
|||
return beginTime; |
|||
} |
|||
|
|||
public void setBeginTime(Long beginTime) { |
|||
this.beginTime = beginTime; |
|||
} |
|||
|
|||
public Integer getCanvasWidth() { |
|||
return canvasWidth; |
|||
} |
|||
|
|||
public void setCanvasWidth(Integer canvasWidth) { |
|||
this.canvasWidth = canvasWidth; |
|||
} |
|||
|
|||
public Integer getCanvasHeight() { |
|||
return canvasHeight; |
|||
} |
|||
|
|||
public void setCanvasHeight(Integer canvasHeight) { |
|||
this.canvasHeight = canvasHeight; |
|||
} |
|||
|
|||
public String getLineColor() { |
|||
return lineColor; |
|||
} |
|||
|
|||
public void setLineColor(String lineColor) { |
|||
this.lineColor = lineColor == null ? null : lineColor.trim(); |
|||
} |
|||
|
|||
public Integer getLineWidth() { |
|||
return lineWidth; |
|||
} |
|||
|
|||
public void setLineWidth(Integer lineWidth) { |
|||
this.lineWidth = lineWidth; |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
public Long getOpenCanvasTime() { |
|||
return openCanvasTime; |
|||
} |
|||
|
|||
public void setOpenCanvasTime(Long openCanvasTime) { |
|||
this.openCanvasTime = openCanvasTime; |
|||
} |
|||
|
|||
public String getBeyondProportion() { |
|||
return beyondProportion; |
|||
} |
|||
|
|||
public void setBeyondProportion(String beyondProportion) { |
|||
this.beyondProportion = beyondProportion == null ? null : beyondProportion.trim(); |
|||
} |
|||
|
|||
@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(", patientReportId=").append(patientReportId); |
|||
sb.append(", questionId=").append(questionId); |
|||
sb.append(", beginTime=").append(beginTime); |
|||
sb.append(", canvasWidth=").append(canvasWidth); |
|||
sb.append(", canvasHeight=").append(canvasHeight); |
|||
sb.append(", lineColor=").append(lineColor); |
|||
sb.append(", lineWidth=").append(lineWidth); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append(", openCanvasTime=").append(openCanvasTime); |
|||
sb.append(", beyondProportion=").append(beyondProportion); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
File diff suppressed because it is too large
@ -0,0 +1,84 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class HtPatientCanvasLine implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientCanvasId; |
|||
|
|||
private Date createTime; |
|||
|
|||
private Date updateTime; |
|||
|
|||
private Byte isDel; |
|||
|
|||
private String points; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientCanvasId() { |
|||
return patientCanvasId; |
|||
} |
|||
|
|||
public void setPatientCanvasId(Long patientCanvasId) { |
|||
this.patientCanvasId = patientCanvasId; |
|||
} |
|||
|
|||
public Date getCreateTime() { |
|||
return createTime; |
|||
} |
|||
|
|||
public void setCreateTime(Date createTime) { |
|||
this.createTime = createTime; |
|||
} |
|||
|
|||
public Date getUpdateTime() { |
|||
return updateTime; |
|||
} |
|||
|
|||
public void setUpdateTime(Date updateTime) { |
|||
this.updateTime = updateTime; |
|||
} |
|||
|
|||
public Byte getIsDel() { |
|||
return isDel; |
|||
} |
|||
|
|||
public void setIsDel(Byte isDel) { |
|||
this.isDel = isDel; |
|||
} |
|||
|
|||
public String getPoints() { |
|||
return points; |
|||
} |
|||
|
|||
public void setPoints(String points) { |
|||
this.points = points == null ? null : points.trim(); |
|||
} |
|||
|
|||
@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(", patientCanvasId=").append(patientCanvasId); |
|||
sb.append(", createTime=").append(createTime); |
|||
sb.append(", updateTime=").append(updateTime); |
|||
sb.append(", isDel=").append(isDel); |
|||
sb.append(", points=").append(points); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
@ -0,0 +1,501 @@ |
|||
package com.ccsens.ht.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class HtPatientCanvasLineExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public HtPatientCanvasLineExample() { |
|||
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 andPatientCanvasIdIsNull() { |
|||
addCriterion("patient_canvas_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdIsNotNull() { |
|||
addCriterion("patient_canvas_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdEqualTo(Long value) { |
|||
addCriterion("patient_canvas_id =", value, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdNotEqualTo(Long value) { |
|||
addCriterion("patient_canvas_id <>", value, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdGreaterThan(Long value) { |
|||
addCriterion("patient_canvas_id >", value, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("patient_canvas_id >=", value, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdLessThan(Long value) { |
|||
addCriterion("patient_canvas_id <", value, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("patient_canvas_id <=", value, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdIn(List<Long> values) { |
|||
addCriterion("patient_canvas_id in", values, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdNotIn(List<Long> values) { |
|||
addCriterion("patient_canvas_id not in", values, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdBetween(Long value1, Long value2) { |
|||
addCriterion("patient_canvas_id between", value1, value2, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPatientCanvasIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("patient_canvas_id not between", value1, value2, "patientCanvasId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNull() { |
|||
addCriterion("create_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIsNotNull() { |
|||
addCriterion("create_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeEqualTo(Date value) { |
|||
addCriterion("create_time =", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotEqualTo(Date value) { |
|||
addCriterion("create_time <>", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThan(Date value) { |
|||
addCriterion("create_time >", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("create_time >=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThan(Date value) { |
|||
addCriterion("create_time <", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("create_time <=", value, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeIn(List<Date> values) { |
|||
addCriterion("create_time in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotIn(List<Date> values) { |
|||
addCriterion("create_time not in", values, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("create_time between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCreateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("create_time not between", value1, value2, "createTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNull() { |
|||
addCriterion("update_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIsNotNull() { |
|||
addCriterion("update_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeEqualTo(Date value) { |
|||
addCriterion("update_time =", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotEqualTo(Date value) { |
|||
addCriterion("update_time <>", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThan(Date value) { |
|||
addCriterion("update_time >", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { |
|||
addCriterion("update_time >=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThan(Date value) { |
|||
addCriterion("update_time <", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { |
|||
addCriterion("update_time <=", value, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeIn(List<Date> values) { |
|||
addCriterion("update_time in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotIn(List<Date> values) { |
|||
addCriterion("update_time not in", values, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeBetween(Date value1, Date value2) { |
|||
addCriterion("update_time between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { |
|||
addCriterion("update_time not between", value1, value2, "updateTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNull() { |
|||
addCriterion("is_del is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIsNotNull() { |
|||
addCriterion("is_del is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelEqualTo(Byte value) { |
|||
addCriterion("is_del =", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotEqualTo(Byte value) { |
|||
addCriterion("is_del <>", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThan(Byte value) { |
|||
addCriterion("is_del >", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del >=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThan(Byte value) { |
|||
addCriterion("is_del <", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelLessThanOrEqualTo(Byte value) { |
|||
addCriterion("is_del <=", value, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelIn(List<Byte> values) { |
|||
addCriterion("is_del in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotIn(List<Byte> values) { |
|||
addCriterion("is_del not in", values, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del between", value1, value2, "isDel"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIsDelNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("is_del not between", value1, value2, "isDel"); |
|||
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,36 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientCanvasLine; |
|||
import com.ccsens.ht.bean.po.HtPatientCanvasLineExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientCanvasLineMapper { |
|||
long countByExample(HtPatientCanvasLineExample example); |
|||
|
|||
int deleteByExample(HtPatientCanvasLineExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientCanvasLine record); |
|||
|
|||
int insertSelective(HtPatientCanvasLine record); |
|||
|
|||
List<HtPatientCanvasLine> selectByExampleWithBLOBs(HtPatientCanvasLineExample example); |
|||
|
|||
List<HtPatientCanvasLine> selectByExample(HtPatientCanvasLineExample example); |
|||
|
|||
HtPatientCanvasLine selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientCanvasLine record, @Param("example") HtPatientCanvasLineExample example); |
|||
|
|||
int updateByExampleWithBLOBs(@Param("record") HtPatientCanvasLine record, @Param("example") HtPatientCanvasLineExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientCanvasLine record, @Param("example") HtPatientCanvasLineExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientCanvasLine record); |
|||
|
|||
int updateByPrimaryKeyWithBLOBs(HtPatientCanvasLine record); |
|||
|
|||
int updateByPrimaryKey(HtPatientCanvasLine record); |
|||
} |
@ -0,0 +1,30 @@ |
|||
package com.ccsens.ht.persist.mapper; |
|||
|
|||
import com.ccsens.ht.bean.po.HtPatientCanvas; |
|||
import com.ccsens.ht.bean.po.HtPatientCanvasExample; |
|||
import java.util.List; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
public interface HtPatientCanvasMapper { |
|||
long countByExample(HtPatientCanvasExample example); |
|||
|
|||
int deleteByExample(HtPatientCanvasExample example); |
|||
|
|||
int deleteByPrimaryKey(Long id); |
|||
|
|||
int insert(HtPatientCanvas record); |
|||
|
|||
int insertSelective(HtPatientCanvas record); |
|||
|
|||
List<HtPatientCanvas> selectByExample(HtPatientCanvasExample example); |
|||
|
|||
HtPatientCanvas selectByPrimaryKey(Long id); |
|||
|
|||
int updateByExampleSelective(@Param("record") HtPatientCanvas record, @Param("example") HtPatientCanvasExample example); |
|||
|
|||
int updateByExample(@Param("record") HtPatientCanvas record, @Param("example") HtPatientCanvasExample example); |
|||
|
|||
int updateByPrimaryKeySelective(HtPatientCanvas record); |
|||
|
|||
int updateByPrimaryKey(HtPatientCanvas record); |
|||
} |
@ -0,0 +1,270 @@ |
|||
<?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.ht.persist.mapper.HtPatientCanvasLineMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_canvas_id" jdbcType="BIGINT" property="patientCanvasId" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
</resultMap> |
|||
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
<result column="points" jdbcType="LONGVARCHAR" property="points" /> |
|||
</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, patient_canvas_id, create_time, update_time, is_del |
|||
</sql> |
|||
<sql id="Blob_Column_List"> |
|||
points |
|||
</sql> |
|||
<select id="selectByExampleWithBLOBs" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample" resultMap="ResultMapWithBLOBs"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from t_ht_patient_canvas_line |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
<if test="orderByClause != null"> |
|||
order by ${orderByClause} |
|||
</if> |
|||
</select> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_canvas_line |
|||
<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="ResultMapWithBLOBs"> |
|||
select |
|||
<include refid="Base_Column_List" /> |
|||
, |
|||
<include refid="Blob_Column_List" /> |
|||
from t_ht_patient_canvas_line |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_canvas_line |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample"> |
|||
delete from t_ht_patient_canvas_line |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
insert into t_ht_patient_canvas_line (id, patient_canvas_id, create_time, |
|||
update_time, is_del, points |
|||
) |
|||
values (#{id,jdbcType=BIGINT}, #{patientCanvasId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, #{points,jdbcType=LONGVARCHAR} |
|||
) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
insert into t_ht_patient_canvas_line |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientCanvasId != null"> |
|||
patient_canvas_id, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
<if test="points != null"> |
|||
points, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientCanvasId != null"> |
|||
#{patientCanvasId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="points != null"> |
|||
#{points,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLineExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_canvas_line |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_canvas_line |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientCanvasId != null"> |
|||
patient_canvas_id = #{record.patientCanvasId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.points != null"> |
|||
points = #{record.points,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExampleWithBLOBs" parameterType="map"> |
|||
update t_ht_patient_canvas_line |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_canvas_id = #{record.patientCanvasId,jdbcType=BIGINT}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
points = #{record.points,jdbcType=LONGVARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_patient_canvas_line |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_canvas_id = #{record.patientCanvasId,jdbcType=BIGINT}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
update t_ht_patient_canvas_line |
|||
<set> |
|||
<if test="patientCanvasId != null"> |
|||
patient_canvas_id = #{patientCanvasId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="points != null"> |
|||
points = #{points,jdbcType=LONGVARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKeyWithBLOBs" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
update t_ht_patient_canvas_line |
|||
set patient_canvas_id = #{patientCanvasId,jdbcType=BIGINT}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
points = #{points,jdbcType=LONGVARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasLine"> |
|||
update t_ht_patient_canvas_line |
|||
set patient_canvas_id = #{patientCanvasId,jdbcType=BIGINT}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
@ -0,0 +1,338 @@ |
|||
<?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.ht.persist.mapper.HtPatientCanvasMapper"> |
|||
<resultMap id="BaseResultMap" type="com.ccsens.ht.bean.po.HtPatientCanvas"> |
|||
<id column="id" jdbcType="BIGINT" property="id" /> |
|||
<result column="patient_report_id" jdbcType="BIGINT" property="patientReportId" /> |
|||
<result column="question_id" jdbcType="BIGINT" property="questionId" /> |
|||
<result column="begin_time" jdbcType="BIGINT" property="beginTime" /> |
|||
<result column="canvas_width" jdbcType="INTEGER" property="canvasWidth" /> |
|||
<result column="canvas_height" jdbcType="INTEGER" property="canvasHeight" /> |
|||
<result column="line_color" jdbcType="VARCHAR" property="lineColor" /> |
|||
<result column="line_width" jdbcType="INTEGER" property="lineWidth" /> |
|||
<result column="create_time" jdbcType="TIMESTAMP" property="createTime" /> |
|||
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|||
<result column="is_del" jdbcType="TINYINT" property="isDel" /> |
|||
<result column="open_canvas_time" jdbcType="BIGINT" property="openCanvasTime" /> |
|||
<result column="beyond_proportion" jdbcType="VARCHAR" property="beyondProportion" /> |
|||
</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, patient_report_id, question_id, begin_time, canvas_width, canvas_height, line_color, |
|||
line_width, create_time, update_time, is_del, open_canvas_time, beyond_proportion |
|||
</sql> |
|||
<select id="selectByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasExample" resultMap="BaseResultMap"> |
|||
select |
|||
<if test="distinct"> |
|||
distinct |
|||
</if> |
|||
<include refid="Base_Column_List" /> |
|||
from t_ht_patient_canvas |
|||
<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_ht_patient_canvas |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</select> |
|||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
|||
delete from t_ht_patient_canvas |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</delete> |
|||
<delete id="deleteByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasExample"> |
|||
delete from t_ht_patient_canvas |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</delete> |
|||
<insert id="insert" parameterType="com.ccsens.ht.bean.po.HtPatientCanvas"> |
|||
insert into t_ht_patient_canvas (id, patient_report_id, question_id, |
|||
begin_time, canvas_width, canvas_height, |
|||
line_color, line_width, create_time, |
|||
update_time, is_del, open_canvas_time, |
|||
beyond_proportion) |
|||
values (#{id,jdbcType=BIGINT}, #{patientReportId,jdbcType=BIGINT}, #{questionId,jdbcType=BIGINT}, |
|||
#{beginTime,jdbcType=BIGINT}, #{canvasWidth,jdbcType=INTEGER}, #{canvasHeight,jdbcType=INTEGER}, |
|||
#{lineColor,jdbcType=VARCHAR}, #{lineWidth,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, |
|||
#{updateTime,jdbcType=TIMESTAMP}, #{isDel,jdbcType=TINYINT}, #{openCanvasTime,jdbcType=BIGINT}, |
|||
#{beyondProportion,jdbcType=VARCHAR}) |
|||
</insert> |
|||
<insert id="insertSelective" parameterType="com.ccsens.ht.bean.po.HtPatientCanvas"> |
|||
insert into t_ht_patient_canvas |
|||
<trim prefix="(" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
id, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id, |
|||
</if> |
|||
<if test="beginTime != null"> |
|||
begin_time, |
|||
</if> |
|||
<if test="canvasWidth != null"> |
|||
canvas_width, |
|||
</if> |
|||
<if test="canvasHeight != null"> |
|||
canvas_height, |
|||
</if> |
|||
<if test="lineColor != null"> |
|||
line_color, |
|||
</if> |
|||
<if test="lineWidth != null"> |
|||
line_width, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del, |
|||
</if> |
|||
<if test="openCanvasTime != null"> |
|||
open_canvas_time, |
|||
</if> |
|||
<if test="beyondProportion != null"> |
|||
beyond_proportion, |
|||
</if> |
|||
</trim> |
|||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|||
<if test="id != null"> |
|||
#{id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="patientReportId != null"> |
|||
#{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
#{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="beginTime != null"> |
|||
#{beginTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="canvasWidth != null"> |
|||
#{canvasWidth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="canvasHeight != null"> |
|||
#{canvasHeight,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="lineColor != null"> |
|||
#{lineColor,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="lineWidth != null"> |
|||
#{lineWidth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
#{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
#{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
#{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="openCanvasTime != null"> |
|||
#{openCanvasTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="beyondProportion != null"> |
|||
#{beyondProportion,jdbcType=VARCHAR}, |
|||
</if> |
|||
</trim> |
|||
</insert> |
|||
<select id="countByExample" parameterType="com.ccsens.ht.bean.po.HtPatientCanvasExample" resultType="java.lang.Long"> |
|||
select count(*) from t_ht_patient_canvas |
|||
<if test="_parameter != null"> |
|||
<include refid="Example_Where_Clause" /> |
|||
</if> |
|||
</select> |
|||
<update id="updateByExampleSelective" parameterType="map"> |
|||
update t_ht_patient_canvas |
|||
<set> |
|||
<if test="record.id != null"> |
|||
id = #{record.id,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.patientReportId != null"> |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.questionId != null"> |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.beginTime != null"> |
|||
begin_time = #{record.beginTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.canvasWidth != null"> |
|||
canvas_width = #{record.canvasWidth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.canvasHeight != null"> |
|||
canvas_height = #{record.canvasHeight,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.lineColor != null"> |
|||
line_color = #{record.lineColor,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="record.lineWidth != null"> |
|||
line_width = #{record.lineWidth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="record.createTime != null"> |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.updateTime != null"> |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="record.isDel != null"> |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="record.openCanvasTime != null"> |
|||
open_canvas_time = #{record.openCanvasTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="record.beyondProportion != null"> |
|||
beyond_proportion = #{record.beyondProportion,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByExample" parameterType="map"> |
|||
update t_ht_patient_canvas |
|||
set id = #{record.id,jdbcType=BIGINT}, |
|||
patient_report_id = #{record.patientReportId,jdbcType=BIGINT}, |
|||
question_id = #{record.questionId,jdbcType=BIGINT}, |
|||
begin_time = #{record.beginTime,jdbcType=BIGINT}, |
|||
canvas_width = #{record.canvasWidth,jdbcType=INTEGER}, |
|||
canvas_height = #{record.canvasHeight,jdbcType=INTEGER}, |
|||
line_color = #{record.lineColor,jdbcType=VARCHAR}, |
|||
line_width = #{record.lineWidth,jdbcType=INTEGER}, |
|||
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{record.isDel,jdbcType=TINYINT}, |
|||
open_canvas_time = #{record.openCanvasTime,jdbcType=BIGINT}, |
|||
beyond_proportion = #{record.beyondProportion,jdbcType=VARCHAR} |
|||
<if test="_parameter != null"> |
|||
<include refid="Update_By_Example_Where_Clause" /> |
|||
</if> |
|||
</update> |
|||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.ht.bean.po.HtPatientCanvas"> |
|||
update t_ht_patient_canvas |
|||
<set> |
|||
<if test="patientReportId != null"> |
|||
patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="questionId != null"> |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="beginTime != null"> |
|||
begin_time = #{beginTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="canvasWidth != null"> |
|||
canvas_width = #{canvasWidth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="canvasHeight != null"> |
|||
canvas_height = #{canvasHeight,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="lineColor != null"> |
|||
line_color = #{lineColor,jdbcType=VARCHAR}, |
|||
</if> |
|||
<if test="lineWidth != null"> |
|||
line_width = #{lineWidth,jdbcType=INTEGER}, |
|||
</if> |
|||
<if test="createTime != null"> |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="updateTime != null"> |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
</if> |
|||
<if test="isDel != null"> |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
</if> |
|||
<if test="openCanvasTime != null"> |
|||
open_canvas_time = #{openCanvasTime,jdbcType=BIGINT}, |
|||
</if> |
|||
<if test="beyondProportion != null"> |
|||
beyond_proportion = #{beyondProportion,jdbcType=VARCHAR}, |
|||
</if> |
|||
</set> |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
<update id="updateByPrimaryKey" parameterType="com.ccsens.ht.bean.po.HtPatientCanvas"> |
|||
update t_ht_patient_canvas |
|||
set patient_report_id = #{patientReportId,jdbcType=BIGINT}, |
|||
question_id = #{questionId,jdbcType=BIGINT}, |
|||
begin_time = #{beginTime,jdbcType=BIGINT}, |
|||
canvas_width = #{canvasWidth,jdbcType=INTEGER}, |
|||
canvas_height = #{canvasHeight,jdbcType=INTEGER}, |
|||
line_color = #{lineColor,jdbcType=VARCHAR}, |
|||
line_width = #{lineWidth,jdbcType=INTEGER}, |
|||
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|||
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|||
is_del = #{isDel,jdbcType=TINYINT}, |
|||
open_canvas_time = #{openCanvasTime,jdbcType=BIGINT}, |
|||
beyond_proportion = #{beyondProportion,jdbcType=VARCHAR} |
|||
where id = #{id,jdbcType=BIGINT} |
|||
</update> |
|||
</mapper> |
Loading…
Reference in new issue