Commit cc51d294fc39dd98d57c944e68e8c012d3d45ebb
0 parents
最初版本提交
Showing
18 changed files
with
3223 additions
and
0 deletions
mvnw
0 → 100755
1 | +++ a/mvnw | ||
1 | +#!/bin/sh | ||
2 | +# ---------------------------------------------------------------------------- | ||
3 | +# Licensed to the Apache Software Foundation (ASF) under one | ||
4 | +# or more contributor license agreements. See the NOTICE file | ||
5 | +# distributed with this work for additional information | ||
6 | +# regarding copyright ownership. The ASF licenses this file | ||
7 | +# to you under the Apache License, Version 2.0 (the | ||
8 | +# "License"); you may not use this file except in compliance | ||
9 | +# with the License. You may obtain a copy of the License at | ||
10 | +# | ||
11 | +# http://www.apache.org/licenses/LICENSE-2.0 | ||
12 | +# | ||
13 | +# Unless required by applicable law or agreed to in writing, | ||
14 | +# software distributed under the License is distributed on an | ||
15 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
16 | +# KIND, either express or implied. See the License for the | ||
17 | +# specific language governing permissions and limitations | ||
18 | +# under the License. | ||
19 | +# ---------------------------------------------------------------------------- | ||
20 | + | ||
21 | +# ---------------------------------------------------------------------------- | ||
22 | +# Maven2 Start Up Batch script | ||
23 | +# | ||
24 | +# Required ENV vars: | ||
25 | +# ------------------ | ||
26 | +# JAVA_HOME - location of a JDK home dir | ||
27 | +# | ||
28 | +# Optional ENV vars | ||
29 | +# ----------------- | ||
30 | +# M2_HOME - location of maven2's installed home dir | ||
31 | +# MAVEN_OPTS - parameters passed to the Java VM when running Maven | ||
32 | +# e.g. to debug Maven itself, use | ||
33 | +# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 | ||
34 | +# MAVEN_SKIP_RC - flag to disable loading of mavenrc files | ||
35 | +# ---------------------------------------------------------------------------- | ||
36 | + | ||
37 | +if [ -z "$MAVEN_SKIP_RC" ] ; then | ||
38 | + | ||
39 | + if [ -f /etc/mavenrc ] ; then | ||
40 | + . /etc/mavenrc | ||
41 | + fi | ||
42 | + | ||
43 | + if [ -f "$HOME/.mavenrc" ] ; then | ||
44 | + . "$HOME/.mavenrc" | ||
45 | + fi | ||
46 | + | ||
47 | +fi | ||
48 | + | ||
49 | +# OS specific support. $var _must_ be set to either true or false. | ||
50 | +cygwin=false; | ||
51 | +darwin=false; | ||
52 | +mingw=false | ||
53 | +case "`uname`" in | ||
54 | + CYGWIN*) cygwin=true ;; | ||
55 | + MINGW*) mingw=true;; | ||
56 | + Darwin*) darwin=true | ||
57 | + # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home | ||
58 | + # See https://developer.apple.com/library/mac/qa/qa1170/_index.html | ||
59 | + if [ -z "$JAVA_HOME" ]; then | ||
60 | + if [ -x "/usr/libexec/java_home" ]; then | ||
61 | + export JAVA_HOME="`/usr/libexec/java_home`" | ||
62 | + else | ||
63 | + export JAVA_HOME="/Library/Java/Home" | ||
64 | + fi | ||
65 | + fi | ||
66 | + ;; | ||
67 | +esac | ||
68 | + | ||
69 | +if [ -z "$JAVA_HOME" ] ; then | ||
70 | + if [ -r /etc/gentoo-release ] ; then | ||
71 | + JAVA_HOME=`java-config --jre-home` | ||
72 | + fi | ||
73 | +fi | ||
74 | + | ||
75 | +if [ -z "$M2_HOME" ] ; then | ||
76 | + ## resolve links - $0 may be a link to maven's home | ||
77 | + PRG="$0" | ||
78 | + | ||
79 | + # need this for relative symlinks | ||
80 | + while [ -h "$PRG" ] ; do | ||
81 | + ls=`ls -ld "$PRG"` | ||
82 | + link=`expr "$ls" : '.*-> \(.*\)$'` | ||
83 | + if expr "$link" : '/.*' > /dev/null; then | ||
84 | + PRG="$link" | ||
85 | + else | ||
86 | + PRG="`dirname "$PRG"`/$link" | ||
87 | + fi | ||
88 | + done | ||
89 | + | ||
90 | + saveddir=`pwd` | ||
91 | + | ||
92 | + M2_HOME=`dirname "$PRG"`/.. | ||
93 | + | ||
94 | + # make it fully qualified | ||
95 | + M2_HOME=`cd "$M2_HOME" && pwd` | ||
96 | + | ||
97 | + cd "$saveddir" | ||
98 | + # echo Using m2 at $M2_HOME | ||
99 | +fi | ||
100 | + | ||
101 | +# For Cygwin, ensure paths are in UNIX format before anything is touched | ||
102 | +if $cygwin ; then | ||
103 | + [ -n "$M2_HOME" ] && | ||
104 | + M2_HOME=`cygpath --unix "$M2_HOME"` | ||
105 | + [ -n "$JAVA_HOME" ] && | ||
106 | + JAVA_HOME=`cygpath --unix "$JAVA_HOME"` | ||
107 | + [ -n "$CLASSPATH" ] && | ||
108 | + CLASSPATH=`cygpath --path --unix "$CLASSPATH"` | ||
109 | +fi | ||
110 | + | ||
111 | +# For Migwn, ensure paths are in UNIX format before anything is touched | ||
112 | +if $mingw ; then | ||
113 | + [ -n "$M2_HOME" ] && | ||
114 | + M2_HOME="`(cd "$M2_HOME"; pwd)`" | ||
115 | + [ -n "$JAVA_HOME" ] && | ||
116 | + JAVA_HOME="`(cd "$JAVA_HOME"; pwd)`" | ||
117 | + # TODO classpath? | ||
118 | +fi | ||
119 | + | ||
120 | +if [ -z "$JAVA_HOME" ]; then | ||
121 | + javaExecutable="`which javac`" | ||
122 | + if [ -n "$javaExecutable" ] && ! [ "`expr \"$javaExecutable\" : '\([^ ]*\)'`" = "no" ]; then | ||
123 | + # readlink(1) is not available as standard on Solaris 10. | ||
124 | + readLink=`which readlink` | ||
125 | + if [ ! `expr "$readLink" : '\([^ ]*\)'` = "no" ]; then | ||
126 | + if $darwin ; then | ||
127 | + javaHome="`dirname \"$javaExecutable\"`" | ||
128 | + javaExecutable="`cd \"$javaHome\" && pwd -P`/javac" | ||
129 | + else | ||
130 | + javaExecutable="`readlink -f \"$javaExecutable\"`" | ||
131 | + fi | ||
132 | + javaHome="`dirname \"$javaExecutable\"`" | ||
133 | + javaHome=`expr "$javaHome" : '\(.*\)/bin'` | ||
134 | + JAVA_HOME="$javaHome" | ||
135 | + export JAVA_HOME | ||
136 | + fi | ||
137 | + fi | ||
138 | +fi | ||
139 | + | ||
140 | +if [ -z "$JAVACMD" ] ; then | ||
141 | + if [ -n "$JAVA_HOME" ] ; then | ||
142 | + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then | ||
143 | + # IBM's JDK on AIX uses strange locations for the executables | ||
144 | + JAVACMD="$JAVA_HOME/jre/sh/java" | ||
145 | + else | ||
146 | + JAVACMD="$JAVA_HOME/bin/java" | ||
147 | + fi | ||
148 | + else | ||
149 | + JAVACMD="`which java`" | ||
150 | + fi | ||
151 | +fi | ||
152 | + | ||
153 | +if [ ! -x "$JAVACMD" ] ; then | ||
154 | + echo "Error: JAVA_HOME is not defined correctly." >&2 | ||
155 | + echo " We cannot execute $JAVACMD" >&2 | ||
156 | + exit 1 | ||
157 | +fi | ||
158 | + | ||
159 | +if [ -z "$JAVA_HOME" ] ; then | ||
160 | + echo "Warning: JAVA_HOME environment variable is not set." | ||
161 | +fi | ||
162 | + | ||
163 | +CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher | ||
164 | + | ||
165 | +# traverses directory structure from process work directory to filesystem root | ||
166 | +# first directory with .mvn subdirectory is considered project base directory | ||
167 | +find_maven_basedir() { | ||
168 | + | ||
169 | + if [ -z "$1" ] | ||
170 | + then | ||
171 | + echo "Path not specified to find_maven_basedir" | ||
172 | + return 1 | ||
173 | + fi | ||
174 | + | ||
175 | + basedir="$1" | ||
176 | + wdir="$1" | ||
177 | + while [ "$wdir" != '/' ] ; do | ||
178 | + if [ -d "$wdir"/.mvn ] ; then | ||
179 | + basedir=$wdir | ||
180 | + break | ||
181 | + fi | ||
182 | + # workaround for JBEAP-8937 (on Solaris 10/Sparc) | ||
183 | + if [ -d "${wdir}" ]; then | ||
184 | + wdir=`cd "$wdir/.."; pwd` | ||
185 | + fi | ||
186 | + # end of workaround | ||
187 | + done | ||
188 | + echo "${basedir}" | ||
189 | +} | ||
190 | + | ||
191 | +# concatenates all lines of a file | ||
192 | +concat_lines() { | ||
193 | + if [ -f "$1" ]; then | ||
194 | + echo "$(tr -s '\n' ' ' < "$1")" | ||
195 | + fi | ||
196 | +} | ||
197 | + | ||
198 | +BASE_DIR=`find_maven_basedir "$(pwd)"` | ||
199 | +if [ -z "$BASE_DIR" ]; then | ||
200 | + exit 1; | ||
201 | +fi | ||
202 | + | ||
203 | +export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"} | ||
204 | +echo $MAVEN_PROJECTBASEDIR | ||
205 | +MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS" | ||
206 | + | ||
207 | +# For Cygwin, switch paths to Windows format before running java | ||
208 | +if $cygwin; then | ||
209 | + [ -n "$M2_HOME" ] && | ||
210 | + M2_HOME=`cygpath --path --windows "$M2_HOME"` | ||
211 | + [ -n "$JAVA_HOME" ] && | ||
212 | + JAVA_HOME=`cygpath --path --windows "$JAVA_HOME"` | ||
213 | + [ -n "$CLASSPATH" ] && | ||
214 | + CLASSPATH=`cygpath --path --windows "$CLASSPATH"` | ||
215 | + [ -n "$MAVEN_PROJECTBASEDIR" ] && | ||
216 | + MAVEN_PROJECTBASEDIR=`cygpath --path --windows "$MAVEN_PROJECTBASEDIR"` | ||
217 | +fi | ||
218 | + | ||
219 | +WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain | ||
220 | + | ||
221 | +exec "$JAVACMD" \ | ||
222 | + $MAVEN_OPTS \ | ||
223 | + -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \ | ||
224 | + "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \ | ||
225 | + ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@" |
mvnw.cmd
0 → 100644
1 | +++ a/mvnw.cmd | ||
1 | +@REM ---------------------------------------------------------------------------- | ||
2 | +@REM Licensed to the Apache Software Foundation (ASF) under one | ||
3 | +@REM or more contributor license agreements. See the NOTICE file | ||
4 | +@REM distributed with this work for additional information | ||
5 | +@REM regarding copyright ownership. The ASF licenses this file | ||
6 | +@REM to you under the Apache License, Version 2.0 (the | ||
7 | +@REM "License"); you may not use this file except in compliance | ||
8 | +@REM with the License. You may obtain a copy of the License at | ||
9 | +@REM | ||
10 | +@REM http://www.apache.org/licenses/LICENSE-2.0 | ||
11 | +@REM | ||
12 | +@REM Unless required by applicable law or agreed to in writing, | ||
13 | +@REM software distributed under the License is distributed on an | ||
14 | +@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
15 | +@REM KIND, either express or implied. See the License for the | ||
16 | +@REM specific language governing permissions and limitations | ||
17 | +@REM under the License. | ||
18 | +@REM ---------------------------------------------------------------------------- | ||
19 | + | ||
20 | +@REM ---------------------------------------------------------------------------- | ||
21 | +@REM Maven2 Start Up Batch script | ||
22 | +@REM | ||
23 | +@REM Required ENV vars: | ||
24 | +@REM JAVA_HOME - location of a JDK home dir | ||
25 | +@REM | ||
26 | +@REM Optional ENV vars | ||
27 | +@REM M2_HOME - location of maven2's installed home dir | ||
28 | +@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands | ||
29 | +@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a key stroke before ending | ||
30 | +@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven | ||
31 | +@REM e.g. to debug Maven itself, use | ||
32 | +@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000 | ||
33 | +@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files | ||
34 | +@REM ---------------------------------------------------------------------------- | ||
35 | + | ||
36 | +@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on' | ||
37 | +@echo off | ||
38 | +@REM enable echoing my setting MAVEN_BATCH_ECHO to 'on' | ||
39 | +@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO% | ||
40 | + | ||
41 | +@REM set %HOME% to equivalent of $HOME | ||
42 | +if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%") | ||
43 | + | ||
44 | +@REM Execute a user defined script before this one | ||
45 | +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre | ||
46 | +@REM check for pre script, once with legacy .bat ending and once with .cmd ending | ||
47 | +if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat" | ||
48 | +if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd" | ||
49 | +:skipRcPre | ||
50 | + | ||
51 | +@setlocal | ||
52 | + | ||
53 | +set ERROR_CODE=0 | ||
54 | + | ||
55 | +@REM To isolate internal variables from possible post scripts, we use another setlocal | ||
56 | +@setlocal | ||
57 | + | ||
58 | +@REM ==== START VALIDATION ==== | ||
59 | +if not "%JAVA_HOME%" == "" goto OkJHome | ||
60 | + | ||
61 | +echo. | ||
62 | +echo Error: JAVA_HOME not found in your environment. >&2 | ||
63 | +echo Please set the JAVA_HOME variable in your environment to match the >&2 | ||
64 | +echo location of your Java installation. >&2 | ||
65 | +echo. | ||
66 | +goto error | ||
67 | + | ||
68 | +:OkJHome | ||
69 | +if exist "%JAVA_HOME%\bin\java.exe" goto init | ||
70 | + | ||
71 | +echo. | ||
72 | +echo Error: JAVA_HOME is set to an invalid directory. >&2 | ||
73 | +echo JAVA_HOME = "%JAVA_HOME%" >&2 | ||
74 | +echo Please set the JAVA_HOME variable in your environment to match the >&2 | ||
75 | +echo location of your Java installation. >&2 | ||
76 | +echo. | ||
77 | +goto error | ||
78 | + | ||
79 | +@REM ==== END VALIDATION ==== | ||
80 | + | ||
81 | +:init | ||
82 | + | ||
83 | +@REM Find the project base dir, i.e. the directory that contains the folder ".mvn". | ||
84 | +@REM Fallback to current working directory if not found. | ||
85 | + | ||
86 | +set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR% | ||
87 | +IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir | ||
88 | + | ||
89 | +set EXEC_DIR=%CD% | ||
90 | +set WDIR=%EXEC_DIR% | ||
91 | +:findBaseDir | ||
92 | +IF EXIST "%WDIR%"\.mvn goto baseDirFound | ||
93 | +cd .. | ||
94 | +IF "%WDIR%"=="%CD%" goto baseDirNotFound | ||
95 | +set WDIR=%CD% | ||
96 | +goto findBaseDir | ||
97 | + | ||
98 | +:baseDirFound | ||
99 | +set MAVEN_PROJECTBASEDIR=%WDIR% | ||
100 | +cd "%EXEC_DIR%" | ||
101 | +goto endDetectBaseDir | ||
102 | + | ||
103 | +:baseDirNotFound | ||
104 | +set MAVEN_PROJECTBASEDIR=%EXEC_DIR% | ||
105 | +cd "%EXEC_DIR%" | ||
106 | + | ||
107 | +:endDetectBaseDir | ||
108 | + | ||
109 | +IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig | ||
110 | + | ||
111 | +@setlocal EnableExtensions EnableDelayedExpansion | ||
112 | +for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a | ||
113 | +@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS% | ||
114 | + | ||
115 | +:endReadAdditionalConfig | ||
116 | + | ||
117 | +SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe" | ||
118 | + | ||
119 | +set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar" | ||
120 | +set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain | ||
121 | + | ||
122 | +%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %* | ||
123 | +if ERRORLEVEL 1 goto error | ||
124 | +goto end | ||
125 | + | ||
126 | +:error | ||
127 | +set ERROR_CODE=1 | ||
128 | + | ||
129 | +:end | ||
130 | +@endlocal & set ERROR_CODE=%ERROR_CODE% | ||
131 | + | ||
132 | +if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost | ||
133 | +@REM check for post script, once with legacy .bat ending and once with .cmd ending | ||
134 | +if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat" | ||
135 | +if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd" | ||
136 | +:skipRcPost | ||
137 | + | ||
138 | +@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on' | ||
139 | +if "%MAVEN_BATCH_PAUSE%" == "on" pause | ||
140 | + | ||
141 | +if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE% | ||
142 | + | ||
143 | +exit /B %ERROR_CODE% |
pom.xml
0 → 100644
1 | +++ a/pom.xml | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
3 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
4 | + <modelVersion>4.0.0</modelVersion> | ||
5 | + | ||
6 | + <groupId>com.zteits.oa</groupId> | ||
7 | + <artifactId>zteits-oa</artifactId> | ||
8 | + <version>0.0.1-SNAPSHOT</version> | ||
9 | + <packaging>jar</packaging> | ||
10 | + | ||
11 | + <name>zteits_daily_report</name> | ||
12 | + <description>Demo project for Spring Boot</description> | ||
13 | + | ||
14 | + <parent> | ||
15 | + <groupId>org.springframework.boot</groupId> | ||
16 | + <artifactId>spring-boot-starter-parent</artifactId> | ||
17 | + <version>1.5.2.RELEASE</version> | ||
18 | + <relativePath /> <!-- lookup parent from repository --> | ||
19 | + </parent> | ||
20 | + | ||
21 | + <properties> | ||
22 | + <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
23 | + <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
24 | + <java.version>1.8</java.version> | ||
25 | + <spring-session.version>1.3.1.RELEASE</spring-session.version> | ||
26 | + <mysql-connector-java.version>5.1.21</mysql-connector-java.version> | ||
27 | + <hutool-all.version>3.0.5</hutool-all.version> | ||
28 | + <org.mybatis.version>3.4.4</org.mybatis.version> | ||
29 | + <com.alibaba.version>1.0.29</com.alibaba.version> | ||
30 | + <pagehelper-spring-boot-starter.version>1.1.0</pagehelper-spring-boot-starter.version> | ||
31 | + </properties> | ||
32 | + | ||
33 | + <dependencies> | ||
34 | + <dependency> | ||
35 | + <groupId>org.springframework.boot</groupId> | ||
36 | + <artifactId>spring-boot-starter</artifactId> | ||
37 | + </dependency> | ||
38 | + <dependency> | ||
39 | + <groupId>org.springframework.boot</groupId> | ||
40 | + <artifactId>spring-boot-starter-test</artifactId> | ||
41 | + <scope>test</scope> | ||
42 | + </dependency> | ||
43 | + <dependency> | ||
44 | + <groupId>org.springframework.boot</groupId> | ||
45 | + <artifactId>spring-boot-starter-web</artifactId> | ||
46 | + </dependency> | ||
47 | + <dependency> | ||
48 | + <groupId>org.springframework.boot</groupId> | ||
49 | + <artifactId>spring-boot-starter-aop</artifactId> | ||
50 | + </dependency> | ||
51 | + <dependency> | ||
52 | + <groupId>org.springframework.boot</groupId> | ||
53 | + <artifactId>spring-boot-starter-redis</artifactId> | ||
54 | + <version>1.4.7.RELEASE</version> | ||
55 | + </dependency> | ||
56 | + <!-- spring session --> | ||
57 | + <dependency> | ||
58 | + <groupId>org.springframework.session</groupId> | ||
59 | + <artifactId>spring-session</artifactId> | ||
60 | + </dependency> | ||
61 | + <!-- mybatis --> | ||
62 | + <dependency> | ||
63 | + <groupId>org.mybatis.generator</groupId> | ||
64 | + <artifactId>mybatis-generator-core</artifactId> | ||
65 | + <version>1.3.5</version> | ||
66 | + </dependency> | ||
67 | + <!-- mysql --> | ||
68 | + <dependency> | ||
69 | + <groupId>mysql</groupId> | ||
70 | + <artifactId>mysql-connector-java</artifactId> | ||
71 | + <version>${mysql-connector-java.version}</version> | ||
72 | + <scope>runtime</scope> | ||
73 | + </dependency> | ||
74 | + <!-- hutool --> | ||
75 | + <dependency> | ||
76 | + <groupId>com.xiaoleilu</groupId> | ||
77 | + <artifactId>hutool-all</artifactId> | ||
78 | + <version>${hutool-all.version}</version> | ||
79 | + </dependency> | ||
80 | + <!--mybatis--> | ||
81 | + <dependency> | ||
82 | + <groupId>org.mybatis</groupId> | ||
83 | + <artifactId>mybatis</artifactId> | ||
84 | + <version>${org.mybatis.version}</version> | ||
85 | + </dependency> | ||
86 | + <dependency> | ||
87 | + <groupId>com.github.pagehelper</groupId> | ||
88 | + <artifactId>pagehelper-spring-boot-starter</artifactId> | ||
89 | + <version>${pagehelper-spring-boot-starter.version}</version> | ||
90 | + </dependency> | ||
91 | + <dependency> | ||
92 | + <groupId>com.alibaba</groupId> | ||
93 | + <artifactId>druid</artifactId> | ||
94 | + <version>${com.alibaba.version}</version> | ||
95 | + </dependency> | ||
96 | + <dependency> | ||
97 | + <groupId>com.alibaba</groupId> | ||
98 | + <artifactId>fastjson</artifactId> | ||
99 | + <version>1.2.47</version> | ||
100 | + </dependency> | ||
101 | + | ||
102 | + | ||
103 | + | ||
104 | + </dependencies> | ||
105 | + | ||
106 | + <build> | ||
107 | + <finalName>com.zteits.oa</finalName> | ||
108 | + <plugins> | ||
109 | + <plugin> | ||
110 | + <groupId>org.springframework.boot</groupId> | ||
111 | + <artifactId>spring-boot-maven-plugin</artifactId> | ||
112 | + <configuration> | ||
113 | + <mainClass>com.daily.report.DailyReportApplication</mainClass> | ||
114 | + </configuration> | ||
115 | + <version>1.3.5.RELEASE</version> | ||
116 | + </plugin> | ||
117 | + <plugin> | ||
118 | + <groupId>org.apache.maven.plugins</groupId> | ||
119 | + <artifactId>maven-assembly-plugin</artifactId> | ||
120 | + | ||
121 | + </plugin> | ||
122 | + </plugins> | ||
123 | + </build> | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | +</project> |
src/main/java/com/zteits/oa/DailyReportApplication.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/DailyReportApplication.java | ||
1 | +package com.zteits.oa; | ||
2 | + | ||
3 | +import org.mybatis.spring.annotation.MapperScan; | ||
4 | +import org.springframework.boot.SpringApplication; | ||
5 | +import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
6 | +import org.springframework.boot.autoconfigure.SpringBootApplication; | ||
7 | +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | ||
8 | +import org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration; | ||
9 | + | ||
10 | +@SpringBootApplication | ||
11 | +@EnableAutoConfiguration(exclude = { | ||
12 | + DataSourceAutoConfiguration.class, | ||
13 | + DataSourceTransactionManagerAutoConfiguration.class | ||
14 | + }) | ||
15 | +@MapperScan("com.zteits.oa.report.mapper") | ||
16 | +public class DailyReportApplication { | ||
17 | + | ||
18 | + public static void main(String[] args) { | ||
19 | + SpringApplication.run(DailyReportApplication.class, args); | ||
20 | + } | ||
21 | +} |
src/main/java/com/zteits/oa/configuration/druid/DruidAutoConfiguration.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/configuration/druid/DruidAutoConfiguration.java | ||
1 | +package com.zteits.oa.configuration.druid; | ||
2 | + | ||
3 | +import java.sql.SQLException; | ||
4 | + | ||
5 | +import javax.sql.DataSource; | ||
6 | + | ||
7 | +import org.springframework.beans.factory.annotation.Autowired; | ||
8 | +import org.springframework.boot.autoconfigure.AutoConfigureBefore; | ||
9 | +import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||
10 | +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; | ||
11 | +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; | ||
12 | +import org.springframework.boot.context.properties.EnableConfigurationProperties; | ||
13 | +import org.springframework.boot.web.servlet.FilterRegistrationBean; | ||
14 | +import org.springframework.boot.web.servlet.ServletRegistrationBean; | ||
15 | +import org.springframework.context.annotation.Bean; | ||
16 | +import org.springframework.context.annotation.Configuration; | ||
17 | +import org.springframework.util.StringUtils; | ||
18 | + | ||
19 | +import com.alibaba.druid.pool.DruidDataSource; | ||
20 | +import com.alibaba.druid.support.http.StatViewServlet; | ||
21 | +import com.alibaba.druid.support.http.WebStatFilter; | ||
22 | + | ||
23 | +/** | ||
24 | + * | ||
25 | + * | ||
26 | + * Copyright: Copyright (c) 2017 zteits | ||
27 | + * | ||
28 | + * @ClassName: DruidAutoConfiguration.java | ||
29 | + * @Description: | ||
30 | + * @version: v1.0.0 | ||
31 | + * @author: liuzl | ||
32 | + * @date: 2017年4月19日 下午7:52:52 | ||
33 | + * Modification History: | ||
34 | + * Date Author Version Description | ||
35 | + *---------------------------------------------------------* | ||
36 | + * 2017年4月19日 liuzl v1.0.0 创建 | ||
37 | + */ | ||
38 | +@Configuration | ||
39 | + | ||
40 | +@EnableConfigurationProperties(DruidProperties.class) | ||
41 | +@ConditionalOnClass(DruidDataSource.class) | ||
42 | +@ConditionalOnProperty(prefix = "druid", name = "url") | ||
43 | +@AutoConfigureBefore(DataSourceAutoConfiguration.class) | ||
44 | +public class DruidAutoConfiguration { | ||
45 | + | ||
46 | + @Autowired | ||
47 | + private DruidProperties properties; | ||
48 | + | ||
49 | + @Bean | ||
50 | + public DataSource dataSource() throws SQLException { | ||
51 | + DruidDataSource dataSource = new DruidDataSource(); | ||
52 | + dataSource.setUrl(properties.getUrl()); | ||
53 | + dataSource.setUsername(properties.getUsername()); | ||
54 | + dataSource.setPassword(properties.getPassword()); | ||
55 | + if (properties.getInitialSize() > 0) { | ||
56 | + dataSource.setInitialSize(properties.getInitialSize()); | ||
57 | + } | ||
58 | + if (properties.getMinIdle() > 0) { | ||
59 | + dataSource.setMinIdle(properties.getMinIdle()); | ||
60 | + } | ||
61 | + if (properties.getMaxActive() > 0) { | ||
62 | + dataSource.setMaxActive(properties.getMaxActive()); | ||
63 | + } | ||
64 | + if(!StringUtils.isEmpty(properties.getFilters())){ | ||
65 | + dataSource.setFilters(properties.getFilters()); | ||
66 | + } | ||
67 | + if(!StringUtils.isEmpty(properties.getValidationQuery())){ | ||
68 | + dataSource.setValidationQuery(properties.getValidationQuery()); | ||
69 | + } | ||
70 | + if(properties.getTimeBetweenEvictionRunsMillis() > 0){ | ||
71 | + dataSource.setTimeBetweenEvictionRunsMillis(properties.getTimeBetweenEvictionRunsMillis()); | ||
72 | + } | ||
73 | + if(properties.getMinEvictableIdleTimeMillis() > 0){ | ||
74 | + dataSource.setMinEvictableIdleTimeMillis(properties.getMinEvictableIdleTimeMillis()); | ||
75 | + } | ||
76 | + if(properties.getMaxWait() > 0){ | ||
77 | + dataSource.setMaxWait(properties.getMaxWait()); | ||
78 | + } | ||
79 | + dataSource.setTestOnBorrow(properties.isTestOnBorrow()); | ||
80 | + dataSource.setTestOnReturn(properties.isTestOnReturn()); | ||
81 | + dataSource.setTestWhileIdle(properties.isTestOnWhileIdle()); | ||
82 | + | ||
83 | + try { | ||
84 | + dataSource.init(); | ||
85 | + } catch (SQLException e) { | ||
86 | + throw new RuntimeException(e); | ||
87 | + } | ||
88 | + return dataSource; | ||
89 | + } | ||
90 | + | ||
91 | + @Bean | ||
92 | + public ServletRegistrationBean DruidStatViewServle() { | ||
93 | + //org.springframework.boot.context.embedded.ServletRegistrationBean提供类的进行注册. | ||
94 | + ServletRegistrationBean servletRegistrationBean = new ServletRegistrationBean(new StatViewServlet(), "/druid/*"); | ||
95 | + //添加初始化参数:initParams | ||
96 | + | ||
97 | + //白名单: | ||
98 | + //servletRegistrationBean.addInitParameter("allow","192.168.1.106"); | ||
99 | + //IP黑名单 (存在共同时,deny优先于allow) : 如果满足deny的话提示:Sorry, you are not permitted to view this page. | ||
100 | + // servletRegistrationBean.addInitParameter("deny", "192.168.1.73"); | ||
101 | + //登录查看信息的账号密码. | ||
102 | + servletRegistrationBean.addInitParameter("loginUsername","admin"); | ||
103 | + servletRegistrationBean.addInitParameter("loginPassword","123456"); | ||
104 | + //是否能够重置数据. | ||
105 | + servletRegistrationBean.addInitParameter("resetEnable","false"); | ||
106 | + return servletRegistrationBean; | ||
107 | + } | ||
108 | + | ||
109 | + | ||
110 | + @Bean | ||
111 | + public FilterRegistrationBean druidStatFilter(){ | ||
112 | + FilterRegistrationBean filterRegistrationBean = new FilterRegistrationBean(new WebStatFilter()); | ||
113 | + //添加过滤规则. | ||
114 | + filterRegistrationBean.addUrlPatterns("/*"); | ||
115 | + //添加不需要忽略的格式信息. | ||
116 | + filterRegistrationBean.addInitParameter("exclusions","*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*"); | ||
117 | + return filterRegistrationBean; | ||
118 | + } | ||
119 | + | ||
120 | +} |
src/main/java/com/zteits/oa/configuration/druid/DruidProperties.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/configuration/druid/DruidProperties.java | ||
1 | +package com.zteits.oa.configuration.druid; | ||
2 | + | ||
3 | +import org.springframework.boot.context.properties.ConfigurationProperties; | ||
4 | + | ||
5 | +/** | ||
6 | + * | ||
7 | + * | ||
8 | + * Copyright: Copyright (c) 2017 zteits | ||
9 | + * | ||
10 | + * @ClassName: DruidProperties.java | ||
11 | + * @Description: | ||
12 | + * @version: v1.0.0 | ||
13 | + * @author: liuzl | ||
14 | + * @date: 2017年4月19日 下午7:44:44 Modification History: Date Author Version | ||
15 | + * Description ---------------------------------------------------------* | ||
16 | + * 2017年4月19日 liuzl v1.0.0 创建 | ||
17 | + */ | ||
18 | +@ConfigurationProperties(prefix = "druid") | ||
19 | +public class DruidProperties { | ||
20 | + | ||
21 | + private String url; | ||
22 | + private String username; | ||
23 | + private String password; | ||
24 | + private String driverClass; | ||
25 | + | ||
26 | + private String filters; | ||
27 | + private String validationQuery; | ||
28 | + private int maxActive; | ||
29 | + private int minIdle; | ||
30 | + private int initialSize; | ||
31 | + private int minEvictableIdleTimeMillis; | ||
32 | + private int timeBetweenEvictionRunsMillis; | ||
33 | + private int maxWait; | ||
34 | + private boolean testOnBorrow; | ||
35 | + private boolean testOnReturn; | ||
36 | + private boolean testOnWhileIdle; | ||
37 | + | ||
38 | + public String getUrl() { | ||
39 | + return url; | ||
40 | + } | ||
41 | + | ||
42 | + public void setUrl(String url) { | ||
43 | + this.url = url; | ||
44 | + } | ||
45 | + | ||
46 | + public String getUsername() { | ||
47 | + return username; | ||
48 | + } | ||
49 | + | ||
50 | + public void setUsername(String username) { | ||
51 | + this.username = username; | ||
52 | + } | ||
53 | + | ||
54 | + public String getPassword() { | ||
55 | + return password; | ||
56 | + } | ||
57 | + | ||
58 | + public void setPassword(String password) { | ||
59 | + this.password = password; | ||
60 | + } | ||
61 | + | ||
62 | + public String getDriverClass() { | ||
63 | + return driverClass; | ||
64 | + } | ||
65 | + | ||
66 | + public void setDriverClass(String driverClass) { | ||
67 | + this.driverClass = driverClass; | ||
68 | + } | ||
69 | + | ||
70 | + public int getMaxActive() { | ||
71 | + return maxActive; | ||
72 | + } | ||
73 | + | ||
74 | + public void setMaxActive(int maxActive) { | ||
75 | + this.maxActive = maxActive; | ||
76 | + } | ||
77 | + | ||
78 | + public int getMinIdle() { | ||
79 | + return minIdle; | ||
80 | + } | ||
81 | + | ||
82 | + public void setMinIdle(int minIdle) { | ||
83 | + this.minIdle = minIdle; | ||
84 | + } | ||
85 | + | ||
86 | + public int getInitialSize() { | ||
87 | + return initialSize; | ||
88 | + } | ||
89 | + | ||
90 | + public void setInitialSize(int initialSize) { | ||
91 | + this.initialSize = initialSize; | ||
92 | + } | ||
93 | + | ||
94 | + public boolean isTestOnBorrow() { | ||
95 | + return testOnBorrow; | ||
96 | + } | ||
97 | + | ||
98 | + public void setTestOnBorrow(boolean testOnBorrow) { | ||
99 | + this.testOnBorrow = testOnBorrow; | ||
100 | + } | ||
101 | + | ||
102 | + public boolean isTestOnReturn() { | ||
103 | + return testOnReturn; | ||
104 | + } | ||
105 | + | ||
106 | + public void setTestOnReturn(boolean testOnReturn) { | ||
107 | + this.testOnReturn = testOnReturn; | ||
108 | + } | ||
109 | + | ||
110 | + public boolean isTestOnWhileIdle() { | ||
111 | + return testOnWhileIdle; | ||
112 | + } | ||
113 | + | ||
114 | + public void setTestOnWhileIdle(boolean testOnWhileIdle) { | ||
115 | + this.testOnWhileIdle = testOnWhileIdle; | ||
116 | + } | ||
117 | + | ||
118 | + public String getValidationQuery() { | ||
119 | + return validationQuery; | ||
120 | + } | ||
121 | + | ||
122 | + public void setValidationQuery(String validationQuery) { | ||
123 | + this.validationQuery = validationQuery; | ||
124 | + } | ||
125 | + | ||
126 | + public int getMinEvictableIdleTimeMillis() { | ||
127 | + return minEvictableIdleTimeMillis; | ||
128 | + } | ||
129 | + | ||
130 | + public void setMinEvictableIdleTimeMillis(int minEvictableIdleTimeMillis) { | ||
131 | + this.minEvictableIdleTimeMillis = minEvictableIdleTimeMillis; | ||
132 | + } | ||
133 | + | ||
134 | + public int getTimeBetweenEvictionRunsMillis() { | ||
135 | + return timeBetweenEvictionRunsMillis; | ||
136 | + } | ||
137 | + | ||
138 | + public void setTimeBetweenEvictionRunsMillis(int timeBetweenEvictionRunsMillis) { | ||
139 | + this.timeBetweenEvictionRunsMillis = timeBetweenEvictionRunsMillis; | ||
140 | + } | ||
141 | + | ||
142 | + public int getMaxWait() { | ||
143 | + return maxWait; | ||
144 | + } | ||
145 | + | ||
146 | + public void setMaxWait(int maxWait) { | ||
147 | + this.maxWait = maxWait; | ||
148 | + } | ||
149 | + | ||
150 | + public String getFilters() { | ||
151 | + return filters; | ||
152 | + } | ||
153 | + | ||
154 | + public void setFilters(String filters) { | ||
155 | + this.filters = filters; | ||
156 | + } | ||
157 | + | ||
158 | +} |
src/main/java/com/zteits/oa/configuration/session/HttpSessionConfig.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/configuration/session/HttpSessionConfig.java | ||
1 | +package com.zteits.oa.configuration.session; | ||
2 | + | ||
3 | +import org.springframework.context.annotation.Bean; | ||
4 | +import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession; | ||
5 | +import org.springframework.session.web.http.HeaderHttpSessionStrategy; | ||
6 | +import org.springframework.session.web.http.HttpSessionStrategy; | ||
7 | + | ||
8 | +/** | ||
9 | + * Copyright: Copyright (c) 2017 zteits | ||
10 | + * | ||
11 | + * @ClassName: com.zteits.oauth.portal.config.session | ||
12 | + * @Description: | ||
13 | + * @version: v1.0.0 | ||
14 | + * @author: atao | ||
15 | + * @date: 2017/5/16 下午9:23 | ||
16 | + * Modification History: | ||
17 | + * Date Author Version Description | ||
18 | + * ---------------------------------------------------------* | ||
19 | + * 2017/5/16 atao v1.0.0 创建 | ||
20 | + */ | ||
21 | +//maxInactiveIntervalInSeconds | ||
22 | +@EnableRedisHttpSession(maxInactiveIntervalInSeconds=30*24*60*60) | ||
23 | +public class HttpSessionConfig { | ||
24 | + | ||
25 | + @Bean | ||
26 | + public HttpSessionStrategy httpSessionStrategy() { | ||
27 | + return new HeaderHttpSessionStrategy(); | ||
28 | + } | ||
29 | + | ||
30 | +} |
src/main/java/com/zteits/oa/report/domain/AsraOp.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/report/domain/AsraOp.java | ||
1 | +package com.zteits.oa.report.domain; | ||
2 | + | ||
3 | +import java.util.Date; | ||
4 | + | ||
5 | +public class AsraOp { | ||
6 | + /**主键*/ | ||
7 | + private Long id; | ||
8 | + | ||
9 | + /**登录工号*/ | ||
10 | + private String loginCode; | ||
11 | + | ||
12 | + /**登录密码*/ | ||
13 | + private String loginPassword; | ||
14 | + | ||
15 | + /**操作员姓名*/ | ||
16 | + private String opName; | ||
17 | + | ||
18 | + /**员工邮箱*/ | ||
19 | + private String email; | ||
20 | + | ||
21 | + /**角色ID*/ | ||
22 | + private Long roleId; | ||
23 | + | ||
24 | + /**地市ID*/ | ||
25 | + private Long cityId; | ||
26 | + | ||
27 | + /**地市名称*/ | ||
28 | + private String cityName; | ||
29 | + | ||
30 | + /**上级领导id 领导:-1*/ | ||
31 | + private Long parentId; | ||
32 | + | ||
33 | + /**是否邮件提醒 1:是,0:否*/ | ||
34 | + private Integer isRemindEmail; | ||
35 | + | ||
36 | + /**数据状态:1有效,0无效,2:锁定*/ | ||
37 | + private Integer dataState; | ||
38 | + | ||
39 | + /**创建人ID*/ | ||
40 | + private String createEmpid; | ||
41 | + | ||
42 | + /**创建人*/ | ||
43 | + private String createEmpName; | ||
44 | + | ||
45 | + /**创建时间*/ | ||
46 | + private Date createDate; | ||
47 | + | ||
48 | + /**修改人*/ | ||
49 | + private String modfiyEmpid; | ||
50 | + | ||
51 | + /**修改人*/ | ||
52 | + private String modfiyEmpName; | ||
53 | + | ||
54 | + /**修改时间*/ | ||
55 | + private Date modfiyDate; | ||
56 | + | ||
57 | + /**描述*/ | ||
58 | + private String remark; | ||
59 | + | ||
60 | + /**获取主键*/ | ||
61 | + public Long getId() { | ||
62 | + return id; | ||
63 | + } | ||
64 | + | ||
65 | + /**设置主键*/ | ||
66 | + public void setId(Long id) { | ||
67 | + this.id = id; | ||
68 | + } | ||
69 | + | ||
70 | + /**获取登录工号*/ | ||
71 | + public String getLoginCode() { | ||
72 | + return loginCode; | ||
73 | + } | ||
74 | + | ||
75 | + /**设置登录工号*/ | ||
76 | + public void setLoginCode(String loginCode) { | ||
77 | + this.loginCode = loginCode == null ? null : loginCode.trim(); | ||
78 | + } | ||
79 | + | ||
80 | + /**获取登录密码*/ | ||
81 | + public String getLoginPassword() { | ||
82 | + return loginPassword; | ||
83 | + } | ||
84 | + | ||
85 | + /**设置登录密码*/ | ||
86 | + public void setLoginPassword(String loginPassword) { | ||
87 | + this.loginPassword = loginPassword == null ? null : loginPassword.trim(); | ||
88 | + } | ||
89 | + | ||
90 | + /**获取操作员姓名*/ | ||
91 | + public String getOpName() { | ||
92 | + return opName; | ||
93 | + } | ||
94 | + | ||
95 | + /**设置操作员姓名*/ | ||
96 | + public void setOpName(String opName) { | ||
97 | + this.opName = opName == null ? null : opName.trim(); | ||
98 | + } | ||
99 | + | ||
100 | + /**获取员工邮箱*/ | ||
101 | + public String getEmail() { | ||
102 | + return email; | ||
103 | + } | ||
104 | + | ||
105 | + /**设置员工邮箱*/ | ||
106 | + public void setEmail(String email) { | ||
107 | + this.email = email == null ? null : email.trim(); | ||
108 | + } | ||
109 | + | ||
110 | + /**获取角色ID*/ | ||
111 | + public Long getRoleId() { | ||
112 | + return roleId; | ||
113 | + } | ||
114 | + | ||
115 | + /**设置角色ID*/ | ||
116 | + public void setRoleId(Long roleId) { | ||
117 | + this.roleId = roleId; | ||
118 | + } | ||
119 | + | ||
120 | + /**获取地市ID*/ | ||
121 | + public Long getCityId() { | ||
122 | + return cityId; | ||
123 | + } | ||
124 | + | ||
125 | + /**设置地市ID*/ | ||
126 | + public void setCityId(Long cityId) { | ||
127 | + this.cityId = cityId; | ||
128 | + } | ||
129 | + | ||
130 | + /**获取地市名称*/ | ||
131 | + public String getCityName() { | ||
132 | + return cityName; | ||
133 | + } | ||
134 | + | ||
135 | + /**设置地市名称*/ | ||
136 | + public void setCityName(String cityName) { | ||
137 | + this.cityName = cityName == null ? null : cityName.trim(); | ||
138 | + } | ||
139 | + | ||
140 | + /**获取上级领导id 领导:-1*/ | ||
141 | + public Long getParentId() { | ||
142 | + return parentId; | ||
143 | + } | ||
144 | + | ||
145 | + /**设置上级领导id 领导:-1*/ | ||
146 | + public void setParentId(Long parentId) { | ||
147 | + this.parentId = parentId; | ||
148 | + } | ||
149 | + | ||
150 | + /**获取是否邮件提醒 1:是,0:否*/ | ||
151 | + public Integer getIsRemindEmail() { | ||
152 | + return isRemindEmail; | ||
153 | + } | ||
154 | + | ||
155 | + /**设置是否邮件提醒 1:是,0:否*/ | ||
156 | + public void setIsRemindEmail(Integer isRemindEmail) { | ||
157 | + this.isRemindEmail = isRemindEmail; | ||
158 | + } | ||
159 | + | ||
160 | + /**获取数据状态:1有效,0无效,2:锁定*/ | ||
161 | + public Integer getDataState() { | ||
162 | + return dataState; | ||
163 | + } | ||
164 | + | ||
165 | + /**设置数据状态:1有效,0无效,2:锁定*/ | ||
166 | + public void setDataState(Integer dataState) { | ||
167 | + this.dataState = dataState; | ||
168 | + } | ||
169 | + | ||
170 | + /**获取创建人ID*/ | ||
171 | + public String getCreateEmpid() { | ||
172 | + return createEmpid; | ||
173 | + } | ||
174 | + | ||
175 | + /**设置创建人ID*/ | ||
176 | + public void setCreateEmpid(String createEmpid) { | ||
177 | + this.createEmpid = createEmpid == null ? null : createEmpid.trim(); | ||
178 | + } | ||
179 | + | ||
180 | + /**获取创建人*/ | ||
181 | + public String getCreateEmpName() { | ||
182 | + return createEmpName; | ||
183 | + } | ||
184 | + | ||
185 | + /**设置创建人*/ | ||
186 | + public void setCreateEmpName(String createEmpName) { | ||
187 | + this.createEmpName = createEmpName == null ? null : createEmpName.trim(); | ||
188 | + } | ||
189 | + | ||
190 | + /**获取创建时间*/ | ||
191 | + public Date getCreateDate() { | ||
192 | + return createDate; | ||
193 | + } | ||
194 | + | ||
195 | + /**设置创建时间*/ | ||
196 | + public void setCreateDate(Date createDate) { | ||
197 | + this.createDate = createDate; | ||
198 | + } | ||
199 | + | ||
200 | + /**获取修改人*/ | ||
201 | + public String getModfiyEmpid() { | ||
202 | + return modfiyEmpid; | ||
203 | + } | ||
204 | + | ||
205 | + /**设置修改人*/ | ||
206 | + public void setModfiyEmpid(String modfiyEmpid) { | ||
207 | + this.modfiyEmpid = modfiyEmpid == null ? null : modfiyEmpid.trim(); | ||
208 | + } | ||
209 | + | ||
210 | + /**获取修改人*/ | ||
211 | + public String getModfiyEmpName() { | ||
212 | + return modfiyEmpName; | ||
213 | + } | ||
214 | + | ||
215 | + /**设置修改人*/ | ||
216 | + public void setModfiyEmpName(String modfiyEmpName) { | ||
217 | + this.modfiyEmpName = modfiyEmpName == null ? null : modfiyEmpName.trim(); | ||
218 | + } | ||
219 | + | ||
220 | + /**获取修改时间*/ | ||
221 | + public Date getModfiyDate() { | ||
222 | + return modfiyDate; | ||
223 | + } | ||
224 | + | ||
225 | + /**设置修改时间*/ | ||
226 | + public void setModfiyDate(Date modfiyDate) { | ||
227 | + this.modfiyDate = modfiyDate; | ||
228 | + } | ||
229 | + | ||
230 | + /**获取描述*/ | ||
231 | + public String getRemark() { | ||
232 | + return remark; | ||
233 | + } | ||
234 | + | ||
235 | + /**设置描述*/ | ||
236 | + public void setRemark(String remark) { | ||
237 | + this.remark = remark == null ? null : remark.trim(); | ||
238 | + } | ||
239 | +} | ||
0 | \ No newline at end of file | 240 | \ No newline at end of file |
src/main/java/com/zteits/oa/report/domain/AsraOpExample.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/report/domain/AsraOpExample.java | ||
1 | +package com.zteits.oa.report.domain; | ||
2 | + | ||
3 | +import java.util.ArrayList; | ||
4 | +import java.util.Date; | ||
5 | +import java.util.List; | ||
6 | + | ||
7 | +public class AsraOpExample { | ||
8 | + protected String orderByClause; | ||
9 | + | ||
10 | + protected boolean distinct; | ||
11 | + | ||
12 | + protected List<Criteria> oredCriteria; | ||
13 | + | ||
14 | + public AsraOpExample() { | ||
15 | + oredCriteria = new ArrayList<Criteria>(); | ||
16 | + } | ||
17 | + | ||
18 | + public void setOrderByClause(String orderByClause) { | ||
19 | + this.orderByClause = orderByClause; | ||
20 | + } | ||
21 | + | ||
22 | + public String getOrderByClause() { | ||
23 | + return orderByClause; | ||
24 | + } | ||
25 | + | ||
26 | + public void setDistinct(boolean distinct) { | ||
27 | + this.distinct = distinct; | ||
28 | + } | ||
29 | + | ||
30 | + public boolean isDistinct() { | ||
31 | + return distinct; | ||
32 | + } | ||
33 | + | ||
34 | + public List<Criteria> getOredCriteria() { | ||
35 | + return oredCriteria; | ||
36 | + } | ||
37 | + | ||
38 | + public void or(Criteria criteria) { | ||
39 | + oredCriteria.add(criteria); | ||
40 | + } | ||
41 | + | ||
42 | + public Criteria or() { | ||
43 | + Criteria criteria = createCriteriaInternal(); | ||
44 | + oredCriteria.add(criteria); | ||
45 | + return criteria; | ||
46 | + } | ||
47 | + | ||
48 | + public Criteria createCriteria() { | ||
49 | + Criteria criteria = createCriteriaInternal(); | ||
50 | + if (oredCriteria.size() == 0) { | ||
51 | + oredCriteria.add(criteria); | ||
52 | + } | ||
53 | + return criteria; | ||
54 | + } | ||
55 | + | ||
56 | + protected Criteria createCriteriaInternal() { | ||
57 | + Criteria criteria = new Criteria(); | ||
58 | + return criteria; | ||
59 | + } | ||
60 | + | ||
61 | + public void clear() { | ||
62 | + oredCriteria.clear(); | ||
63 | + orderByClause = null; | ||
64 | + distinct = false; | ||
65 | + } | ||
66 | + | ||
67 | + protected abstract static class GeneratedCriteria { | ||
68 | + protected List<Criterion> criteria; | ||
69 | + | ||
70 | + protected GeneratedCriteria() { | ||
71 | + super(); | ||
72 | + criteria = new ArrayList<Criterion>(); | ||
73 | + } | ||
74 | + | ||
75 | + public boolean isValid() { | ||
76 | + return criteria.size() > 0; | ||
77 | + } | ||
78 | + | ||
79 | + public List<Criterion> getAllCriteria() { | ||
80 | + return criteria; | ||
81 | + } | ||
82 | + | ||
83 | + public List<Criterion> getCriteria() { | ||
84 | + return criteria; | ||
85 | + } | ||
86 | + | ||
87 | + protected void addCriterion(String condition) { | ||
88 | + if (condition == null) { | ||
89 | + throw new RuntimeException("Value for condition cannot be null"); | ||
90 | + } | ||
91 | + criteria.add(new Criterion(condition)); | ||
92 | + } | ||
93 | + | ||
94 | + protected void addCriterion(String condition, Object value, String property) { | ||
95 | + if (value == null) { | ||
96 | + throw new RuntimeException("Value for " + property + " cannot be null"); | ||
97 | + } | ||
98 | + criteria.add(new Criterion(condition, value)); | ||
99 | + } | ||
100 | + | ||
101 | + protected void addCriterion(String condition, Object value1, Object value2, String property) { | ||
102 | + if (value1 == null || value2 == null) { | ||
103 | + throw new RuntimeException("Between values for " + property + " cannot be null"); | ||
104 | + } | ||
105 | + criteria.add(new Criterion(condition, value1, value2)); | ||
106 | + } | ||
107 | + | ||
108 | + public Criteria andIdIsNull() { | ||
109 | + addCriterion("id is null"); | ||
110 | + return (Criteria) this; | ||
111 | + } | ||
112 | + | ||
113 | + public Criteria andIdIsNotNull() { | ||
114 | + addCriterion("id is not null"); | ||
115 | + return (Criteria) this; | ||
116 | + } | ||
117 | + | ||
118 | + public Criteria andIdEqualTo(Long value) { | ||
119 | + addCriterion("id =", value, "id"); | ||
120 | + return (Criteria) this; | ||
121 | + } | ||
122 | + | ||
123 | + public Criteria andIdNotEqualTo(Long value) { | ||
124 | + addCriterion("id <>", value, "id"); | ||
125 | + return (Criteria) this; | ||
126 | + } | ||
127 | + | ||
128 | + public Criteria andIdGreaterThan(Long value) { | ||
129 | + addCriterion("id >", value, "id"); | ||
130 | + return (Criteria) this; | ||
131 | + } | ||
132 | + | ||
133 | + public Criteria andIdGreaterThanOrEqualTo(Long value) { | ||
134 | + addCriterion("id >=", value, "id"); | ||
135 | + return (Criteria) this; | ||
136 | + } | ||
137 | + | ||
138 | + public Criteria andIdLessThan(Long value) { | ||
139 | + addCriterion("id <", value, "id"); | ||
140 | + return (Criteria) this; | ||
141 | + } | ||
142 | + | ||
143 | + public Criteria andIdLessThanOrEqualTo(Long value) { | ||
144 | + addCriterion("id <=", value, "id"); | ||
145 | + return (Criteria) this; | ||
146 | + } | ||
147 | + | ||
148 | + public Criteria andIdIn(List<Long> values) { | ||
149 | + addCriterion("id in", values, "id"); | ||
150 | + return (Criteria) this; | ||
151 | + } | ||
152 | + | ||
153 | + public Criteria andIdNotIn(List<Long> values) { | ||
154 | + addCriterion("id not in", values, "id"); | ||
155 | + return (Criteria) this; | ||
156 | + } | ||
157 | + | ||
158 | + public Criteria andIdBetween(Long value1, Long value2) { | ||
159 | + addCriterion("id between", value1, value2, "id"); | ||
160 | + return (Criteria) this; | ||
161 | + } | ||
162 | + | ||
163 | + public Criteria andIdNotBetween(Long value1, Long value2) { | ||
164 | + addCriterion("id not between", value1, value2, "id"); | ||
165 | + return (Criteria) this; | ||
166 | + } | ||
167 | + | ||
168 | + public Criteria andLoginCodeIsNull() { | ||
169 | + addCriterion("login_code is null"); | ||
170 | + return (Criteria) this; | ||
171 | + } | ||
172 | + | ||
173 | + public Criteria andLoginCodeIsNotNull() { | ||
174 | + addCriterion("login_code is not null"); | ||
175 | + return (Criteria) this; | ||
176 | + } | ||
177 | + | ||
178 | + public Criteria andLoginCodeEqualTo(String value) { | ||
179 | + addCriterion("login_code =", value, "loginCode"); | ||
180 | + return (Criteria) this; | ||
181 | + } | ||
182 | + | ||
183 | + public Criteria andLoginCodeNotEqualTo(String value) { | ||
184 | + addCriterion("login_code <>", value, "loginCode"); | ||
185 | + return (Criteria) this; | ||
186 | + } | ||
187 | + | ||
188 | + public Criteria andLoginCodeGreaterThan(String value) { | ||
189 | + addCriterion("login_code >", value, "loginCode"); | ||
190 | + return (Criteria) this; | ||
191 | + } | ||
192 | + | ||
193 | + public Criteria andLoginCodeGreaterThanOrEqualTo(String value) { | ||
194 | + addCriterion("login_code >=", value, "loginCode"); | ||
195 | + return (Criteria) this; | ||
196 | + } | ||
197 | + | ||
198 | + public Criteria andLoginCodeLessThan(String value) { | ||
199 | + addCriterion("login_code <", value, "loginCode"); | ||
200 | + return (Criteria) this; | ||
201 | + } | ||
202 | + | ||
203 | + public Criteria andLoginCodeLessThanOrEqualTo(String value) { | ||
204 | + addCriterion("login_code <=", value, "loginCode"); | ||
205 | + return (Criteria) this; | ||
206 | + } | ||
207 | + | ||
208 | + public Criteria andLoginCodeLike(String value) { | ||
209 | + addCriterion("login_code like", value, "loginCode"); | ||
210 | + return (Criteria) this; | ||
211 | + } | ||
212 | + | ||
213 | + public Criteria andLoginCodeNotLike(String value) { | ||
214 | + addCriterion("login_code not like", value, "loginCode"); | ||
215 | + return (Criteria) this; | ||
216 | + } | ||
217 | + | ||
218 | + public Criteria andLoginCodeIn(List<String> values) { | ||
219 | + addCriterion("login_code in", values, "loginCode"); | ||
220 | + return (Criteria) this; | ||
221 | + } | ||
222 | + | ||
223 | + public Criteria andLoginCodeNotIn(List<String> values) { | ||
224 | + addCriterion("login_code not in", values, "loginCode"); | ||
225 | + return (Criteria) this; | ||
226 | + } | ||
227 | + | ||
228 | + public Criteria andLoginCodeBetween(String value1, String value2) { | ||
229 | + addCriterion("login_code between", value1, value2, "loginCode"); | ||
230 | + return (Criteria) this; | ||
231 | + } | ||
232 | + | ||
233 | + public Criteria andLoginCodeNotBetween(String value1, String value2) { | ||
234 | + addCriterion("login_code not between", value1, value2, "loginCode"); | ||
235 | + return (Criteria) this; | ||
236 | + } | ||
237 | + | ||
238 | + public Criteria andLoginPasswordIsNull() { | ||
239 | + addCriterion("login_password is null"); | ||
240 | + return (Criteria) this; | ||
241 | + } | ||
242 | + | ||
243 | + public Criteria andLoginPasswordIsNotNull() { | ||
244 | + addCriterion("login_password is not null"); | ||
245 | + return (Criteria) this; | ||
246 | + } | ||
247 | + | ||
248 | + public Criteria andLoginPasswordEqualTo(String value) { | ||
249 | + addCriterion("login_password =", value, "loginPassword"); | ||
250 | + return (Criteria) this; | ||
251 | + } | ||
252 | + | ||
253 | + public Criteria andLoginPasswordNotEqualTo(String value) { | ||
254 | + addCriterion("login_password <>", value, "loginPassword"); | ||
255 | + return (Criteria) this; | ||
256 | + } | ||
257 | + | ||
258 | + public Criteria andLoginPasswordGreaterThan(String value) { | ||
259 | + addCriterion("login_password >", value, "loginPassword"); | ||
260 | + return (Criteria) this; | ||
261 | + } | ||
262 | + | ||
263 | + public Criteria andLoginPasswordGreaterThanOrEqualTo(String value) { | ||
264 | + addCriterion("login_password >=", value, "loginPassword"); | ||
265 | + return (Criteria) this; | ||
266 | + } | ||
267 | + | ||
268 | + public Criteria andLoginPasswordLessThan(String value) { | ||
269 | + addCriterion("login_password <", value, "loginPassword"); | ||
270 | + return (Criteria) this; | ||
271 | + } | ||
272 | + | ||
273 | + public Criteria andLoginPasswordLessThanOrEqualTo(String value) { | ||
274 | + addCriterion("login_password <=", value, "loginPassword"); | ||
275 | + return (Criteria) this; | ||
276 | + } | ||
277 | + | ||
278 | + public Criteria andLoginPasswordLike(String value) { | ||
279 | + addCriterion("login_password like", value, "loginPassword"); | ||
280 | + return (Criteria) this; | ||
281 | + } | ||
282 | + | ||
283 | + public Criteria andLoginPasswordNotLike(String value) { | ||
284 | + addCriterion("login_password not like", value, "loginPassword"); | ||
285 | + return (Criteria) this; | ||
286 | + } | ||
287 | + | ||
288 | + public Criteria andLoginPasswordIn(List<String> values) { | ||
289 | + addCriterion("login_password in", values, "loginPassword"); | ||
290 | + return (Criteria) this; | ||
291 | + } | ||
292 | + | ||
293 | + public Criteria andLoginPasswordNotIn(List<String> values) { | ||
294 | + addCriterion("login_password not in", values, "loginPassword"); | ||
295 | + return (Criteria) this; | ||
296 | + } | ||
297 | + | ||
298 | + public Criteria andLoginPasswordBetween(String value1, String value2) { | ||
299 | + addCriterion("login_password between", value1, value2, "loginPassword"); | ||
300 | + return (Criteria) this; | ||
301 | + } | ||
302 | + | ||
303 | + public Criteria andLoginPasswordNotBetween(String value1, String value2) { | ||
304 | + addCriterion("login_password not between", value1, value2, "loginPassword"); | ||
305 | + return (Criteria) this; | ||
306 | + } | ||
307 | + | ||
308 | + public Criteria andOpNameIsNull() { | ||
309 | + addCriterion("op_name is null"); | ||
310 | + return (Criteria) this; | ||
311 | + } | ||
312 | + | ||
313 | + public Criteria andOpNameIsNotNull() { | ||
314 | + addCriterion("op_name is not null"); | ||
315 | + return (Criteria) this; | ||
316 | + } | ||
317 | + | ||
318 | + public Criteria andOpNameEqualTo(String value) { | ||
319 | + addCriterion("op_name =", value, "opName"); | ||
320 | + return (Criteria) this; | ||
321 | + } | ||
322 | + | ||
323 | + public Criteria andOpNameNotEqualTo(String value) { | ||
324 | + addCriterion("op_name <>", value, "opName"); | ||
325 | + return (Criteria) this; | ||
326 | + } | ||
327 | + | ||
328 | + public Criteria andOpNameGreaterThan(String value) { | ||
329 | + addCriterion("op_name >", value, "opName"); | ||
330 | + return (Criteria) this; | ||
331 | + } | ||
332 | + | ||
333 | + public Criteria andOpNameGreaterThanOrEqualTo(String value) { | ||
334 | + addCriterion("op_name >=", value, "opName"); | ||
335 | + return (Criteria) this; | ||
336 | + } | ||
337 | + | ||
338 | + public Criteria andOpNameLessThan(String value) { | ||
339 | + addCriterion("op_name <", value, "opName"); | ||
340 | + return (Criteria) this; | ||
341 | + } | ||
342 | + | ||
343 | + public Criteria andOpNameLessThanOrEqualTo(String value) { | ||
344 | + addCriterion("op_name <=", value, "opName"); | ||
345 | + return (Criteria) this; | ||
346 | + } | ||
347 | + | ||
348 | + public Criteria andOpNameLike(String value) { | ||
349 | + addCriterion("op_name like", value, "opName"); | ||
350 | + return (Criteria) this; | ||
351 | + } | ||
352 | + | ||
353 | + public Criteria andOpNameNotLike(String value) { | ||
354 | + addCriterion("op_name not like", value, "opName"); | ||
355 | + return (Criteria) this; | ||
356 | + } | ||
357 | + | ||
358 | + public Criteria andOpNameIn(List<String> values) { | ||
359 | + addCriterion("op_name in", values, "opName"); | ||
360 | + return (Criteria) this; | ||
361 | + } | ||
362 | + | ||
363 | + public Criteria andOpNameNotIn(List<String> values) { | ||
364 | + addCriterion("op_name not in", values, "opName"); | ||
365 | + return (Criteria) this; | ||
366 | + } | ||
367 | + | ||
368 | + public Criteria andOpNameBetween(String value1, String value2) { | ||
369 | + addCriterion("op_name between", value1, value2, "opName"); | ||
370 | + return (Criteria) this; | ||
371 | + } | ||
372 | + | ||
373 | + public Criteria andOpNameNotBetween(String value1, String value2) { | ||
374 | + addCriterion("op_name not between", value1, value2, "opName"); | ||
375 | + return (Criteria) this; | ||
376 | + } | ||
377 | + | ||
378 | + public Criteria andEmailIsNull() { | ||
379 | + addCriterion("email is null"); | ||
380 | + return (Criteria) this; | ||
381 | + } | ||
382 | + | ||
383 | + public Criteria andEmailIsNotNull() { | ||
384 | + addCriterion("email is not null"); | ||
385 | + return (Criteria) this; | ||
386 | + } | ||
387 | + | ||
388 | + public Criteria andEmailEqualTo(String value) { | ||
389 | + addCriterion("email =", value, "email"); | ||
390 | + return (Criteria) this; | ||
391 | + } | ||
392 | + | ||
393 | + public Criteria andEmailNotEqualTo(String value) { | ||
394 | + addCriterion("email <>", value, "email"); | ||
395 | + return (Criteria) this; | ||
396 | + } | ||
397 | + | ||
398 | + public Criteria andEmailGreaterThan(String value) { | ||
399 | + addCriterion("email >", value, "email"); | ||
400 | + return (Criteria) this; | ||
401 | + } | ||
402 | + | ||
403 | + public Criteria andEmailGreaterThanOrEqualTo(String value) { | ||
404 | + addCriterion("email >=", value, "email"); | ||
405 | + return (Criteria) this; | ||
406 | + } | ||
407 | + | ||
408 | + public Criteria andEmailLessThan(String value) { | ||
409 | + addCriterion("email <", value, "email"); | ||
410 | + return (Criteria) this; | ||
411 | + } | ||
412 | + | ||
413 | + public Criteria andEmailLessThanOrEqualTo(String value) { | ||
414 | + addCriterion("email <=", value, "email"); | ||
415 | + return (Criteria) this; | ||
416 | + } | ||
417 | + | ||
418 | + public Criteria andEmailLike(String value) { | ||
419 | + addCriterion("email like", value, "email"); | ||
420 | + return (Criteria) this; | ||
421 | + } | ||
422 | + | ||
423 | + public Criteria andEmailNotLike(String value) { | ||
424 | + addCriterion("email not like", value, "email"); | ||
425 | + return (Criteria) this; | ||
426 | + } | ||
427 | + | ||
428 | + public Criteria andEmailIn(List<String> values) { | ||
429 | + addCriterion("email in", values, "email"); | ||
430 | + return (Criteria) this; | ||
431 | + } | ||
432 | + | ||
433 | + public Criteria andEmailNotIn(List<String> values) { | ||
434 | + addCriterion("email not in", values, "email"); | ||
435 | + return (Criteria) this; | ||
436 | + } | ||
437 | + | ||
438 | + public Criteria andEmailBetween(String value1, String value2) { | ||
439 | + addCriterion("email between", value1, value2, "email"); | ||
440 | + return (Criteria) this; | ||
441 | + } | ||
442 | + | ||
443 | + public Criteria andEmailNotBetween(String value1, String value2) { | ||
444 | + addCriterion("email not between", value1, value2, "email"); | ||
445 | + return (Criteria) this; | ||
446 | + } | ||
447 | + | ||
448 | + public Criteria andRoleIdIsNull() { | ||
449 | + addCriterion("role_id is null"); | ||
450 | + return (Criteria) this; | ||
451 | + } | ||
452 | + | ||
453 | + public Criteria andRoleIdIsNotNull() { | ||
454 | + addCriterion("role_id is not null"); | ||
455 | + return (Criteria) this; | ||
456 | + } | ||
457 | + | ||
458 | + public Criteria andRoleIdEqualTo(Long value) { | ||
459 | + addCriterion("role_id =", value, "roleId"); | ||
460 | + return (Criteria) this; | ||
461 | + } | ||
462 | + | ||
463 | + public Criteria andRoleIdNotEqualTo(Long value) { | ||
464 | + addCriterion("role_id <>", value, "roleId"); | ||
465 | + return (Criteria) this; | ||
466 | + } | ||
467 | + | ||
468 | + public Criteria andRoleIdGreaterThan(Long value) { | ||
469 | + addCriterion("role_id >", value, "roleId"); | ||
470 | + return (Criteria) this; | ||
471 | + } | ||
472 | + | ||
473 | + public Criteria andRoleIdGreaterThanOrEqualTo(Long value) { | ||
474 | + addCriterion("role_id >=", value, "roleId"); | ||
475 | + return (Criteria) this; | ||
476 | + } | ||
477 | + | ||
478 | + public Criteria andRoleIdLessThan(Long value) { | ||
479 | + addCriterion("role_id <", value, "roleId"); | ||
480 | + return (Criteria) this; | ||
481 | + } | ||
482 | + | ||
483 | + public Criteria andRoleIdLessThanOrEqualTo(Long value) { | ||
484 | + addCriterion("role_id <=", value, "roleId"); | ||
485 | + return (Criteria) this; | ||
486 | + } | ||
487 | + | ||
488 | + public Criteria andRoleIdIn(List<Long> values) { | ||
489 | + addCriterion("role_id in", values, "roleId"); | ||
490 | + return (Criteria) this; | ||
491 | + } | ||
492 | + | ||
493 | + public Criteria andRoleIdNotIn(List<Long> values) { | ||
494 | + addCriterion("role_id not in", values, "roleId"); | ||
495 | + return (Criteria) this; | ||
496 | + } | ||
497 | + | ||
498 | + public Criteria andRoleIdBetween(Long value1, Long value2) { | ||
499 | + addCriterion("role_id between", value1, value2, "roleId"); | ||
500 | + return (Criteria) this; | ||
501 | + } | ||
502 | + | ||
503 | + public Criteria andRoleIdNotBetween(Long value1, Long value2) { | ||
504 | + addCriterion("role_id not between", value1, value2, "roleId"); | ||
505 | + return (Criteria) this; | ||
506 | + } | ||
507 | + | ||
508 | + public Criteria andCityIdIsNull() { | ||
509 | + addCriterion("city_id is null"); | ||
510 | + return (Criteria) this; | ||
511 | + } | ||
512 | + | ||
513 | + public Criteria andCityIdIsNotNull() { | ||
514 | + addCriterion("city_id is not null"); | ||
515 | + return (Criteria) this; | ||
516 | + } | ||
517 | + | ||
518 | + public Criteria andCityIdEqualTo(Long value) { | ||
519 | + addCriterion("city_id =", value, "cityId"); | ||
520 | + return (Criteria) this; | ||
521 | + } | ||
522 | + | ||
523 | + public Criteria andCityIdNotEqualTo(Long value) { | ||
524 | + addCriterion("city_id <>", value, "cityId"); | ||
525 | + return (Criteria) this; | ||
526 | + } | ||
527 | + | ||
528 | + public Criteria andCityIdGreaterThan(Long value) { | ||
529 | + addCriterion("city_id >", value, "cityId"); | ||
530 | + return (Criteria) this; | ||
531 | + } | ||
532 | + | ||
533 | + public Criteria andCityIdGreaterThanOrEqualTo(Long value) { | ||
534 | + addCriterion("city_id >=", value, "cityId"); | ||
535 | + return (Criteria) this; | ||
536 | + } | ||
537 | + | ||
538 | + public Criteria andCityIdLessThan(Long value) { | ||
539 | + addCriterion("city_id <", value, "cityId"); | ||
540 | + return (Criteria) this; | ||
541 | + } | ||
542 | + | ||
543 | + public Criteria andCityIdLessThanOrEqualTo(Long value) { | ||
544 | + addCriterion("city_id <=", value, "cityId"); | ||
545 | + return (Criteria) this; | ||
546 | + } | ||
547 | + | ||
548 | + public Criteria andCityIdIn(List<Long> values) { | ||
549 | + addCriterion("city_id in", values, "cityId"); | ||
550 | + return (Criteria) this; | ||
551 | + } | ||
552 | + | ||
553 | + public Criteria andCityIdNotIn(List<Long> values) { | ||
554 | + addCriterion("city_id not in", values, "cityId"); | ||
555 | + return (Criteria) this; | ||
556 | + } | ||
557 | + | ||
558 | + public Criteria andCityIdBetween(Long value1, Long value2) { | ||
559 | + addCriterion("city_id between", value1, value2, "cityId"); | ||
560 | + return (Criteria) this; | ||
561 | + } | ||
562 | + | ||
563 | + public Criteria andCityIdNotBetween(Long value1, Long value2) { | ||
564 | + addCriterion("city_id not between", value1, value2, "cityId"); | ||
565 | + return (Criteria) this; | ||
566 | + } | ||
567 | + | ||
568 | + public Criteria andCityNameIsNull() { | ||
569 | + addCriterion("city_name is null"); | ||
570 | + return (Criteria) this; | ||
571 | + } | ||
572 | + | ||
573 | + public Criteria andCityNameIsNotNull() { | ||
574 | + addCriterion("city_name is not null"); | ||
575 | + return (Criteria) this; | ||
576 | + } | ||
577 | + | ||
578 | + public Criteria andCityNameEqualTo(String value) { | ||
579 | + addCriterion("city_name =", value, "cityName"); | ||
580 | + return (Criteria) this; | ||
581 | + } | ||
582 | + | ||
583 | + public Criteria andCityNameNotEqualTo(String value) { | ||
584 | + addCriterion("city_name <>", value, "cityName"); | ||
585 | + return (Criteria) this; | ||
586 | + } | ||
587 | + | ||
588 | + public Criteria andCityNameGreaterThan(String value) { | ||
589 | + addCriterion("city_name >", value, "cityName"); | ||
590 | + return (Criteria) this; | ||
591 | + } | ||
592 | + | ||
593 | + public Criteria andCityNameGreaterThanOrEqualTo(String value) { | ||
594 | + addCriterion("city_name >=", value, "cityName"); | ||
595 | + return (Criteria) this; | ||
596 | + } | ||
597 | + | ||
598 | + public Criteria andCityNameLessThan(String value) { | ||
599 | + addCriterion("city_name <", value, "cityName"); | ||
600 | + return (Criteria) this; | ||
601 | + } | ||
602 | + | ||
603 | + public Criteria andCityNameLessThanOrEqualTo(String value) { | ||
604 | + addCriterion("city_name <=", value, "cityName"); | ||
605 | + return (Criteria) this; | ||
606 | + } | ||
607 | + | ||
608 | + public Criteria andCityNameLike(String value) { | ||
609 | + addCriterion("city_name like", value, "cityName"); | ||
610 | + return (Criteria) this; | ||
611 | + } | ||
612 | + | ||
613 | + public Criteria andCityNameNotLike(String value) { | ||
614 | + addCriterion("city_name not like", value, "cityName"); | ||
615 | + return (Criteria) this; | ||
616 | + } | ||
617 | + | ||
618 | + public Criteria andCityNameIn(List<String> values) { | ||
619 | + addCriterion("city_name in", values, "cityName"); | ||
620 | + return (Criteria) this; | ||
621 | + } | ||
622 | + | ||
623 | + public Criteria andCityNameNotIn(List<String> values) { | ||
624 | + addCriterion("city_name not in", values, "cityName"); | ||
625 | + return (Criteria) this; | ||
626 | + } | ||
627 | + | ||
628 | + public Criteria andCityNameBetween(String value1, String value2) { | ||
629 | + addCriterion("city_name between", value1, value2, "cityName"); | ||
630 | + return (Criteria) this; | ||
631 | + } | ||
632 | + | ||
633 | + public Criteria andCityNameNotBetween(String value1, String value2) { | ||
634 | + addCriterion("city_name not between", value1, value2, "cityName"); | ||
635 | + return (Criteria) this; | ||
636 | + } | ||
637 | + | ||
638 | + public Criteria andParentIdIsNull() { | ||
639 | + addCriterion("parent_id is null"); | ||
640 | + return (Criteria) this; | ||
641 | + } | ||
642 | + | ||
643 | + public Criteria andParentIdIsNotNull() { | ||
644 | + addCriterion("parent_id is not null"); | ||
645 | + return (Criteria) this; | ||
646 | + } | ||
647 | + | ||
648 | + public Criteria andParentIdEqualTo(Long value) { | ||
649 | + addCriterion("parent_id =", value, "parentId"); | ||
650 | + return (Criteria) this; | ||
651 | + } | ||
652 | + | ||
653 | + public Criteria andParentIdNotEqualTo(Long value) { | ||
654 | + addCriterion("parent_id <>", value, "parentId"); | ||
655 | + return (Criteria) this; | ||
656 | + } | ||
657 | + | ||
658 | + public Criteria andParentIdGreaterThan(Long value) { | ||
659 | + addCriterion("parent_id >", value, "parentId"); | ||
660 | + return (Criteria) this; | ||
661 | + } | ||
662 | + | ||
663 | + public Criteria andParentIdGreaterThanOrEqualTo(Long value) { | ||
664 | + addCriterion("parent_id >=", value, "parentId"); | ||
665 | + return (Criteria) this; | ||
666 | + } | ||
667 | + | ||
668 | + public Criteria andParentIdLessThan(Long value) { | ||
669 | + addCriterion("parent_id <", value, "parentId"); | ||
670 | + return (Criteria) this; | ||
671 | + } | ||
672 | + | ||
673 | + public Criteria andParentIdLessThanOrEqualTo(Long value) { | ||
674 | + addCriterion("parent_id <=", value, "parentId"); | ||
675 | + return (Criteria) this; | ||
676 | + } | ||
677 | + | ||
678 | + public Criteria andParentIdIn(List<Long> values) { | ||
679 | + addCriterion("parent_id in", values, "parentId"); | ||
680 | + return (Criteria) this; | ||
681 | + } | ||
682 | + | ||
683 | + public Criteria andParentIdNotIn(List<Long> values) { | ||
684 | + addCriterion("parent_id not in", values, "parentId"); | ||
685 | + return (Criteria) this; | ||
686 | + } | ||
687 | + | ||
688 | + public Criteria andParentIdBetween(Long value1, Long value2) { | ||
689 | + addCriterion("parent_id between", value1, value2, "parentId"); | ||
690 | + return (Criteria) this; | ||
691 | + } | ||
692 | + | ||
693 | + public Criteria andParentIdNotBetween(Long value1, Long value2) { | ||
694 | + addCriterion("parent_id not between", value1, value2, "parentId"); | ||
695 | + return (Criteria) this; | ||
696 | + } | ||
697 | + | ||
698 | + public Criteria andIsRemindEmailIsNull() { | ||
699 | + addCriterion("is_remind_email is null"); | ||
700 | + return (Criteria) this; | ||
701 | + } | ||
702 | + | ||
703 | + public Criteria andIsRemindEmailIsNotNull() { | ||
704 | + addCriterion("is_remind_email is not null"); | ||
705 | + return (Criteria) this; | ||
706 | + } | ||
707 | + | ||
708 | + public Criteria andIsRemindEmailEqualTo(Integer value) { | ||
709 | + addCriterion("is_remind_email =", value, "isRemindEmail"); | ||
710 | + return (Criteria) this; | ||
711 | + } | ||
712 | + | ||
713 | + public Criteria andIsRemindEmailNotEqualTo(Integer value) { | ||
714 | + addCriterion("is_remind_email <>", value, "isRemindEmail"); | ||
715 | + return (Criteria) this; | ||
716 | + } | ||
717 | + | ||
718 | + public Criteria andIsRemindEmailGreaterThan(Integer value) { | ||
719 | + addCriterion("is_remind_email >", value, "isRemindEmail"); | ||
720 | + return (Criteria) this; | ||
721 | + } | ||
722 | + | ||
723 | + public Criteria andIsRemindEmailGreaterThanOrEqualTo(Integer value) { | ||
724 | + addCriterion("is_remind_email >=", value, "isRemindEmail"); | ||
725 | + return (Criteria) this; | ||
726 | + } | ||
727 | + | ||
728 | + public Criteria andIsRemindEmailLessThan(Integer value) { | ||
729 | + addCriterion("is_remind_email <", value, "isRemindEmail"); | ||
730 | + return (Criteria) this; | ||
731 | + } | ||
732 | + | ||
733 | + public Criteria andIsRemindEmailLessThanOrEqualTo(Integer value) { | ||
734 | + addCriterion("is_remind_email <=", value, "isRemindEmail"); | ||
735 | + return (Criteria) this; | ||
736 | + } | ||
737 | + | ||
738 | + public Criteria andIsRemindEmailIn(List<Integer> values) { | ||
739 | + addCriterion("is_remind_email in", values, "isRemindEmail"); | ||
740 | + return (Criteria) this; | ||
741 | + } | ||
742 | + | ||
743 | + public Criteria andIsRemindEmailNotIn(List<Integer> values) { | ||
744 | + addCriterion("is_remind_email not in", values, "isRemindEmail"); | ||
745 | + return (Criteria) this; | ||
746 | + } | ||
747 | + | ||
748 | + public Criteria andIsRemindEmailBetween(Integer value1, Integer value2) { | ||
749 | + addCriterion("is_remind_email between", value1, value2, "isRemindEmail"); | ||
750 | + return (Criteria) this; | ||
751 | + } | ||
752 | + | ||
753 | + public Criteria andIsRemindEmailNotBetween(Integer value1, Integer value2) { | ||
754 | + addCriterion("is_remind_email not between", value1, value2, "isRemindEmail"); | ||
755 | + return (Criteria) this; | ||
756 | + } | ||
757 | + | ||
758 | + public Criteria andDataStateIsNull() { | ||
759 | + addCriterion("data_state is null"); | ||
760 | + return (Criteria) this; | ||
761 | + } | ||
762 | + | ||
763 | + public Criteria andDataStateIsNotNull() { | ||
764 | + addCriterion("data_state is not null"); | ||
765 | + return (Criteria) this; | ||
766 | + } | ||
767 | + | ||
768 | + public Criteria andDataStateEqualTo(Integer value) { | ||
769 | + addCriterion("data_state =", value, "dataState"); | ||
770 | + return (Criteria) this; | ||
771 | + } | ||
772 | + | ||
773 | + public Criteria andDataStateNotEqualTo(Integer value) { | ||
774 | + addCriterion("data_state <>", value, "dataState"); | ||
775 | + return (Criteria) this; | ||
776 | + } | ||
777 | + | ||
778 | + public Criteria andDataStateGreaterThan(Integer value) { | ||
779 | + addCriterion("data_state >", value, "dataState"); | ||
780 | + return (Criteria) this; | ||
781 | + } | ||
782 | + | ||
783 | + public Criteria andDataStateGreaterThanOrEqualTo(Integer value) { | ||
784 | + addCriterion("data_state >=", value, "dataState"); | ||
785 | + return (Criteria) this; | ||
786 | + } | ||
787 | + | ||
788 | + public Criteria andDataStateLessThan(Integer value) { | ||
789 | + addCriterion("data_state <", value, "dataState"); | ||
790 | + return (Criteria) this; | ||
791 | + } | ||
792 | + | ||
793 | + public Criteria andDataStateLessThanOrEqualTo(Integer value) { | ||
794 | + addCriterion("data_state <=", value, "dataState"); | ||
795 | + return (Criteria) this; | ||
796 | + } | ||
797 | + | ||
798 | + public Criteria andDataStateIn(List<Integer> values) { | ||
799 | + addCriterion("data_state in", values, "dataState"); | ||
800 | + return (Criteria) this; | ||
801 | + } | ||
802 | + | ||
803 | + public Criteria andDataStateNotIn(List<Integer> values) { | ||
804 | + addCriterion("data_state not in", values, "dataState"); | ||
805 | + return (Criteria) this; | ||
806 | + } | ||
807 | + | ||
808 | + public Criteria andDataStateBetween(Integer value1, Integer value2) { | ||
809 | + addCriterion("data_state between", value1, value2, "dataState"); | ||
810 | + return (Criteria) this; | ||
811 | + } | ||
812 | + | ||
813 | + public Criteria andDataStateNotBetween(Integer value1, Integer value2) { | ||
814 | + addCriterion("data_state not between", value1, value2, "dataState"); | ||
815 | + return (Criteria) this; | ||
816 | + } | ||
817 | + | ||
818 | + public Criteria andCreateEmpidIsNull() { | ||
819 | + addCriterion("create_empid is null"); | ||
820 | + return (Criteria) this; | ||
821 | + } | ||
822 | + | ||
823 | + public Criteria andCreateEmpidIsNotNull() { | ||
824 | + addCriterion("create_empid is not null"); | ||
825 | + return (Criteria) this; | ||
826 | + } | ||
827 | + | ||
828 | + public Criteria andCreateEmpidEqualTo(String value) { | ||
829 | + addCriterion("create_empid =", value, "createEmpid"); | ||
830 | + return (Criteria) this; | ||
831 | + } | ||
832 | + | ||
833 | + public Criteria andCreateEmpidNotEqualTo(String value) { | ||
834 | + addCriterion("create_empid <>", value, "createEmpid"); | ||
835 | + return (Criteria) this; | ||
836 | + } | ||
837 | + | ||
838 | + public Criteria andCreateEmpidGreaterThan(String value) { | ||
839 | + addCriterion("create_empid >", value, "createEmpid"); | ||
840 | + return (Criteria) this; | ||
841 | + } | ||
842 | + | ||
843 | + public Criteria andCreateEmpidGreaterThanOrEqualTo(String value) { | ||
844 | + addCriterion("create_empid >=", value, "createEmpid"); | ||
845 | + return (Criteria) this; | ||
846 | + } | ||
847 | + | ||
848 | + public Criteria andCreateEmpidLessThan(String value) { | ||
849 | + addCriterion("create_empid <", value, "createEmpid"); | ||
850 | + return (Criteria) this; | ||
851 | + } | ||
852 | + | ||
853 | + public Criteria andCreateEmpidLessThanOrEqualTo(String value) { | ||
854 | + addCriterion("create_empid <=", value, "createEmpid"); | ||
855 | + return (Criteria) this; | ||
856 | + } | ||
857 | + | ||
858 | + public Criteria andCreateEmpidLike(String value) { | ||
859 | + addCriterion("create_empid like", value, "createEmpid"); | ||
860 | + return (Criteria) this; | ||
861 | + } | ||
862 | + | ||
863 | + public Criteria andCreateEmpidNotLike(String value) { | ||
864 | + addCriterion("create_empid not like", value, "createEmpid"); | ||
865 | + return (Criteria) this; | ||
866 | + } | ||
867 | + | ||
868 | + public Criteria andCreateEmpidIn(List<String> values) { | ||
869 | + addCriterion("create_empid in", values, "createEmpid"); | ||
870 | + return (Criteria) this; | ||
871 | + } | ||
872 | + | ||
873 | + public Criteria andCreateEmpidNotIn(List<String> values) { | ||
874 | + addCriterion("create_empid not in", values, "createEmpid"); | ||
875 | + return (Criteria) this; | ||
876 | + } | ||
877 | + | ||
878 | + public Criteria andCreateEmpidBetween(String value1, String value2) { | ||
879 | + addCriterion("create_empid between", value1, value2, "createEmpid"); | ||
880 | + return (Criteria) this; | ||
881 | + } | ||
882 | + | ||
883 | + public Criteria andCreateEmpidNotBetween(String value1, String value2) { | ||
884 | + addCriterion("create_empid not between", value1, value2, "createEmpid"); | ||
885 | + return (Criteria) this; | ||
886 | + } | ||
887 | + | ||
888 | + public Criteria andCreateEmpNameIsNull() { | ||
889 | + addCriterion("create_emp_name is null"); | ||
890 | + return (Criteria) this; | ||
891 | + } | ||
892 | + | ||
893 | + public Criteria andCreateEmpNameIsNotNull() { | ||
894 | + addCriterion("create_emp_name is not null"); | ||
895 | + return (Criteria) this; | ||
896 | + } | ||
897 | + | ||
898 | + public Criteria andCreateEmpNameEqualTo(String value) { | ||
899 | + addCriterion("create_emp_name =", value, "createEmpName"); | ||
900 | + return (Criteria) this; | ||
901 | + } | ||
902 | + | ||
903 | + public Criteria andCreateEmpNameNotEqualTo(String value) { | ||
904 | + addCriterion("create_emp_name <>", value, "createEmpName"); | ||
905 | + return (Criteria) this; | ||
906 | + } | ||
907 | + | ||
908 | + public Criteria andCreateEmpNameGreaterThan(String value) { | ||
909 | + addCriterion("create_emp_name >", value, "createEmpName"); | ||
910 | + return (Criteria) this; | ||
911 | + } | ||
912 | + | ||
913 | + public Criteria andCreateEmpNameGreaterThanOrEqualTo(String value) { | ||
914 | + addCriterion("create_emp_name >=", value, "createEmpName"); | ||
915 | + return (Criteria) this; | ||
916 | + } | ||
917 | + | ||
918 | + public Criteria andCreateEmpNameLessThan(String value) { | ||
919 | + addCriterion("create_emp_name <", value, "createEmpName"); | ||
920 | + return (Criteria) this; | ||
921 | + } | ||
922 | + | ||
923 | + public Criteria andCreateEmpNameLessThanOrEqualTo(String value) { | ||
924 | + addCriterion("create_emp_name <=", value, "createEmpName"); | ||
925 | + return (Criteria) this; | ||
926 | + } | ||
927 | + | ||
928 | + public Criteria andCreateEmpNameLike(String value) { | ||
929 | + addCriterion("create_emp_name like", value, "createEmpName"); | ||
930 | + return (Criteria) this; | ||
931 | + } | ||
932 | + | ||
933 | + public Criteria andCreateEmpNameNotLike(String value) { | ||
934 | + addCriterion("create_emp_name not like", value, "createEmpName"); | ||
935 | + return (Criteria) this; | ||
936 | + } | ||
937 | + | ||
938 | + public Criteria andCreateEmpNameIn(List<String> values) { | ||
939 | + addCriterion("create_emp_name in", values, "createEmpName"); | ||
940 | + return (Criteria) this; | ||
941 | + } | ||
942 | + | ||
943 | + public Criteria andCreateEmpNameNotIn(List<String> values) { | ||
944 | + addCriterion("create_emp_name not in", values, "createEmpName"); | ||
945 | + return (Criteria) this; | ||
946 | + } | ||
947 | + | ||
948 | + public Criteria andCreateEmpNameBetween(String value1, String value2) { | ||
949 | + addCriterion("create_emp_name between", value1, value2, "createEmpName"); | ||
950 | + return (Criteria) this; | ||
951 | + } | ||
952 | + | ||
953 | + public Criteria andCreateEmpNameNotBetween(String value1, String value2) { | ||
954 | + addCriterion("create_emp_name not between", value1, value2, "createEmpName"); | ||
955 | + return (Criteria) this; | ||
956 | + } | ||
957 | + | ||
958 | + public Criteria andCreateDateIsNull() { | ||
959 | + addCriterion("create_date is null"); | ||
960 | + return (Criteria) this; | ||
961 | + } | ||
962 | + | ||
963 | + public Criteria andCreateDateIsNotNull() { | ||
964 | + addCriterion("create_date is not null"); | ||
965 | + return (Criteria) this; | ||
966 | + } | ||
967 | + | ||
968 | + public Criteria andCreateDateEqualTo(Date value) { | ||
969 | + addCriterion("create_date =", value, "createDate"); | ||
970 | + return (Criteria) this; | ||
971 | + } | ||
972 | + | ||
973 | + public Criteria andCreateDateNotEqualTo(Date value) { | ||
974 | + addCriterion("create_date <>", value, "createDate"); | ||
975 | + return (Criteria) this; | ||
976 | + } | ||
977 | + | ||
978 | + public Criteria andCreateDateGreaterThan(Date value) { | ||
979 | + addCriterion("create_date >", value, "createDate"); | ||
980 | + return (Criteria) this; | ||
981 | + } | ||
982 | + | ||
983 | + public Criteria andCreateDateGreaterThanOrEqualTo(Date value) { | ||
984 | + addCriterion("create_date >=", value, "createDate"); | ||
985 | + return (Criteria) this; | ||
986 | + } | ||
987 | + | ||
988 | + public Criteria andCreateDateLessThan(Date value) { | ||
989 | + addCriterion("create_date <", value, "createDate"); | ||
990 | + return (Criteria) this; | ||
991 | + } | ||
992 | + | ||
993 | + public Criteria andCreateDateLessThanOrEqualTo(Date value) { | ||
994 | + addCriterion("create_date <=", value, "createDate"); | ||
995 | + return (Criteria) this; | ||
996 | + } | ||
997 | + | ||
998 | + public Criteria andCreateDateIn(List<Date> values) { | ||
999 | + addCriterion("create_date in", values, "createDate"); | ||
1000 | + return (Criteria) this; | ||
1001 | + } | ||
1002 | + | ||
1003 | + public Criteria andCreateDateNotIn(List<Date> values) { | ||
1004 | + addCriterion("create_date not in", values, "createDate"); | ||
1005 | + return (Criteria) this; | ||
1006 | + } | ||
1007 | + | ||
1008 | + public Criteria andCreateDateBetween(Date value1, Date value2) { | ||
1009 | + addCriterion("create_date between", value1, value2, "createDate"); | ||
1010 | + return (Criteria) this; | ||
1011 | + } | ||
1012 | + | ||
1013 | + public Criteria andCreateDateNotBetween(Date value1, Date value2) { | ||
1014 | + addCriterion("create_date not between", value1, value2, "createDate"); | ||
1015 | + return (Criteria) this; | ||
1016 | + } | ||
1017 | + | ||
1018 | + public Criteria andModfiyEmpidIsNull() { | ||
1019 | + addCriterion("modfiy_empid is null"); | ||
1020 | + return (Criteria) this; | ||
1021 | + } | ||
1022 | + | ||
1023 | + public Criteria andModfiyEmpidIsNotNull() { | ||
1024 | + addCriterion("modfiy_empid is not null"); | ||
1025 | + return (Criteria) this; | ||
1026 | + } | ||
1027 | + | ||
1028 | + public Criteria andModfiyEmpidEqualTo(String value) { | ||
1029 | + addCriterion("modfiy_empid =", value, "modfiyEmpid"); | ||
1030 | + return (Criteria) this; | ||
1031 | + } | ||
1032 | + | ||
1033 | + public Criteria andModfiyEmpidNotEqualTo(String value) { | ||
1034 | + addCriterion("modfiy_empid <>", value, "modfiyEmpid"); | ||
1035 | + return (Criteria) this; | ||
1036 | + } | ||
1037 | + | ||
1038 | + public Criteria andModfiyEmpidGreaterThan(String value) { | ||
1039 | + addCriterion("modfiy_empid >", value, "modfiyEmpid"); | ||
1040 | + return (Criteria) this; | ||
1041 | + } | ||
1042 | + | ||
1043 | + public Criteria andModfiyEmpidGreaterThanOrEqualTo(String value) { | ||
1044 | + addCriterion("modfiy_empid >=", value, "modfiyEmpid"); | ||
1045 | + return (Criteria) this; | ||
1046 | + } | ||
1047 | + | ||
1048 | + public Criteria andModfiyEmpidLessThan(String value) { | ||
1049 | + addCriterion("modfiy_empid <", value, "modfiyEmpid"); | ||
1050 | + return (Criteria) this; | ||
1051 | + } | ||
1052 | + | ||
1053 | + public Criteria andModfiyEmpidLessThanOrEqualTo(String value) { | ||
1054 | + addCriterion("modfiy_empid <=", value, "modfiyEmpid"); | ||
1055 | + return (Criteria) this; | ||
1056 | + } | ||
1057 | + | ||
1058 | + public Criteria andModfiyEmpidLike(String value) { | ||
1059 | + addCriterion("modfiy_empid like", value, "modfiyEmpid"); | ||
1060 | + return (Criteria) this; | ||
1061 | + } | ||
1062 | + | ||
1063 | + public Criteria andModfiyEmpidNotLike(String value) { | ||
1064 | + addCriterion("modfiy_empid not like", value, "modfiyEmpid"); | ||
1065 | + return (Criteria) this; | ||
1066 | + } | ||
1067 | + | ||
1068 | + public Criteria andModfiyEmpidIn(List<String> values) { | ||
1069 | + addCriterion("modfiy_empid in", values, "modfiyEmpid"); | ||
1070 | + return (Criteria) this; | ||
1071 | + } | ||
1072 | + | ||
1073 | + public Criteria andModfiyEmpidNotIn(List<String> values) { | ||
1074 | + addCriterion("modfiy_empid not in", values, "modfiyEmpid"); | ||
1075 | + return (Criteria) this; | ||
1076 | + } | ||
1077 | + | ||
1078 | + public Criteria andModfiyEmpidBetween(String value1, String value2) { | ||
1079 | + addCriterion("modfiy_empid between", value1, value2, "modfiyEmpid"); | ||
1080 | + return (Criteria) this; | ||
1081 | + } | ||
1082 | + | ||
1083 | + public Criteria andModfiyEmpidNotBetween(String value1, String value2) { | ||
1084 | + addCriterion("modfiy_empid not between", value1, value2, "modfiyEmpid"); | ||
1085 | + return (Criteria) this; | ||
1086 | + } | ||
1087 | + | ||
1088 | + public Criteria andModfiyEmpNameIsNull() { | ||
1089 | + addCriterion("modfiy_emp_name is null"); | ||
1090 | + return (Criteria) this; | ||
1091 | + } | ||
1092 | + | ||
1093 | + public Criteria andModfiyEmpNameIsNotNull() { | ||
1094 | + addCriterion("modfiy_emp_name is not null"); | ||
1095 | + return (Criteria) this; | ||
1096 | + } | ||
1097 | + | ||
1098 | + public Criteria andModfiyEmpNameEqualTo(String value) { | ||
1099 | + addCriterion("modfiy_emp_name =", value, "modfiyEmpName"); | ||
1100 | + return (Criteria) this; | ||
1101 | + } | ||
1102 | + | ||
1103 | + public Criteria andModfiyEmpNameNotEqualTo(String value) { | ||
1104 | + addCriterion("modfiy_emp_name <>", value, "modfiyEmpName"); | ||
1105 | + return (Criteria) this; | ||
1106 | + } | ||
1107 | + | ||
1108 | + public Criteria andModfiyEmpNameGreaterThan(String value) { | ||
1109 | + addCriterion("modfiy_emp_name >", value, "modfiyEmpName"); | ||
1110 | + return (Criteria) this; | ||
1111 | + } | ||
1112 | + | ||
1113 | + public Criteria andModfiyEmpNameGreaterThanOrEqualTo(String value) { | ||
1114 | + addCriterion("modfiy_emp_name >=", value, "modfiyEmpName"); | ||
1115 | + return (Criteria) this; | ||
1116 | + } | ||
1117 | + | ||
1118 | + public Criteria andModfiyEmpNameLessThan(String value) { | ||
1119 | + addCriterion("modfiy_emp_name <", value, "modfiyEmpName"); | ||
1120 | + return (Criteria) this; | ||
1121 | + } | ||
1122 | + | ||
1123 | + public Criteria andModfiyEmpNameLessThanOrEqualTo(String value) { | ||
1124 | + addCriterion("modfiy_emp_name <=", value, "modfiyEmpName"); | ||
1125 | + return (Criteria) this; | ||
1126 | + } | ||
1127 | + | ||
1128 | + public Criteria andModfiyEmpNameLike(String value) { | ||
1129 | + addCriterion("modfiy_emp_name like", value, "modfiyEmpName"); | ||
1130 | + return (Criteria) this; | ||
1131 | + } | ||
1132 | + | ||
1133 | + public Criteria andModfiyEmpNameNotLike(String value) { | ||
1134 | + addCriterion("modfiy_emp_name not like", value, "modfiyEmpName"); | ||
1135 | + return (Criteria) this; | ||
1136 | + } | ||
1137 | + | ||
1138 | + public Criteria andModfiyEmpNameIn(List<String> values) { | ||
1139 | + addCriterion("modfiy_emp_name in", values, "modfiyEmpName"); | ||
1140 | + return (Criteria) this; | ||
1141 | + } | ||
1142 | + | ||
1143 | + public Criteria andModfiyEmpNameNotIn(List<String> values) { | ||
1144 | + addCriterion("modfiy_emp_name not in", values, "modfiyEmpName"); | ||
1145 | + return (Criteria) this; | ||
1146 | + } | ||
1147 | + | ||
1148 | + public Criteria andModfiyEmpNameBetween(String value1, String value2) { | ||
1149 | + addCriterion("modfiy_emp_name between", value1, value2, "modfiyEmpName"); | ||
1150 | + return (Criteria) this; | ||
1151 | + } | ||
1152 | + | ||
1153 | + public Criteria andModfiyEmpNameNotBetween(String value1, String value2) { | ||
1154 | + addCriterion("modfiy_emp_name not between", value1, value2, "modfiyEmpName"); | ||
1155 | + return (Criteria) this; | ||
1156 | + } | ||
1157 | + | ||
1158 | + public Criteria andModfiyDateIsNull() { | ||
1159 | + addCriterion("modfiy_date is null"); | ||
1160 | + return (Criteria) this; | ||
1161 | + } | ||
1162 | + | ||
1163 | + public Criteria andModfiyDateIsNotNull() { | ||
1164 | + addCriterion("modfiy_date is not null"); | ||
1165 | + return (Criteria) this; | ||
1166 | + } | ||
1167 | + | ||
1168 | + public Criteria andModfiyDateEqualTo(Date value) { | ||
1169 | + addCriterion("modfiy_date =", value, "modfiyDate"); | ||
1170 | + return (Criteria) this; | ||
1171 | + } | ||
1172 | + | ||
1173 | + public Criteria andModfiyDateNotEqualTo(Date value) { | ||
1174 | + addCriterion("modfiy_date <>", value, "modfiyDate"); | ||
1175 | + return (Criteria) this; | ||
1176 | + } | ||
1177 | + | ||
1178 | + public Criteria andModfiyDateGreaterThan(Date value) { | ||
1179 | + addCriterion("modfiy_date >", value, "modfiyDate"); | ||
1180 | + return (Criteria) this; | ||
1181 | + } | ||
1182 | + | ||
1183 | + public Criteria andModfiyDateGreaterThanOrEqualTo(Date value) { | ||
1184 | + addCriterion("modfiy_date >=", value, "modfiyDate"); | ||
1185 | + return (Criteria) this; | ||
1186 | + } | ||
1187 | + | ||
1188 | + public Criteria andModfiyDateLessThan(Date value) { | ||
1189 | + addCriterion("modfiy_date <", value, "modfiyDate"); | ||
1190 | + return (Criteria) this; | ||
1191 | + } | ||
1192 | + | ||
1193 | + public Criteria andModfiyDateLessThanOrEqualTo(Date value) { | ||
1194 | + addCriterion("modfiy_date <=", value, "modfiyDate"); | ||
1195 | + return (Criteria) this; | ||
1196 | + } | ||
1197 | + | ||
1198 | + public Criteria andModfiyDateIn(List<Date> values) { | ||
1199 | + addCriterion("modfiy_date in", values, "modfiyDate"); | ||
1200 | + return (Criteria) this; | ||
1201 | + } | ||
1202 | + | ||
1203 | + public Criteria andModfiyDateNotIn(List<Date> values) { | ||
1204 | + addCriterion("modfiy_date not in", values, "modfiyDate"); | ||
1205 | + return (Criteria) this; | ||
1206 | + } | ||
1207 | + | ||
1208 | + public Criteria andModfiyDateBetween(Date value1, Date value2) { | ||
1209 | + addCriterion("modfiy_date between", value1, value2, "modfiyDate"); | ||
1210 | + return (Criteria) this; | ||
1211 | + } | ||
1212 | + | ||
1213 | + public Criteria andModfiyDateNotBetween(Date value1, Date value2) { | ||
1214 | + addCriterion("modfiy_date not between", value1, value2, "modfiyDate"); | ||
1215 | + return (Criteria) this; | ||
1216 | + } | ||
1217 | + | ||
1218 | + public Criteria andRemarkIsNull() { | ||
1219 | + addCriterion("remark is null"); | ||
1220 | + return (Criteria) this; | ||
1221 | + } | ||
1222 | + | ||
1223 | + public Criteria andRemarkIsNotNull() { | ||
1224 | + addCriterion("remark is not null"); | ||
1225 | + return (Criteria) this; | ||
1226 | + } | ||
1227 | + | ||
1228 | + public Criteria andRemarkEqualTo(String value) { | ||
1229 | + addCriterion("remark =", value, "remark"); | ||
1230 | + return (Criteria) this; | ||
1231 | + } | ||
1232 | + | ||
1233 | + public Criteria andRemarkNotEqualTo(String value) { | ||
1234 | + addCriterion("remark <>", value, "remark"); | ||
1235 | + return (Criteria) this; | ||
1236 | + } | ||
1237 | + | ||
1238 | + public Criteria andRemarkGreaterThan(String value) { | ||
1239 | + addCriterion("remark >", value, "remark"); | ||
1240 | + return (Criteria) this; | ||
1241 | + } | ||
1242 | + | ||
1243 | + public Criteria andRemarkGreaterThanOrEqualTo(String value) { | ||
1244 | + addCriterion("remark >=", value, "remark"); | ||
1245 | + return (Criteria) this; | ||
1246 | + } | ||
1247 | + | ||
1248 | + public Criteria andRemarkLessThan(String value) { | ||
1249 | + addCriterion("remark <", value, "remark"); | ||
1250 | + return (Criteria) this; | ||
1251 | + } | ||
1252 | + | ||
1253 | + public Criteria andRemarkLessThanOrEqualTo(String value) { | ||
1254 | + addCriterion("remark <=", value, "remark"); | ||
1255 | + return (Criteria) this; | ||
1256 | + } | ||
1257 | + | ||
1258 | + public Criteria andRemarkLike(String value) { | ||
1259 | + addCriterion("remark like", value, "remark"); | ||
1260 | + return (Criteria) this; | ||
1261 | + } | ||
1262 | + | ||
1263 | + public Criteria andRemarkNotLike(String value) { | ||
1264 | + addCriterion("remark not like", value, "remark"); | ||
1265 | + return (Criteria) this; | ||
1266 | + } | ||
1267 | + | ||
1268 | + public Criteria andRemarkIn(List<String> values) { | ||
1269 | + addCriterion("remark in", values, "remark"); | ||
1270 | + return (Criteria) this; | ||
1271 | + } | ||
1272 | + | ||
1273 | + public Criteria andRemarkNotIn(List<String> values) { | ||
1274 | + addCriterion("remark not in", values, "remark"); | ||
1275 | + return (Criteria) this; | ||
1276 | + } | ||
1277 | + | ||
1278 | + public Criteria andRemarkBetween(String value1, String value2) { | ||
1279 | + addCriterion("remark between", value1, value2, "remark"); | ||
1280 | + return (Criteria) this; | ||
1281 | + } | ||
1282 | + | ||
1283 | + public Criteria andRemarkNotBetween(String value1, String value2) { | ||
1284 | + addCriterion("remark not between", value1, value2, "remark"); | ||
1285 | + return (Criteria) this; | ||
1286 | + } | ||
1287 | + } | ||
1288 | + | ||
1289 | + public static class Criteria extends GeneratedCriteria { | ||
1290 | + | ||
1291 | + protected Criteria() { | ||
1292 | + super(); | ||
1293 | + } | ||
1294 | + } | ||
1295 | + | ||
1296 | + public static class Criterion { | ||
1297 | + private String condition; | ||
1298 | + | ||
1299 | + private Object value; | ||
1300 | + | ||
1301 | + private Object secondValue; | ||
1302 | + | ||
1303 | + private boolean noValue; | ||
1304 | + | ||
1305 | + private boolean singleValue; | ||
1306 | + | ||
1307 | + private boolean betweenValue; | ||
1308 | + | ||
1309 | + private boolean listValue; | ||
1310 | + | ||
1311 | + private String typeHandler; | ||
1312 | + | ||
1313 | + public String getCondition() { | ||
1314 | + return condition; | ||
1315 | + } | ||
1316 | + | ||
1317 | + public Object getValue() { | ||
1318 | + return value; | ||
1319 | + } | ||
1320 | + | ||
1321 | + public Object getSecondValue() { | ||
1322 | + return secondValue; | ||
1323 | + } | ||
1324 | + | ||
1325 | + public boolean isNoValue() { | ||
1326 | + return noValue; | ||
1327 | + } | ||
1328 | + | ||
1329 | + public boolean isSingleValue() { | ||
1330 | + return singleValue; | ||
1331 | + } | ||
1332 | + | ||
1333 | + public boolean isBetweenValue() { | ||
1334 | + return betweenValue; | ||
1335 | + } | ||
1336 | + | ||
1337 | + public boolean isListValue() { | ||
1338 | + return listValue; | ||
1339 | + } | ||
1340 | + | ||
1341 | + public String getTypeHandler() { | ||
1342 | + return typeHandler; | ||
1343 | + } | ||
1344 | + | ||
1345 | + protected Criterion(String condition) { | ||
1346 | + super(); | ||
1347 | + this.condition = condition; | ||
1348 | + this.typeHandler = null; | ||
1349 | + this.noValue = true; | ||
1350 | + } | ||
1351 | + | ||
1352 | + protected Criterion(String condition, Object value, String typeHandler) { | ||
1353 | + super(); | ||
1354 | + this.condition = condition; | ||
1355 | + this.value = value; | ||
1356 | + this.typeHandler = typeHandler; | ||
1357 | + if (value instanceof List<?>) { | ||
1358 | + this.listValue = true; | ||
1359 | + } else { | ||
1360 | + this.singleValue = true; | ||
1361 | + } | ||
1362 | + } | ||
1363 | + | ||
1364 | + protected Criterion(String condition, Object value) { | ||
1365 | + this(condition, value, null); | ||
1366 | + } | ||
1367 | + | ||
1368 | + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { | ||
1369 | + super(); | ||
1370 | + this.condition = condition; | ||
1371 | + this.value = value; | ||
1372 | + this.secondValue = secondValue; | ||
1373 | + this.typeHandler = typeHandler; | ||
1374 | + this.betweenValue = true; | ||
1375 | + } | ||
1376 | + | ||
1377 | + protected Criterion(String condition, Object value, Object secondValue) { | ||
1378 | + this(condition, value, secondValue, null); | ||
1379 | + } | ||
1380 | + } | ||
1381 | +} | ||
0 | \ No newline at end of file | 1382 | \ No newline at end of file |
src/main/java/com/zteits/oa/report/mapper/AsraOpMapper.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/report/mapper/AsraOpMapper.java | ||
1 | +package com.zteits.oa.report.mapper; | ||
2 | + | ||
3 | +import com.zteits.oa.report.domain.AsraOp; | ||
4 | +import com.zteits.oa.report.domain.AsraOpExample; | ||
5 | +import java.util.List; | ||
6 | +import org.apache.ibatis.annotations.Param; | ||
7 | + | ||
8 | +public interface AsraOpMapper { | ||
9 | + long countByExample(AsraOpExample example); | ||
10 | + | ||
11 | + int deleteByExample(AsraOpExample example); | ||
12 | + | ||
13 | + int deleteByPrimaryKey(Long id); | ||
14 | + | ||
15 | + int insert(AsraOp record); | ||
16 | + | ||
17 | + int insertSelective(AsraOp record); | ||
18 | + | ||
19 | + List<AsraOp> selectByExample(AsraOpExample example); | ||
20 | + | ||
21 | + AsraOp selectByPrimaryKey(Long id); | ||
22 | + | ||
23 | + int updateByExampleSelective(@Param("record") AsraOp record, @Param("example") AsraOpExample example); | ||
24 | + | ||
25 | + int updateByExample(@Param("record") AsraOp record, @Param("example") AsraOpExample example); | ||
26 | + | ||
27 | + int updateByPrimaryKeySelective(AsraOp record); | ||
28 | + | ||
29 | + int updateByPrimaryKey(AsraOp record); | ||
30 | +} | ||
0 | \ No newline at end of file | 31 | \ No newline at end of file |
src/main/java/com/zteits/oa/util/ListCopyUtil.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/util/ListCopyUtil.java | ||
1 | +package com.zteits.oa.util; | ||
2 | + | ||
3 | +import java.util.List; | ||
4 | + | ||
5 | +import org.springframework.beans.BeanUtils; | ||
6 | +import org.springframework.util.CollectionUtils; | ||
7 | + | ||
8 | +/** | ||
9 | + * list 拷贝util.<br/> | ||
10 | + * | ||
11 | + * Copyright: Copyright (c) 2017 zteits | ||
12 | + * | ||
13 | + * @ClassName: ListUtil.java | ||
14 | + * @Description: | ||
15 | + * @version: v1.0.0 | ||
16 | + * @author: wangfs | ||
17 | + * @date: 2017年8月10日 下午4:31:27 | ||
18 | + * Modification History: | ||
19 | + * Date Author Version Description | ||
20 | + *---------------------------------------------------------* | ||
21 | + * 2017年8月10日 wangfs v1.0.0 创建 | ||
22 | + */ | ||
23 | +public class ListCopyUtil { | ||
24 | + | ||
25 | + /** | ||
26 | + * list 拷贝.<br/> | ||
27 | + * @param form | ||
28 | + * @param to | ||
29 | + * @param clazz | ||
30 | + */ | ||
31 | + public static<DO,DTO> void listCopyProperties(List<DO> form,List<DTO> to,Class<DTO> clazz){ | ||
32 | + if(!CollectionUtils.isEmpty(form)){ | ||
33 | + for(DO strDO:form){ | ||
34 | + if(strDO != null){ | ||
35 | + try { | ||
36 | + DTO dto =clazz.newInstance(); | ||
37 | + BeanUtils.copyProperties(strDO, dto); | ||
38 | + to.add(dto); | ||
39 | + } catch (InstantiationException e) { | ||
40 | + e.printStackTrace(); | ||
41 | + } catch (IllegalAccessException e) { | ||
42 | + e.printStackTrace(); | ||
43 | + } | ||
44 | + } | ||
45 | + } | ||
46 | + } | ||
47 | + | ||
48 | + } | ||
49 | +} |
src/main/java/com/zteits/oa/util/MybatisGenerateRun.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/util/MybatisGenerateRun.java | ||
1 | +package com.zteits.oa.util; | ||
2 | + | ||
3 | +import java.io.File; | ||
4 | +import java.io.IOException; | ||
5 | +import java.sql.SQLException; | ||
6 | +import java.util.ArrayList; | ||
7 | +import java.util.List; | ||
8 | +import java.util.Properties; | ||
9 | + | ||
10 | +import org.mybatis.generator.api.MyBatisGenerator; | ||
11 | +import org.mybatis.generator.config.Configuration; | ||
12 | +import org.mybatis.generator.config.xml.ConfigurationParser; | ||
13 | +import org.mybatis.generator.exception.InvalidConfigurationException; | ||
14 | +import org.mybatis.generator.exception.XMLParserException; | ||
15 | +import org.mybatis.generator.internal.DefaultShellCallback; | ||
16 | +import org.springframework.core.io.support.PropertiesLoaderUtils; | ||
17 | +import org.springframework.util.CollectionUtils; | ||
18 | +/** | ||
19 | + * 生成mybaits相关mapper,domain,dao等 | ||
20 | + * | ||
21 | + */ | ||
22 | +public class MybatisGenerateRun { | ||
23 | + public static void main(String[] args) throws IOException, XMLParserException, InvalidConfigurationException, SQLException, InterruptedException { | ||
24 | + List<String> warnings = new ArrayList<String>(); | ||
25 | + boolean overwrite = true; | ||
26 | + //加载generatorEmallConfig文件 | ||
27 | + File configFile = new File(MybatisGenerateRun.class.getClassLoader().getResource("generator/generatorConfig.xml").getPath()); | ||
28 | + //加载数据库设置相关配置文件 | ||
29 | + Properties extraProperties = PropertiesLoaderUtils.loadAllProperties("application.properties"); | ||
30 | + ConfigurationParser cp = new ConfigurationParser(extraProperties, warnings); | ||
31 | + Configuration config = cp.parseConfiguration(configFile); | ||
32 | + DefaultShellCallback callback = new DefaultShellCallback(overwrite); | ||
33 | + MyBatisGenerator myBatisGenerator = new MyBatisGenerator(config, callback, warnings); | ||
34 | + myBatisGenerator.generate(null); | ||
35 | + if(!CollectionUtils.isEmpty(warnings)){ | ||
36 | + for (String warn : warnings) { | ||
37 | + System.out.println(warn); | ||
38 | + } | ||
39 | + } | ||
40 | + System.out.println("生成成功!"); | ||
41 | + } | ||
42 | +} |
src/main/java/com/zteits/oa/util/MybatisGeneratorCommon.java
0 → 100644
1 | +++ a/src/main/java/com/zteits/oa/util/MybatisGeneratorCommon.java | ||
1 | +package com.zteits.oa.util; | ||
2 | + | ||
3 | +import java.util.Properties; | ||
4 | + | ||
5 | +import org.mybatis.generator.api.CommentGenerator; | ||
6 | +import org.mybatis.generator.api.IntrospectedColumn; | ||
7 | +import org.mybatis.generator.api.IntrospectedTable; | ||
8 | +import org.mybatis.generator.api.dom.java.CompilationUnit; | ||
9 | +import org.mybatis.generator.api.dom.java.Field; | ||
10 | +import org.mybatis.generator.api.dom.java.InnerClass; | ||
11 | +import org.mybatis.generator.api.dom.java.InnerEnum; | ||
12 | +import org.mybatis.generator.api.dom.java.Method; | ||
13 | +import org.mybatis.generator.api.dom.java.TopLevelClass; | ||
14 | +import org.mybatis.generator.api.dom.xml.XmlElement; | ||
15 | +import org.springframework.util.StringUtils; | ||
16 | + | ||
17 | +/** | ||
18 | + * 自定义Mybatis注释 使用数据库中的注释 | ||
19 | + * | ||
20 | + */ | ||
21 | +public class MybatisGeneratorCommon implements CommentGenerator{ | ||
22 | + | ||
23 | + @Override | ||
24 | + public void addConfigurationProperties(Properties properties) {} | ||
25 | + | ||
26 | + @Override | ||
27 | + public void addFieldComment(Field field, IntrospectedTable introspectedTable, | ||
28 | + IntrospectedColumn introspectedColumn) { | ||
29 | + if(StringUtils.isEmpty(introspectedColumn.getRemarks())){ | ||
30 | + return; | ||
31 | + } | ||
32 | + field.addJavaDocLine("/**"+introspectedColumn.getRemarks()+"*/"); | ||
33 | + } | ||
34 | + | ||
35 | + @Override | ||
36 | + public void addFieldComment(Field field, IntrospectedTable introspectedTable) {} | ||
37 | + | ||
38 | + @Override | ||
39 | + public void addModelClassComment(TopLevelClass topLevelClass, IntrospectedTable introspectedTable) {} | ||
40 | + | ||
41 | + @Override | ||
42 | + public void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable) {} | ||
43 | + | ||
44 | + @Override | ||
45 | + public void addClassComment(InnerClass innerClass, IntrospectedTable introspectedTable, boolean markAsDoNotDelete) {} | ||
46 | + | ||
47 | + @Override | ||
48 | + public void addEnumComment(InnerEnum innerEnum, IntrospectedTable introspectedTable) {} | ||
49 | + | ||
50 | + @Override | ||
51 | + public void addGetterComment(Method method, IntrospectedTable introspectedTable, | ||
52 | + IntrospectedColumn introspectedColumn) { | ||
53 | + if(StringUtils.isEmpty(introspectedColumn.getRemarks())){ | ||
54 | + return; | ||
55 | + } | ||
56 | + method.addJavaDocLine("/**获取"+introspectedColumn.getRemarks()+"*/"); | ||
57 | + } | ||
58 | + | ||
59 | + @Override | ||
60 | + public void addSetterComment(Method method, IntrospectedTable introspectedTable, | ||
61 | + IntrospectedColumn introspectedColumn) { | ||
62 | + if(StringUtils.isEmpty(introspectedColumn.getRemarks())){ | ||
63 | + return; | ||
64 | + } | ||
65 | + method.addJavaDocLine("/**设置"+introspectedColumn.getRemarks()+"*/"); | ||
66 | + } | ||
67 | + | ||
68 | + @Override | ||
69 | + public void addGeneralMethodComment(Method method, IntrospectedTable introspectedTable) {} | ||
70 | + | ||
71 | + @Override | ||
72 | + public void addJavaFileComment(CompilationUnit compilationUnit) {} | ||
73 | + | ||
74 | + @Override | ||
75 | + public void addComment(XmlElement xmlElement) {} | ||
76 | + | ||
77 | + @Override | ||
78 | + public void addRootComment(XmlElement rootElement) {} | ||
79 | +} |
src/main/resources/application.properties
0 → 100644
1 | +++ a/src/main/resources/application.properties | ||
1 | +spring.application.name=zteits_daily_report | ||
2 | +server.port=8100 | ||
3 | + | ||
4 | +#spring.profiles.active=prod | ||
5 | +# logging | ||
6 | +logging.level.root=info | ||
7 | +logging.path=./logs/${spring.application.name} | ||
8 | +logging.file=${spring.application.name}.log | ||
9 | +logging.config=classpath:logback-spring.xml | ||
10 | + | ||
11 | +local.base.url=http://pay.service.rnting.com | ||
12 | + | ||
13 | + | ||
14 | +druid.driverClass=com.mysql.jdbc.Driver | ||
15 | +druid.url=jdbc:mysql://192.168.1.167:3306/zt_asra?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true | ||
16 | +druid.username=root | ||
17 | +druid.password=root | ||
18 | + | ||
19 | +druid.initialSize=1 | ||
20 | +druid.minIdle=1 | ||
21 | +druid.maxActive=20 | ||
22 | +druid.filters=stat,wall | ||
23 | +druid.maxWait=60000 | ||
24 | +druid.timeBetweenEvictionRunsMillis=3000 | ||
25 | +druid.minEvictableIdleTimeMillis=300000 | ||
26 | +druid.validationQuery=SELECT 'x' | ||
27 | +druid.testOnBorrow=true | ||
28 | +druid.testOnReturn=false | ||
29 | + | ||
30 | + | ||
31 | +#mybatis.mapper-locations=classpath*:mybatis/*mapper/*.xml | ||
32 | +mybatis.type-aliases-package=com.zteits.oa.report.domain | ||
33 | +mybatis.mapper-locations=classpath*:mybatis/*mapper/*.xml | ||
34 | +#mapper.mappers=com.zteits.sys.util.MyMapper | ||
35 | +mapper.not-empty=false | ||
36 | +mapper.identity=MYSQL | ||
37 | + | ||
38 | + | ||
39 | +pagehelper.dialect=com.github.pagehelper.PageHelper | ||
40 | +pagehelper.helperDialect=mysql | ||
41 | +pagehelper.reasonable=true | ||
42 | +pagehelper.supportMethodsArguments=true | ||
43 | +pagehelper.params=countSql | ||
44 | + | ||
45 | + | ||
46 | + | ||
47 | + | ||
48 | + | ||
49 | +#47 redis | ||
50 | +spring.redis.host=47.96.41.38 | ||
51 | +spring.redis.port=7001 | ||
52 | +spring.redis.password=myredis | ||
53 | +spring.redis.database=0 | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | +#\u5404\u79CD\u5F00\u5173,\u65B9\u4FBF\u4E0D\u540C\u73AF\u5883\u7684\u914D\u7F6E | ||
58 | +switch.auto.default=false | ||
59 | + | ||
60 | +switch.auto.XxlJobConfiguration=${switch.auto.default} | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + |
src/main/resources/generator/generatorConfig.xml
0 → 100644
1 | +++ a/src/main/resources/generator/generatorConfig.xml | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE generatorConfiguration | ||
3 | + PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN" | ||
4 | + "http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd"> | ||
5 | + | ||
6 | +<generatorConfiguration> | ||
7 | + | ||
8 | + <context id="DB2Tables" targetRuntime="MyBatis3"> | ||
9 | + <!-- 自定义注释生成器 MybatisGeneratorCommon类为我自定义的继承CommentGenerator的类 --> | ||
10 | + <commentGenerator type="com.zteits.oa.util.MybatisGeneratorCommon"> | ||
11 | + <!-- 关闭自动生成的注释 --> | ||
12 | + <property name="suppressAllComments" value="true" /> | ||
13 | + <property name="suppressDate" value="true" /> | ||
14 | + <property name="javaFileEncoding" value="UTF-8"/> | ||
15 | + </commentGenerator> | ||
16 | + <!-- 定义如何连接目标数据库 --> | ||
17 | + <jdbcConnection driverClass="${druid.driverClass}" | ||
18 | + connectionURL="${druid.url}" | ||
19 | + userId="${druid.username}" | ||
20 | + password="${druid.password}"> | ||
21 | + </jdbcConnection> | ||
22 | + <!-- 默认false,把JDBC DECIMAL 和 NUMERIC 类型解析为 Integer | ||
23 | + true,把JDBC DECIMAL 和 NUMERIC 类型解析为java.math.BigDecimal | ||
24 | + --> | ||
25 | + <javaTypeResolver > | ||
26 | + <property name="forceBigDecimals" value="true" /> | ||
27 | + </javaTypeResolver> | ||
28 | + <!-- 指定生成 Java 模型对象所属的包 --> | ||
29 | + <javaModelGenerator targetPackage="com.zteits.oa.report.domain" targetProject="src/main/java"> | ||
30 | + <property name="enableSubPackages" value="false" /> | ||
31 | + <property name="trimStrings" value="true" /> | ||
32 | + </javaModelGenerator> | ||
33 | + <!-- 指定生成 SQL 映射文件所属的包和的目标项目 --> | ||
34 | + <sqlMapGenerator targetPackage="mybatis.mapper" targetProject="src/main/resources"> | ||
35 | + <property name="enableSubPackages" value="false" /> | ||
36 | + </sqlMapGenerator> | ||
37 | + <!-- 指定目标包和目标项目生成的客户端接口和类 --> | ||
38 | + <javaClientGenerator type="XMLMAPPER" targetPackage="com.zteits.oa.report.mapper" targetProject="src/main/java"> | ||
39 | + <property name="enableSubPackages" value="true" /> | ||
40 | + </javaClientGenerator> | ||
41 | + <table tableName="asra_op" | ||
42 | + > | ||
43 | + <!-- 指定自动生成主键的属性 --> | ||
44 | + <generatedKey column="id" sqlStatement="MySql" identity="true"></generatedKey> | ||
45 | + </table> | ||
46 | + | ||
47 | + | ||
48 | + </context> | ||
49 | +</generatorConfiguration> | ||
0 | \ No newline at end of file | 50 | \ No newline at end of file |
src/main/resources/logback-spring.xml
0 → 100644
1 | +++ a/src/main/resources/logback-spring.xml | ||
1 | +<configuration> | ||
2 | + <appender name="ROLLING" class="ch.qos.logback.core.rolling.RollingFileAppender"> | ||
3 | + <file>${LOG_PATH}/${LOG_FILE}</file> | ||
4 | + <rollingPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedRollingPolicy"> | ||
5 | + <!-- rollover daily --> | ||
6 | + <fileNamePattern>${logging.path}${logging.file}-%d{yyyy-MM-dd}.%i.log</fileNamePattern> | ||
7 | + <!-- each file should be at most 1GB, keep 60 days worth of history, but at most 20GB --> | ||
8 | + <maxFileSize>1GB</maxFileSize> | ||
9 | + <maxHistory>60</maxHistory> | ||
10 | + <totalSizeCap>20GB</totalSizeCap> | ||
11 | + </rollingPolicy> | ||
12 | + <encoder> | ||
13 | + <!-- 格式化输出:%d表示日期,%thread表示线程名,%-5level:级别从左显示5个字符宽度%msg:日志消息,%n是换行符 --> | ||
14 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
15 | + </encoder> | ||
16 | + </appender> | ||
17 | + | ||
18 | + <!-- <root> | ||
19 | + <appender-ref ref="ROLLING" /> | ||
20 | + </root> --> | ||
21 | + | ||
22 | + | ||
23 | + <!--console log--> | ||
24 | + <appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender"> | ||
25 | + <encoder> | ||
26 | + <pattern>%d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n</pattern> | ||
27 | + <charset>UTF-8</charset> | ||
28 | + </encoder> | ||
29 | + </appender> | ||
30 | + <root level="INFO"> | ||
31 | + <appender-ref ref="ROLLING" /> | ||
32 | + <appender-ref ref="STDOUT"/> | ||
33 | + </root> | ||
34 | +</configuration> |
src/main/resources/mybatis/mapper/AsraOpMapper.xml
0 → 100644
1 | +++ a/src/main/resources/mybatis/mapper/AsraOpMapper.xml | ||
1 | +<?xml version="1.0" encoding="UTF-8"?> | ||
2 | +<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> | ||
3 | +<mapper namespace="com.zteits.oa.report.mapper.AsraOpMapper"> | ||
4 | + <resultMap id="BaseResultMap" type="com.zteits.oa.report.domain.AsraOp"> | ||
5 | + <id column="id" jdbcType="BIGINT" property="id" /> | ||
6 | + <result column="login_code" jdbcType="VARCHAR" property="loginCode" /> | ||
7 | + <result column="login_password" jdbcType="VARCHAR" property="loginPassword" /> | ||
8 | + <result column="op_name" jdbcType="VARCHAR" property="opName" /> | ||
9 | + <result column="email" jdbcType="VARCHAR" property="email" /> | ||
10 | + <result column="role_id" jdbcType="BIGINT" property="roleId" /> | ||
11 | + <result column="city_id" jdbcType="BIGINT" property="cityId" /> | ||
12 | + <result column="city_name" jdbcType="VARCHAR" property="cityName" /> | ||
13 | + <result column="parent_id" jdbcType="BIGINT" property="parentId" /> | ||
14 | + <result column="is_remind_email" jdbcType="INTEGER" property="isRemindEmail" /> | ||
15 | + <result column="data_state" jdbcType="INTEGER" property="dataState" /> | ||
16 | + <result column="create_empid" jdbcType="VARCHAR" property="createEmpid" /> | ||
17 | + <result column="create_emp_name" jdbcType="VARCHAR" property="createEmpName" /> | ||
18 | + <result column="create_date" jdbcType="TIMESTAMP" property="createDate" /> | ||
19 | + <result column="modfiy_empid" jdbcType="VARCHAR" property="modfiyEmpid" /> | ||
20 | + <result column="modfiy_emp_name" jdbcType="VARCHAR" property="modfiyEmpName" /> | ||
21 | + <result column="modfiy_date" jdbcType="TIMESTAMP" property="modfiyDate" /> | ||
22 | + <result column="remark" jdbcType="VARCHAR" property="remark" /> | ||
23 | + </resultMap> | ||
24 | + <sql id="Example_Where_Clause"> | ||
25 | + <where> | ||
26 | + <foreach collection="oredCriteria" item="criteria" separator="or"> | ||
27 | + <if test="criteria.valid"> | ||
28 | + <trim prefix="(" prefixOverrides="and" suffix=")"> | ||
29 | + <foreach collection="criteria.criteria" item="criterion"> | ||
30 | + <choose> | ||
31 | + <when test="criterion.noValue"> | ||
32 | + and ${criterion.condition} | ||
33 | + </when> | ||
34 | + <when test="criterion.singleValue"> | ||
35 | + and ${criterion.condition} #{criterion.value} | ||
36 | + </when> | ||
37 | + <when test="criterion.betweenValue"> | ||
38 | + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | ||
39 | + </when> | ||
40 | + <when test="criterion.listValue"> | ||
41 | + and ${criterion.condition} | ||
42 | + <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | ||
43 | + #{listItem} | ||
44 | + </foreach> | ||
45 | + </when> | ||
46 | + </choose> | ||
47 | + </foreach> | ||
48 | + </trim> | ||
49 | + </if> | ||
50 | + </foreach> | ||
51 | + </where> | ||
52 | + </sql> | ||
53 | + <sql id="Update_By_Example_Where_Clause"> | ||
54 | + <where> | ||
55 | + <foreach collection="example.oredCriteria" item="criteria" separator="or"> | ||
56 | + <if test="criteria.valid"> | ||
57 | + <trim prefix="(" prefixOverrides="and" suffix=")"> | ||
58 | + <foreach collection="criteria.criteria" item="criterion"> | ||
59 | + <choose> | ||
60 | + <when test="criterion.noValue"> | ||
61 | + and ${criterion.condition} | ||
62 | + </when> | ||
63 | + <when test="criterion.singleValue"> | ||
64 | + and ${criterion.condition} #{criterion.value} | ||
65 | + </when> | ||
66 | + <when test="criterion.betweenValue"> | ||
67 | + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} | ||
68 | + </when> | ||
69 | + <when test="criterion.listValue"> | ||
70 | + and ${criterion.condition} | ||
71 | + <foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> | ||
72 | + #{listItem} | ||
73 | + </foreach> | ||
74 | + </when> | ||
75 | + </choose> | ||
76 | + </foreach> | ||
77 | + </trim> | ||
78 | + </if> | ||
79 | + </foreach> | ||
80 | + </where> | ||
81 | + </sql> | ||
82 | + <sql id="Base_Column_List"> | ||
83 | + id, login_code, login_password, op_name, email, role_id, city_id, city_name, parent_id, | ||
84 | + is_remind_email, data_state, create_empid, create_emp_name, create_date, modfiy_empid, | ||
85 | + modfiy_emp_name, modfiy_date, remark | ||
86 | + </sql> | ||
87 | + <select id="selectByExample" parameterType="com.zteits.oa.report.domain.AsraOpExample" resultMap="BaseResultMap"> | ||
88 | + select | ||
89 | + <if test="distinct"> | ||
90 | + distinct | ||
91 | + </if> | ||
92 | + <include refid="Base_Column_List" /> | ||
93 | + from asra_op | ||
94 | + <if test="_parameter != null"> | ||
95 | + <include refid="Example_Where_Clause" /> | ||
96 | + </if> | ||
97 | + <if test="orderByClause != null"> | ||
98 | + order by ${orderByClause} | ||
99 | + </if> | ||
100 | + </select> | ||
101 | + <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | ||
102 | + select | ||
103 | + <include refid="Base_Column_List" /> | ||
104 | + from asra_op | ||
105 | + where id = #{id,jdbcType=BIGINT} | ||
106 | + </select> | ||
107 | + <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | ||
108 | + delete from asra_op | ||
109 | + where id = #{id,jdbcType=BIGINT} | ||
110 | + </delete> | ||
111 | + <delete id="deleteByExample" parameterType="com.zteits.oa.report.domain.AsraOpExample"> | ||
112 | + delete from asra_op | ||
113 | + <if test="_parameter != null"> | ||
114 | + <include refid="Example_Where_Clause" /> | ||
115 | + </if> | ||
116 | + </delete> | ||
117 | + <insert id="insert" parameterType="com.zteits.oa.report.domain.AsraOp"> | ||
118 | + <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> | ||
119 | + SELECT LAST_INSERT_ID() | ||
120 | + </selectKey> | ||
121 | + insert into asra_op (login_code, login_password, op_name, | ||
122 | + email, role_id, city_id, | ||
123 | + city_name, parent_id, is_remind_email, | ||
124 | + data_state, create_empid, create_emp_name, | ||
125 | + create_date, modfiy_empid, modfiy_emp_name, | ||
126 | + modfiy_date, remark) | ||
127 | + values (#{loginCode,jdbcType=VARCHAR}, #{loginPassword,jdbcType=VARCHAR}, #{opName,jdbcType=VARCHAR}, | ||
128 | + #{email,jdbcType=VARCHAR}, #{roleId,jdbcType=BIGINT}, #{cityId,jdbcType=BIGINT}, | ||
129 | + #{cityName,jdbcType=VARCHAR}, #{parentId,jdbcType=BIGINT}, #{isRemindEmail,jdbcType=INTEGER}, | ||
130 | + #{dataState,jdbcType=INTEGER}, #{createEmpid,jdbcType=VARCHAR}, #{createEmpName,jdbcType=VARCHAR}, | ||
131 | + #{createDate,jdbcType=TIMESTAMP}, #{modfiyEmpid,jdbcType=VARCHAR}, #{modfiyEmpName,jdbcType=VARCHAR}, | ||
132 | + #{modfiyDate,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}) | ||
133 | + </insert> | ||
134 | + <insert id="insertSelective" parameterType="com.zteits.oa.report.domain.AsraOp"> | ||
135 | + <selectKey keyProperty="id" order="AFTER" resultType="java.lang.Long"> | ||
136 | + SELECT LAST_INSERT_ID() | ||
137 | + </selectKey> | ||
138 | + insert into asra_op | ||
139 | + <trim prefix="(" suffix=")" suffixOverrides=","> | ||
140 | + <if test="loginCode != null"> | ||
141 | + login_code, | ||
142 | + </if> | ||
143 | + <if test="loginPassword != null"> | ||
144 | + login_password, | ||
145 | + </if> | ||
146 | + <if test="opName != null"> | ||
147 | + op_name, | ||
148 | + </if> | ||
149 | + <if test="email != null"> | ||
150 | + email, | ||
151 | + </if> | ||
152 | + <if test="roleId != null"> | ||
153 | + role_id, | ||
154 | + </if> | ||
155 | + <if test="cityId != null"> | ||
156 | + city_id, | ||
157 | + </if> | ||
158 | + <if test="cityName != null"> | ||
159 | + city_name, | ||
160 | + </if> | ||
161 | + <if test="parentId != null"> | ||
162 | + parent_id, | ||
163 | + </if> | ||
164 | + <if test="isRemindEmail != null"> | ||
165 | + is_remind_email, | ||
166 | + </if> | ||
167 | + <if test="dataState != null"> | ||
168 | + data_state, | ||
169 | + </if> | ||
170 | + <if test="createEmpid != null"> | ||
171 | + create_empid, | ||
172 | + </if> | ||
173 | + <if test="createEmpName != null"> | ||
174 | + create_emp_name, | ||
175 | + </if> | ||
176 | + <if test="createDate != null"> | ||
177 | + create_date, | ||
178 | + </if> | ||
179 | + <if test="modfiyEmpid != null"> | ||
180 | + modfiy_empid, | ||
181 | + </if> | ||
182 | + <if test="modfiyEmpName != null"> | ||
183 | + modfiy_emp_name, | ||
184 | + </if> | ||
185 | + <if test="modfiyDate != null"> | ||
186 | + modfiy_date, | ||
187 | + </if> | ||
188 | + <if test="remark != null"> | ||
189 | + remark, | ||
190 | + </if> | ||
191 | + </trim> | ||
192 | + <trim prefix="values (" suffix=")" suffixOverrides=","> | ||
193 | + <if test="loginCode != null"> | ||
194 | + #{loginCode,jdbcType=VARCHAR}, | ||
195 | + </if> | ||
196 | + <if test="loginPassword != null"> | ||
197 | + #{loginPassword,jdbcType=VARCHAR}, | ||
198 | + </if> | ||
199 | + <if test="opName != null"> | ||
200 | + #{opName,jdbcType=VARCHAR}, | ||
201 | + </if> | ||
202 | + <if test="email != null"> | ||
203 | + #{email,jdbcType=VARCHAR}, | ||
204 | + </if> | ||
205 | + <if test="roleId != null"> | ||
206 | + #{roleId,jdbcType=BIGINT}, | ||
207 | + </if> | ||
208 | + <if test="cityId != null"> | ||
209 | + #{cityId,jdbcType=BIGINT}, | ||
210 | + </if> | ||
211 | + <if test="cityName != null"> | ||
212 | + #{cityName,jdbcType=VARCHAR}, | ||
213 | + </if> | ||
214 | + <if test="parentId != null"> | ||
215 | + #{parentId,jdbcType=BIGINT}, | ||
216 | + </if> | ||
217 | + <if test="isRemindEmail != null"> | ||
218 | + #{isRemindEmail,jdbcType=INTEGER}, | ||
219 | + </if> | ||
220 | + <if test="dataState != null"> | ||
221 | + #{dataState,jdbcType=INTEGER}, | ||
222 | + </if> | ||
223 | + <if test="createEmpid != null"> | ||
224 | + #{createEmpid,jdbcType=VARCHAR}, | ||
225 | + </if> | ||
226 | + <if test="createEmpName != null"> | ||
227 | + #{createEmpName,jdbcType=VARCHAR}, | ||
228 | + </if> | ||
229 | + <if test="createDate != null"> | ||
230 | + #{createDate,jdbcType=TIMESTAMP}, | ||
231 | + </if> | ||
232 | + <if test="modfiyEmpid != null"> | ||
233 | + #{modfiyEmpid,jdbcType=VARCHAR}, | ||
234 | + </if> | ||
235 | + <if test="modfiyEmpName != null"> | ||
236 | + #{modfiyEmpName,jdbcType=VARCHAR}, | ||
237 | + </if> | ||
238 | + <if test="modfiyDate != null"> | ||
239 | + #{modfiyDate,jdbcType=TIMESTAMP}, | ||
240 | + </if> | ||
241 | + <if test="remark != null"> | ||
242 | + #{remark,jdbcType=VARCHAR}, | ||
243 | + </if> | ||
244 | + </trim> | ||
245 | + </insert> | ||
246 | + <select id="countByExample" parameterType="com.zteits.oa.report.domain.AsraOpExample" resultType="java.lang.Long"> | ||
247 | + select count(*) from asra_op | ||
248 | + <if test="_parameter != null"> | ||
249 | + <include refid="Example_Where_Clause" /> | ||
250 | + </if> | ||
251 | + </select> | ||
252 | + <update id="updateByExampleSelective" parameterType="map"> | ||
253 | + update asra_op | ||
254 | + <set> | ||
255 | + <if test="record.id != null"> | ||
256 | + id = #{record.id,jdbcType=BIGINT}, | ||
257 | + </if> | ||
258 | + <if test="record.loginCode != null"> | ||
259 | + login_code = #{record.loginCode,jdbcType=VARCHAR}, | ||
260 | + </if> | ||
261 | + <if test="record.loginPassword != null"> | ||
262 | + login_password = #{record.loginPassword,jdbcType=VARCHAR}, | ||
263 | + </if> | ||
264 | + <if test="record.opName != null"> | ||
265 | + op_name = #{record.opName,jdbcType=VARCHAR}, | ||
266 | + </if> | ||
267 | + <if test="record.email != null"> | ||
268 | + email = #{record.email,jdbcType=VARCHAR}, | ||
269 | + </if> | ||
270 | + <if test="record.roleId != null"> | ||
271 | + role_id = #{record.roleId,jdbcType=BIGINT}, | ||
272 | + </if> | ||
273 | + <if test="record.cityId != null"> | ||
274 | + city_id = #{record.cityId,jdbcType=BIGINT}, | ||
275 | + </if> | ||
276 | + <if test="record.cityName != null"> | ||
277 | + city_name = #{record.cityName,jdbcType=VARCHAR}, | ||
278 | + </if> | ||
279 | + <if test="record.parentId != null"> | ||
280 | + parent_id = #{record.parentId,jdbcType=BIGINT}, | ||
281 | + </if> | ||
282 | + <if test="record.isRemindEmail != null"> | ||
283 | + is_remind_email = #{record.isRemindEmail,jdbcType=INTEGER}, | ||
284 | + </if> | ||
285 | + <if test="record.dataState != null"> | ||
286 | + data_state = #{record.dataState,jdbcType=INTEGER}, | ||
287 | + </if> | ||
288 | + <if test="record.createEmpid != null"> | ||
289 | + create_empid = #{record.createEmpid,jdbcType=VARCHAR}, | ||
290 | + </if> | ||
291 | + <if test="record.createEmpName != null"> | ||
292 | + create_emp_name = #{record.createEmpName,jdbcType=VARCHAR}, | ||
293 | + </if> | ||
294 | + <if test="record.createDate != null"> | ||
295 | + create_date = #{record.createDate,jdbcType=TIMESTAMP}, | ||
296 | + </if> | ||
297 | + <if test="record.modfiyEmpid != null"> | ||
298 | + modfiy_empid = #{record.modfiyEmpid,jdbcType=VARCHAR}, | ||
299 | + </if> | ||
300 | + <if test="record.modfiyEmpName != null"> | ||
301 | + modfiy_emp_name = #{record.modfiyEmpName,jdbcType=VARCHAR}, | ||
302 | + </if> | ||
303 | + <if test="record.modfiyDate != null"> | ||
304 | + modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP}, | ||
305 | + </if> | ||
306 | + <if test="record.remark != null"> | ||
307 | + remark = #{record.remark,jdbcType=VARCHAR}, | ||
308 | + </if> | ||
309 | + </set> | ||
310 | + <if test="_parameter != null"> | ||
311 | + <include refid="Update_By_Example_Where_Clause" /> | ||
312 | + </if> | ||
313 | + </update> | ||
314 | + <update id="updateByExample" parameterType="map"> | ||
315 | + update asra_op | ||
316 | + set id = #{record.id,jdbcType=BIGINT}, | ||
317 | + login_code = #{record.loginCode,jdbcType=VARCHAR}, | ||
318 | + login_password = #{record.loginPassword,jdbcType=VARCHAR}, | ||
319 | + op_name = #{record.opName,jdbcType=VARCHAR}, | ||
320 | + email = #{record.email,jdbcType=VARCHAR}, | ||
321 | + role_id = #{record.roleId,jdbcType=BIGINT}, | ||
322 | + city_id = #{record.cityId,jdbcType=BIGINT}, | ||
323 | + city_name = #{record.cityName,jdbcType=VARCHAR}, | ||
324 | + parent_id = #{record.parentId,jdbcType=BIGINT}, | ||
325 | + is_remind_email = #{record.isRemindEmail,jdbcType=INTEGER}, | ||
326 | + data_state = #{record.dataState,jdbcType=INTEGER}, | ||
327 | + create_empid = #{record.createEmpid,jdbcType=VARCHAR}, | ||
328 | + create_emp_name = #{record.createEmpName,jdbcType=VARCHAR}, | ||
329 | + create_date = #{record.createDate,jdbcType=TIMESTAMP}, | ||
330 | + modfiy_empid = #{record.modfiyEmpid,jdbcType=VARCHAR}, | ||
331 | + modfiy_emp_name = #{record.modfiyEmpName,jdbcType=VARCHAR}, | ||
332 | + modfiy_date = #{record.modfiyDate,jdbcType=TIMESTAMP}, | ||
333 | + remark = #{record.remark,jdbcType=VARCHAR} | ||
334 | + <if test="_parameter != null"> | ||
335 | + <include refid="Update_By_Example_Where_Clause" /> | ||
336 | + </if> | ||
337 | + </update> | ||
338 | + <update id="updateByPrimaryKeySelective" parameterType="com.zteits.oa.report.domain.AsraOp"> | ||
339 | + update asra_op | ||
340 | + <set> | ||
341 | + <if test="loginCode != null"> | ||
342 | + login_code = #{loginCode,jdbcType=VARCHAR}, | ||
343 | + </if> | ||
344 | + <if test="loginPassword != null"> | ||
345 | + login_password = #{loginPassword,jdbcType=VARCHAR}, | ||
346 | + </if> | ||
347 | + <if test="opName != null"> | ||
348 | + op_name = #{opName,jdbcType=VARCHAR}, | ||
349 | + </if> | ||
350 | + <if test="email != null"> | ||
351 | + email = #{email,jdbcType=VARCHAR}, | ||
352 | + </if> | ||
353 | + <if test="roleId != null"> | ||
354 | + role_id = #{roleId,jdbcType=BIGINT}, | ||
355 | + </if> | ||
356 | + <if test="cityId != null"> | ||
357 | + city_id = #{cityId,jdbcType=BIGINT}, | ||
358 | + </if> | ||
359 | + <if test="cityName != null"> | ||
360 | + city_name = #{cityName,jdbcType=VARCHAR}, | ||
361 | + </if> | ||
362 | + <if test="parentId != null"> | ||
363 | + parent_id = #{parentId,jdbcType=BIGINT}, | ||
364 | + </if> | ||
365 | + <if test="isRemindEmail != null"> | ||
366 | + is_remind_email = #{isRemindEmail,jdbcType=INTEGER}, | ||
367 | + </if> | ||
368 | + <if test="dataState != null"> | ||
369 | + data_state = #{dataState,jdbcType=INTEGER}, | ||
370 | + </if> | ||
371 | + <if test="createEmpid != null"> | ||
372 | + create_empid = #{createEmpid,jdbcType=VARCHAR}, | ||
373 | + </if> | ||
374 | + <if test="createEmpName != null"> | ||
375 | + create_emp_name = #{createEmpName,jdbcType=VARCHAR}, | ||
376 | + </if> | ||
377 | + <if test="createDate != null"> | ||
378 | + create_date = #{createDate,jdbcType=TIMESTAMP}, | ||
379 | + </if> | ||
380 | + <if test="modfiyEmpid != null"> | ||
381 | + modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR}, | ||
382 | + </if> | ||
383 | + <if test="modfiyEmpName != null"> | ||
384 | + modfiy_emp_name = #{modfiyEmpName,jdbcType=VARCHAR}, | ||
385 | + </if> | ||
386 | + <if test="modfiyDate != null"> | ||
387 | + modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}, | ||
388 | + </if> | ||
389 | + <if test="remark != null"> | ||
390 | + remark = #{remark,jdbcType=VARCHAR}, | ||
391 | + </if> | ||
392 | + </set> | ||
393 | + where id = #{id,jdbcType=BIGINT} | ||
394 | + </update> | ||
395 | + <update id="updateByPrimaryKey" parameterType="com.zteits.oa.report.domain.AsraOp"> | ||
396 | + update asra_op | ||
397 | + set login_code = #{loginCode,jdbcType=VARCHAR}, | ||
398 | + login_password = #{loginPassword,jdbcType=VARCHAR}, | ||
399 | + op_name = #{opName,jdbcType=VARCHAR}, | ||
400 | + email = #{email,jdbcType=VARCHAR}, | ||
401 | + role_id = #{roleId,jdbcType=BIGINT}, | ||
402 | + city_id = #{cityId,jdbcType=BIGINT}, | ||
403 | + city_name = #{cityName,jdbcType=VARCHAR}, | ||
404 | + parent_id = #{parentId,jdbcType=BIGINT}, | ||
405 | + is_remind_email = #{isRemindEmail,jdbcType=INTEGER}, | ||
406 | + data_state = #{dataState,jdbcType=INTEGER}, | ||
407 | + create_empid = #{createEmpid,jdbcType=VARCHAR}, | ||
408 | + create_emp_name = #{createEmpName,jdbcType=VARCHAR}, | ||
409 | + create_date = #{createDate,jdbcType=TIMESTAMP}, | ||
410 | + modfiy_empid = #{modfiyEmpid,jdbcType=VARCHAR}, | ||
411 | + modfiy_emp_name = #{modfiyEmpName,jdbcType=VARCHAR}, | ||
412 | + modfiy_date = #{modfiyDate,jdbcType=TIMESTAMP}, | ||
413 | + remark = #{remark,jdbcType=VARCHAR} | ||
414 | + where id = #{id,jdbcType=BIGINT} | ||
415 | + </update> | ||
416 | +</mapper> | ||
0 | \ No newline at end of file | 417 | \ No newline at end of file |
src/test/java/com/medical/framework/ZteitsDailySystemApplicationTests.java
0 → 100644
1 | +++ a/src/test/java/com/medical/framework/ZteitsDailySystemApplicationTests.java | ||
1 | +package com.medical.framework; | ||
2 | + | ||
3 | +import org.junit.Test; | ||
4 | +import org.junit.runner.RunWith; | ||
5 | +import org.springframework.boot.test.context.SpringBootTest; | ||
6 | +import org.springframework.test.context.junit4.SpringRunner; | ||
7 | + | ||
8 | +@RunWith(SpringRunner.class) | ||
9 | +@SpringBootTest | ||
10 | +public class ZteitsDailySystemApplicationTests { | ||
11 | + | ||
12 | + @Test | ||
13 | + public void contextLoads() { | ||
14 | + } | ||
15 | + | ||
16 | +} |