commit
e19355c4a5
179 changed files with 30982 additions and 0 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,118 @@ |
|||
/* |
|||
* Copyright 2007-present the original author or authors. |
|||
* |
|||
* Licensed 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. |
|||
*/ |
|||
|
|||
import java.net.*; |
|||
import java.io.*; |
|||
import java.nio.channels.*; |
|||
import java.util.Properties; |
|||
|
|||
public class MavenWrapperDownloader { |
|||
|
|||
private static final String WRAPPER_VERSION = "0.5.6"; |
|||
/** |
|||
* Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided. |
|||
*/ |
|||
private static final String DEFAULT_DOWNLOAD_URL = "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/" |
|||
+ WRAPPER_VERSION + "/maven-wrapper-" + WRAPPER_VERSION + ".jar"; |
|||
|
|||
/** |
|||
* Path to the maven-wrapper.properties file, which might contain a downloadUrl property to |
|||
* use instead of the default one. |
|||
*/ |
|||
private static final String MAVEN_WRAPPER_PROPERTIES_PATH = |
|||
".mvn/wrapper/maven-wrapper.properties"; |
|||
|
|||
/** |
|||
* Path where the maven-wrapper.jar will be saved to. |
|||
*/ |
|||
private static final String MAVEN_WRAPPER_JAR_PATH = |
|||
".mvn/wrapper/maven-wrapper.jar"; |
|||
|
|||
/** |
|||
* Name of the property which should be used to override the default download url for the wrapper. |
|||
*/ |
|||
private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl"; |
|||
|
|||
public static void main(String args[]) { |
|||
System.out.println("- Downloader started"); |
|||
File baseDirectory = new File(args[0]); |
|||
System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath()); |
|||
|
|||
// If the maven-wrapper.properties exists, read it and check if it contains a custom
|
|||
// wrapperUrl parameter.
|
|||
File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH); |
|||
String url = DEFAULT_DOWNLOAD_URL; |
|||
if (mavenWrapperPropertyFile.exists()) { |
|||
FileInputStream mavenWrapperPropertyFileInputStream = null; |
|||
try { |
|||
mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile); |
|||
Properties mavenWrapperProperties = new Properties(); |
|||
mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream); |
|||
url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url); |
|||
} catch (IOException e) { |
|||
System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'"); |
|||
} finally { |
|||
try { |
|||
if (mavenWrapperPropertyFileInputStream != null) { |
|||
mavenWrapperPropertyFileInputStream.close(); |
|||
} |
|||
} catch (IOException e) { |
|||
// Ignore ...
|
|||
} |
|||
} |
|||
} |
|||
System.out.println("- Downloading from: " + url); |
|||
|
|||
File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH); |
|||
if (!outputFile.getParentFile().exists()) { |
|||
if (!outputFile.getParentFile().mkdirs()) { |
|||
System.out.println( |
|||
"- ERROR creating output directory '" + outputFile.getParentFile().getAbsolutePath() + "'"); |
|||
} |
|||
} |
|||
System.out.println("- Downloading to: " + outputFile.getAbsolutePath()); |
|||
try { |
|||
downloadFileFromURL(url, outputFile); |
|||
System.out.println("Done"); |
|||
System.exit(0); |
|||
} catch (Throwable e) { |
|||
System.out.println("- Error downloading"); |
|||
e.printStackTrace(); |
|||
System.exit(1); |
|||
} |
|||
} |
|||
|
|||
private static void downloadFileFromURL(String urlString, File destination) throws Exception { |
|||
if (System.getenv("MVNW_USERNAME") != null && System.getenv("MVNW_PASSWORD") != null) { |
|||
String username = System.getenv("MVNW_USERNAME"); |
|||
char[] password = System.getenv("MVNW_PASSWORD").toCharArray(); |
|||
Authenticator.setDefault(new Authenticator() { |
|||
@Override |
|||
protected PasswordAuthentication getPasswordAuthentication() { |
|||
return new PasswordAuthentication(username, password); |
|||
} |
|||
}); |
|||
} |
|||
URL website = new URL(urlString); |
|||
ReadableByteChannel rbc; |
|||
rbc = Channels.newChannel(website.openStream()); |
|||
FileOutputStream fos = new FileOutputStream(destination); |
|||
fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE); |
|||
fos.close(); |
|||
rbc.close(); |
|||
} |
|||
|
|||
} |
|||
Binary file not shown.
@ -0,0 +1,2 @@ |
|||
distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.1/apache-maven-3.8.1-bin.zip |
|||
wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar |
|||
@ -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,86 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
|||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|||
<modelVersion>4.0.0</modelVersion> |
|||
<parent> |
|||
<artifactId>ccsenscloud</artifactId> |
|||
<groupId>com.ccsens</groupId> |
|||
<version>1.0-SNAPSHOT</version> |
|||
</parent> |
|||
|
|||
<groupId>com.ccsens</groupId> |
|||
|
|||
<artifactId>carbasics</artifactId> |
|||
|
|||
<version>0.0.1-SNAPSHOT</version> |
|||
|
|||
<name>carbasics</name> |
|||
|
|||
<description>Demo project for Spring Boot</description> |
|||
<properties> |
|||
<java.version>1.8</java.version> |
|||
</properties> |
|||
|
|||
<dependencies> |
|||
<!--cloud 工具类--> |
|||
<dependency> |
|||
<artifactId>cloudutil</artifactId> |
|||
<groupId>com.ccsens</groupId> |
|||
<version>1.0-SNAPSHOT</version> |
|||
</dependency> |
|||
<!--cloud 工具类--> |
|||
<dependency> |
|||
<artifactId>common</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.carbasics.CarbasicsApplication</mainClass> |
|||
<!--<skip>true</skip>--> |
|||
</configuration> |
|||
<executions> |
|||
<execution> |
|||
<goals> |
|||
<goal>repackage</goal> |
|||
</goals> |
|||
</execution> |
|||
</executions> |
|||
</plugin> |
|||
|
|||
</plugins> |
|||
</build> |
|||
|
|||
|
|||
</project> |
|||
@ -0,0 +1,29 @@ |
|||
package com.ccsens.carbasics; |
|||
|
|||
import com.ccsens.cloudutil.ribbon.RibbonConfiguration; |
|||
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.context.annotation.ComponentScan; |
|||
import org.springframework.context.annotation.FilterType; |
|||
import org.springframework.scheduling.annotation.EnableAsync; |
|||
|
|||
@MapperScan(basePackages = {"com.ccsens.carbasics.persist.*","com.ccsens.common.persist.*"}) |
|||
@ServletComponentScan |
|||
@EnableAsync |
|||
//开启断路器功能
|
|||
@EnableCircuitBreaker |
|||
@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") |
|||
@SpringBootApplication |
|||
@ComponentScan(basePackages = "com.ccsens", excludeFilters = { @ComponentScan.Filter(type= FilterType.ASSIGNABLE_TYPE, value = RibbonConfiguration.class)}) |
|||
|
|||
public class CarbasicsApplication { |
|||
|
|||
public static void main(String[] args) { |
|||
SpringApplication.run(CarbasicsApplication.class, args); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,66 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CarDto; |
|||
import com.ccsens.carbasics.bean.vo.CarVo; |
|||
import com.ccsens.carbasics.service.IPatientWisdomCarService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.CodeError; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description:平车相关 |
|||
* @author: whj |
|||
* @time: 2021/7/27 16:39 |
|||
*/ |
|||
@Api(tags = "平车相关") |
|||
@RestController |
|||
@RequestMapping("/car") |
|||
@Slf4j |
|||
public class CarController { |
|||
|
|||
@Resource |
|||
private IPatientWisdomCarService patientWisdomCarService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询医院的平车信息") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CarVo.Car>> query(@ApiParam @Validated @RequestBody QueryDto params) { |
|||
log.info("查询医院的平车信息:{}", params); |
|||
List<CarVo.Car> list = patientWisdomCarService.query(params.getUserId()); |
|||
log.info("查询医院的平车信息结果:{}", list); |
|||
return JsonResponse.newInstance().ok(list); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询患者绑定的平车信息") |
|||
@RequestMapping(value = "/queryBind", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CarVo.QueryBind> queryBind(@ApiParam @Validated @RequestBody QueryDto<CarDto.QueryBind> params) { |
|||
log.info("查询患者绑定的平车信息:{}", params); |
|||
CarVo.QueryBind bind = patientWisdomCarService.queryBind(params.getParam(), params.getUserId()); |
|||
log.info("查询患者绑定的平车信息结果:{}", bind); |
|||
return JsonResponse.newInstance().ok(bind); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "绑定平车") |
|||
@RequestMapping(value = "/bind", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse bind(@ApiParam @Validated @RequestBody QueryDto<CarDto.Bind> params) { |
|||
log.info("绑定平车:{}", params); |
|||
CodeError.Code codeError = patientWisdomCarService.bind(params.getParam(), params.getUserId()); |
|||
log.info("绑定平车结果:{}", codeError); |
|||
return JsonResponse.newInstance().ok(codeError); |
|||
} |
|||
} |
|||
@ -0,0 +1,48 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; |
|||
import com.ccsens.carbasics.service.IRecordService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParams; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletRequest; |
|||
|
|||
@Api(tags = "DEBUG" , description = "DebugController | ") |
|||
@RestController |
|||
@RequestMapping("/debug") |
|||
@Slf4j |
|||
public class DebugController { |
|||
|
|||
@Resource |
|||
private IRecordService recordService; |
|||
|
|||
@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("测试"); |
|||
} |
|||
|
|||
@ApiOperation(value = "/测试消息接收存放",notes = "") |
|||
@ApiImplicitParams({ |
|||
}) |
|||
@RequestMapping(value="/record",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse record(@ApiParam @Validated @RequestBody QueryDto<CarRecordMessageDto> params) throws Exception { |
|||
recordService.disposeMessage(params.getParam()); |
|||
return JsonResponse.newInstance().ok("测试"); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,65 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import cn.hutool.core.date.DateUtil; |
|||
import cn.hutool.core.io.FileUtil; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.ccsens.carbasics.service.IDictionariesService; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.carbasics.util.DefaultCodeError; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.WebConstant; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import io.swagger.annotations.Api; |
|||
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 org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.io.File; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "code字典相关" , description = "导入code,添加记录,查询记录 ") |
|||
@RestController |
|||
@RequestMapping("/dictionaries") |
|||
@Slf4j |
|||
public class DictionariesController { |
|||
@Resource |
|||
private IDictionariesService dictionariesService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "单表导入题目", notes = "") |
|||
@RequestMapping(value = "/importCode", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse importCode( QueryDto<MultipartFile> params) throws Exception { |
|||
MultipartFile f = params.getParam(); |
|||
String ext = FileUtil.extName(f.getOriginalFilename()); |
|||
if(StrUtil.isEmpty(ext) || !Constant.WbsExcel.WBS_FILE_FORMAT.contains(ext)){ |
|||
throw new BaseException(DefaultCodeError.FILE_FORMAT_ERROR); |
|||
} |
|||
//文件路径
|
|||
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator; |
|||
String extraPath = DateUtil.format(new Date(), "yyyyMMdd"); |
|||
String path = extraPath + File.separator + IdUtil.simpleUUID() + "." + ext; |
|||
//转成file
|
|||
File file = new File(dir + extraPath); |
|||
if (!file.exists()) { |
|||
file.mkdirs(); |
|||
} |
|||
String fullPath = dir + File.separator + path; |
|||
FileUtil.writeFromStream(f.getInputStream(), fullPath); |
|||
|
|||
//导入数据库
|
|||
dictionariesService.importCode(fullPath,params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,18 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import io.swagger.annotations.Api; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "急救相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/firstAid") |
|||
@Slf4j |
|||
public class FirstAidController { |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,53 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import cn.hutool.core.codec.Base64; |
|||
import cn.hutool.core.util.ImageUtil; |
|||
import com.ccsens.carbasics.bean.vo.OcrVo; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.baidu.BaiDuDto; |
|||
import com.ccsens.util.baidu.BaiDuUtil; |
|||
import com.ccsens.util.baidu.BaiDuVo; |
|||
import io.swagger.annotations.Api; |
|||
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.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.imageio.ImageIO; |
|||
import javax.servlet.http.Part; |
|||
import java.io.ByteArrayOutputStream; |
|||
import java.io.IOException; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/7/29 17:51 |
|||
*/ |
|||
@Api(tags = "ocr相关") |
|||
@RestController |
|||
@RequestMapping("/ocr") |
|||
@Slf4j |
|||
public class OcrController { |
|||
|
|||
@ApiOperation(value = "图像识别", notes = "whj") |
|||
@RequestMapping(value = "/identifyWords", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<OcrVo.PersonMsg> identifyWords(@RequestParam(required = true) Part part) throws IOException { |
|||
log.info("图像识别"); |
|||
// 压缩图像
|
|||
ByteArrayOutputStream out = new ByteArrayOutputStream(); |
|||
ImageUtil.scale(ImageIO.read(part.getInputStream()), out, 0.5f); |
|||
String img = Base64.encode(out.toByteArray()); |
|||
// 图像识别
|
|||
BaiDuDto.GeneralBasic basic = new BaiDuDto.GeneralBasic(); |
|||
basic.setImage(img); |
|||
BaiDuVo.GeneralBasic words = BaiDuUtil.accurateBasic(Constant.BaiDu.APP_KEY, Constant.BaiDu.SECRET_KEY, basic); |
|||
// 返回图像
|
|||
OcrVo.PersonMsg personMsg = new OcrVo.PersonMsg(); |
|||
personMsg.toMsg(words.getWordsResult()); |
|||
log.info("图像识别结束:{}", personMsg); |
|||
return JsonResponse.newInstance().ok(personMsg); |
|||
} |
|||
} |
|||
@ -0,0 +1,94 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.PatientDto; |
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.service.IPatientService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.github.pagehelper.PageInfo; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "患者相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/patient") |
|||
@Slf4j |
|||
public class PatientController { |
|||
@Resource |
|||
private IPatientService patientService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询患者列表", notes = "查询患者列表") |
|||
@RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PageInfo<PatientVo.QueryPatientList>> queryPatientList(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryPatient> params) throws Exception{ |
|||
PageInfo<PatientVo.QueryPatientList> patientList = patientService.queryPatientList(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(patientList); |
|||
} |
|||
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "批量提交急救信息", notes = "")
|
|||
// @RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse saveAidRecord(@ApiParam @Validated @RequestBody QueryDto<PatientDto.SaveAidRecord> params) throws Exception{
|
|||
// patientService.saveAidRecord(params.getParam(), params.getUserId());
|
|||
// return JsonResponse.newInstance().ok();
|
|||
// }
|
|||
//
|
|||
// @MustLogin
|
|||
// @ApiOperation(value = "批量查询急救信息", notes = "")
|
|||
// @RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
|
|||
// public JsonResponse<PatientVo.QueryAidRecord> queryAidRecord(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryAidRecord> params) throws Exception{
|
|||
// PatientVo.QueryAidRecord queryAidRecord = patientService.queryAidRecord(params.getParam(), params.getUserId());
|
|||
// return JsonResponse.newInstance().ok(queryAidRecord);
|
|||
// }
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询类型的所有下级和完成情况", notes = "") |
|||
@RequestMapping(value = "/subordinate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.QuerySubordinate> querySubordinate(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QuerySubordinate> params) throws Exception{ |
|||
PatientVo.QuerySubordinate querySubordinate = patientService.querySubordinate(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(querySubordinate); |
|||
} |
|||
//
|
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "时间沙漏", notes = "") |
|||
@RequestMapping(value = "/sandClock", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.TimeSandClock> timeSandClock(@ApiParam @Validated @RequestBody QueryDto<StatisticalDto.QueryStep> params) throws Exception{ |
|||
PatientVo.TimeSandClock timeSandClock = patientService.timeSandClock(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(timeSandClock); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "批量提交急救信息", notes = "") |
|||
@RequestMapping(value = "/aidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse saveAidRecordN(@ApiParam @Validated @RequestBody QueryDto<PatientDto.SaveAidRecordN> params) throws Exception{ |
|||
patientService.saveAidRecordN(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "批量查询急救信息", notes = "") |
|||
@RequestMapping(value = "/queryAidRecord", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<PatientVo.QueryAidRecordN> queryAidRecordN(@ApiParam @Validated @RequestBody QueryDto<PatientDto.QueryAidRecord> params) throws Exception{ |
|||
PatientVo.QueryAidRecordN queryAidRecord = patientService.queryAidRecordN(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryAidRecord); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,39 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.common.bean.dto.CPluginDto; |
|||
import com.ccsens.common.service.IPluginService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "患者相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/plugin") |
|||
@Slf4j |
|||
public class PluginController { |
|||
@Resource |
|||
private IPluginService pluginService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "给任务添加插件", notes = "") |
|||
@RequestMapping(value = "/save", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse queryPatientList(@ApiParam @Validated @RequestBody QueryDto<List<CPluginDto.UpdateTaskPlugin>> params) throws Exception{ |
|||
pluginService.updateTaskPlugin(params.getParam()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
} |
|||
@ -0,0 +1,75 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.ProjectDto; |
|||
import com.ccsens.carbasics.bean.vo.ProjectVo; |
|||
import com.ccsens.carbasics.service.IQcpProjectService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.common.bean.dto.CProjectDto; |
|||
import com.ccsens.common.bean.vo.CProjectVo; |
|||
import com.ccsens.common.service.IProjectService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "项目相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/project") |
|||
@Slf4j |
|||
public class ProjectController { |
|||
|
|||
@Resource |
|||
private IProjectService projectService; |
|||
@Resource |
|||
private IQcpProjectService qcpProjectService; |
|||
|
|||
@ApiOperation(value = "根据id查询项目信息", notes = "根据id查询项目信息") |
|||
@RequestMapping(value = "/findProjectById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CProjectVo.ProjectInfo> findProjectById(@ApiParam @Validated @RequestBody QueryDto<CProjectDto.ProjectById> params) throws Exception{ |
|||
CProjectVo.ProjectInfo projectById = projectService.findProjectById(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(projectById); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "创建病例", notes = "") |
|||
@RequestMapping(value = "/createCase", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<ProjectVo.CreateCaseV> createCase(@ApiParam @Validated @RequestBody QueryDto<ProjectDto.CreateCaseD> params) throws Exception{ |
|||
log.info("创建病例开始:{}",params); |
|||
ProjectVo.CreateCaseV projectId = qcpProjectService.createCase(params.getParam(), params.getUserId()); |
|||
log.info("创建病例结束{}",projectId); |
|||
return JsonResponse.newInstance().ok(projectId); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "切换项目", notes = "mz") |
|||
@RequestMapping(value = "/switchProject", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse switchProject(@ApiParam @Validated @RequestBody QueryDto<ProjectDto.SwitchProject> params) throws Exception { |
|||
log.info("切换项目:{}", params); |
|||
qcpProjectService.switchProject(params.getParam(), params.getUserId()); |
|||
log.info("切换项目"); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询当前项目最新消息", notes = "") |
|||
@RequestMapping(value = "/queryNewMessage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<ProjectVo.NewMessage> queryNewMessage(@ApiParam @Validated @RequestBody QueryDto<ProjectDto.QueryNewMessage> params) throws Exception{ |
|||
log.info("创建病例开始:{}",params); |
|||
ProjectVo.NewMessage newMessage = qcpProjectService.queryNewMessage(params.getParam(), params.getUserId()); |
|||
log.info("创建病例结束{}",newMessage); |
|||
return JsonResponse.newInstance().ok(newMessage); |
|||
} |
|||
} |
|||
@ -0,0 +1,69 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import cn.hutool.core.util.CharsetUtil; |
|||
import com.ccsens.carbasics.bean.dto.RecordDto; |
|||
import com.ccsens.carbasics.bean.vo.RecordVo; |
|||
import com.ccsens.carbasics.service.IRecordService; |
|||
import com.ccsens.util.DateUtil; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.apache.poi.ss.usermodel.Workbook; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
import java.io.IOException; |
|||
import java.net.URLEncoder; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author whj |
|||
*/ |
|||
@Slf4j |
|||
@Api(tags = "消息记录相关api" ) |
|||
@RestController |
|||
@RequestMapping("/record") |
|||
public class RecordController { |
|||
|
|||
@Resource |
|||
private IRecordService recordService; |
|||
@ApiOperation(value = "查询智慧平车称重和rfid记录", notes = "") |
|||
@RequestMapping(value = "/weightList", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<RecordVo.WeightAndRfid> timeList(@ApiParam @Validated @RequestBody QueryDto<RecordDto.WeightAndRfid> params){ |
|||
log.info("查询智慧平车称重和rfid记录:{}", params); |
|||
if (params.getParam().getEndTime() != null) { |
|||
params.getParam().setEndTime(params.getParam().getEndTime() + 24 * 3600 *1000); |
|||
} |
|||
List<RecordVo.WeightAndRfid> list = recordService.queryWeightAndRfid(params.getParam(), params.getUserId()); |
|||
log.info("查询智慧平车称重和rfid记录结果:{}",list); |
|||
return JsonResponse.newInstance().ok(list); |
|||
} |
|||
|
|||
@ApiOperation(value = "智慧平车称重和rfid记录导出", notes = "") |
|||
@RequestMapping(value = "/weightExport", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) |
|||
public void weightExport(@ApiParam @Validated RecordDto.WeightAndRfidExport param, HttpServletResponse response) throws IOException { |
|||
log.info("导出智慧平车称重和rfid记录:{}", param); |
|||
if (param.getEndTime() != null) { |
|||
param.setEndTime(param.getEndTime() + 24 * 3600 *1000); |
|||
} |
|||
Workbook workbook = recordService.exportWeightAndRfid(param); |
|||
log.info("导出智慧平车称重和rfid记录结果结束"); |
|||
Date start = new Date(); |
|||
start.setTime(param.getStartTime()); |
|||
Date end = new Date(); |
|||
end.setTime(param.getEndTime() - 24 * 3600 * 1000); |
|||
String fileName = "智慧平车记录"+ DateUtil.format(start, DateUtil.yyyyMMdd) + "-" + DateUtil.format(end, DateUtil.yyyyMMdd) +".xlsx"; |
|||
response.setHeader("Content-Disposition", "attachment;filename=" + URLEncoder.encode(fileName, CharsetUtil.UTF_8)); |
|||
workbook.write(response.getOutputStream()); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.common.bean.dto.CRoleDto; |
|||
import com.ccsens.common.bean.vo.CRoleVo; |
|||
import com.ccsens.common.service.IProRoleService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "角色相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/role") |
|||
@Slf4j |
|||
public class RoleController { |
|||
@Resource |
|||
private IProRoleService roleService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "根据项目id查找角色", notes = "") |
|||
@RequestMapping(value = "/show", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<CRoleVo.QueryRole> queryByProjectId(@ApiParam @Validated @RequestBody QueryDto<CRoleDto.QueryRoleById> params) { |
|||
CRoleVo.QueryRole queryRole = roleService.QueryShowRole(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryRole); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "修改角色展示", notes = "") |
|||
@RequestMapping(value = "/updateShow", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse updateShow(@ApiParam @Validated @RequestBody QueryDto<CRoleDto.UpdateRoleShow> params) { |
|||
roleService.updateShowRole(params.getParam(),params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
} |
|||
@ -0,0 +1,87 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.vo.StatisticalVo; |
|||
import com.ccsens.carbasics.bean.vo.StatisticsVo; |
|||
import com.ccsens.carbasics.service.IStatisticalService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description:统计查询 |
|||
* @author: whj |
|||
* @time: 2021/7/28 8:54 |
|||
*/ |
|||
@Api(tags = "统计查询") |
|||
@RestController |
|||
@RequestMapping("/statistical") |
|||
@Slf4j |
|||
public class StatisticalController { |
|||
@Resource |
|||
private IStatisticalService statisticalService; |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "急救环节完成情况") |
|||
@RequestMapping(value = "/step", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<StatisticalVo.Step>> queryStep(@ApiParam @Validated @RequestBody QueryDto<StatisticalDto.QueryStep> params) { |
|||
log.info("查询急救环节完成情况:{}", params); |
|||
List<StatisticalVo.Step> steps = statisticalService.queryStep(params.getParam(), params.getUserId()); |
|||
log.info("询急救环节完成情况结果:{}", steps); |
|||
return JsonResponse.newInstance().ok(steps); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询质控报告") |
|||
@RequestMapping(value = "/queryQuality", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<StatisticalVo.Quality>> queryQuality(@ApiParam @Validated @RequestBody QueryDto<StatisticalDto.Quality> params) { |
|||
log.info("查询质控报告:{}", params); |
|||
List<StatisticalVo.Quality> qualities = statisticalService.queryQuality(params.getParam(), params.getUserId()); |
|||
log.info("查询质控报告结果:{}", qualities); |
|||
return JsonResponse.newInstance().ok(qualities); |
|||
} |
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询每天质控报告") |
|||
@RequestMapping(value = "/queryQuality/everyday", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<StatisticalVo.DayQuality>> queryEveryDayQuality(@ApiParam @Validated @RequestBody QueryDto params) { |
|||
log.info("查询每天质控报告:{}", params); |
|||
List<StatisticalVo.DayQuality> qualities = statisticalService.queryEveryDayQuality(params.getUserId()); |
|||
log.info("查询每天质控报告结果:{}", qualities); |
|||
return JsonResponse.newInstance().ok(qualities); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "急救各个节点时间统计", notes = "") |
|||
@RequestMapping(value = "/getPointTime", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<StatisticsVo.PointTimeList> getPointTime(@ApiParam @Validated @RequestBody QueryDto<StatisticalDto.PointTime> params) { |
|||
log.info("急救各个节点时间统计:{}",params); |
|||
StatisticsVo.PointTimeList pointTime = statisticalService.getPointTime(params.getParam(),params.getUserId()); |
|||
log.info("急救各个节点时间统计"); |
|||
return JsonResponse.newInstance().ok(pointTime); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "急救数量统计图数据", notes = "") |
|||
@RequestMapping(value = "/selResult", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<StatisticsVo.UseNumsVo> selResult(@ApiParam @Validated @RequestBody QueryDto<StatisticalDto.SelResult> params) { |
|||
log.info("急救各个节点时间统计:{}",params); |
|||
StatisticsVo.UseNumsVo useNumsVo = statisticalService.selResult(params.getParam(),params.getUserId()); |
|||
log.info("急救各个节点时间统计"); |
|||
return JsonResponse.newInstance().ok(useNumsVo); |
|||
} |
|||
} |
|||
@ -0,0 +1,73 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.common.bean.dto.CTaskDto; |
|||
import com.ccsens.common.bean.vo.CTaskVo; |
|||
import com.ccsens.common.service.ITaskService; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "任务相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/task") |
|||
@Slf4j |
|||
public class TaskController { |
|||
@Resource |
|||
private ITaskService taskService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查找永久日常任务", notes = "") |
|||
@RequestMapping(value = "/permanent", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CTaskVo.QueryTask>> queryPermanentGlobalTask(@ApiParam @Validated @RequestBody QueryDto<CTaskDto.QueryPermanentGlobalTask> params) { |
|||
List<CTaskVo.QueryTask> queryTasks = taskService.queryPermanentGlobalTask(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryTasks); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查找带时间的日常任务", notes = "") |
|||
@RequestMapping(value = "/global", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CTaskVo.QueryTask>> queryGlobalTask(@ApiParam @Validated @RequestBody QueryDto<CTaskDto.QueryGlobalTask> params) { |
|||
List<CTaskVo.QueryTask> queryTasks = taskService.queryGlobalTask(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryTasks); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查找定期任务", notes = "") |
|||
@RequestMapping(value = "/regular", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<CTaskVo.QueryTask>> queryRegularTask(@ApiParam @Validated @RequestBody QueryDto<CTaskDto.QueryRegularTask> params) { |
|||
List<CTaskVo.QueryTask> queryTasks = taskService.queryRegularTask(params.getParam(), params.getUserId()); |
|||
return JsonResponse.newInstance().ok(queryTasks); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "修改任务状态", notes = "") |
|||
@RequestMapping(value = "/type", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse updateTaskType(@ApiParam @Validated @RequestBody QueryDto<CTaskDto.UpdateTaskType> params) throws Exception { |
|||
taskService.updateTaskType(params.getParam(),params.getUserId()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "给任务添加上下道工序", notes = "") |
|||
@RequestMapping(value = "/taskProcess", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse taskProcess(@ApiParam @Validated @RequestBody QueryDto<List<CTaskDto.UpdateTaskProcess>> params) throws Exception { |
|||
taskService.updateTaskProcess(params.getParam()); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,74 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import cn.hutool.core.date.DateUtil; |
|||
import cn.hutool.core.io.FileUtil; |
|||
import cn.hutool.core.util.IdUtil; |
|||
import cn.hutool.core.util.StrUtil; |
|||
import com.ccsens.carbasics.service.IImportService; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.carbasics.util.DefaultCodeError; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.WebConstant; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import com.ccsens.util.exception.BaseException; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiImplicitParam; |
|||
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 org.springframework.web.multipart.MultipartFile; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.io.File; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Api(tags = "导入wbs" , description = "") |
|||
@RestController |
|||
@RequestMapping("/wbs") |
|||
@Slf4j |
|||
public class WbsController { |
|||
|
|||
@Resource |
|||
private IImportService importService; |
|||
|
|||
|
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "导入WBS",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx") |
|||
@ApiImplicitParams({ |
|||
@ApiImplicitParam(name = "file", value = "WBS表", required = true, paramType = "form",dataType = "__file") |
|||
}) |
|||
@RequestMapping(value = "", method = RequestMethod.POST) |
|||
public JsonResponse importWbs( QueryDto<MultipartFile> params) throws Exception { |
|||
|
|||
MultipartFile f = params.getParam(); |
|||
String ext = FileUtil.extName(f.getOriginalFilename()); |
|||
if(StrUtil.isEmpty(ext) || !Constant.WbsExcel.WBS_FILE_FORMAT.contains(ext)){ |
|||
throw new BaseException(DefaultCodeError.FILE_FORMAT_ERROR); |
|||
} |
|||
//文件路径
|
|||
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator; |
|||
String extraPath = DateUtil.format(new Date(), "yyyyMMdd"); |
|||
String path = extraPath + File.separator + IdUtil.simpleUUID() + "." + ext; |
|||
//转成file
|
|||
File file = new File(dir + extraPath); |
|||
if (!file.exists()) { |
|||
file.mkdirs(); |
|||
} |
|||
String fullPath = dir + File.separator + path; |
|||
FileUtil.writeFromStream(f.getInputStream(), fullPath); |
|||
|
|||
//导入数据库
|
|||
importService.importWbs(fullPath,params.getUserId()); |
|||
|
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,65 @@ |
|||
package com.ccsens.carbasics.api; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.WorkerDto; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
import com.ccsens.carbasics.service.IWorkerService; |
|||
import com.ccsens.cloudutil.annotation.MustLogin; |
|||
import com.ccsens.util.JsonResponse; |
|||
import com.ccsens.util.bean.dto.QueryDto; |
|||
import io.swagger.annotations.Api; |
|||
import io.swagger.annotations.ApiOperation; |
|||
import io.swagger.annotations.ApiParam; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.springframework.validation.annotation.Validated; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestMethod; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Api(tags = "人员相关" , description = "") |
|||
@RestController |
|||
@RequestMapping("/worker") |
|||
@Slf4j |
|||
public class WorkerController { |
|||
|
|||
@Resource |
|||
IWorkerService workerService; |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "添加到场人员信息", notes = "添加到场人员信息") |
|||
@RequestMapping(value = "/addArriveWorker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse addArriveWorker(@ApiParam @Validated @RequestBody QueryDto<WorkerDto.AddArriveWorker> params) throws Exception{ |
|||
log.info("添加到场人员信息接口开始{}",params); |
|||
workerService.addArriveWorker(params.getParam(), params.getUserId()); |
|||
log.info("添加到场人员信息接口结束"); |
|||
return JsonResponse.newInstance().ok(); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询到场人员信息", notes = "查询到场人员信息") |
|||
@RequestMapping(value = "/queryArriveWorker", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<List<WorkerVo.WorkInformation>> queryArriveWorker(@ApiParam @Validated @RequestBody QueryDto<WorkerDto.QueryArriveWorker> params) throws Exception{ |
|||
log.info("查询到场人员信息开始{}",params); |
|||
List<WorkerVo.WorkInformation> workerInfoList = workerService.queryArriveWorker(params.getParam(), params.getUserId()); |
|||
log.info("查询到场人员信息结束{}",workerInfoList); |
|||
return JsonResponse.newInstance().ok(workerInfoList); |
|||
} |
|||
|
|||
@MustLogin |
|||
@ApiOperation(value = "查询医院成员和急救期间是否值班", notes = "查询医院成员和急救期间是否值班") |
|||
@RequestMapping(value = "/queryAllDoctor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) |
|||
public JsonResponse<Map<Byte, List<WorkerVo.AllDoctor>>> queryAllDoctor(@ApiParam @Validated @RequestBody QueryDto params) throws Exception{ |
|||
log.info("添加到场人员信息接口开始{}",params); |
|||
Map<Byte, List<WorkerVo.AllDoctor>> workerInfoList = workerService.queryAllDoctor(params.getUserId()); |
|||
log.info("添加到场人员信息接口结束"); |
|||
return JsonResponse.newInstance().ok(workerInfoList); |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,38 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/7/27 17:01 |
|||
*/ |
|||
public class CarDto { |
|||
|
|||
@ApiModel("绑定平车") |
|||
@Data |
|||
public static class Bind{ |
|||
@NotNull |
|||
@ApiModelProperty("平车ID") |
|||
private Long carId; |
|||
@NotNull |
|||
@ApiModelProperty("项目ID") |
|||
private Long projectId; |
|||
@ApiModelProperty("开始时间, 若无,则不传该参数") |
|||
private Long startTime = System.currentTimeMillis(); |
|||
@ApiModelProperty("结束时间, 若无,则不传该参数") |
|||
private Long endTime = 0L; |
|||
} |
|||
|
|||
@ApiModel("查询患者绑定的平车-请求") |
|||
@Data |
|||
public static class QueryBind{ |
|||
@NotNull |
|||
@ApiModelProperty("项目ID") |
|||
private Long projectId; |
|||
} |
|||
} |
|||
@ -0,0 +1,106 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
import org.hibernate.validator.constraints.Length; |
|||
|
|||
import javax.validation.constraints.*; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class PatientDto { |
|||
|
|||
@Data |
|||
@ApiModel("查询医院下的患者列表") |
|||
public static class QueryPatient{ |
|||
@Min(value = 0,message = "请查询正确的患者类型") |
|||
@Max(value=2,message = "请查询正确的患者类型") |
|||
@ApiModelProperty("患者类型 0急救患者 1平车患者 2转归患者") |
|||
private int type; |
|||
@Length(max = 20,message = "名称过长") |
|||
@ApiModelProperty("患者名称 不传查询全部") |
|||
private String patientName; |
|||
|
|||
@ApiModelProperty("第几页") |
|||
@Min(value = 1) |
|||
private int page = 1; |
|||
@ApiModelProperty("每页多少条") |
|||
@Min(value = 1) |
|||
@Max(value=100) |
|||
private int pageSize = 10; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("添加急救记录信息") |
|||
public static class SaveAidRecord{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@Max(value=1,message = "请查询正确的提交人类型") |
|||
@ApiModelProperty("提交人类型(0平车 1人)") |
|||
private byte userType = 0; |
|||
@ApiModelProperty("code和答案") |
|||
private List<CodeAndAnswer> codeAndAnswerList; |
|||
} |
|||
@Data |
|||
@ApiModel("题目code和答案") |
|||
public static class CodeAndAnswer{ |
|||
@NotBlank |
|||
@ApiModelProperty("code") |
|||
private String questionCode; |
|||
@Size(max = 6,message = "数据过长") |
|||
@ApiModelProperty("答案") |
|||
private String answer; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("批量查询急救记录") |
|||
public static class QueryAidRecord{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@ApiModelProperty("code列表") |
|||
private List<String> codeList; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("查询类型的所有下级的完成情况") |
|||
public static class QuerySubordinate{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@NotBlank(message = "code不能为空") |
|||
@ApiModelProperty("code") |
|||
private String code; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("添加急救记录信息") |
|||
public static class SaveAidRecordN{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@Max(value=1,message = "请查询正确的提交人类型") |
|||
@ApiModelProperty("提交人类型(0平车 1人)") |
|||
private byte userType = 0; |
|||
@ApiModelProperty("code和答案") |
|||
private List<CodeAndAnswerN> codeAndAnswerList; |
|||
} |
|||
@Data |
|||
@ApiModel("题目code和答案") |
|||
public static class CodeAndAnswerN{ |
|||
@NotBlank |
|||
@ApiModelProperty("code") |
|||
private String questionCode; |
|||
@Size(max = 6,message = "数据过长") |
|||
@ApiModelProperty("答案") |
|||
private List<String> answer; |
|||
} |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class PluginDto { |
|||
|
|||
@Data |
|||
@ApiModel("根据id查看插件") |
|||
public static class GetPlugin{ |
|||
@NotNull(message = "插件id不能为空") |
|||
@ApiModelProperty("插件id") |
|||
private Long pluginId; |
|||
@ApiModelProperty("样式类型 (1一行 2两行 3半屏)") |
|||
private int styleType; |
|||
} |
|||
} |
|||
@ -0,0 +1,73 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
@Data |
|||
public class ProjectDto { |
|||
|
|||
@Data |
|||
@ApiModel("根据id查找项目信息") |
|||
public static class ProjectById { |
|||
@NotNull(message = "请选择项目") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("创建病例") |
|||
public static class CreateCaseD { |
|||
@ApiModelProperty("患者姓名") |
|||
private String name; |
|||
@ApiModelProperty("患者性别(0-女,1-男)") |
|||
private Byte gender; |
|||
@ApiModelProperty("患者年龄") |
|||
private int age; |
|||
@ApiModelProperty("患者民族") |
|||
private String nation; |
|||
@ApiModelProperty("患者证件号") |
|||
private String idcard; |
|||
@ApiModelProperty("住院号") |
|||
private String medicalRecordNum; |
|||
@ApiModelProperty("联系电话") |
|||
private String phone; |
|||
@ApiModelProperty("亲属电话") |
|||
private String kinsfolkPhone; |
|||
@ApiModelProperty("发病时间类型(0-已知,1-未知,2-醒后卒中)") |
|||
private Long timeType; |
|||
@ApiModelProperty("发病时间") |
|||
private Long time; |
|||
@ApiModelProperty("是否院内卒中(0-否,1-是)") |
|||
private Byte hospitalStroke; |
|||
@ApiModelProperty("到院时间") |
|||
private Long arriveHospitalTime; |
|||
@ApiModelProperty("住院时间") |
|||
private Long hospitalizedTime; |
|||
@ApiModelProperty("最后正常时间") |
|||
private Long lastNormalTime; |
|||
@ApiModelProperty("入院途径(急诊/门诊/其他医疗机构转入/其他(填空,非必填)") |
|||
private String pathway; |
|||
@ApiModelProperty("来院方式(1本院急救车 2当地120 3网络协作医院转入 4非网络协作医院转入 5自行来院 6绑定平车)") |
|||
private Byte inHospitalType; |
|||
@ApiModelProperty("数据类型(0正式 1演示)") |
|||
private Byte valueType = 0; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("切换项目") |
|||
public static class SwitchProject { |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("当前项目最新的消息") |
|||
public static class QueryNewMessage { |
|||
@NotNull(message = "请选择要查看的项目") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
} |
|||
@ -0,0 +1,72 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.text.ParseException; |
|||
import java.text.SimpleDateFormat; |
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* @description: 数据记录 |
|||
* @author: whj |
|||
* @time: 2021/3/5 13:59 |
|||
*/ |
|||
@Data |
|||
public class RecordDto { |
|||
@Data |
|||
@ApiModel("称重和rfid记录的请求参数") |
|||
public static class WeightAndRfid{ |
|||
@ApiModelProperty("平车ID,默认1") |
|||
private Long carId = 1L; |
|||
@ApiModelProperty("开始时间, 默认今天0点") |
|||
private Long startTime; |
|||
@ApiModelProperty("结束时间, 默认当前时间") |
|||
private Long endTime; |
|||
@ApiModelProperty("数据类型 0开始 1体重 2rfid, 3称重一 4称重二 5称重三 6称重四 7震动 8剂量") |
|||
private byte[] types = {1,2}; |
|||
|
|||
// @ApiModelProperty("当前页,默认1")
|
|||
// private int pageNum=1;
|
|||
// @ApiModelProperty("每页数量,默认100")
|
|||
// @Min(value = 1)
|
|||
// @Max(value=10000)
|
|||
// private int pageSize = 100;
|
|||
|
|||
|
|||
{ |
|||
endTime = System.currentTimeMillis(); |
|||
Date today = new Date(); |
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|||
try { |
|||
startTime = sdf.parse(sdf.format(today)).getTime(); |
|||
} catch (ParseException e) { |
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("称重和rfid记录导出的请求参数") |
|||
public static class WeightAndRfidExport{ |
|||
@ApiModelProperty("平车ID,默认1") |
|||
private Long carId = 1L; |
|||
@ApiModelProperty("开始时间, 默认今天0点") |
|||
private Long startTime; |
|||
@ApiModelProperty("结束时间, 默认当前时间") |
|||
private Long endTime; |
|||
@ApiModelProperty("数据类型 0开始 1体重 2rfid, 3称重一 4称重二 5称重三 6称重四 7震动 8剂量") |
|||
private byte[] types = {1,2}; |
|||
|
|||
{ |
|||
endTime = System.currentTimeMillis(); |
|||
Date today = new Date(); |
|||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|||
try { |
|||
startTime = sdf.parse(sdf.format(today)).getTime(); |
|||
} catch (ParseException e) { |
|||
} |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,29 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
import java.util.List; |
|||
|
|||
@Data |
|||
public class RoleDto { |
|||
@Data |
|||
@ApiModel("查看角色栏展示") |
|||
public static class QueryRoleById{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("修改角色栏展示") |
|||
public static class UpdateRoleShow{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@ApiModelProperty("角色id") |
|||
private List<Long> roleIds; |
|||
} |
|||
} |
|||
@ -0,0 +1,62 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.Max; |
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/7/28 9:05 |
|||
*/ |
|||
public class StatisticalDto { |
|||
|
|||
@Data |
|||
@ApiModel("环节进度查询-请求") |
|||
public static class QueryStep{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目ID") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("质控报告查询-请求") |
|||
public static class Quality{ |
|||
@NotNull |
|||
@ApiModelProperty("开始时间") |
|||
private Long startTime; |
|||
@NotNull |
|||
@ApiModelProperty("结束时间") |
|||
private Long endTime; |
|||
@ApiModelProperty("类型:0:月质控 1:周质控") |
|||
private byte type = 0; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询各环节时长") |
|||
public static class PointTime{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目ID") |
|||
private Long projectId; |
|||
@Max(value=1,message = "请查询正确的查询人类型") |
|||
@ApiModelProperty("查询人的类型:0大屏 1医生 默认0") |
|||
private byte type = 0; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("急救数量统计图数据") |
|||
public static class SelResult{ |
|||
@NotNull(message = "项目id不能为空") |
|||
@ApiModelProperty("项目ID") |
|||
private Long projectId; |
|||
@NotBlank(message = "请选择查询的年份") |
|||
@ApiModelProperty("year,比如直接传入 2020 即可") |
|||
private String year; |
|||
@ApiModelProperty("查询人的类型:0大屏 1医生 默认0") |
|||
private byte type = 0; |
|||
} |
|||
} |
|||
@ -0,0 +1,34 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotBlank; |
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* 1007 |
|||
*/ |
|||
@Data |
|||
public class StatisticsDto { |
|||
@Data |
|||
@ApiModel("医院id和年份") |
|||
public static class UseNum{ |
|||
@NotBlank |
|||
@ApiModelProperty("year,比如直接传入 2020 即可") |
|||
private String year; |
|||
@NotNull |
|||
@ApiModelProperty("医院id") |
|||
private Long hospitalId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("医院id") |
|||
public static class Hospital{ |
|||
@ApiModelProperty("医院id") |
|||
private Long id; |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,61 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import javax.validation.constraints.NotNull; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class TaskDto { |
|||
|
|||
@Data |
|||
@ApiModel("查看永久日常任务") |
|||
public static class QueryPermanentGlobalTask{ |
|||
@NotNull(message = "角色id不能为空") |
|||
@ApiModelProperty("角色id") |
|||
private Long roleId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查看带时间的日常任务") |
|||
public static class QueryGlobalTask{ |
|||
@NotNull(message = "角色id不能为空") |
|||
@ApiModelProperty("角色id") |
|||
private Long roleId; |
|||
@ApiModelProperty("时间基准点 默认当前") |
|||
private Long timeNode = System.currentTimeMillis(); |
|||
@ApiModelProperty("时间基准点 默认天") |
|||
private int timeUnit = 4; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查看定期任务") |
|||
public static class QueryRegularTask{ |
|||
@NotNull(message = "角色id不能为空") |
|||
@ApiModelProperty("角色id") |
|||
private Long roleId; |
|||
@ApiModelProperty("时间基准点 默认当前") |
|||
private Long timeNode = System.currentTimeMillis(); |
|||
@ApiModelProperty("时间基准点 默认天") |
|||
private int timeUnit; |
|||
@ApiModelProperty("0向上查找 1向下查找(默认) 下查包含自己,上查不包含") |
|||
private int queryType = 1; |
|||
@ApiModelProperty("查找颗粒度数量 默认3个") |
|||
private int queryNum = 3; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("修改任务状态") |
|||
public static class UpdateTaskType{ |
|||
@NotNull(message = "任务id不能为空") |
|||
@ApiModelProperty("任务分解id") |
|||
private Long id; |
|||
@ApiModelProperty("0开始 1暂停 2继续 3完成 默认0") |
|||
private int type; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,47 @@ |
|||
package com.ccsens.carbasics.bean.dto; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Data |
|||
public class WorkerDto { |
|||
|
|||
@Data |
|||
@ApiModel("添加到场人员信息") |
|||
public static class AddArriveWorker{ |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
@ApiModelProperty("到场人员信息") |
|||
private List<WorkerInfo> workerInfoList; |
|||
|
|||
} |
|||
@Data |
|||
@ApiModel("到场人员信息") |
|||
public static class WorkerInfo{ |
|||
@ApiModelProperty("环节id") |
|||
private Long stepId; |
|||
@ApiModelProperty("医生名字") |
|||
private String name; |
|||
@ApiModelProperty("到场时间") |
|||
private Long time; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询到场人员信息") |
|||
public static class QueryArriveWorker { |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询医院所有成员") |
|||
public static class QueryAllDoctor { |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,77 @@ |
|||
package com.ccsens.carbasics.bean.dto.message; |
|||
|
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class CarRecordMessageDto { |
|||
/** |
|||
* 平车编号 |
|||
*/ |
|||
private String authId; |
|||
/** |
|||
* 类型 0开始 1体重 2rfid, 3称重一 4称重二 5称重三 6称重四 7震动 8溶栓 9团注 10维持 |
|||
*/ |
|||
private Byte type; |
|||
/** |
|||
* 寄存器地址 |
|||
*/ |
|||
private int addr; |
|||
/** |
|||
* 类型对应的值, |
|||
*/ |
|||
private String value; |
|||
/** |
|||
* 时间 |
|||
*/ |
|||
private Long time; |
|||
|
|||
public byte getType(){ |
|||
if(this.type != null){ |
|||
return type; |
|||
} |
|||
switch (addr){ |
|||
case 3: |
|||
return 0; |
|||
case 16: |
|||
case 17: |
|||
return 1; |
|||
case 18: |
|||
return 8; |
|||
case 19: |
|||
return 9; |
|||
case 20: |
|||
return 10; |
|||
case 21: |
|||
case 22: |
|||
case 23: |
|||
return 7; |
|||
case 27: |
|||
case 28: |
|||
return 3; |
|||
case 29: |
|||
case 30: |
|||
return 4; |
|||
case 31: |
|||
case 32: |
|||
return 5; |
|||
case 33: |
|||
case 34: |
|||
return 6; |
|||
case Addr.RFID_1: |
|||
case Addr.RFID_2: |
|||
case Addr.RFID_3: |
|||
return 2; |
|||
default: |
|||
return this.type; |
|||
} |
|||
} |
|||
|
|||
public static class Addr{ |
|||
public static final byte RFID_1 = 24; |
|||
public static final byte RFID_2 = 25; |
|||
public static final byte RFID_3 = 26; |
|||
} |
|||
} |
|||
@ -0,0 +1,150 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class AttendanceRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private Long stepId; |
|||
|
|||
private String rfid; |
|||
|
|||
private String name; |
|||
|
|||
private Long userId; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long time; |
|||
|
|||
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 getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public String getRfid() { |
|||
return rfid; |
|||
} |
|||
|
|||
public void setRfid(String rfid) { |
|||
this.rfid = rfid == null ? null : rfid.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Long getUserId() { |
|||
return userId; |
|||
} |
|||
|
|||
public void setUserId(Long userId) { |
|||
this.userId = userId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", rfid=").append(rfid); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", userId=").append(userId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", time=").append(time); |
|||
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,941 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class AttendanceRecordExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public AttendanceRecordExample() { |
|||
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 andFirstAidIdIsNull() { |
|||
addCriterion("first_aid_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIsNotNull() { |
|||
addCriterion("first_aid_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdEqualTo(Long value) { |
|||
addCriterion("first_aid_id =", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotEqualTo(Long value) { |
|||
addCriterion("first_aid_id <>", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThan(Long value) { |
|||
addCriterion("first_aid_id >", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id >=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThan(Long value) { |
|||
addCriterion("first_aid_id <", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id <=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIn(List<Long> values) { |
|||
addCriterion("first_aid_id in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotIn(List<Long> values) { |
|||
addCriterion("first_aid_id not in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id not between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNull() { |
|||
addCriterion("step_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNotNull() { |
|||
addCriterion("step_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdEqualTo(Long value) { |
|||
addCriterion("step_id =", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotEqualTo(Long value) { |
|||
addCriterion("step_id <>", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThan(Long value) { |
|||
addCriterion("step_id >", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("step_id >=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThan(Long value) { |
|||
addCriterion("step_id <", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("step_id <=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIn(List<Long> values) { |
|||
addCriterion("step_id in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotIn(List<Long> values) { |
|||
addCriterion("step_id not in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdBetween(Long value1, Long value2) { |
|||
addCriterion("step_id between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("step_id not between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidIsNull() { |
|||
addCriterion("rfid is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidIsNotNull() { |
|||
addCriterion("rfid is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidEqualTo(String value) { |
|||
addCriterion("rfid =", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidNotEqualTo(String value) { |
|||
addCriterion("rfid <>", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidGreaterThan(String value) { |
|||
addCriterion("rfid >", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidGreaterThanOrEqualTo(String value) { |
|||
addCriterion("rfid >=", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidLessThan(String value) { |
|||
addCriterion("rfid <", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidLessThanOrEqualTo(String value) { |
|||
addCriterion("rfid <=", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidLike(String value) { |
|||
addCriterion("rfid like", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidNotLike(String value) { |
|||
addCriterion("rfid not like", value, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidIn(List<String> values) { |
|||
addCriterion("rfid in", values, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidNotIn(List<String> values) { |
|||
addCriterion("rfid not in", values, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidBetween(String value1, String value2) { |
|||
addCriterion("rfid between", value1, value2, "rfid"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andRfidNotBetween(String value1, String value2) { |
|||
addCriterion("rfid not between", value1, value2, "rfid"); |
|||
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 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 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 andTimeIsNull() { |
|||
addCriterion("time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNotNull() { |
|||
addCriterion("time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeEqualTo(Long value) { |
|||
addCriterion("time =", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotEqualTo(Long value) { |
|||
addCriterion("time <>", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThan(Long value) { |
|||
addCriterion("time >", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("time >=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThan(Long value) { |
|||
addCriterion("time <", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("time <=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIn(List<Long> values) { |
|||
addCriterion("time in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotIn(List<Long> values) { |
|||
addCriterion("time not in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeBetween(Long value1, Long value2) { |
|||
addCriterion("time between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("time not between", value1, value2, "time"); |
|||
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,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CarRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long carId; |
|||
|
|||
private Byte type; |
|||
|
|||
private String carValue; |
|||
|
|||
private Long time; |
|||
|
|||
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 getCarId() { |
|||
return carId; |
|||
} |
|||
|
|||
public void setCarId(Long carId) { |
|||
this.carId = carId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public String getCarValue() { |
|||
return carValue; |
|||
} |
|||
|
|||
public void setCarValue(String carValue) { |
|||
this.carValue = carValue == null ? null : carValue.trim(); |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
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(", carId=").append(carId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", carValue=").append(carValue); |
|||
sb.append(", time=").append(time); |
|||
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,751 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CarRecordExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CarRecordExample() { |
|||
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 andCarIdIsNull() { |
|||
addCriterion("car_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdIsNotNull() { |
|||
addCriterion("car_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdEqualTo(Long value) { |
|||
addCriterion("car_id =", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdNotEqualTo(Long value) { |
|||
addCriterion("car_id <>", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdGreaterThan(Long value) { |
|||
addCriterion("car_id >", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("car_id >=", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdLessThan(Long value) { |
|||
addCriterion("car_id <", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("car_id <=", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdIn(List<Long> values) { |
|||
addCriterion("car_id in", values, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdNotIn(List<Long> values) { |
|||
addCriterion("car_id not in", values, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdBetween(Long value1, Long value2) { |
|||
addCriterion("car_id between", value1, value2, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("car_id not between", value1, value2, "carId"); |
|||
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 andCarValueIsNull() { |
|||
addCriterion("car_value is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueIsNotNull() { |
|||
addCriterion("car_value is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueEqualTo(String value) { |
|||
addCriterion("car_value =", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueNotEqualTo(String value) { |
|||
addCriterion("car_value <>", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueGreaterThan(String value) { |
|||
addCriterion("car_value >", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueGreaterThanOrEqualTo(String value) { |
|||
addCriterion("car_value >=", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueLessThan(String value) { |
|||
addCriterion("car_value <", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueLessThanOrEqualTo(String value) { |
|||
addCriterion("car_value <=", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueLike(String value) { |
|||
addCriterion("car_value like", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueNotLike(String value) { |
|||
addCriterion("car_value not like", value, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueIn(List<String> values) { |
|||
addCriterion("car_value in", values, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueNotIn(List<String> values) { |
|||
addCriterion("car_value not in", values, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueBetween(String value1, String value2) { |
|||
addCriterion("car_value between", value1, value2, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarValueNotBetween(String value1, String value2) { |
|||
addCriterion("car_value not between", value1, value2, "carValue"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNull() { |
|||
addCriterion("time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIsNotNull() { |
|||
addCriterion("time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeEqualTo(Long value) { |
|||
addCriterion("time =", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotEqualTo(Long value) { |
|||
addCriterion("time <>", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThan(Long value) { |
|||
addCriterion("time >", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("time >=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThan(Long value) { |
|||
addCriterion("time <", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("time <=", value, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeIn(List<Long> values) { |
|||
addCriterion("time in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotIn(List<Long> values) { |
|||
addCriterion("time not in", values, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeBetween(Long value1, Long value2) { |
|||
addCriterion("time between", value1, value2, "time"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("time not between", value1, value2, "time"); |
|||
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,139 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class CodeDictionaries implements Serializable { |
|||
private Long id; |
|||
|
|||
private String question; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String parentCode; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String taskName; |
|||
|
|||
private Long stepId; |
|||
|
|||
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 getQuestion() { |
|||
return question; |
|||
} |
|||
|
|||
public void setQuestion(String question) { |
|||
this.question = question == null ? null : question.trim(); |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getParentCode() { |
|||
return parentCode; |
|||
} |
|||
|
|||
public void setParentCode(String parentCode) { |
|||
this.parentCode = parentCode == null ? null : parentCode.trim(); |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getTaskName() { |
|||
return taskName; |
|||
} |
|||
|
|||
public void setTaskName(String taskName) { |
|||
this.taskName = taskName == null ? null : taskName.trim(); |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
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(", question=").append(question); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", parentCode=").append(parentCode); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", taskName=").append(taskName); |
|||
sb.append(", stepId=").append(stepId); |
|||
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,901 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class CodeDictionariesExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public CodeDictionariesExample() { |
|||
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 andQuestionIsNull() { |
|||
addCriterion("question is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIsNotNull() { |
|||
addCriterion("question is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionEqualTo(String value) { |
|||
addCriterion("question =", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionNotEqualTo(String value) { |
|||
addCriterion("question <>", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionGreaterThan(String value) { |
|||
addCriterion("question >", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionGreaterThanOrEqualTo(String value) { |
|||
addCriterion("question >=", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionLessThan(String value) { |
|||
addCriterion("question <", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionLessThanOrEqualTo(String value) { |
|||
addCriterion("question <=", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionLike(String value) { |
|||
addCriterion("question like", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionNotLike(String value) { |
|||
addCriterion("question not like", value, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionIn(List<String> values) { |
|||
addCriterion("question in", values, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionNotIn(List<String> values) { |
|||
addCriterion("question not in", values, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionBetween(String value1, String value2) { |
|||
addCriterion("question between", value1, value2, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionNotBetween(String value1, String value2) { |
|||
addCriterion("question not between", value1, value2, "question"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNull() { |
|||
addCriterion("question_code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNotNull() { |
|||
addCriterion("question_code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeEqualTo(String value) { |
|||
addCriterion("question_code =", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotEqualTo(String value) { |
|||
addCriterion("question_code <>", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThan(String value) { |
|||
addCriterion("question_code >", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("question_code >=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThan(String value) { |
|||
addCriterion("question_code <", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("question_code <=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLike(String value) { |
|||
addCriterion("question_code like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotLike(String value) { |
|||
addCriterion("question_code not like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIn(List<String> values) { |
|||
addCriterion("question_code in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotIn(List<String> values) { |
|||
addCriterion("question_code not in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeBetween(String value1, String value2) { |
|||
addCriterion("question_code between", value1, value2, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotBetween(String value1, String value2) { |
|||
addCriterion("question_code not between", value1, value2, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeIsNull() { |
|||
addCriterion("parent_code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeIsNotNull() { |
|||
addCriterion("parent_code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeEqualTo(String value) { |
|||
addCriterion("parent_code =", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeNotEqualTo(String value) { |
|||
addCriterion("parent_code <>", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeGreaterThan(String value) { |
|||
addCriterion("parent_code >", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("parent_code >=", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeLessThan(String value) { |
|||
addCriterion("parent_code <", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("parent_code <=", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeLike(String value) { |
|||
addCriterion("parent_code like", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeNotLike(String value) { |
|||
addCriterion("parent_code not like", value, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeIn(List<String> values) { |
|||
addCriterion("parent_code in", values, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeNotIn(List<String> values) { |
|||
addCriterion("parent_code not in", values, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeBetween(String value1, String value2) { |
|||
addCriterion("parent_code between", value1, value2, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andParentCodeNotBetween(String value1, String value2) { |
|||
addCriterion("parent_code not between", value1, value2, "parentCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameIsNull() { |
|||
addCriterion("task_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameIsNotNull() { |
|||
addCriterion("task_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameEqualTo(String value) { |
|||
addCriterion("task_name =", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameNotEqualTo(String value) { |
|||
addCriterion("task_name <>", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameGreaterThan(String value) { |
|||
addCriterion("task_name >", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("task_name >=", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameLessThan(String value) { |
|||
addCriterion("task_name <", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameLessThanOrEqualTo(String value) { |
|||
addCriterion("task_name <=", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameLike(String value) { |
|||
addCriterion("task_name like", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameNotLike(String value) { |
|||
addCriterion("task_name not like", value, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameIn(List<String> values) { |
|||
addCriterion("task_name in", values, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameNotIn(List<String> values) { |
|||
addCriterion("task_name not in", values, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameBetween(String value1, String value2) { |
|||
addCriterion("task_name between", value1, value2, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andTaskNameNotBetween(String value1, String value2) { |
|||
addCriterion("task_name not between", value1, value2, "taskName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNull() { |
|||
addCriterion("step_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNotNull() { |
|||
addCriterion("step_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdEqualTo(Long value) { |
|||
addCriterion("step_id =", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotEqualTo(Long value) { |
|||
addCriterion("step_id <>", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThan(Long value) { |
|||
addCriterion("step_id >", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("step_id >=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThan(Long value) { |
|||
addCriterion("step_id <", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("step_id <=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIn(List<Long> values) { |
|||
addCriterion("step_id in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotIn(List<Long> values) { |
|||
addCriterion("step_id not in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdBetween(Long value1, Long value2) { |
|||
addCriterion("step_id between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("step_id not between", value1, value2, "stepId"); |
|||
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,172 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Doctor implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte post; |
|||
|
|||
private Byte department; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private String name; |
|||
|
|||
private String serial; |
|||
|
|||
private String phone; |
|||
|
|||
private Byte gender; |
|||
|
|||
private String rfid; |
|||
|
|||
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 Byte getPost() { |
|||
return post; |
|||
} |
|||
|
|||
public void setPost(Byte post) { |
|||
this.post = post; |
|||
} |
|||
|
|||
public Byte getDepartment() { |
|||
return department; |
|||
} |
|||
|
|||
public void setDepartment(Byte department) { |
|||
this.department = department; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public String getRfid() { |
|||
return rfid; |
|||
} |
|||
|
|||
public void setRfid(String rfid) { |
|||
this.rfid = rfid == null ? null : rfid.trim(); |
|||
} |
|||
|
|||
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(", post=").append(post); |
|||
sb.append(", department=").append(department); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", serial=").append(serial); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", rfid=").append(rfid); |
|||
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(); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,249 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAid implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long patientId; |
|||
|
|||
private Long projectId; |
|||
|
|||
private Byte type; |
|||
|
|||
private Byte valueType; |
|||
|
|||
private Byte saveType; |
|||
|
|||
private String kinsfolkPhone; |
|||
|
|||
private String medicalRecordNum; |
|||
|
|||
private String parientSn; |
|||
|
|||
private Long time; |
|||
|
|||
private Byte hospitalStroke; |
|||
|
|||
private Long arriveHospitalTime; |
|||
|
|||
private Long hospitalizedTime; |
|||
|
|||
private Long lastNormalTime; |
|||
|
|||
private String pathway; |
|||
|
|||
private Byte inHospitalType; |
|||
|
|||
private Long operator; |
|||
|
|||
private Date createdAt; |
|||
|
|||
private Date updatedAt; |
|||
|
|||
private Byte recStatus; |
|||
|
|||
private Byte timeType; |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
public Long getId() { |
|||
return id; |
|||
} |
|||
|
|||
public void setId(Long id) { |
|||
this.id = id; |
|||
} |
|||
|
|||
public Long getPatientId() { |
|||
return patientId; |
|||
} |
|||
|
|||
public void setPatientId(Long patientId) { |
|||
this.patientId = patientId; |
|||
} |
|||
|
|||
public Long getProjectId() { |
|||
return projectId; |
|||
} |
|||
|
|||
public void setProjectId(Long projectId) { |
|||
this.projectId = projectId; |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Byte getValueType() { |
|||
return valueType; |
|||
} |
|||
|
|||
public void setValueType(Byte valueType) { |
|||
this.valueType = valueType; |
|||
} |
|||
|
|||
public Byte getSaveType() { |
|||
return saveType; |
|||
} |
|||
|
|||
public void setSaveType(Byte saveType) { |
|||
this.saveType = saveType; |
|||
} |
|||
|
|||
public String getKinsfolkPhone() { |
|||
return kinsfolkPhone; |
|||
} |
|||
|
|||
public void setKinsfolkPhone(String kinsfolkPhone) { |
|||
this.kinsfolkPhone = kinsfolkPhone == null ? null : kinsfolkPhone.trim(); |
|||
} |
|||
|
|||
public String getMedicalRecordNum() { |
|||
return medicalRecordNum; |
|||
} |
|||
|
|||
public void setMedicalRecordNum(String medicalRecordNum) { |
|||
this.medicalRecordNum = medicalRecordNum == null ? null : medicalRecordNum.trim(); |
|||
} |
|||
|
|||
public String getParientSn() { |
|||
return parientSn; |
|||
} |
|||
|
|||
public void setParientSn(String parientSn) { |
|||
this.parientSn = parientSn == null ? null : parientSn.trim(); |
|||
} |
|||
|
|||
public Long getTime() { |
|||
return time; |
|||
} |
|||
|
|||
public void setTime(Long time) { |
|||
this.time = time; |
|||
} |
|||
|
|||
public Byte getHospitalStroke() { |
|||
return hospitalStroke; |
|||
} |
|||
|
|||
public void setHospitalStroke(Byte hospitalStroke) { |
|||
this.hospitalStroke = hospitalStroke; |
|||
} |
|||
|
|||
public Long getArriveHospitalTime() { |
|||
return arriveHospitalTime; |
|||
} |
|||
|
|||
public void setArriveHospitalTime(Long arriveHospitalTime) { |
|||
this.arriveHospitalTime = arriveHospitalTime; |
|||
} |
|||
|
|||
public Long getHospitalizedTime() { |
|||
return hospitalizedTime; |
|||
} |
|||
|
|||
public void setHospitalizedTime(Long hospitalizedTime) { |
|||
this.hospitalizedTime = hospitalizedTime; |
|||
} |
|||
|
|||
public Long getLastNormalTime() { |
|||
return lastNormalTime; |
|||
} |
|||
|
|||
public void setLastNormalTime(Long lastNormalTime) { |
|||
this.lastNormalTime = lastNormalTime; |
|||
} |
|||
|
|||
public String getPathway() { |
|||
return pathway; |
|||
} |
|||
|
|||
public void setPathway(String pathway) { |
|||
this.pathway = pathway == null ? null : pathway.trim(); |
|||
} |
|||
|
|||
public Byte getInHospitalType() { |
|||
return inHospitalType; |
|||
} |
|||
|
|||
public void setInHospitalType(Byte inHospitalType) { |
|||
this.inHospitalType = inHospitalType; |
|||
} |
|||
|
|||
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; |
|||
} |
|||
|
|||
public Byte getTimeType() { |
|||
return timeType; |
|||
} |
|||
|
|||
public void setTimeType(Byte timeType) { |
|||
this.timeType = timeType; |
|||
} |
|||
|
|||
@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(", patientId=").append(patientId); |
|||
sb.append(", projectId=").append(projectId); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", valueType=").append(valueType); |
|||
sb.append(", saveType=").append(saveType); |
|||
sb.append(", kinsfolkPhone=").append(kinsfolkPhone); |
|||
sb.append(", medicalRecordNum=").append(medicalRecordNum); |
|||
sb.append(", parientSn=").append(parientSn); |
|||
sb.append(", time=").append(time); |
|||
sb.append(", hospitalStroke=").append(hospitalStroke); |
|||
sb.append(", arriveHospitalTime=").append(arriveHospitalTime); |
|||
sb.append(", hospitalizedTime=").append(hospitalizedTime); |
|||
sb.append(", lastNormalTime=").append(lastNormalTime); |
|||
sb.append(", pathway=").append(pathway); |
|||
sb.append(", inHospitalType=").append(inHospitalType); |
|||
sb.append(", operator=").append(operator); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append(", timeType=").append(timeType); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,106 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidMessage implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String content; |
|||
|
|||
private Long toUser; |
|||
|
|||
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 getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getContent() { |
|||
return content; |
|||
} |
|||
|
|||
public void setContent(String content) { |
|||
this.content = content == null ? null : content.trim(); |
|||
} |
|||
|
|||
public Long getToUser() { |
|||
return toUser; |
|||
} |
|||
|
|||
public void setToUser(Long toUser) { |
|||
this.toUser = toUser; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", content=").append(content); |
|||
sb.append(", toUser=").append(toUser); |
|||
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.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FirstAidMessageExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FirstAidMessageExample() { |
|||
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 andFirstAidIdIsNull() { |
|||
addCriterion("first_aid_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIsNotNull() { |
|||
addCriterion("first_aid_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdEqualTo(Long value) { |
|||
addCriterion("first_aid_id =", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotEqualTo(Long value) { |
|||
addCriterion("first_aid_id <>", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThan(Long value) { |
|||
addCriterion("first_aid_id >", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id >=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThan(Long value) { |
|||
addCriterion("first_aid_id <", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id <=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIn(List<Long> values) { |
|||
addCriterion("first_aid_id in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotIn(List<Long> values) { |
|||
addCriterion("first_aid_id not in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id not between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNull() { |
|||
addCriterion("content is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIsNotNull() { |
|||
addCriterion("content is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentEqualTo(String value) { |
|||
addCriterion("content =", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotEqualTo(String value) { |
|||
addCriterion("content <>", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThan(String value) { |
|||
addCriterion("content >", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentGreaterThanOrEqualTo(String value) { |
|||
addCriterion("content >=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThan(String value) { |
|||
addCriterion("content <", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLessThanOrEqualTo(String value) { |
|||
addCriterion("content <=", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentLike(String value) { |
|||
addCriterion("content like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotLike(String value) { |
|||
addCriterion("content not like", value, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentIn(List<String> values) { |
|||
addCriterion("content in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotIn(List<String> values) { |
|||
addCriterion("content not in", values, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentBetween(String value1, String value2) { |
|||
addCriterion("content between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andContentNotBetween(String value1, String value2) { |
|||
addCriterion("content not between", value1, value2, "content"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserIsNull() { |
|||
addCriterion("to_user is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserIsNotNull() { |
|||
addCriterion("to_user is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserEqualTo(Long value) { |
|||
addCriterion("to_user =", value, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserNotEqualTo(Long value) { |
|||
addCriterion("to_user <>", value, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserGreaterThan(Long value) { |
|||
addCriterion("to_user >", value, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("to_user >=", value, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserLessThan(Long value) { |
|||
addCriterion("to_user <", value, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserLessThanOrEqualTo(Long value) { |
|||
addCriterion("to_user <=", value, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserIn(List<Long> values) { |
|||
addCriterion("to_user in", values, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserNotIn(List<Long> values) { |
|||
addCriterion("to_user not in", values, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserBetween(Long value1, Long value2) { |
|||
addCriterion("to_user between", value1, value2, "toUser"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andToUserNotBetween(Long value1, Long value2) { |
|||
addCriterion("to_user not between", value1, value2, "toUser"); |
|||
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.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidRecord implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Long submitUserId; |
|||
|
|||
private Byte submitUserType; |
|||
|
|||
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 getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getSubmitUserId() { |
|||
return submitUserId; |
|||
} |
|||
|
|||
public void setSubmitUserId(Long submitUserId) { |
|||
this.submitUserId = submitUserId; |
|||
} |
|||
|
|||
public Byte getSubmitUserType() { |
|||
return submitUserType; |
|||
} |
|||
|
|||
public void setSubmitUserType(Byte submitUserType) { |
|||
this.submitUserType = submitUserType; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", submitUserId=").append(submitUserId); |
|||
sb.append(", submitUserType=").append(submitUserType); |
|||
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.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FirstAidRecordExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FirstAidRecordExample() { |
|||
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 andFirstAidIdIsNull() { |
|||
addCriterion("first_aid_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIsNotNull() { |
|||
addCriterion("first_aid_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdEqualTo(Long value) { |
|||
addCriterion("first_aid_id =", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotEqualTo(Long value) { |
|||
addCriterion("first_aid_id <>", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThan(Long value) { |
|||
addCriterion("first_aid_id >", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id >=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThan(Long value) { |
|||
addCriterion("first_aid_id <", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id <=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIn(List<Long> values) { |
|||
addCriterion("first_aid_id in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotIn(List<Long> values) { |
|||
addCriterion("first_aid_id not in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id not between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNull() { |
|||
addCriterion("question_code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNotNull() { |
|||
addCriterion("question_code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeEqualTo(String value) { |
|||
addCriterion("question_code =", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotEqualTo(String value) { |
|||
addCriterion("question_code <>", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThan(String value) { |
|||
addCriterion("question_code >", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("question_code >=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThan(String value) { |
|||
addCriterion("question_code <", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("question_code <=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLike(String value) { |
|||
addCriterion("question_code like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotLike(String value) { |
|||
addCriterion("question_code not like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIn(List<String> values) { |
|||
addCriterion("question_code in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotIn(List<String> values) { |
|||
addCriterion("question_code not in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeBetween(String value1, String value2) { |
|||
addCriterion("question_code between", value1, value2, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotBetween(String value1, String value2) { |
|||
addCriterion("question_code not between", value1, value2, "questionCode"); |
|||
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 andSubmitUserIdIsNull() { |
|||
addCriterion("submit_user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdIsNotNull() { |
|||
addCriterion("submit_user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdEqualTo(Long value) { |
|||
addCriterion("submit_user_id =", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdNotEqualTo(Long value) { |
|||
addCriterion("submit_user_id <>", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdGreaterThan(Long value) { |
|||
addCriterion("submit_user_id >", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("submit_user_id >=", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdLessThan(Long value) { |
|||
addCriterion("submit_user_id <", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("submit_user_id <=", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdIn(List<Long> values) { |
|||
addCriterion("submit_user_id in", values, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdNotIn(List<Long> values) { |
|||
addCriterion("submit_user_id not in", values, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("submit_user_id between", value1, value2, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("submit_user_id not between", value1, value2, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeIsNull() { |
|||
addCriterion("submit_user_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeIsNotNull() { |
|||
addCriterion("submit_user_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeEqualTo(Byte value) { |
|||
addCriterion("submit_user_type =", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeNotEqualTo(Byte value) { |
|||
addCriterion("submit_user_type <>", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeGreaterThan(Byte value) { |
|||
addCriterion("submit_user_type >", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_user_type >=", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeLessThan(Byte value) { |
|||
addCriterion("submit_user_type <", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_user_type <=", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeIn(List<Byte> values) { |
|||
addCriterion("submit_user_type in", values, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeNotIn(List<Byte> values) { |
|||
addCriterion("submit_user_type not in", values, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_user_type between", value1, value2, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_user_type not between", value1, value2, "submitUserType"); |
|||
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.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidRecordLog implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private String questionCode; |
|||
|
|||
private String answer; |
|||
|
|||
private Long submitUserId; |
|||
|
|||
private Byte submitUserType; |
|||
|
|||
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 getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public String getQuestionCode() { |
|||
return questionCode; |
|||
} |
|||
|
|||
public void setQuestionCode(String questionCode) { |
|||
this.questionCode = questionCode == null ? null : questionCode.trim(); |
|||
} |
|||
|
|||
public String getAnswer() { |
|||
return answer; |
|||
} |
|||
|
|||
public void setAnswer(String answer) { |
|||
this.answer = answer == null ? null : answer.trim(); |
|||
} |
|||
|
|||
public Long getSubmitUserId() { |
|||
return submitUserId; |
|||
} |
|||
|
|||
public void setSubmitUserId(Long submitUserId) { |
|||
this.submitUserId = submitUserId; |
|||
} |
|||
|
|||
public Byte getSubmitUserType() { |
|||
return submitUserType; |
|||
} |
|||
|
|||
public void setSubmitUserType(Byte submitUserType) { |
|||
this.submitUserType = submitUserType; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", questionCode=").append(questionCode); |
|||
sb.append(", answer=").append(answer); |
|||
sb.append(", submitUserId=").append(submitUserId); |
|||
sb.append(", submitUserType=").append(submitUserType); |
|||
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.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FirstAidRecordLogExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FirstAidRecordLogExample() { |
|||
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 andFirstAidIdIsNull() { |
|||
addCriterion("first_aid_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIsNotNull() { |
|||
addCriterion("first_aid_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdEqualTo(Long value) { |
|||
addCriterion("first_aid_id =", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotEqualTo(Long value) { |
|||
addCriterion("first_aid_id <>", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThan(Long value) { |
|||
addCriterion("first_aid_id >", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id >=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThan(Long value) { |
|||
addCriterion("first_aid_id <", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id <=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIn(List<Long> values) { |
|||
addCriterion("first_aid_id in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotIn(List<Long> values) { |
|||
addCriterion("first_aid_id not in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id not between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNull() { |
|||
addCriterion("question_code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIsNotNull() { |
|||
addCriterion("question_code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeEqualTo(String value) { |
|||
addCriterion("question_code =", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotEqualTo(String value) { |
|||
addCriterion("question_code <>", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThan(String value) { |
|||
addCriterion("question_code >", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("question_code >=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThan(String value) { |
|||
addCriterion("question_code <", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("question_code <=", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeLike(String value) { |
|||
addCriterion("question_code like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotLike(String value) { |
|||
addCriterion("question_code not like", value, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeIn(List<String> values) { |
|||
addCriterion("question_code in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotIn(List<String> values) { |
|||
addCriterion("question_code not in", values, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeBetween(String value1, String value2) { |
|||
addCriterion("question_code between", value1, value2, "questionCode"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andQuestionCodeNotBetween(String value1, String value2) { |
|||
addCriterion("question_code not between", value1, value2, "questionCode"); |
|||
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 andSubmitUserIdIsNull() { |
|||
addCriterion("submit_user_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdIsNotNull() { |
|||
addCriterion("submit_user_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdEqualTo(Long value) { |
|||
addCriterion("submit_user_id =", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdNotEqualTo(Long value) { |
|||
addCriterion("submit_user_id <>", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdGreaterThan(Long value) { |
|||
addCriterion("submit_user_id >", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("submit_user_id >=", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdLessThan(Long value) { |
|||
addCriterion("submit_user_id <", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("submit_user_id <=", value, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdIn(List<Long> values) { |
|||
addCriterion("submit_user_id in", values, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdNotIn(List<Long> values) { |
|||
addCriterion("submit_user_id not in", values, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdBetween(Long value1, Long value2) { |
|||
addCriterion("submit_user_id between", value1, value2, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("submit_user_id not between", value1, value2, "submitUserId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeIsNull() { |
|||
addCriterion("submit_user_type is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeIsNotNull() { |
|||
addCriterion("submit_user_type is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeEqualTo(Byte value) { |
|||
addCriterion("submit_user_type =", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeNotEqualTo(Byte value) { |
|||
addCriterion("submit_user_type <>", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeGreaterThan(Byte value) { |
|||
addCriterion("submit_user_type >", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_user_type >=", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeLessThan(Byte value) { |
|||
addCriterion("submit_user_type <", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeLessThanOrEqualTo(Byte value) { |
|||
addCriterion("submit_user_type <=", value, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeIn(List<Byte> values) { |
|||
addCriterion("submit_user_type in", values, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeNotIn(List<Byte> values) { |
|||
addCriterion("submit_user_type not in", values, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_user_type between", value1, value2, "submitUserType"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSubmitUserTypeNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("submit_user_type not between", value1, value2, "submitUserType"); |
|||
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.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class FirstAidStandard implements Serializable { |
|||
private Long id; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
private Long stepId; |
|||
|
|||
private Long duration; |
|||
|
|||
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 Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
public Long getDuration() { |
|||
return duration; |
|||
} |
|||
|
|||
public void setDuration(Long duration) { |
|||
this.duration = duration; |
|||
} |
|||
|
|||
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(", hospitalId=").append(hospitalId); |
|||
sb.append(", stepId=").append(stepId); |
|||
sb.append(", duration=").append(duration); |
|||
sb.append(", createdAt=").append(createdAt); |
|||
sb.append(", updatedAt=").append(updatedAt); |
|||
sb.append(", recStatus=").append(recStatus); |
|||
sb.append("]"); |
|||
return sb.toString(); |
|||
} |
|||
} |
|||
@ -0,0 +1,681 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class FirstAidStandardExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public FirstAidStandardExample() { |
|||
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(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 andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNull() { |
|||
addCriterion("step_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNotNull() { |
|||
addCriterion("step_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdEqualTo(Long value) { |
|||
addCriterion("step_id =", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotEqualTo(Long value) { |
|||
addCriterion("step_id <>", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThan(Long value) { |
|||
addCriterion("step_id >", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("step_id >=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThan(Long value) { |
|||
addCriterion("step_id <", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("step_id <=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIn(List<Long> values) { |
|||
addCriterion("step_id in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotIn(List<Long> values) { |
|||
addCriterion("step_id not in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdBetween(Long value1, Long value2) { |
|||
addCriterion("step_id between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("step_id not between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationIsNull() { |
|||
addCriterion("duration is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationIsNotNull() { |
|||
addCriterion("duration is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationEqualTo(Long value) { |
|||
addCriterion("duration =", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationNotEqualTo(Long value) { |
|||
addCriterion("duration <>", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationGreaterThan(Long value) { |
|||
addCriterion("duration >", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("duration >=", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationLessThan(Long value) { |
|||
addCriterion("duration <", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationLessThanOrEqualTo(Long value) { |
|||
addCriterion("duration <=", value, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationIn(List<Long> values) { |
|||
addCriterion("duration in", values, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationNotIn(List<Long> values) { |
|||
addCriterion("duration not in", values, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationBetween(Long value1, Long value2) { |
|||
addCriterion("duration between", value1, value2, "duration"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDurationNotBetween(Long value1, Long value2) { |
|||
addCriterion("duration not between", value1, value2, "duration"); |
|||
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,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Hospital implements Serializable { |
|||
private Long id; |
|||
|
|||
private String serial; |
|||
|
|||
private String name; |
|||
|
|||
private String shortName; |
|||
|
|||
private String introduce; |
|||
|
|||
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 getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public String getShortName() { |
|||
return shortName; |
|||
} |
|||
|
|||
public void setShortName(String shortName) { |
|||
this.shortName = shortName == null ? null : shortName.trim(); |
|||
} |
|||
|
|||
public String getIntroduce() { |
|||
return introduce; |
|||
} |
|||
|
|||
public void setIntroduce(String introduce) { |
|||
this.introduce = introduce == null ? null : introduce.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(", serial=").append(serial); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", shortName=").append(shortName); |
|||
sb.append(", introduce=").append(introduce); |
|||
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,781 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class HospitalExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public HospitalExample() { |
|||
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 andSerialIsNull() { |
|||
addCriterion("serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIsNotNull() { |
|||
addCriterion("serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialEqualTo(String value) { |
|||
addCriterion("serial =", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotEqualTo(String value) { |
|||
addCriterion("serial <>", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThan(String value) { |
|||
addCriterion("serial >", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("serial >=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThan(String value) { |
|||
addCriterion("serial <", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("serial <=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLike(String value) { |
|||
addCriterion("serial like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotLike(String value) { |
|||
addCriterion("serial not like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIn(List<String> values) { |
|||
addCriterion("serial in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotIn(List<String> values) { |
|||
addCriterion("serial not in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialBetween(String value1, String value2) { |
|||
addCriterion("serial between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotBetween(String value1, String value2) { |
|||
addCriterion("serial not between", value1, value2, "serial"); |
|||
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 andShortNameIsNull() { |
|||
addCriterion("short_name is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameIsNotNull() { |
|||
addCriterion("short_name is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameEqualTo(String value) { |
|||
addCriterion("short_name =", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameNotEqualTo(String value) { |
|||
addCriterion("short_name <>", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameGreaterThan(String value) { |
|||
addCriterion("short_name >", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameGreaterThanOrEqualTo(String value) { |
|||
addCriterion("short_name >=", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameLessThan(String value) { |
|||
addCriterion("short_name <", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameLessThanOrEqualTo(String value) { |
|||
addCriterion("short_name <=", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameLike(String value) { |
|||
addCriterion("short_name like", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameNotLike(String value) { |
|||
addCriterion("short_name not like", value, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameIn(List<String> values) { |
|||
addCriterion("short_name in", values, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameNotIn(List<String> values) { |
|||
addCriterion("short_name not in", values, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameBetween(String value1, String value2) { |
|||
addCriterion("short_name between", value1, value2, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andShortNameNotBetween(String value1, String value2) { |
|||
addCriterion("short_name not between", value1, value2, "shortName"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceIsNull() { |
|||
addCriterion("introduce is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceIsNotNull() { |
|||
addCriterion("introduce is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceEqualTo(String value) { |
|||
addCriterion("introduce =", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceNotEqualTo(String value) { |
|||
addCriterion("introduce <>", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceGreaterThan(String value) { |
|||
addCriterion("introduce >", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceGreaterThanOrEqualTo(String value) { |
|||
addCriterion("introduce >=", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceLessThan(String value) { |
|||
addCriterion("introduce <", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceLessThanOrEqualTo(String value) { |
|||
addCriterion("introduce <=", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceLike(String value) { |
|||
addCriterion("introduce like", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceNotLike(String value) { |
|||
addCriterion("introduce not like", value, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceIn(List<String> values) { |
|||
addCriterion("introduce in", values, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceNotIn(List<String> values) { |
|||
addCriterion("introduce not in", values, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceBetween(String value1, String value2) { |
|||
addCriterion("introduce between", value1, value2, "introduce"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andIntroduceNotBetween(String value1, String value2) { |
|||
addCriterion("introduce not between", value1, value2, "introduce"); |
|||
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,161 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Patient implements Serializable { |
|||
private Long id; |
|||
|
|||
private String name; |
|||
|
|||
private Byte gender; |
|||
|
|||
private Integer age; |
|||
|
|||
private String nation; |
|||
|
|||
private String idcard; |
|||
|
|||
private String phone; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
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 getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getGender() { |
|||
return gender; |
|||
} |
|||
|
|||
public void setGender(Byte gender) { |
|||
this.gender = gender; |
|||
} |
|||
|
|||
public Integer getAge() { |
|||
return age; |
|||
} |
|||
|
|||
public void setAge(Integer age) { |
|||
this.age = age; |
|||
} |
|||
|
|||
public String getNation() { |
|||
return nation; |
|||
} |
|||
|
|||
public void setNation(String nation) { |
|||
this.nation = nation == null ? null : nation.trim(); |
|||
} |
|||
|
|||
public String getIdcard() { |
|||
return idcard; |
|||
} |
|||
|
|||
public void setIdcard(String idcard) { |
|||
this.idcard = idcard == null ? null : idcard.trim(); |
|||
} |
|||
|
|||
public String getPhone() { |
|||
return phone; |
|||
} |
|||
|
|||
public void setPhone(String phone) { |
|||
this.phone = phone == null ? null : phone.trim(); |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
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(", name=").append(name); |
|||
sb.append(", gender=").append(gender); |
|||
sb.append(", age=").append(age); |
|||
sb.append(", nation=").append(nation); |
|||
sb.append(", idcard=").append(idcard); |
|||
sb.append(", phone=").append(phone); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
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(); |
|||
} |
|||
} |
|||
File diff suppressed because it is too large
@ -0,0 +1,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class PatientWisdomCar implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long firstAidId; |
|||
|
|||
private Long carId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
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 getFirstAidId() { |
|||
return firstAidId; |
|||
} |
|||
|
|||
public void setFirstAidId(Long firstAidId) { |
|||
this.firstAidId = firstAidId; |
|||
} |
|||
|
|||
public Long getCarId() { |
|||
return carId; |
|||
} |
|||
|
|||
public void setCarId(Long carId) { |
|||
this.carId = carId; |
|||
} |
|||
|
|||
public Long getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Long startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Long getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Long endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
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(", firstAidId=").append(firstAidId); |
|||
sb.append(", carId=").append(carId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
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,741 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class PatientWisdomCarExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public PatientWisdomCarExample() { |
|||
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 andFirstAidIdIsNull() { |
|||
addCriterion("first_aid_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIsNotNull() { |
|||
addCriterion("first_aid_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdEqualTo(Long value) { |
|||
addCriterion("first_aid_id =", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotEqualTo(Long value) { |
|||
addCriterion("first_aid_id <>", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThan(Long value) { |
|||
addCriterion("first_aid_id >", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id >=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThan(Long value) { |
|||
addCriterion("first_aid_id <", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("first_aid_id <=", value, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdIn(List<Long> values) { |
|||
addCriterion("first_aid_id in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotIn(List<Long> values) { |
|||
addCriterion("first_aid_id not in", values, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFirstAidIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("first_aid_id not between", value1, value2, "firstAidId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdIsNull() { |
|||
addCriterion("car_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdIsNotNull() { |
|||
addCriterion("car_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdEqualTo(Long value) { |
|||
addCriterion("car_id =", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdNotEqualTo(Long value) { |
|||
addCriterion("car_id <>", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdGreaterThan(Long value) { |
|||
addCriterion("car_id >", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("car_id >=", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdLessThan(Long value) { |
|||
addCriterion("car_id <", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("car_id <=", value, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdIn(List<Long> values) { |
|||
addCriterion("car_id in", values, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdNotIn(List<Long> values) { |
|||
addCriterion("car_id not in", values, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdBetween(Long value1, Long value2) { |
|||
addCriterion("car_id between", value1, value2, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCarIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("car_id not between", value1, value2, "carId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNull() { |
|||
addCriterion("start_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNotNull() { |
|||
addCriterion("start_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeEqualTo(Long value) { |
|||
addCriterion("start_time =", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotEqualTo(Long value) { |
|||
addCriterion("start_time <>", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThan(Long value) { |
|||
addCriterion("start_time >", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("start_time >=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThan(Long value) { |
|||
addCriterion("start_time <", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("start_time <=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIn(List<Long> values) { |
|||
addCriterion("start_time in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotIn(List<Long> values) { |
|||
addCriterion("start_time not in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeBetween(Long value1, Long value2) { |
|||
addCriterion("start_time between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("start_time not between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNull() { |
|||
addCriterion("end_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNotNull() { |
|||
addCriterion("end_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeEqualTo(Long value) { |
|||
addCriterion("end_time =", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotEqualTo(Long value) { |
|||
addCriterion("end_time <>", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThan(Long value) { |
|||
addCriterion("end_time >", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("end_time >=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThan(Long value) { |
|||
addCriterion("end_time <", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("end_time <=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIn(List<Long> values) { |
|||
addCriterion("end_time in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotIn(List<Long> values) { |
|||
addCriterion("end_time not in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeBetween(Long value1, Long value2) { |
|||
addCriterion("end_time between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("end_time not between", value1, value2, "endTime"); |
|||
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,150 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Rfid implements Serializable { |
|||
private Long id; |
|||
|
|||
private String hospitalSerial; |
|||
|
|||
private Byte type1; |
|||
|
|||
private Byte type2; |
|||
|
|||
private Byte type3; |
|||
|
|||
private String serial; |
|||
|
|||
private String fullSerial; |
|||
|
|||
private Long stepId; |
|||
|
|||
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 getHospitalSerial() { |
|||
return hospitalSerial; |
|||
} |
|||
|
|||
public void setHospitalSerial(String hospitalSerial) { |
|||
this.hospitalSerial = hospitalSerial == null ? null : hospitalSerial.trim(); |
|||
} |
|||
|
|||
public Byte getType1() { |
|||
return type1; |
|||
} |
|||
|
|||
public void setType1(Byte type1) { |
|||
this.type1 = type1; |
|||
} |
|||
|
|||
public Byte getType2() { |
|||
return type2; |
|||
} |
|||
|
|||
public void setType2(Byte type2) { |
|||
this.type2 = type2; |
|||
} |
|||
|
|||
public Byte getType3() { |
|||
return type3; |
|||
} |
|||
|
|||
public void setType3(Byte type3) { |
|||
this.type3 = type3; |
|||
} |
|||
|
|||
public String getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public String getFullSerial() { |
|||
return fullSerial; |
|||
} |
|||
|
|||
public void setFullSerial(String fullSerial) { |
|||
this.fullSerial = fullSerial == null ? null : fullSerial.trim(); |
|||
} |
|||
|
|||
public Long getStepId() { |
|||
return stepId; |
|||
} |
|||
|
|||
public void setStepId(Long stepId) { |
|||
this.stepId = stepId; |
|||
} |
|||
|
|||
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(", hospitalSerial=").append(hospitalSerial); |
|||
sb.append(", type1=").append(type1); |
|||
sb.append(", type2=").append(type2); |
|||
sb.append(", type3=").append(type3); |
|||
sb.append(", serial=").append(serial); |
|||
sb.append(", fullSerial=").append(fullSerial); |
|||
sb.append(", stepId=").append(stepId); |
|||
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,951 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class RfidExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public RfidExample() { |
|||
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 andHospitalSerialIsNull() { |
|||
addCriterion("hospital_serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialIsNotNull() { |
|||
addCriterion("hospital_serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialEqualTo(String value) { |
|||
addCriterion("hospital_serial =", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotEqualTo(String value) { |
|||
addCriterion("hospital_serial <>", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialGreaterThan(String value) { |
|||
addCriterion("hospital_serial >", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("hospital_serial >=", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialLessThan(String value) { |
|||
addCriterion("hospital_serial <", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("hospital_serial <=", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialLike(String value) { |
|||
addCriterion("hospital_serial like", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotLike(String value) { |
|||
addCriterion("hospital_serial not like", value, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialIn(List<String> values) { |
|||
addCriterion("hospital_serial in", values, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotIn(List<String> values) { |
|||
addCriterion("hospital_serial not in", values, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialBetween(String value1, String value2) { |
|||
addCriterion("hospital_serial between", value1, value2, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalSerialNotBetween(String value1, String value2) { |
|||
addCriterion("hospital_serial not between", value1, value2, "hospitalSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1IsNull() { |
|||
addCriterion("type1 is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1IsNotNull() { |
|||
addCriterion("type1 is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1EqualTo(Byte value) { |
|||
addCriterion("type1 =", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1NotEqualTo(Byte value) { |
|||
addCriterion("type1 <>", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1GreaterThan(Byte value) { |
|||
addCriterion("type1 >", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1GreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type1 >=", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1LessThan(Byte value) { |
|||
addCriterion("type1 <", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1LessThanOrEqualTo(Byte value) { |
|||
addCriterion("type1 <=", value, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1In(List<Byte> values) { |
|||
addCriterion("type1 in", values, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1NotIn(List<Byte> values) { |
|||
addCriterion("type1 not in", values, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1Between(Byte value1, Byte value2) { |
|||
addCriterion("type1 between", value1, value2, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType1NotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type1 not between", value1, value2, "type1"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2IsNull() { |
|||
addCriterion("type2 is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2IsNotNull() { |
|||
addCriterion("type2 is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2EqualTo(Byte value) { |
|||
addCriterion("type2 =", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2NotEqualTo(Byte value) { |
|||
addCriterion("type2 <>", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2GreaterThan(Byte value) { |
|||
addCriterion("type2 >", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2GreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type2 >=", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2LessThan(Byte value) { |
|||
addCriterion("type2 <", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2LessThanOrEqualTo(Byte value) { |
|||
addCriterion("type2 <=", value, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2In(List<Byte> values) { |
|||
addCriterion("type2 in", values, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2NotIn(List<Byte> values) { |
|||
addCriterion("type2 not in", values, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2Between(Byte value1, Byte value2) { |
|||
addCriterion("type2 between", value1, value2, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType2NotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type2 not between", value1, value2, "type2"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3IsNull() { |
|||
addCriterion("type3 is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3IsNotNull() { |
|||
addCriterion("type3 is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3EqualTo(Byte value) { |
|||
addCriterion("type3 =", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3NotEqualTo(Byte value) { |
|||
addCriterion("type3 <>", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3GreaterThan(Byte value) { |
|||
addCriterion("type3 >", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3GreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("type3 >=", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3LessThan(Byte value) { |
|||
addCriterion("type3 <", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3LessThanOrEqualTo(Byte value) { |
|||
addCriterion("type3 <=", value, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3In(List<Byte> values) { |
|||
addCriterion("type3 in", values, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3NotIn(List<Byte> values) { |
|||
addCriterion("type3 not in", values, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3Between(Byte value1, Byte value2) { |
|||
addCriterion("type3 between", value1, value2, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andType3NotBetween(Byte value1, Byte value2) { |
|||
addCriterion("type3 not between", value1, value2, "type3"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIsNull() { |
|||
addCriterion("serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIsNotNull() { |
|||
addCriterion("serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialEqualTo(String value) { |
|||
addCriterion("serial =", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotEqualTo(String value) { |
|||
addCriterion("serial <>", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThan(String value) { |
|||
addCriterion("serial >", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("serial >=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThan(String value) { |
|||
addCriterion("serial <", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("serial <=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLike(String value) { |
|||
addCriterion("serial like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotLike(String value) { |
|||
addCriterion("serial not like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIn(List<String> values) { |
|||
addCriterion("serial in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotIn(List<String> values) { |
|||
addCriterion("serial not in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialBetween(String value1, String value2) { |
|||
addCriterion("serial between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotBetween(String value1, String value2) { |
|||
addCriterion("serial not between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialIsNull() { |
|||
addCriterion("full_serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialIsNotNull() { |
|||
addCriterion("full_serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialEqualTo(String value) { |
|||
addCriterion("full_serial =", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotEqualTo(String value) { |
|||
addCriterion("full_serial <>", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialGreaterThan(String value) { |
|||
addCriterion("full_serial >", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("full_serial >=", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialLessThan(String value) { |
|||
addCriterion("full_serial <", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("full_serial <=", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialLike(String value) { |
|||
addCriterion("full_serial like", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotLike(String value) { |
|||
addCriterion("full_serial not like", value, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialIn(List<String> values) { |
|||
addCriterion("full_serial in", values, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotIn(List<String> values) { |
|||
addCriterion("full_serial not in", values, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialBetween(String value1, String value2) { |
|||
addCriterion("full_serial between", value1, value2, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andFullSerialNotBetween(String value1, String value2) { |
|||
addCriterion("full_serial not between", value1, value2, "fullSerial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNull() { |
|||
addCriterion("step_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIsNotNull() { |
|||
addCriterion("step_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdEqualTo(Long value) { |
|||
addCriterion("step_id =", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotEqualTo(Long value) { |
|||
addCriterion("step_id <>", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThan(Long value) { |
|||
addCriterion("step_id >", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("step_id >=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThan(Long value) { |
|||
addCriterion("step_id <", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("step_id <=", value, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdIn(List<Long> values) { |
|||
addCriterion("step_id in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotIn(List<Long> values) { |
|||
addCriterion("step_id not in", values, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdBetween(Long value1, Long value2) { |
|||
addCriterion("step_id between", value1, value2, "stepId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStepIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("step_id not between", value1, value2, "stepId"); |
|||
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,139 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Step implements Serializable { |
|||
private Long id; |
|||
|
|||
private String code; |
|||
|
|||
private String name; |
|||
|
|||
private Byte type; |
|||
|
|||
private Long startEffectTime; |
|||
|
|||
private Long endEffectTime; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
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 getCode() { |
|||
return code; |
|||
} |
|||
|
|||
public void setCode(String code) { |
|||
this.code = code == null ? null : code.trim(); |
|||
} |
|||
|
|||
public String getName() { |
|||
return name; |
|||
} |
|||
|
|||
public void setName(String name) { |
|||
this.name = name == null ? null : name.trim(); |
|||
} |
|||
|
|||
public Byte getType() { |
|||
return type; |
|||
} |
|||
|
|||
public void setType(Byte type) { |
|||
this.type = type; |
|||
} |
|||
|
|||
public Long getStartEffectTime() { |
|||
return startEffectTime; |
|||
} |
|||
|
|||
public void setStartEffectTime(Long startEffectTime) { |
|||
this.startEffectTime = startEffectTime; |
|||
} |
|||
|
|||
public Long getEndEffectTime() { |
|||
return endEffectTime; |
|||
} |
|||
|
|||
public void setEndEffectTime(Long endEffectTime) { |
|||
this.endEffectTime = endEffectTime; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
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(", code=").append(code); |
|||
sb.append(", name=").append(name); |
|||
sb.append(", type=").append(type); |
|||
sb.append(", startEffectTime=").append(startEffectTime); |
|||
sb.append(", endEffectTime=").append(endEffectTime); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
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,881 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class StepExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public StepExample() { |
|||
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 andCodeIsNull() { |
|||
addCriterion("code is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIsNotNull() { |
|||
addCriterion("code is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeEqualTo(String value) { |
|||
addCriterion("code =", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotEqualTo(String value) { |
|||
addCriterion("code <>", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThan(String value) { |
|||
addCriterion("code >", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeGreaterThanOrEqualTo(String value) { |
|||
addCriterion("code >=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThan(String value) { |
|||
addCriterion("code <", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLessThanOrEqualTo(String value) { |
|||
addCriterion("code <=", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeLike(String value) { |
|||
addCriterion("code like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotLike(String value) { |
|||
addCriterion("code not like", value, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeIn(List<String> values) { |
|||
addCriterion("code in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotIn(List<String> values) { |
|||
addCriterion("code not in", values, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeBetween(String value1, String value2) { |
|||
addCriterion("code between", value1, value2, "code"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andCodeNotBetween(String value1, String value2) { |
|||
addCriterion("code not between", value1, value2, "code"); |
|||
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 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 andStartEffectTimeIsNull() { |
|||
addCriterion("start_effect_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeIsNotNull() { |
|||
addCriterion("start_effect_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeEqualTo(Long value) { |
|||
addCriterion("start_effect_time =", value, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeNotEqualTo(Long value) { |
|||
addCriterion("start_effect_time <>", value, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeGreaterThan(Long value) { |
|||
addCriterion("start_effect_time >", value, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("start_effect_time >=", value, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeLessThan(Long value) { |
|||
addCriterion("start_effect_time <", value, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("start_effect_time <=", value, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeIn(List<Long> values) { |
|||
addCriterion("start_effect_time in", values, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeNotIn(List<Long> values) { |
|||
addCriterion("start_effect_time not in", values, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeBetween(Long value1, Long value2) { |
|||
addCriterion("start_effect_time between", value1, value2, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartEffectTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("start_effect_time not between", value1, value2, "startEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeIsNull() { |
|||
addCriterion("end_effect_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeIsNotNull() { |
|||
addCriterion("end_effect_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeEqualTo(Long value) { |
|||
addCriterion("end_effect_time =", value, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeNotEqualTo(Long value) { |
|||
addCriterion("end_effect_time <>", value, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeGreaterThan(Long value) { |
|||
addCriterion("end_effect_time >", value, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("end_effect_time >=", value, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeLessThan(Long value) { |
|||
addCriterion("end_effect_time <", value, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("end_effect_time <=", value, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeIn(List<Long> values) { |
|||
addCriterion("end_effect_time in", values, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeNotIn(List<Long> values) { |
|||
addCriterion("end_effect_time not in", values, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeBetween(Long value1, Long value2) { |
|||
addCriterion("end_effect_time between", value1, value2, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndEffectTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("end_effect_time not between", value1, value2, "endEffectTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
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,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class WisdomCar implements Serializable { |
|||
private Long id; |
|||
|
|||
private String serial; |
|||
|
|||
private Long warehouseTime; |
|||
|
|||
private Long hospitalId; |
|||
|
|||
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 getSerial() { |
|||
return serial; |
|||
} |
|||
|
|||
public void setSerial(String serial) { |
|||
this.serial = serial == null ? null : serial.trim(); |
|||
} |
|||
|
|||
public Long getWarehouseTime() { |
|||
return warehouseTime; |
|||
} |
|||
|
|||
public void setWarehouseTime(Long warehouseTime) { |
|||
this.warehouseTime = warehouseTime; |
|||
} |
|||
|
|||
public Long getHospitalId() { |
|||
return hospitalId; |
|||
} |
|||
|
|||
public void setHospitalId(Long hospitalId) { |
|||
this.hospitalId = hospitalId; |
|||
} |
|||
|
|||
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(", serial=").append(serial); |
|||
sb.append(", warehouseTime=").append(warehouseTime); |
|||
sb.append(", hospitalId=").append(hospitalId); |
|||
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,751 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class WisdomCarExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public WisdomCarExample() { |
|||
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 andSerialIsNull() { |
|||
addCriterion("serial is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIsNotNull() { |
|||
addCriterion("serial is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialEqualTo(String value) { |
|||
addCriterion("serial =", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotEqualTo(String value) { |
|||
addCriterion("serial <>", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThan(String value) { |
|||
addCriterion("serial >", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialGreaterThanOrEqualTo(String value) { |
|||
addCriterion("serial >=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThan(String value) { |
|||
addCriterion("serial <", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLessThanOrEqualTo(String value) { |
|||
addCriterion("serial <=", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialLike(String value) { |
|||
addCriterion("serial like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotLike(String value) { |
|||
addCriterion("serial not like", value, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialIn(List<String> values) { |
|||
addCriterion("serial in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotIn(List<String> values) { |
|||
addCriterion("serial not in", values, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialBetween(String value1, String value2) { |
|||
addCriterion("serial between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andSerialNotBetween(String value1, String value2) { |
|||
addCriterion("serial not between", value1, value2, "serial"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeIsNull() { |
|||
addCriterion("warehouse_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeIsNotNull() { |
|||
addCriterion("warehouse_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeEqualTo(Long value) { |
|||
addCriterion("warehouse_time =", value, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeNotEqualTo(Long value) { |
|||
addCriterion("warehouse_time <>", value, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeGreaterThan(Long value) { |
|||
addCriterion("warehouse_time >", value, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("warehouse_time >=", value, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeLessThan(Long value) { |
|||
addCriterion("warehouse_time <", value, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("warehouse_time <=", value, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeIn(List<Long> values) { |
|||
addCriterion("warehouse_time in", values, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeNotIn(List<Long> values) { |
|||
addCriterion("warehouse_time not in", values, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeBetween(Long value1, Long value2) { |
|||
addCriterion("warehouse_time between", value1, value2, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andWarehouseTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("warehouse_time not between", value1, value2, "warehouseTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNull() { |
|||
addCriterion("hospital_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIsNotNull() { |
|||
addCriterion("hospital_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdEqualTo(Long value) { |
|||
addCriterion("hospital_id =", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotEqualTo(Long value) { |
|||
addCriterion("hospital_id <>", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThan(Long value) { |
|||
addCriterion("hospital_id >", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id >=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThan(Long value) { |
|||
addCriterion("hospital_id <", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("hospital_id <=", value, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdIn(List<Long> values) { |
|||
addCriterion("hospital_id in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotIn(List<Long> values) { |
|||
addCriterion("hospital_id not in", values, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id between", value1, value2, "hospitalId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andHospitalIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("hospital_id not between", value1, value2, "hospitalId"); |
|||
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,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Working implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long doctorId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Byte post; |
|||
|
|||
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 getDoctorId() { |
|||
return doctorId; |
|||
} |
|||
|
|||
public void setDoctorId(Long doctorId) { |
|||
this.doctorId = doctorId; |
|||
} |
|||
|
|||
public Long getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Long startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Long getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Long endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public Byte getPost() { |
|||
return post; |
|||
} |
|||
|
|||
public void setPost(Byte post) { |
|||
this.post = post; |
|||
} |
|||
|
|||
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(", doctorId=").append(doctorId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", post=").append(post); |
|||
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,741 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class WorkingExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public WorkingExample() { |
|||
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 andDoctorIdIsNull() { |
|||
addCriterion("doctor_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdIsNotNull() { |
|||
addCriterion("doctor_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdEqualTo(Long value) { |
|||
addCriterion("doctor_id =", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotEqualTo(Long value) { |
|||
addCriterion("doctor_id <>", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdGreaterThan(Long value) { |
|||
addCriterion("doctor_id >", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("doctor_id >=", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdLessThan(Long value) { |
|||
addCriterion("doctor_id <", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("doctor_id <=", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdIn(List<Long> values) { |
|||
addCriterion("doctor_id in", values, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotIn(List<Long> values) { |
|||
addCriterion("doctor_id not in", values, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdBetween(Long value1, Long value2) { |
|||
addCriterion("doctor_id between", value1, value2, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("doctor_id not between", value1, value2, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNull() { |
|||
addCriterion("start_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNotNull() { |
|||
addCriterion("start_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeEqualTo(Long value) { |
|||
addCriterion("start_time =", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotEqualTo(Long value) { |
|||
addCriterion("start_time <>", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThan(Long value) { |
|||
addCriterion("start_time >", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("start_time >=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThan(Long value) { |
|||
addCriterion("start_time <", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("start_time <=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIn(List<Long> values) { |
|||
addCriterion("start_time in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotIn(List<Long> values) { |
|||
addCriterion("start_time not in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeBetween(Long value1, Long value2) { |
|||
addCriterion("start_time between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("start_time not between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNull() { |
|||
addCriterion("end_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNotNull() { |
|||
addCriterion("end_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeEqualTo(Long value) { |
|||
addCriterion("end_time =", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotEqualTo(Long value) { |
|||
addCriterion("end_time <>", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThan(Long value) { |
|||
addCriterion("end_time >", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("end_time >=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThan(Long value) { |
|||
addCriterion("end_time <", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("end_time <=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIn(List<Long> values) { |
|||
addCriterion("end_time in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotIn(List<Long> values) { |
|||
addCriterion("end_time not in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeBetween(Long value1, Long value2) { |
|||
addCriterion("end_time between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("end_time not between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostIsNull() { |
|||
addCriterion("post is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostIsNotNull() { |
|||
addCriterion("post is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostEqualTo(Byte value) { |
|||
addCriterion("post =", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostNotEqualTo(Byte value) { |
|||
addCriterion("post <>", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostGreaterThan(Byte value) { |
|||
addCriterion("post >", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("post >=", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostLessThan(Byte value) { |
|||
addCriterion("post <", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostLessThanOrEqualTo(Byte value) { |
|||
addCriterion("post <=", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostIn(List<Byte> values) { |
|||
addCriterion("post in", values, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostNotIn(List<Byte> values) { |
|||
addCriterion("post not in", values, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostBetween(Byte value1, Byte value2) { |
|||
addCriterion("post between", value1, value2, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("post not between", value1, value2, "post"); |
|||
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,117 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.io.Serializable; |
|||
import java.util.Date; |
|||
|
|||
public class Wroking implements Serializable { |
|||
private Long id; |
|||
|
|||
private Long doctorId; |
|||
|
|||
private Long startTime; |
|||
|
|||
private Long endTime; |
|||
|
|||
private Byte post; |
|||
|
|||
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 getDoctorId() { |
|||
return doctorId; |
|||
} |
|||
|
|||
public void setDoctorId(Long doctorId) { |
|||
this.doctorId = doctorId; |
|||
} |
|||
|
|||
public Long getStartTime() { |
|||
return startTime; |
|||
} |
|||
|
|||
public void setStartTime(Long startTime) { |
|||
this.startTime = startTime; |
|||
} |
|||
|
|||
public Long getEndTime() { |
|||
return endTime; |
|||
} |
|||
|
|||
public void setEndTime(Long endTime) { |
|||
this.endTime = endTime; |
|||
} |
|||
|
|||
public Byte getPost() { |
|||
return post; |
|||
} |
|||
|
|||
public void setPost(Byte post) { |
|||
this.post = post; |
|||
} |
|||
|
|||
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(", doctorId=").append(doctorId); |
|||
sb.append(", startTime=").append(startTime); |
|||
sb.append(", endTime=").append(endTime); |
|||
sb.append(", post=").append(post); |
|||
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,741 @@ |
|||
package com.ccsens.carbasics.bean.po; |
|||
|
|||
import java.util.ArrayList; |
|||
import java.util.Date; |
|||
import java.util.List; |
|||
|
|||
public class WrokingExample { |
|||
protected String orderByClause; |
|||
|
|||
protected boolean distinct; |
|||
|
|||
protected List<Criteria> oredCriteria; |
|||
|
|||
public WrokingExample() { |
|||
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 andDoctorIdIsNull() { |
|||
addCriterion("doctor_id is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdIsNotNull() { |
|||
addCriterion("doctor_id is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdEqualTo(Long value) { |
|||
addCriterion("doctor_id =", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotEqualTo(Long value) { |
|||
addCriterion("doctor_id <>", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdGreaterThan(Long value) { |
|||
addCriterion("doctor_id >", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("doctor_id >=", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdLessThan(Long value) { |
|||
addCriterion("doctor_id <", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdLessThanOrEqualTo(Long value) { |
|||
addCriterion("doctor_id <=", value, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdIn(List<Long> values) { |
|||
addCriterion("doctor_id in", values, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotIn(List<Long> values) { |
|||
addCriterion("doctor_id not in", values, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdBetween(Long value1, Long value2) { |
|||
addCriterion("doctor_id between", value1, value2, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andDoctorIdNotBetween(Long value1, Long value2) { |
|||
addCriterion("doctor_id not between", value1, value2, "doctorId"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNull() { |
|||
addCriterion("start_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIsNotNull() { |
|||
addCriterion("start_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeEqualTo(Long value) { |
|||
addCriterion("start_time =", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotEqualTo(Long value) { |
|||
addCriterion("start_time <>", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThan(Long value) { |
|||
addCriterion("start_time >", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("start_time >=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThan(Long value) { |
|||
addCriterion("start_time <", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("start_time <=", value, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeIn(List<Long> values) { |
|||
addCriterion("start_time in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotIn(List<Long> values) { |
|||
addCriterion("start_time not in", values, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeBetween(Long value1, Long value2) { |
|||
addCriterion("start_time between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andStartTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("start_time not between", value1, value2, "startTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNull() { |
|||
addCriterion("end_time is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIsNotNull() { |
|||
addCriterion("end_time is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeEqualTo(Long value) { |
|||
addCriterion("end_time =", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotEqualTo(Long value) { |
|||
addCriterion("end_time <>", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThan(Long value) { |
|||
addCriterion("end_time >", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeGreaterThanOrEqualTo(Long value) { |
|||
addCriterion("end_time >=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThan(Long value) { |
|||
addCriterion("end_time <", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeLessThanOrEqualTo(Long value) { |
|||
addCriterion("end_time <=", value, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeIn(List<Long> values) { |
|||
addCriterion("end_time in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotIn(List<Long> values) { |
|||
addCriterion("end_time not in", values, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeBetween(Long value1, Long value2) { |
|||
addCriterion("end_time between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andEndTimeNotBetween(Long value1, Long value2) { |
|||
addCriterion("end_time not between", value1, value2, "endTime"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostIsNull() { |
|||
addCriterion("post is null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostIsNotNull() { |
|||
addCriterion("post is not null"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostEqualTo(Byte value) { |
|||
addCriterion("post =", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostNotEqualTo(Byte value) { |
|||
addCriterion("post <>", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostGreaterThan(Byte value) { |
|||
addCriterion("post >", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostGreaterThanOrEqualTo(Byte value) { |
|||
addCriterion("post >=", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostLessThan(Byte value) { |
|||
addCriterion("post <", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostLessThanOrEqualTo(Byte value) { |
|||
addCriterion("post <=", value, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostIn(List<Byte> values) { |
|||
addCriterion("post in", values, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostNotIn(List<Byte> values) { |
|||
addCriterion("post not in", values, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostBetween(Byte value1, Byte value2) { |
|||
addCriterion("post between", value1, value2, "post"); |
|||
return (Criteria) this; |
|||
} |
|||
|
|||
public Criteria andPostNotBetween(Byte value1, Byte value2) { |
|||
addCriterion("post not between", value1, value2, "post"); |
|||
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,47 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: 平车 |
|||
* @author: whj |
|||
* @time: 2021/7/27 16:53 |
|||
*/ |
|||
public class CarVo { |
|||
|
|||
@Data |
|||
@ApiModel("查询医院平车") |
|||
public static class Car{ |
|||
@ApiModelProperty("平车ID") |
|||
public Long id; |
|||
@ApiModelProperty("平车编号") |
|||
public String serial; |
|||
@ApiModelProperty("急救ID") |
|||
public Long aidId; |
|||
@ApiModelProperty("患者名字") |
|||
public String patientName; |
|||
@ApiModelProperty("绑定平车急救的项目ID") |
|||
public Long projectId; |
|||
} |
|||
|
|||
@ApiModel("绑定平车信息--响应") |
|||
@Data |
|||
public static class QueryBind { |
|||
@ApiModelProperty("患者平车ID") |
|||
private Long patientCarId; |
|||
@ApiModelProperty("患者id") |
|||
private Long patientId; |
|||
@ApiModelProperty("平车id") |
|||
private Long carId; |
|||
@ApiModelProperty("平车编号") |
|||
private String carSerial; |
|||
@ApiModelProperty("开始时间") |
|||
private Long startTime; |
|||
@ApiModelProperty("结束时间") |
|||
private Long endTime; |
|||
@ApiModelProperty("患者姓名") |
|||
private String name; |
|||
} |
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.util.IdcardUtil; |
|||
import com.ccsens.util.baidu.BaiDuVo; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
public class OcrVo { |
|||
@Data |
|||
@ApiModel("身份信息") |
|||
public static class PersonMsg { |
|||
@ApiModelProperty("姓名") |
|||
private String name; |
|||
@ApiModelProperty("性别") |
|||
private byte sex; |
|||
@ApiModelProperty("身份证号") |
|||
private String idCardNo; |
|||
@ApiModelProperty("年龄") |
|||
private int age; |
|||
|
|||
public void toMsg(List<BaiDuVo.GeneralWord> words) { |
|||
if (CollectionUtil.isEmpty(words)) { |
|||
return; |
|||
} |
|||
words.forEach(wordNode ->{ |
|||
String word = wordNode.getWords(); |
|||
if (word.startsWith("姓名")) { |
|||
this.name = word.substring(2); |
|||
} else if (word.startsWith("性别")) { |
|||
String sexWord = word.substring(2,3); |
|||
this.sex = "女".equals(sexWord) ? (byte)0 : (byte)1; |
|||
} else if (word.startsWith("公民身份号码")) { |
|||
this.idCardNo = word.substring(6); |
|||
this.age = IdcardUtil.getAgeByIdCard(this.idCardNo); |
|||
} |
|||
}); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,108 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
import java.util.Map; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class PatientVo { |
|||
|
|||
@Data |
|||
@ApiModel("医院下的患者列表") |
|||
public static class QueryPatientList{ |
|||
@ApiModelProperty("id") |
|||
private Long id; |
|||
@ApiModelProperty("急救id") |
|||
private Long firstAidId; |
|||
@ApiModelProperty("病案号") |
|||
private String medicalRecordNum; |
|||
@ApiModelProperty("名称") |
|||
private String name; |
|||
@ApiModelProperty("性别") |
|||
private byte gender; |
|||
@ApiModelProperty("年龄") |
|||
private int age; |
|||
@ApiModelProperty("发病时间") |
|||
private Long morbidityTime; |
|||
@ApiModelProperty("启动绿道时间") |
|||
private Long greenwayTime; |
|||
@ApiModelProperty("平车id") |
|||
private Long carId; |
|||
@ApiModelProperty("转归去向") |
|||
private String transformation; |
|||
@ApiModelProperty("是否是演示数据 0否 1是") |
|||
private byte demonstrate; |
|||
@ApiModelProperty("所有到场医生信息") |
|||
private List<Doctor> doctorList; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("到场医生的信息") |
|||
public static class Doctor{ |
|||
@ApiModelProperty("医生id") |
|||
private Long id; |
|||
@ApiModelProperty("医生职位") |
|||
private int post; |
|||
@ApiModelProperty("医生姓名") |
|||
private String name; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("急救记录信息") |
|||
public static class AidRecord{ |
|||
@ApiModelProperty("id") |
|||
private Long id; |
|||
@ApiModelProperty("急救id") |
|||
private Long firstAidId; |
|||
@ApiModelProperty("题目code") |
|||
private String questionCode; |
|||
@ApiModelProperty("答案") |
|||
private String answer; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询急救记录信息map") |
|||
public static class QueryAidRecord{ |
|||
@ApiModelProperty("id") |
|||
private Long id; |
|||
@ApiModelProperty("急救记录") |
|||
private Map<String,String> record; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询急救记录信息map") |
|||
public static class QueryAidRecordN{ |
|||
@ApiModelProperty("id") |
|||
private Long id; |
|||
@ApiModelProperty("急救记录") |
|||
private Map<String,List<String>> record; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询code的下级数量和完成数量") |
|||
public static class QuerySubordinate{ |
|||
@ApiModelProperty("总数量") |
|||
private int totalNum; |
|||
@ApiModelProperty("完成的数量") |
|||
private int completeNum; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("时间沙漏") |
|||
public static class TimeSandClock{ |
|||
@ApiModelProperty("发病时间") |
|||
private Long diseaseTime; |
|||
@ApiModelProperty("分诊时间") |
|||
private Long triageTime; |
|||
@ApiModelProperty("溶栓时间") |
|||
private Long thrombosisTime; |
|||
@ApiModelProperty("ct开始时间") |
|||
private Long ctTime; |
|||
} |
|||
} |
|||
@ -0,0 +1,33 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class PluginVo { |
|||
@Data |
|||
@ApiModel("插件详情") |
|||
public static class PluginInfo{ |
|||
@ApiModelProperty("插件id") |
|||
private Long id; |
|||
@ApiModelProperty("插件名称") |
|||
private String name; |
|||
@ApiModelProperty("插件简介") |
|||
private String intro; |
|||
@ApiModelProperty("插件版本") |
|||
private String version; |
|||
@ApiModelProperty("插件样式类型 1一行 2两行 3半屏") |
|||
private int styleType; |
|||
@ApiModelProperty("插件样式内容") |
|||
private String html; |
|||
@ApiModelProperty("插件的js功能") |
|||
private String js; |
|||
} |
|||
|
|||
|
|||
} |
|||
@ -0,0 +1,64 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Data |
|||
public class ProjectVo { |
|||
@Data |
|||
@ApiModel("项目信息") |
|||
public static class ProjectInfo{ |
|||
@ApiModelProperty("项目id(任务详情id)") |
|||
private Long id; |
|||
@ApiModelProperty("项目名称") |
|||
private String name; |
|||
@ApiModelProperty("项目描述") |
|||
private String description; |
|||
@ApiModelProperty("重复频率") |
|||
private String cycle; |
|||
@ApiModelProperty("计划开始时间") |
|||
private String planStartTime; |
|||
@ApiModelProperty("计划时长") |
|||
private String planDuration; |
|||
@ApiModelProperty("计划结束时间") |
|||
private String planEndTime; |
|||
@ApiModelProperty("真实开始时间") |
|||
private String realStartTime; |
|||
@ApiModelProperty("真实时长") |
|||
private String realDuration; |
|||
@ApiModelProperty("真实结束时间") |
|||
private String realEndTime; |
|||
|
|||
} |
|||
|
|||
@Data |
|||
public static class SysProject{ |
|||
@ApiModelProperty("项目id") |
|||
private Long id; |
|||
@ApiModelProperty("项目名称") |
|||
private String name; |
|||
@ApiModelProperty("开始时间") |
|||
private Long beginTime; |
|||
@ApiModelProperty("结束时间") |
|||
private Long endTime; |
|||
} |
|||
|
|||
@Data |
|||
public static class CreateCaseV{ |
|||
@ApiModelProperty("项目id") |
|||
private Long projectId; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("项目的最新消息") |
|||
public static class NewMessage { |
|||
@ApiModelProperty("消息内容") |
|||
private String content; |
|||
@ApiModelProperty("接收人 0表示全部人,>0则为指定人") |
|||
private Long toUser; |
|||
} |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import cn.hutool.core.util.StrUtil; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: 数据记录 |
|||
* @author: whj |
|||
* @time: 2021/3/5 13:59 |
|||
*/ |
|||
@Data |
|||
public class RecordVo { |
|||
|
|||
@Data |
|||
@ApiModel("称重和rfid记录的响应结果") |
|||
public static class WeightAndRfid{ |
|||
@ApiModelProperty("时间") |
|||
private Long time; |
|||
@ApiModelProperty("类型:1体重 2rfid") |
|||
private byte type; |
|||
@ApiModelProperty("对应值") |
|||
private String value; |
|||
@ApiModelProperty("rfid名字") |
|||
private String name; |
|||
@ApiModelProperty("rfid简称") |
|||
private String serial; |
|||
|
|||
public String getSerial() { |
|||
if (StrUtil.isEmpty(serial)) { |
|||
serial = "0"; |
|||
} |
|||
return serial; |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,42 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/7/27 14:52 |
|||
*/ |
|||
public class RfidVo { |
|||
|
|||
@Data |
|||
@ApiModel("rfid完整信息") |
|||
public static class Full{ |
|||
@ApiModelProperty("ID") |
|||
private Long id; |
|||
@ApiModelProperty("rfid名字") |
|||
private String name; |
|||
@ApiModelProperty("医院编码") |
|||
private String hospitalSerial; |
|||
@ApiModelProperty("分类1") |
|||
private Byte type1; |
|||
@ApiModelProperty("分类2") |
|||
private Byte type2; |
|||
@ApiModelProperty("分类3") |
|||
private Byte type3; |
|||
@ApiModelProperty("rfid编码") |
|||
private String serial; |
|||
@ApiModelProperty("rfid完整编码") |
|||
private String fullSerial; |
|||
@ApiModelProperty("环节ID") |
|||
private Long stepId; |
|||
@ApiModelProperty("环节code") |
|||
private String stepCode; |
|||
@ApiModelProperty("环节名称") |
|||
private String stepName; |
|||
@ApiModelProperty("环节类型。0真正的环节,1rfid的环节") |
|||
private Byte stepType; |
|||
} |
|||
} |
|||
@ -0,0 +1,37 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class RoleVo { |
|||
@Data |
|||
@ApiModel("查看角色栏展示的角色信息") |
|||
public static class QueryRole { |
|||
@ApiModelProperty("展示的角色信息") |
|||
private List<RoleInfo> visibleList; |
|||
@ApiModelProperty("不展示的角色信息") |
|||
private List<RoleInfo> invisibleList; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("角色信息") |
|||
public static class RoleInfo { |
|||
@ApiModelProperty("角色id") |
|||
private Long id; |
|||
@ApiModelProperty("是否是项目经理 0否 1是") |
|||
private Long pm; |
|||
@ApiModelProperty("是否是自己所属的角色 0否 1是") |
|||
private Long mine; |
|||
@ApiModelProperty("角色名") |
|||
private String name; |
|||
@ApiModelProperty("排序") |
|||
private Long sequence; |
|||
} |
|||
} |
|||
@ -0,0 +1,95 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.math.BigDecimal; |
|||
|
|||
/** |
|||
* @description: |
|||
* @author: whj |
|||
* @time: 2021/7/28 9:05 |
|||
*/ |
|||
public class StatisticalVo { |
|||
|
|||
@Data |
|||
@ApiModel("环节进度查询-响应") |
|||
public static class Step{ |
|||
@ApiModelProperty("环节id") |
|||
private Long stepId; |
|||
@ApiModelProperty("环节code") |
|||
private String stepCode; |
|||
@ApiModelProperty("环节名称") |
|||
private String stepName; |
|||
@ApiModelProperty("开始时间") |
|||
private Long startTime; |
|||
@ApiModelProperty("类型(0-平车,1-用户)") |
|||
private Byte type; |
|||
@ApiModelProperty("医生/平车名字") |
|||
private String memberName; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("月/周质控报告-响应") |
|||
public static class Quality{ |
|||
@ApiModelProperty("日期") |
|||
private String date; |
|||
@ApiModelProperty("总患者数") |
|||
private Long total; |
|||
@ApiModelProperty("最大") |
|||
private Long max; |
|||
@ApiModelProperty("最小") |
|||
private Long min; |
|||
@ApiModelProperty("中位数") |
|||
private BigDecimal median; |
|||
@ApiModelProperty("平均数") |
|||
private BigDecimal avg; |
|||
@ApiModelProperty("达标数") |
|||
private Long passNum; |
|||
@ApiModelProperty("溶栓数") |
|||
private Long thrombolyticNum; |
|||
@ApiModelProperty("达标比例") |
|||
private BigDecimal passRatio; |
|||
@ApiModelProperty("溶栓比例") |
|||
private BigDecimal thrombolyticRatio; |
|||
|
|||
public BigDecimal getPassRatio() { |
|||
if (passRatio == null && passNum != null && thrombolyticNum != null && thrombolyticNum != 0) { |
|||
passRatio = new BigDecimal(passNum * 100).divide(new BigDecimal(thrombolyticNum), 2, BigDecimal.ROUND_HALF_UP); |
|||
} |
|||
return passRatio; |
|||
} |
|||
|
|||
public BigDecimal getThrombolyticRatio() { |
|||
if (thrombolyticRatio == null && thrombolyticNum != null && total != null && total != 0) { |
|||
passRatio = new BigDecimal(thrombolyticNum * 100).divide(new BigDecimal(total), 2, BigDecimal.ROUND_HALF_UP); |
|||
} |
|||
return thrombolyticRatio; |
|||
} |
|||
|
|||
public BigDecimal getMedian() { |
|||
if (median != null && median.compareTo(BigDecimal.ZERO) != 0){ |
|||
median = median.setScale(2,BigDecimal.ROUND_DOWN); |
|||
} |
|||
return median; |
|||
} |
|||
|
|||
public BigDecimal getAvg() { |
|||
if (avg != null && avg.compareTo(BigDecimal.ZERO) != 0){ |
|||
avg = avg.setScale(2,BigDecimal.ROUND_DOWN); |
|||
} |
|||
return avg; |
|||
} |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("查询每天质控报告-响应") |
|||
public static class DayQuality{ |
|||
@ApiModelProperty("日期") |
|||
private String date; |
|||
@ApiModelProperty("中位数") |
|||
private BigDecimal median; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* 1007 |
|||
*/ |
|||
@Data |
|||
public class StatisticsVo { |
|||
@Data |
|||
@ApiModel("查询小车本年和往年使用次数") |
|||
public static class UseNumsVo { |
|||
@ApiModelProperty("本年单月") |
|||
private List<Integer> sigleNow; |
|||
@ApiModelProperty("本年和") |
|||
private List<Integer> sumNow; |
|||
@ApiModelProperty("去年单月") |
|||
private List<Integer> sigleLast; |
|||
@ApiModelProperty("去年年和") |
|||
private List<Integer> sumLast; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("医院id") |
|||
public static class FastEdResult{ |
|||
@ApiModelProperty("医院id") |
|||
private Long id; |
|||
} |
|||
|
|||
|
|||
|
|||
@Data |
|||
@ApiModel("各个结点时长") |
|||
public static class PointTime{ |
|||
@ApiModelProperty("节点耗时") |
|||
private Long time; |
|||
} |
|||
|
|||
|
|||
@Data |
|||
@ApiModel("各个结点时长集合") |
|||
public static class PointTimeList{ |
|||
@ApiModelProperty("当前数据") |
|||
private List<Long> pointTimeCurrentList; |
|||
@ApiModelProperty("医院数据") |
|||
private List<Long> pointTimeHospital; |
|||
@ApiModelProperty("国际数据") |
|||
private List<Long> pointTimeInternation; |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,80 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
@Data |
|||
public class TaskVo { |
|||
@Data |
|||
@ApiModel("查看定期任务返回值") |
|||
public static class QueryTask{ |
|||
@ApiModelProperty("任务id(任务分解id)") |
|||
private Long id; |
|||
@ApiModelProperty("详情id") |
|||
private Long detailId; |
|||
@ApiModelProperty("任务名") |
|||
private String name; |
|||
@ApiModelProperty("任务详情") |
|||
private String description; |
|||
@ApiModelProperty("计划开始时间") |
|||
private Long planStart; |
|||
@ApiModelProperty("计划时长") |
|||
private Long planDuration; |
|||
@ApiModelProperty("实际开始时间") |
|||
private Long realStart; |
|||
@ApiModelProperty("实际时长") |
|||
private Long realDuration; |
|||
@ApiModelProperty("任务状态 0未开始 1进行中 2暂停中 3已完成") |
|||
private int process; |
|||
@ApiModelProperty("任务流转策略 -1不跳转 0直接跳转 如果是其他正整数 就是多少毫秒后跳转 ") |
|||
private Long skip; |
|||
@ApiModelProperty("跳转的任务id") |
|||
private Long skipTaskId; |
|||
@ApiModelProperty("任务面板") |
|||
private PanelInfo panel; |
|||
@ApiModelProperty("插件") |
|||
private List<List<TaskPluginInfo>> plugins; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("任务面板信息") |
|||
public static class PanelInfo{ |
|||
@ApiModelProperty("背景色") |
|||
private String backgroundColor; |
|||
@ApiModelProperty("圆角") |
|||
private String borderRadius; |
|||
@ApiModelProperty("边框") |
|||
private String border; |
|||
@ApiModelProperty("阴影") |
|||
private String shadow; |
|||
@ApiModelProperty("宽") |
|||
private String width; |
|||
@ApiModelProperty("高") |
|||
private String height; |
|||
@ApiModelProperty("行") |
|||
private int row; |
|||
@ApiModelProperty("列") |
|||
private int col; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("任务下的插件信息") |
|||
public static class TaskPluginInfo{ |
|||
@ApiModelProperty("插件id") |
|||
private int pluginId; |
|||
@ApiModelProperty("参数") |
|||
private int param; |
|||
@ApiModelProperty("行") |
|||
private int row; |
|||
@ApiModelProperty("列") |
|||
private int col; |
|||
@ApiModelProperty("跨行") |
|||
private int rowspan; |
|||
@ApiModelProperty("跨列") |
|||
private int colspan; |
|||
} |
|||
} |
|||
@ -0,0 +1,45 @@ |
|||
package com.ccsens.carbasics.bean.vo; |
|||
|
|||
import com.fasterxml.jackson.annotation.JsonIgnore; |
|||
import io.swagger.annotations.ApiModel; |
|||
import io.swagger.annotations.ApiModelProperty; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Data |
|||
public class WorkerVo { |
|||
|
|||
@Data |
|||
@ApiModel("到场人员信息") |
|||
public static class WorkInformation { |
|||
@ApiModelProperty("到场人员姓名") |
|||
private String name; |
|||
@ApiModelProperty("到场时间") |
|||
private Long time; |
|||
@ApiModelProperty("到场类型 0平车 1人") |
|||
private Byte type; |
|||
} |
|||
|
|||
@Data |
|||
@ApiModel("医院成员信息") |
|||
public static class AllDoctor { |
|||
@ApiModelProperty("医生名字") |
|||
private String name; |
|||
@ApiModelProperty("部门") |
|||
private Byte department; |
|||
@ApiModelProperty("职位") |
|||
private Byte post; |
|||
@ApiModelProperty("性别(0-女,1-男)") |
|||
private Byte gender; |
|||
@ApiModelProperty("手机号") |
|||
private String phone; |
|||
@JsonIgnore |
|||
@ApiModelProperty("值班id") |
|||
private String workingId; |
|||
@ApiModelProperty("是否值班(0-否,1-是)") |
|||
private Byte onDutyStatus; |
|||
|
|||
} |
|||
} |
|||
@ -0,0 +1,58 @@ |
|||
package com.ccsens.carbasics.bean.vo.message; |
|||
|
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.util.message.BaseMessageDto; |
|||
import lombok.Data; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Data |
|||
public class CarRecordMessageVo extends BaseMessageDto { |
|||
|
|||
@lombok.Data |
|||
public static class Data{ |
|||
/** |
|||
* 平车编号 |
|||
*/ |
|||
private String carNumber; |
|||
/** |
|||
* 类型 0开始 1体重 2rfid, 3称重一 4称重二 5称重三 6称重四 7震动 8剂量, |
|||
*/ |
|||
private int type; |
|||
/** |
|||
* 类型对应的值, |
|||
*/ |
|||
private String value; |
|||
/** |
|||
* 时间 |
|||
*/ |
|||
private Long time; |
|||
/** |
|||
* 流程 |
|||
*/ |
|||
private String step; |
|||
/** |
|||
* 流程 |
|||
*/ |
|||
private Byte stepType; |
|||
} |
|||
private Data data; |
|||
|
|||
public CarRecordMessageVo(){ |
|||
setType(Constant.Message.TYPE_CAR); |
|||
setTime(System.currentTimeMillis()); |
|||
} |
|||
|
|||
public CarRecordMessageVo(String carNumber, int type, String value, Long time, String step, Byte stepType){ |
|||
this(); |
|||
Data d = new Data(); |
|||
d.setCarNumber(carNumber); |
|||
d.setType(type); |
|||
d.setValue(value); |
|||
d.setTime(time); |
|||
d.setStep(step); |
|||
d.setStepType(stepType); |
|||
setData(d); |
|||
} |
|||
} |
|||
@ -0,0 +1,26 @@ |
|||
package com.ccsens.carbasics.bean.vo.message; |
|||
|
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.util.message.BaseMessageDto; |
|||
import lombok.Data; |
|||
|
|||
@Data |
|||
public class RemindMessageVo extends BaseMessageDto { |
|||
private Data data; |
|||
|
|||
@lombok.Data |
|||
public static class Data{ |
|||
private String content; |
|||
} |
|||
|
|||
public RemindMessageVo(){ |
|||
setType(Constant.Message.TYPE_REMIND); |
|||
this.setTime(System.currentTimeMillis()); |
|||
} |
|||
|
|||
public RemindMessageVo(String content){ |
|||
this(); |
|||
data = new Data(); |
|||
data.content = content; |
|||
} |
|||
} |
|||
@ -0,0 +1,22 @@ |
|||
package com.ccsens.carbasics.config; |
|||
|
|||
import com.ccsens.carbasics.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 MybatisInterceptor mybatisInterceptor() { |
|||
MybatisInterceptor interceptor = new MybatisInterceptor(); |
|||
return interceptor; |
|||
} |
|||
} |
|||
@ -0,0 +1,126 @@ |
|||
package com.ccsens.carbasics.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); |
|||
|
|||
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) { |
|||
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); // 预检请求的缓存时间(秒),即在这个时间段里,对于相同的跨域请求不会再预检了
|
|||
|
|||
} |
|||
|
|||
|
|||
|
|||
|
|||
/** |
|||
* 配置静态资源 |
|||
*/ |
|||
@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/carbasics/uploads/"); |
|||
} |
|||
|
|||
/** |
|||
* 配置拦截器 |
|||
* @param registry |
|||
*/ |
|||
@Override |
|||
public void addInterceptors(InterceptorRegistry registry) { |
|||
|
|||
} |
|||
|
|||
|
|||
/** |
|||
* 配置数据源(单数据源) |
|||
*/ |
|||
@Bean |
|||
public DataSource dataSource(){ |
|||
return druidPropsUtil.createDruidDataSource(); |
|||
} |
|||
|
|||
@Bean |
|||
public Snowflake snowflake(){ |
|||
return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); |
|||
} |
|||
} |
|||
@ -0,0 +1,56 @@ |
|||
package com.ccsens.carbasics.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.carbasics.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.carbasics.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,205 @@ |
|||
package com.ccsens.carbasics.mq; |
|||
|
|||
import cn.hutool.core.collection.CollectionUtil; |
|||
import cn.hutool.core.util.ObjectUtil; |
|||
import com.alibaba.fastjson.JSONObject; |
|||
import com.ccsens.carbasics.bean.dto.message.CarRecordMessageDto; |
|||
import com.ccsens.carbasics.service.IRecordService; |
|||
import com.ccsens.carbasics.util.Constant; |
|||
import com.ccsens.util.RedisUtil; |
|||
import com.ccsens.util.bean.message.common.OutMessage; |
|||
import com.ccsens.util.bean.message.common.OutMessageSet; |
|||
import com.ccsens.util.config.RabbitMQConfig; |
|||
import lombok.extern.slf4j.Slf4j; |
|||
import org.slf4j.Logger; |
|||
import org.slf4j.LoggerFactory; |
|||
import org.springframework.amqp.rabbit.annotation.RabbitHandler; |
|||
import org.springframework.amqp.rabbit.annotation.RabbitListener; |
|||
import org.springframework.stereotype.Component; |
|||
|
|||
import javax.annotation.Resource; |
|||
import java.math.BigDecimal; |
|||
import java.util.*; |
|||
|
|||
@Slf4j |
|||
@Component |
|||
@RabbitListener(queues = RabbitMQConfig.WISDOM_CAR_2) |
|||
public class RabbitController { |
|||
@Resource |
|||
private IRecordService recordService; |
|||
@Resource |
|||
private RedisUtil redisUtil; |
|||
|
|||
private Logger logger = LoggerFactory.getLogger(RabbitController.class); |
|||
|
|||
@RabbitHandler |
|||
public void process(String messageJson) { |
|||
logger.info("平车上传消息数据: {}", messageJson); |
|||
try { |
|||
OutMessageSet outMessageSet = JSONObject.parseObject(messageJson, OutMessageSet.class); |
|||
if (ObjectUtil.isNull(outMessageSet)) { |
|||
return; |
|||
} |
|||
Set<OutMessage> messageSet = outMessageSet.getMessageSet(); |
|||
if (CollectionUtil.isEmpty(messageSet)) { |
|||
return; |
|||
} |
|||
List<CarRecordMessageDto> carRecordMessageDtoList = new ArrayList<>(); |
|||
Map<Integer, Long> map = new HashMap<>(); |
|||
for(OutMessage outMessage : messageSet){ |
|||
|
|||
CarRecordMessageDto carRecordMessageDto = JSONObject.parseObject(outMessage.getData(), CarRecordMessageDto.class); |
|||
if (ObjectUtil.isNull(carRecordMessageDto)) { |
|||
continue; |
|||
} |
|||
log.info("type:{}", carRecordMessageDto.getType()); |
|||
switch (carRecordMessageDto.getType()) { |
|||
case Constant.Car.CAR_RECORD_WEIGHT: |
|||
getWeight(carRecordMessageDtoList, map, carRecordMessageDto, 16); |
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_1: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,25);
|
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_2: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,27);
|
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_3: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,29);
|
|||
break; |
|||
case Constant.Car.WEIGHT_SENSOR_4: |
|||
// getWeight(carRecordMessageDtoList, map, carRecordMessageDto,31);
|
|||
break; |
|||
case Constant.Car.SHAKE_SENSOR: |
|||
log.info("倾角传感器:{}", carRecordMessageDto); |
|||
long shakeValue = getShakeValue(carRecordMessageDto); |
|||
|
|||
map.put(carRecordMessageDto.getAddr(), shakeValue); |
|||
int x = 21; |
|||
int y = 22; |
|||
int z = 23; |
|||
if (map.get(x) != null && map.get(y) != null && map.get(z) != null) { |
|||
String value = map.get(x) + "," + map.get(y) + "," + map.get(z); |
|||
carRecordMessageDto.setValue(value); |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
} |
|||
break; |
|||
case Constant.Car.THROMBOLYTIC: |
|||
case Constant.Car.BOLUS_DOSE: |
|||
case Constant.Car.MAINTENANCE_DOSE: |
|||
BigDecimal value1 = BigDecimal.valueOf(Double.parseDouble(carRecordMessageDto.getValue())).divide(BigDecimal.valueOf(100), 2, BigDecimal.ROUND_HALF_DOWN); |
|||
carRecordMessageDto.setValue(value1.toString()); |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
break; |
|||
case Constant.Car.CAR_RECORD_RFID: |
|||
getRfid(carRecordMessageDtoList, map, carRecordMessageDto); |
|||
break; |
|||
default: |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
break; |
|||
} |
|||
|
|||
} |
|||
|
|||
carRecordMessageDtoList.forEach(carRecordMessageDto -> { |
|||
try { |
|||
log.info("处理后的平车消息:{}", carRecordMessageDto); |
|||
recordService.disposeMessage(carRecordMessageDto); |
|||
|
|||
} catch (Exception e) { |
|||
e.printStackTrace(); |
|||
} |
|||
}); |
|||
} catch (Exception e) { |
|||
log.error("平车消息JSON转换异常", e); |
|||
} |
|||
} |
|||
|
|||
private void getRfid(List<CarRecordMessageDto> carRecordMessageDtoList, Map<Integer, Long> map, CarRecordMessageDto dto) { |
|||
map.put(dto.getAddr(), Long.parseLong(dto.getValue())); |
|||
int rfid1 = CarRecordMessageDto.Addr.RFID_1; |
|||
int rfid2 = CarRecordMessageDto.Addr.RFID_2; |
|||
int rfid3 = CarRecordMessageDto.Addr.RFID_3; |
|||
log.info("addr:{},rfid:{}", dto.getAddr(), dto.getValue()); |
|||
log.info("是否计算rfid:{}", map.get(rfid1) != null && map.get(rfid2) != null && map.get(rfid3) != null); |
|||
log.info("map:{}", map); |
|||
log.info("3个rfid:{},{},{}", map.get(rfid1) , map.get(rfid2) , map.get(rfid3) ); |
|||
if (map.get(rfid1) != null && map.get(rfid2) != null && map.get(rfid3) != null) { |
|||
log.info("计算rfid"); |
|||
Long one = map.get(rfid1); |
|||
Long two = map.get(rfid2); |
|||
Long three = map.get(rfid3); |
|||
long rfid = one << 32 | two << 16 | three; |
|||
log.info("rfid:{}", "000"+toHex(rfid)); |
|||
dto.setValue("000"+toHex(rfid)); |
|||
carRecordMessageDtoList.add(dto); |
|||
} |
|||
} |
|||
|
|||
private String toHex(long dec) { |
|||
String hexStr=""; |
|||
|
|||
long decAbs=Math.abs(dec); |
|||
|
|||
while(decAbs>0){ |
|||
long lastFour=decAbs&15; |
|||
|
|||
if (lastFour>9){ |
|||
hexStr=(char)('A'+lastFour-10)+hexStr; |
|||
} else { |
|||
hexStr=lastFour+hexStr; |
|||
} |
|||
decAbs>>=4; |
|||
} |
|||
hexStr= dec<0?"-"+hexStr:dec==0?"0":hexStr; |
|||
return hexStr; |
|||
} |
|||
|
|||
private long getShakeValue(CarRecordMessageDto carRecordMessageDto) { |
|||
String key = Constant.Car.FIRST_AID + carRecordMessageDto.getAuthId() + carRecordMessageDto.getAddr(); |
|||
|
|||
long value = 0L; |
|||
//redis查找该平车上一次的倾角数据
|
|||
Object o = redisUtil.get(key); |
|||
if (ObjectUtil.isNull(o)) { |
|||
//如果没有依次存入redis,value值都是0
|
|||
redisUtil.set(key, carRecordMessageDto.getValue(),Constant.Car.FIRST_AID_REDIS_TIME); |
|||
carRecordMessageDto.setValue(0 + ""); |
|||
} else { |
|||
//如果有,用当前的值减去上次的数据,得到的是新的value
|
|||
value = Long.parseLong(carRecordMessageDto.getValue()) - Long.parseLong(o.toString()); |
|||
} |
|||
return value; |
|||
} |
|||
|
|||
private Long getWeight(List<CarRecordMessageDto> carRecordMessageDtoList, Map<Integer, Long> map, CarRecordMessageDto carRecordMessageDto, int highAddr) { |
|||
boolean flag = carRecordMessageDto.getAddr() == highAddr; |
|||
Long weight = getWeight(map, carRecordMessageDto, flag ? highAddr + 1 : highAddr, flag); |
|||
log.info("计算后的重量:{}", weight); |
|||
if (weight == null) { |
|||
return null; |
|||
} |
|||
carRecordMessageDto.setValue(weight.toString()); |
|||
carRecordMessageDtoList.add(carRecordMessageDto); |
|||
return weight; |
|||
} |
|||
|
|||
private Long getWeight(Map<Integer, Long> map, CarRecordMessageDto carRecordMessageDto, int value2, boolean firstHigh) { |
|||
log.info("value = {},,firstHigh={}", value2, firstHigh); |
|||
if (map.get(value2) == null) { |
|||
map.put(carRecordMessageDto.getAddr(), Long.parseLong(carRecordMessageDto.getValue())); |
|||
return null; |
|||
} else { |
|||
long weight1 = Long.parseLong(carRecordMessageDto.getValue()); |
|||
long weight2 = map.get(value2); |
|||
log.info("准备计算重量:{},,,{}", weight1, weight2); |
|||
if (firstHigh) { |
|||
log.info("weight1 << 16 + weight2:{}", weight1 << 16 | weight2); |
|||
return weight1 << 16 | weight2; |
|||
} else { |
|||
log.info("weight2 << 16 + weight1:{}", weight2 << 16 | weight1); |
|||
return weight2 << 16 | weight1; |
|||
} |
|||
} |
|||
} |
|||
|
|||
} |
|||
@ -0,0 +1,28 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.AttendanceRecord; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
import com.ccsens.carbasics.persist.mapper.AttendanceRecordMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface AttendanceRecordDao extends AttendanceRecordMapper { |
|||
/** |
|||
* 添加所有的到场人员信息 |
|||
* @param attendanceRecords 到场人员信息 |
|||
*/ |
|||
void insertAllRecord(@Param("attendanceRecords") List<AttendanceRecord> attendanceRecords); |
|||
|
|||
/** |
|||
* 根据急救id查询到场人员信息 |
|||
* @param firstAidId 急救id |
|||
* @return 到场人员信息列表 |
|||
*/ |
|||
List<WorkerVo.WorkInformation> queryArriveWorkerByAidId(@Param("firstAidId") Long firstAidId); |
|||
} |
|||
@ -0,0 +1,24 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.RecordVo; |
|||
import com.ccsens.carbasics.persist.mapper.CarRecordMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: 平车记录 |
|||
* @author: whj |
|||
* @time: 2021/8/4 9:26 |
|||
*/ |
|||
public interface CarRecordDao extends CarRecordMapper { |
|||
/** |
|||
* 根据类型查询平车记录 |
|||
* @param carId 平车ID |
|||
* @param startTime 开始时间 |
|||
* @param endTime 结束时间 |
|||
* @param type 数据类型 |
|||
* @return 记录 |
|||
*/ |
|||
List<RecordVo.WeightAndRfid> queryRecords(@Param("carId") Long carId, @Param("startTime") Long startTime, @Param("endTime") Long endTime, @Param("type") byte type); |
|||
} |
|||
@ -0,0 +1,30 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Doctor; |
|||
import com.ccsens.carbasics.bean.vo.WorkerVo; |
|||
import com.ccsens.carbasics.persist.mapper.DoctorMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface DoctorDao extends DoctorMapper { |
|||
/** |
|||
* 根据userId查找医生信息 |
|||
* @param userId 用户id |
|||
* @return 医生信息 |
|||
*/ |
|||
Doctor findByUserId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 根据医院id查询所有医生 |
|||
* @param hospitalId 医院id |
|||
* @param currentTime 当前时间 |
|||
* @return 所有医生的集合 |
|||
*/ |
|||
List<WorkerVo.AllDoctor> findAllDoctor(@Param("hospitalId") Long hospitalId, @Param("currentTime") long currentTime); |
|||
} |
|||
@ -0,0 +1,62 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.StatisticalDto; |
|||
import com.ccsens.carbasics.bean.vo.StatisticalVo; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.math.BigDecimal; |
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface FirstAidDao extends FirstAidMapper { |
|||
/** |
|||
* 根据急救ID查询所有的成员ID |
|||
* @param aidId 急救ID |
|||
* @return userID |
|||
*/ |
|||
List<Long> getUserIdById(@Param("aidId") Long aidId); |
|||
|
|||
/** |
|||
* 根据项目id查询急救id |
|||
* @param projectId 项目id |
|||
* @return 急救id |
|||
*/ |
|||
Long getIdByProjectId(@Param("projectId") Long projectId); |
|||
|
|||
/** |
|||
* 查询质控报告 |
|||
* @param param 查询条件 |
|||
* @param hospitalId 医院ID |
|||
* @return 质控报告 |
|||
*/ |
|||
List<StatisticalVo.Quality> queryQuality(@Param("param") StatisticalDto.Quality param, @Param("hospitalId") Long hospitalId); |
|||
|
|||
/** |
|||
* 查询指定时间的溶栓中位数 |
|||
* @param date 日期 |
|||
* @param type 0:月质控 1:周质控 2:日质控 |
|||
* @return 中位数 |
|||
*/ |
|||
BigDecimal getMedian(@Param("date") String date, @Param("type") byte type); |
|||
|
|||
/** |
|||
* 查询溶栓的日期 |
|||
* @return 日期 |
|||
* @param hospitalId 医院ID |
|||
*/ |
|||
List<String> queryThrombolyticDay(@Param("hospitalId") Long hospitalId); |
|||
|
|||
/** |
|||
* 根据急救ID查询患者名字 |
|||
* @param id 急救ID |
|||
* @return 患者名字 |
|||
*/ |
|||
String getPatientName(@Param("id") Long id); |
|||
|
|||
List<Integer> selResult(@Param("hospitalId") Long hospitalId, @Param("year") String year); |
|||
} |
|||
@ -0,0 +1,20 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.ProjectVo; |
|||
import com.ccsens.carbasics.persist.mapper.FirstAidMessageMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface FirstAidMessageDao extends FirstAidMessageMapper { |
|||
|
|||
/** |
|||
* 根据急救id查询最新消息 |
|||
* @param firstAidId 急救id |
|||
* @return 最新消息 |
|||
*/ |
|||
ProjectVo.NewMessage findInfoByProjectId(@Param("firstAidId") Long firstAidId); |
|||
} |
|||
@ -0,0 +1,32 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Repository |
|||
public interface HospitalDao { |
|||
|
|||
/** |
|||
* 通过平车查找医院id |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
Long getHospitalIdByCarId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 通过平车查找医院id |
|||
* @param userId |
|||
* @return |
|||
*/ |
|||
Long getHospitalIdByDoctorId(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 通过项目id获取医院id |
|||
* @param projectId |
|||
* @return |
|||
*/ |
|||
Long getHospitalIdByProjectId(@Param("projectId") Long projectId); |
|||
} |
|||
@ -0,0 +1,71 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Patient; |
|||
import com.ccsens.carbasics.bean.vo.PatientVo; |
|||
import com.ccsens.carbasics.persist.mapper.PatientMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
public interface PatientDao extends PatientMapper { |
|||
|
|||
/** |
|||
* 根据身份证和医院id查询患者是否来过 |
|||
* @param idCard 身份证号 |
|||
* @param hospitalId 医院id |
|||
* @return 患者信息 |
|||
*/ |
|||
Patient findByIdCardAndHospitalId(@Param("idCard") String idCard, @Param("hospitalId") Long hospitalId); |
|||
|
|||
/** |
|||
* 根据医院id查询患者信息 |
|||
* @param hospitalId 医院id |
|||
* @param patientName 患者名 |
|||
* @param type 患者类型 0急救患者 1平车患者 2转归患者 |
|||
* @return 患者列表 |
|||
*/ |
|||
List<PatientVo.QueryPatientList> queryByHospital(@Param("hospitalId") Long hospitalId, @Param("patientName") String patientName, @Param("type") int type); |
|||
|
|||
/** |
|||
* 通过急救id和code查询信息 |
|||
* @param firstAidId 急救id |
|||
* @param code code |
|||
* @return 返回答题信息 |
|||
*/ |
|||
PatientVo.AidRecord getRecordByAidIdAndCode(@Param("firstAidId") Long firstAidId, @Param("code") String code); |
|||
|
|||
/** |
|||
* 查询到场医生的信息 |
|||
* @param firstAidId 急救id |
|||
* @return 返回医生信息及职位 |
|||
*/ |
|||
List<PatientVo.Doctor> getAttendanceDoctor(@Param("firstAidId") Long firstAidId); |
|||
|
|||
|
|||
/** |
|||
* 根据急救id查询记录信息 |
|||
* @param projectId 急救id |
|||
* @param codeList code |
|||
* @return 返回急救信息 |
|||
*/ |
|||
List<PatientVo.AidRecord> queryRecordByAidId(@Param("projectId") Long projectId, @Param("codeList") List<String> codeList); |
|||
|
|||
/** |
|||
* 查找code下的总数量和完成数据 |
|||
* @param projectId 急救id |
|||
* @param code code |
|||
* @return 返回 |
|||
*/ |
|||
PatientVo.QuerySubordinate querySubordinate(@Param("projectId") Long projectId, @Param("code") String code); |
|||
|
|||
/** |
|||
* 查找平车患者 |
|||
* @param hospitalId 医院id |
|||
* @return 返回平车患者 |
|||
*/ |
|||
List<PatientVo.QueryPatientList> queryCarPatient(@Param("hospitalId") Long hospitalId); |
|||
} |
|||
@ -0,0 +1,46 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.dto.CarDto; |
|||
import com.ccsens.carbasics.bean.po.PatientWisdomCar; |
|||
import com.ccsens.carbasics.bean.vo.CarVo; |
|||
import com.ccsens.carbasics.persist.mapper.PatientWisdomCarMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: step |
|||
* @author: whj |
|||
* @time: 2021/7/27 14:49 |
|||
*/ |
|||
public interface PatientWisdomCarDao extends PatientWisdomCarMapper { |
|||
/** |
|||
* 查询平车当前的绑定信息 |
|||
* @param carId 平车ID |
|||
* @param time 查询时间 |
|||
* @return 平车绑定信息 |
|||
*/ |
|||
PatientWisdomCar getBindCar(@Param("carId") Long carId, @Param("time") long time); |
|||
|
|||
/** |
|||
* 查询用户所在医院的全部平车信息 |
|||
* @param userId 操作者 |
|||
* @return 平车信息 |
|||
*/ |
|||
List<CarVo.Car> queryCar(@Param("userId") Long userId); |
|||
|
|||
/** |
|||
* 根据项目ID查询对应患者绑定的平车信息 |
|||
* @param param |
|||
* @return |
|||
*/ |
|||
CarVo.QueryBind queryBind(CarDto.QueryBind param); |
|||
|
|||
/** |
|||
* 修改2H内未结束的平车绑定结束 |
|||
* @param carId 平车ID |
|||
* @param startTime 开始时间 |
|||
* @param userId 操作者ID |
|||
*/ |
|||
void updateEndTime(@Param("carId") Long carId, @Param("startTime") Long startTime, @Param("userId") Long userId); |
|||
} |
|||
@ -0,0 +1,19 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.RfidVo; |
|||
import com.ccsens.carbasics.persist.mapper.RfidMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @description: rfid |
|||
* @author: whj |
|||
* @time: 2021/7/27 14:42 |
|||
*/ |
|||
public interface RfidDao extends RfidMapper { |
|||
/** |
|||
* 根据rfid查询rfid完整内容 |
|||
* @param rfid rfid(完整编码或简单编码) |
|||
* @return rfid |
|||
*/ |
|||
RfidVo.Full getByRfid(@Param("rfid") String rfid); |
|||
} |
|||
@ -0,0 +1,10 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface SPluginDao { |
|||
Long getPluginIdByName(@Param("pluginName") String pluginName); |
|||
} |
|||
@ -0,0 +1,23 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.common.bean.po.ProTaskSub; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
public interface STaskDao { |
|||
|
|||
void insertSelectiveList(@Param("proTaskSubList") List<ProTaskSub> proTaskSubList); |
|||
|
|||
/** |
|||
* 根据任务名和项目id查找当前时间下的任务的分解id |
|||
* @param taskName 任务名 |
|||
* @param projectId 项目id |
|||
* @param now 当前时间 |
|||
* @return 返回任务分解id |
|||
*/ |
|||
Long getNowTask(@Param("taskName") String taskName, @Param("projectId") Long projectId, @Param("now") long now); |
|||
} |
|||
@ -0,0 +1,43 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.vo.StatisticalVo; |
|||
import com.ccsens.carbasics.persist.mapper.StepMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @description: step |
|||
* @author: whj |
|||
* @time: 2021/7/27 14:49 |
|||
*/ |
|||
public interface StepDao extends StepMapper { |
|||
|
|||
/** |
|||
* 根据code查询id |
|||
* @param code code |
|||
* @param time time |
|||
* @return ID |
|||
*/ |
|||
Long getIdByCode(@Param("code") String code, @Param("time") Long time); |
|||
|
|||
/** |
|||
* 查询环节完成情况 |
|||
* @param projectId 项目 |
|||
* @return 环节完成情况 |
|||
*/ |
|||
List<StatisticalVo.Step> queryCompleteStatus(@Param("projectId") Long projectId); |
|||
|
|||
/** |
|||
* 查询我院数据 |
|||
* @param hospitalId |
|||
* @return |
|||
*/ |
|||
List<Long> getPointTimeHospital(@Param("hospitalId") Long hospitalId); |
|||
/** |
|||
* 查询国际标准数据 |
|||
* @param hospitalId |
|||
* @return |
|||
*/ |
|||
List<Long> getPointTimeInternation(@Param("hospitalId") Long hospitalId); |
|||
} |
|||
@ -0,0 +1,15 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.common.persist.dao.LabelDao; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
/** |
|||
* @author 逗 |
|||
*/ |
|||
@Repository |
|||
public interface SubLabelDao extends LabelDao { |
|||
Long getLabelByName(@Param("type") int type, @Param("sysRole") String sysRole); |
|||
|
|||
Long getLabelByTypeAndLevel(@Param("type") int type, @Param("level") int level); |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
package com.ccsens.carbasics.persist.dao; |
|||
|
|||
import com.ccsens.carbasics.bean.po.Doctor; |
|||
import com.ccsens.carbasics.persist.mapper.WrokingMapper; |
|||
import org.apache.ibatis.annotations.Param; |
|||
import org.springframework.stereotype.Repository; |
|||
|
|||
import java.util.List; |
|||
|
|||
/** |
|||
* @author AUSU |
|||
*/ |
|||
@Repository |
|||
public interface WorkingDao extends WrokingMapper { |
|||
/** |
|||
* 查询正在值班的医生 |
|||
* @param hospitalId 医院id |
|||
* @param currentTime 当前时间 |
|||
* @return 值班医生列表 |
|||
*/ |
|||
List<Doctor> findWorkingDoctor(@Param("hospitalId") Long hospitalId, @Param("currentTime") long currentTime); |
|||
|
|||
/** |
|||
* 判断医生在当前时间是否是该职位 |
|||
* @param rfid 医生的rfid |
|||
* @param post 职位 |
|||
* @param time 时间 |
|||
* @return 值班数量 |
|||
*/ |
|||
long countWorking(@Param("rfid") String rfid, @Param("post") byte post, @Param("time") long time); |
|||
} |
|||
Some files were not shown because too many files changed in this diff
Loading…
Reference in new issue