From e37ecd5da88fc14aed274580713ed8ceaed6b388 Mon Sep 17 00:00:00 2001
From: zy_Java <654600784@qq.com>
Date: Mon, 14 Dec 2020 09:58:31 +0800
Subject: [PATCH] =?UTF-8?q?20201214=E6=8B=86=E5=88=86=E7=99=BB=E5=BD=95?=
=?UTF-8?q?=E7=B3=BB=E7=BB=9F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pom.xml | 1 +
signin/.gitignore | 33 +
signin/mvnw | 322 ++++
signin/mvnw.cmd | 182 ++
signin/pom.xml | 69 +
.../com/ccsens/signin/SigninApplication.java | 24 +
.../ccsens/signin/api/DebugController.java | 29 +
.../com/ccsens/signin/api/UserController.java | 478 +++++
.../ccsens/signin/api/UserInfoController.java | 89 +
.../com/ccsens/signin/bean/dto/UserDto.java | 214 +++
.../com/ccsens/signin/bean/po/SysAuth.java | 128 ++
.../ccsens/signin/bean/po/SysAuthExample.java | 831 +++++++++
.../com/ccsens/signin/bean/po/SysUser.java | 205 +++
.../ccsens/signin/bean/po/SysUserExample.java | 1311 +++++++++++++
.../ccsens/signin/bean/po/SysUserInfo.java | 150 ++
.../signin/bean/po/SysUserInfoExample.java | 991 ++++++++++
.../com/ccsens/signin/bean/vo/UserVo.java | 165 ++
.../com/ccsens/signin/config/BeanConfig.java | 31 +
.../ccsens/signin/config/SpringConfig.java | 169 ++
.../signin/config/SwaggerConfigure.java | 56 +
.../exception/GetCurrentPartiException.java | 10 +
.../exception/GetCurrentUserException.java | 11 +
.../signin/exception/GetTaskException.java | 10 +
.../signin/exception/PartiLoginException.java | 10 +
.../ccsens/signin/exception/SmsException.java | 17 +
.../exception/TaskValidateException.java | 10 +
.../exception/UnAuthenticationException.java | 10 +
.../exception/UnAuthorizationException.java | 10 +
.../signin/exception/UserLoginException.java | 10 +
.../signin/intercept/MybatisInterceptor.java | 159 ++
.../ccsens/signin/persist/dao/SysAuthDao.java | 18 +
.../ccsens/signin/persist/dao/SysUserDao.java | 65 +
.../signin/persist/dao/SysUserInfoDao.java | 8 +
.../signin/persist/mapper/SysAuthMapper.java | 30 +
.../persist/mapper/SysUserInfoMapper.java | 30 +
.../signin/persist/mapper/SysUserMapper.java | 30 +
.../signin/service/IUserInfoService.java | 48 +
.../ccsens/signin/service/IUserService.java | 110 ++
.../signin/service/UserInfoService.java | 258 +++
.../ccsens/signin/service/UserService.java | 1621 +++++++++++++++++
.../com/ccsens/signin/util/TallConstant.java | 55 +
.../ccsens/signin/util/WxTemplateUtil.java | 168 ++
.../src/main/resources/application-common.yml | 28 +
signin/src/main/resources/application-dev.yml | 41 +
.../src/main/resources/application-prod.yml | 48 +
.../src/main/resources/application-test.yml | 51 +
signin/src/main/resources/application.yml | 5 +
signin/src/main/resources/business.yml | 9 +
signin/src/main/resources/druid-dev.yml | 34 +
signin/src/main/resources/druid-prod.yml | 34 +
signin/src/main/resources/druid-test.yml | 35 +
signin/src/main/resources/logback-spring.xml | 196 ++
.../main/resources/mapper_dao/SysAuthDao.xml | 15 +
.../main/resources/mapper_dao/SysUserDao.xml | 201 ++
.../resources/mapper_raw/SysAuthMapper.xml | 291 +++
.../mapper_raw/SysUserInfoMapper.xml | 323 ++++
.../resources/mapper_raw/SysUserMapper.xml | 400 ++++
.../main/resources/mybatis/mybatis-config.xml | 62 +
.../java/com/ccsens/tall/TallApplication.java | 1 -
59 files changed, 9949 insertions(+), 1 deletion(-)
create mode 100644 signin/.gitignore
create mode 100644 signin/mvnw
create mode 100644 signin/mvnw.cmd
create mode 100644 signin/pom.xml
create mode 100644 signin/src/main/java/com/ccsens/signin/SigninApplication.java
create mode 100644 signin/src/main/java/com/ccsens/signin/api/DebugController.java
create mode 100644 signin/src/main/java/com/ccsens/signin/api/UserController.java
create mode 100644 signin/src/main/java/com/ccsens/signin/api/UserInfoController.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/dto/UserDto.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/po/SysAuth.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/po/SysAuthExample.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/po/SysUser.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/po/SysUserExample.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfo.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfoExample.java
create mode 100644 signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java
create mode 100644 signin/src/main/java/com/ccsens/signin/config/BeanConfig.java
create mode 100644 signin/src/main/java/com/ccsens/signin/config/SpringConfig.java
create mode 100644 signin/src/main/java/com/ccsens/signin/config/SwaggerConfigure.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/GetCurrentPartiException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/GetCurrentUserException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/GetTaskException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/PartiLoginException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/SmsException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/TaskValidateException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/UnAuthenticationException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/UnAuthorizationException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/exception/UserLoginException.java
create mode 100644 signin/src/main/java/com/ccsens/signin/intercept/MybatisInterceptor.java
create mode 100644 signin/src/main/java/com/ccsens/signin/persist/dao/SysAuthDao.java
create mode 100644 signin/src/main/java/com/ccsens/signin/persist/dao/SysUserDao.java
create mode 100644 signin/src/main/java/com/ccsens/signin/persist/dao/SysUserInfoDao.java
create mode 100644 signin/src/main/java/com/ccsens/signin/persist/mapper/SysAuthMapper.java
create mode 100644 signin/src/main/java/com/ccsens/signin/persist/mapper/SysUserInfoMapper.java
create mode 100644 signin/src/main/java/com/ccsens/signin/persist/mapper/SysUserMapper.java
create mode 100644 signin/src/main/java/com/ccsens/signin/service/IUserInfoService.java
create mode 100644 signin/src/main/java/com/ccsens/signin/service/IUserService.java
create mode 100644 signin/src/main/java/com/ccsens/signin/service/UserInfoService.java
create mode 100644 signin/src/main/java/com/ccsens/signin/service/UserService.java
create mode 100644 signin/src/main/java/com/ccsens/signin/util/TallConstant.java
create mode 100644 signin/src/main/java/com/ccsens/signin/util/WxTemplateUtil.java
create mode 100644 signin/src/main/resources/application-common.yml
create mode 100644 signin/src/main/resources/application-dev.yml
create mode 100644 signin/src/main/resources/application-prod.yml
create mode 100644 signin/src/main/resources/application-test.yml
create mode 100644 signin/src/main/resources/application.yml
create mode 100644 signin/src/main/resources/business.yml
create mode 100644 signin/src/main/resources/druid-dev.yml
create mode 100644 signin/src/main/resources/druid-prod.yml
create mode 100644 signin/src/main/resources/druid-test.yml
create mode 100644 signin/src/main/resources/logback-spring.xml
create mode 100644 signin/src/main/resources/mapper_dao/SysAuthDao.xml
create mode 100644 signin/src/main/resources/mapper_dao/SysUserDao.xml
create mode 100644 signin/src/main/resources/mapper_raw/SysAuthMapper.xml
create mode 100644 signin/src/main/resources/mapper_raw/SysUserInfoMapper.xml
create mode 100644 signin/src/main/resources/mapper_raw/SysUserMapper.xml
create mode 100644 signin/src/main/resources/mybatis/mybatis-config.xml
diff --git a/pom.xml b/pom.xml
index fc2c6879..cb73d361 100644
--- a/pom.xml
+++ b/pom.xml
@@ -13,6 +13,7 @@
game
mt
wisdomcar
+ signin
diff --git a/signin/.gitignore b/signin/.gitignore
new file mode 100644
index 00000000..549e00a2
--- /dev/null
+++ b/signin/.gitignore
@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
diff --git a/signin/mvnw b/signin/mvnw
new file mode 100644
index 00000000..3c8a5537
--- /dev/null
+++ b/signin/mvnw
@@ -0,0 +1,322 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="$(/usr/libexec/java_home)"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+if [ -z "$M2_HOME" ]; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ]; do
+ ls=$(ls -ld "$PRG")
+ link=$(expr "$ls" : '.*-> \(.*\)$')
+ if expr "$link" : '/.*' >/dev/null; then
+ PRG="$link"
+ else
+ PRG="$(dirname "$PRG")/$link"
+ fi
+ done
+
+ saveddir=$(pwd)
+
+ M2_HOME=$(dirname "$PRG")/..
+
+ # make it fully qualified
+ M2_HOME=$(cd "$M2_HOME" && pwd)
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=$(cygpath --unix "$M2_HOME")
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="$( (
+ cd "$M2_HOME"
+ pwd
+ ))"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="$( (
+ cd "$JAVA_HOME"
+ pwd
+ ))"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr \"$javaExecutable\" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! $(expr "$readLink" : '\([^ ]*\)') = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname \"$javaExecutable\")"
+ javaExecutable="$(cd \"$javaHome\" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f \"$javaExecutable\")"
+ fi
+ javaHome="$(dirname \"$javaExecutable\")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(which java)"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.."
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' <"$1")"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(pwd)")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in wrapperUrl)
+ jarUrl="$value"
+ break
+ ;;
+ esac
+ done <"$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=$(cygpath --path --windows "$M2_HOME")
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/signin/mvnw.cmd b/signin/mvnw.cmd
new file mode 100644
index 00000000..c8d43372
--- /dev/null
+++ b/signin/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM https://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/signin/pom.xml b/signin/pom.xml
new file mode 100644
index 00000000..392f33fd
--- /dev/null
+++ b/signin/pom.xml
@@ -0,0 +1,69 @@
+
+
+
+ ccsenscloud
+ com.ccsens
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ signin
+
+ 1.8
+
+
+
+
+
+ cloudutil
+ com.ccsens
+ 1.0-SNAPSHOT
+
+
+
+ util
+ com.ccsens
+ 1.0-SNAPSHOT
+
+
+
+
+
+
+
+ org.mybatis.generator
+ mybatis-generator-maven-plugin
+ 1.3.7
+
+ ${basedir}/src/main/resources/mbg.xml
+ true
+
+
+
+ mysql
+ mysql-connector-java
+ 5.1.34
+
+
+
+
+ org.springframework.boot
+ spring-boot-maven-plugin
+
+ com.ccsens.signin.SigninApplication
+
+
+
+
+
+ repackage
+
+
+
+
+
+
+
+
+
diff --git a/signin/src/main/java/com/ccsens/signin/SigninApplication.java b/signin/src/main/java/com/ccsens/signin/SigninApplication.java
new file mode 100644
index 00000000..8c47efb2
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/SigninApplication.java
@@ -0,0 +1,24 @@
+package com.ccsens.signin;
+
+import org.mybatis.spring.annotation.MapperScan;
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+import org.springframework.boot.web.servlet.ServletComponentScan;
+import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
+import org.springframework.cloud.openfeign.EnableFeignClients;
+import org.springframework.scheduling.annotation.EnableAsync;
+
+@MapperScan(basePackages = {"com.ccsens.signin.persist.*"})
+@ServletComponentScan
+@EnableAsync
+//开启断路器功能
+@EnableCircuitBreaker
+@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign")
+@SpringBootApplication(scanBasePackages = "com.ccsens")
+public class SigninApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(SigninApplication.class, args);
+ }
+
+}
diff --git a/signin/src/main/java/com/ccsens/signin/api/DebugController.java b/signin/src/main/java/com/ccsens/signin/api/DebugController.java
new file mode 100644
index 00000000..846d1f23
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/api/DebugController.java
@@ -0,0 +1,29 @@
+package com.ccsens.wisdomcar.api;
+
+import com.ccsens.util.JsonResponse;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletRequest;
+
+@Api(tags = "DEBUG" , description = "DebugController | ")
+@RestController
+@RequestMapping("/debug")
+@Slf4j
+public class DebugController {
+
+ @ApiOperation(value = "/测试",notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse debug(HttpServletRequest request) throws Exception {
+
+ return JsonResponse.newInstance().ok("测试");
+ }
+
+}
diff --git a/signin/src/main/java/com/ccsens/signin/api/UserController.java b/signin/src/main/java/com/ccsens/signin/api/UserController.java
new file mode 100644
index 00000000..6955b390
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/api/UserController.java
@@ -0,0 +1,478 @@
+package com.ccsens.signin.api;
+
+import cn.hutool.core.collection.CollectionUtil;
+import cn.hutool.core.util.ObjectUtil;
+import cn.hutool.core.util.StrUtil;
+import cn.hutool.extra.servlet.ServletUtil;
+import com.ccsens.signin.bean.dto.UserDto;
+import com.ccsens.signin.bean.vo.UserVo;
+import com.ccsens.signin.exception.UserLoginException;
+import com.ccsens.signin.service.IUserService;
+import com.ccsens.util.CodeEnum;
+import com.ccsens.util.JsonResponse;
+import com.ccsens.util.JwtUtil;
+import com.ccsens.util.WebConstant;
+import io.jsonwebtoken.Claims;
+import io.jsonwebtoken.ExpiredJwtException;
+import io.jsonwebtoken.SignatureException;
+import io.swagger.annotations.*;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import java.util.Map;
+
+@Slf4j
+@Api(tags = "用户相关操作API", description = "UserController | 用户操作控制器类")
+@RestController
+@RequestMapping("/users")
+public class UserController {
+ @Autowired
+ private IUserService userService;
+
+// @Autowired
+// private IProMemberService proMemberService;
+
+
+ @ApiOperation(value = "/用户登录", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/signin", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse userSignin(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody(required = true) UserDto.UserSginin dto) throws Exception {
+ log.info("开始登陆:{}",dto);
+ Long start = System.currentTimeMillis();
+ WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(dto.getClient());
+ WebConstant.IDENTIFY_TYPE identify_type = WebConstant.IDENTIFY_TYPE.valueOf(dto.getType());
+ String identifier = dto.getData().getIdentifier();
+ String credential = dto.getData().getCredential();
+
+ //1.验证参数
+ switch (clientType) {
+
+ case Wxmp:
+ case H5:
+ case Android:
+ case IOS:
+ case WxEnterprise:
+ break;
+ default:
+ throw new UserLoginException(-1, String.format("Not supported client type: %1$d(%2$s)",
+ clientType.value, clientType));
+ }
+ log.info("登录场景");
+ switch (identify_type) {
+ case WxEnterprise:
+ case Wxmp:
+ case OAUTH2_Wx:
+ case Wx_H5:
+ case OAUTH2_WeiBo: {
+ break;
+ }
+ case Phone:
+ case Email:
+ case Account: {
+ if (StrUtil.isEmpty(credential)) {
+ String msg = "credential is required when type is %1$d(%2$s)";
+ throw new UserLoginException(-2, String.format(msg, identify_type.value, identify_type.phase));
+ }
+ break;
+ }
+ default: {
+ throw new UserLoginException(-2, String.format("Not supported signin type: %1$d(%2$s)",
+ identify_type.value, identify_type.phase));
+ }
+ }
+ log.info("登录方式");
+ //2.调用业务方法(注册/添加登陆记录)
+ UserVo.UserSign userSignVo = userService.signin(
+ clientType, identify_type, identifier, credential,
+ ServletUtil.getClientIP(request), dto.getRedirect());
+
+ //3.生成token(access_token,refresh_token)
+ if (ObjectUtil.isNotNull(userSignVo)) {
+ Map theMap = CollectionUtil.newHashMap();
+ theMap.put("authId", String.valueOf(userSignVo.getAuthId()));
+ UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType, identify_type,userSignVo, theMap);
+
+ Long end = System.currentTimeMillis();
+ log.info("本次登录使用了{}毫秒",end - start);
+ log.info("登录返回:{}",tokenBean);
+ return JsonResponse.newInstance().ok(tokenBean);
+ } else {
+ return JsonResponse.newInstance().fail("登陆信息不正确.");
+ }
+ }
+
+ @ApiOperation(value = "/发送验证码", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/smscode", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse getSmsCode(HttpServletRequest request,
+ @ApiParam @RequestParam String phone,
+// @ApiParam Integer client,
+ @RequestParam(required = true) String verificationCodeId, String verificationCodeValue) throws Exception {
+ log.info("发送验证码,手机号:{},图形验证码id:{},值:{}",phone,verificationCodeId,verificationCodeValue);
+ UserVo.SmsCode smsCodeVo = userService.getSignInSmsCode(phone,verificationCodeId,verificationCodeValue);
+
+ return JsonResponse.newInstance().ok(smsCodeVo);
+ }
+
+ @ApiOperation(value = "/注册", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/signup", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse registerUser(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody(required = true) UserDto.UserSignup userSignup) throws Exception {
+
+ UserVo.UserSign userSignVo = userService.registerUser(userSignup);
+ //3.生成token(access_token,refresh_token)
+ if (ObjectUtil.isNotNull(userSignVo)) {
+ WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1);
+ WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3);
+
+ Map theMap = CollectionUtil.newHashMap();
+ theMap.put("authId", String.valueOf(userSignVo.getAuthId()));
+ UserVo.TokenBean tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap);
+
+ return JsonResponse.newInstance().ok(tokenBean);
+ } else {
+ return JsonResponse.newInstance().fail("登陆信息不正确.");
+ }
+ }
+
+ @ApiOperation(value = "/注册(不需要手机号)", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/signup/system", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse systemRegister(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody(required = true) UserDto.UserSignupSystem userSignup) throws Exception {
+
+ UserVo.Account account = userService.systemRegister(userSignup);
+ return JsonResponse.newInstance().ok(account);
+ }
+
+ @ApiOperation(value = "/检查账号是否被注册", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/account", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse accounts(@ApiParam @RequestParam String account) throws Exception {
+
+ Boolean flag = userService.findAccount(account);
+ return JsonResponse.newInstance().ok(flag);
+ }
+
+
+ @ApiOperation(value = "/检查手机号是否被注册", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/phone", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse findPhone(@ApiParam @RequestParam String phone) throws Exception {
+
+ Boolean flag = userService.findPhone(phone);
+ return JsonResponse.newInstance().ok(flag);
+ }
+
+// @ApiOperation(value = "/修改账号信息",notes = "")
+// @ApiImplicitParams({
+// })
+// @RequestMapping(value="/account",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
+// public JsonResponse updateAccount(HttpServletRequest request,@ApiParam @RequestBody UserDto.Account account) throws Exception {
+// userService.updateAccount(account);
+// return JsonResponse.newInstance().ok();
+// }
+
+
+ @ApiOperation(value = "/微信合并已有账号",notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value="/merge",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse bindingPhone(HttpServletRequest request,
+ @ApiParam @RequestBody UserDto.WxMergePhone wxPhone) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ UserVo.UserSign userSignVo = userService.mergeByPhone(currentUserId,wxPhone);
+
+ UserVo.TokenBean tokenBean = null;
+ if (ObjectUtil.isNotNull(userSignVo)) {
+ WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1);
+ WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3);
+ Map theMap = CollectionUtil.newHashMap();
+ theMap.put("authId", String.valueOf(userSignVo.getAuthId()));
+ tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap);
+ }
+ return JsonResponse.newInstance().ok(tokenBean);
+ }
+
+ @ApiOperation(value = "/微信绑定账号",notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value="/binding",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse bindingPhone(HttpServletRequest request,
+ @ApiParam @RequestBody UserDto.WxBindingPhone wxPhone) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ UserVo.UserSign userSignVo = userService.bindingNewPhone(currentUserId,wxPhone);
+
+ UserVo.TokenBean tokenBean = null;
+ if (ObjectUtil.isNotNull(userSignVo)) {
+ WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1);
+ WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3);
+ Map theMap = CollectionUtil.newHashMap();
+ theMap.put("authId", String.valueOf(userSignVo.getAuthId()));
+ tokenBean = userService.getUserInfoAndToken(clientType,identifyType, userSignVo, theMap);
+ }
+ return JsonResponse.newInstance().ok(tokenBean);
+ }
+
+ @ApiOperation(value = "/更改绑定手机", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/upPhone", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updatePhone(HttpServletRequest request,
+ @ApiParam @RequestBody UserDto.UpdatePhone updatePhone) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ userService.updatePhone(currentUserId, updatePhone);
+ return JsonResponse.newInstance().ok();
+ }
+
+ @ApiOperation(value = "/修改用户信息", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/userInfo", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updateUserInfo(HttpServletRequest request,
+ @ApiParam @RequestBody UserDto.WxInfo userInfo) throws Exception {
+ log.info("修改用户信息,{}",userInfo);
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ UserVo.WxInfo wxInfo = userService.updateUserInfo(currentUserId, userInfo);
+ return JsonResponse.newInstance().ok(wxInfo);
+ }
+
+ @ApiOperation(value = "通过手机号修改密码", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/password", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updatePassword(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.UpdatePassword passwordDto) throws Exception {
+ userService.updatePassword(passwordDto);
+ return JsonResponse.newInstance().ok();
+ }
+
+ @ApiOperation(value = "通过账号密码修改密码", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/password/account", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updatePasswordByAccount(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.UpdatePasswordByAccount passwordDto) throws Exception {
+ userService.updatePasswordByAccount(passwordDto);
+ return JsonResponse.newInstance().ok();
+ }
+
+ @ApiOperation(value = "解绑手机号", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/relievePhone", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse relievePhone(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.WxBindingPhone phoneInfo) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ userService.relievePhone(currentUserId,phoneInfo);
+ return JsonResponse.newInstance().ok();
+ }
+
+ @ApiOperation(value = "直接更改手机号(不用输入密码)", notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/changePhone", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse changePhone(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.WxBindingPhone phoneInfo) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ UserVo.UserSign userSignVo = userService.changePhoneNotPassword(currentUserId,phoneInfo);
+ UserVo.TokenBean tokenBean = null;
+ if (ObjectUtil.isNotNull(userSignVo)) {
+ WebConstant.CLIENT_TYPE clientType = WebConstant.CLIENT_TYPE.valueOf(1);
+ WebConstant.IDENTIFY_TYPE identifyType = WebConstant.IDENTIFY_TYPE.valueOf(3);
+ Map theMap = CollectionUtil.newHashMap();
+ theMap.put("authId", String.valueOf(userSignVo.getAuthId()));
+ tokenBean = userService.getUserInfoAndToken(clientType, identifyType,userSignVo, theMap);
+ }
+ return JsonResponse.newInstance().ok(tokenBean);
+ }
+
+// @ApiOperation(value = "查询用户是否关注某个项目",notes = "")
+// @ApiImplicitParams({
+// @ApiImplicitParam(name="projectId",value = "projectId",required = true,paramType = "query")
+// })
+// @RequestMapping(value = "/attention",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+// public JsonResponse getIsAttention(HttpServletRequest request,
+// @RequestParam(required = true) Long projectId) throws Exception {
+// Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+//
+// Boolean isAttention = userService.getIsAttention(currentUserId,projectId);
+// return JsonResponse.newInstance().ok(isAttention);
+// }
+
+// @ApiOperation(value = "用户关注项目",notes = "")
+// @ApiImplicitParams({
+// @ApiImplicitParam(name="projectId",value = "projectId",required = true,paramType = "query")
+// })
+// @RequestMapping(value = "/attention",method = RequestMethod.POST,produces = {"application/json;charset=UTF-8"})
+// public JsonResponse userAttentionProject(HttpServletRequest request,
+// @ApiParam @Validated @RequestBody ProjectDto.ProjectIdDto projectIdDto) throws Exception {
+// Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+// userService.userAttentionProject(currentUserId,projectIdDto);
+// return JsonResponse.newInstance().ok();
+// }
+
+ @ApiOperation(value = "输入两个userid将两个账号合并(保留企业用户的id)",notes = "")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name="userId",value = "需要保留的userId",required = true,paramType = "query"),
+ @ApiImplicitParam(name="uselessId",value = "不需要保留的userId",required = true,paramType = "query")
+ })
+ @RequestMapping(value = "/mergeUserId",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse mergeUserId(HttpServletRequest request,
+ @RequestParam(required = true) Long userId,Long uselessId) throws Exception {
+ userService.mergeUserId(userId,uselessId);
+ return JsonResponse.newInstance().ok();
+ }
+
+
+ @ApiOperation(value = "通过userId获取token",notes = "")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name="userId",value = "用户id",required = true,paramType = "query")
+ })
+ @RequestMapping(value = "/userId",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse getTokenByUserId(HttpServletRequest request,
+ @RequestParam(required = true) Long userId) throws Exception {
+
+ UserVo.TokenBean tokenBean = userService.getTokenByUserId(userId);
+ return JsonResponse.newInstance().ok(tokenBean);
+ }
+
+
+ /*===============================================================================================*/
+ @ApiOperation(value = "根据token获取userId",notes = "")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name="token",value = "token",required = true,paramType = "query")
+ })
+ @RequestMapping(value = "claims",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public String getNodeMessage(@RequestParam(required = true) String token) throws Exception {
+ log.info("根据token获取userId,token:{}",token);
+ //验证token是否有效
+ String userId = null;
+ Claims claims = null;
+ boolean flag = false;
+ if (token != null) {
+ try {
+ claims = JwtUtil.parseJWT(token, WebConstant.JWT_ACCESS_TOKEN_SECERT);
+ flag = true;
+ }catch(SignatureException e){
+ flag = false;
+ }catch(ExpiredJwtException e){
+ flag = false;
+ }catch(Exception e){
+ e.printStackTrace();
+ flag = false;
+ }
+ }
+ if(flag){
+ userId = claims.getSubject();
+ }
+ return userId;
+ }
+
+
+ @ApiOperation(value = "根据token字符串获取userId",notes = "")
+ @ApiImplicitParams({
+ @ApiImplicitParam(name="token",value = "token",required = true,paramType = "query")
+ })
+ @RequestMapping(value = "token",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse getUserByToken(@RequestParam(required = true) String token) throws Exception {
+ long start = System.currentTimeMillis();
+ UserVo.TokenToUserId tokenToUserId = new UserVo.TokenToUserId();
+
+ // 验证token是否存在
+ String tokenStr = token;
+ if (tokenStr == null || !tokenStr.startsWith(WebConstant.HEADER_KEY_TOKEN_PREFIX)) {
+ return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
+ }
+ String userToken = tokenStr.substring(WebConstant.HEADER_KEY_TOKEN_PREFIX.length());
+
+ //验证token是否有效
+ Claims claims = null;
+ try {
+ claims = JwtUtil.parseJWT(userToken, WebConstant.JWT_ACCESS_TOKEN_SECERT);
+ }catch(Exception e){
+ return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
+ }
+ //验证用户存根
+ if(userService.tokenNotExistInCache(Long.valueOf(claims.getSubject()))){
+ return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
+ }
+// //验证用户是否禁用
+// SysUser user = userService.getUserById(Long.valueOf(claims.getSubject()));
+// if(user.getRecStatus() == WebConstant.REC_STATUS.Disabled.value){
+// return JsonResponse.newInstance().ok(CodeEnum.NOT_LOGIN);
+// }
+
+ tokenToUserId.setId(Long.valueOf(claims.getSubject()));
+ long end = System.currentTimeMillis();
+ log.info("根据token查找userId用时:{}",end - start);
+ return JsonResponse.newInstance().ok(tokenToUserId);
+ }
+
+
+// /**
+// * 查询user在项目中的member信息
+// */
+// @RequestMapping(value = "member", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+// public JsonResponse getMemberByUserIdAndProjectId( Long userId,Long projectId) throws Exception {
+//
+// MemberVo.MemberInfo memberInfo = proMemberService.getMemberByUserIdAndProjectId(userId,projectId);
+// return JsonResponse.newInstance().ok(memberInfo);
+// }
+
+
+// /**
+// * 查询user在项目中的member信息
+// */
+// @RequestMapping(value = "memberByTask", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+// public JsonResponse getMemberByUserIdAndTaskId( Long userId,Long taskId) throws Exception {
+// log.info("根据任务ID和用户ID查询用户信息:{}-{}", userId, taskId);
+// MemberVo.MemberInfo memberInfo = proMemberService.getMemberByUserIdAndTaskId(userId,taskId);
+// log.info("用户信息:{}", memberInfo);
+// return JsonResponse.newInstance().ok(memberInfo);
+// }
+
+// /**
+// * 查询user的信息
+// */
+// @RequestMapping(value = "getUserInfo", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+// public JsonResponse getUserInfoByUserId(Long userId) throws Exception {
+//
+// MemberVo.MemberInfo memberInfo = proMemberService.getUserInfoByUserId(userId);
+// return JsonResponse.newInstance().ok(memberInfo);
+// }
+
+// /**
+// * 获取项目下的所有成员ID
+// */
+// @RequestMapping(value = "allMemberAll", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+// public List getMemberIdByProjectId(Long projectId) throws Exception {
+//
+// List memberIdInfo = proMemberService.getMemberIdByProjectId(projectId);
+// return memberIdInfo;
+// }
+
+ @ApiOperation(value = "图片验证码")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/code", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse vertifyCode(HttpServletRequest request, HttpServletResponse response) throws Exception {
+ UserVo.VerificationCode vertifyCode = userService.getVertifyCode();
+// ImageCodeGeneratorUtil.generateCodeImage(response.getOutputStream(), (String) codeMap.get("imageCode"), 200, 70);
+ return JsonResponse.newInstance().ok(vertifyCode);
+ }
+}
+
+
diff --git a/signin/src/main/java/com/ccsens/signin/api/UserInfoController.java b/signin/src/main/java/com/ccsens/signin/api/UserInfoController.java
new file mode 100644
index 00000000..cb8d9287
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/api/UserInfoController.java
@@ -0,0 +1,89 @@
+package com.ccsens.signin.api;
+
+import com.ccsens.signin.bean.dto.UserDto;
+import com.ccsens.signin.bean.vo.UserVo;
+import com.ccsens.signin.service.IUserInfoService;
+import com.ccsens.util.JsonResponse;
+import com.ccsens.util.WebConstant;
+import io.jsonwebtoken.Claims;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.*;
+
+import javax.annotation.Resource;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.Part;
+
+/**
+ * @author 逗
+ */
+@Api(tags = "用户详细信息操作API")
+@RestController
+@RequestMapping("/users/info")
+public class UserInfoController {
+ @Resource
+ private IUserInfoService userInfoService;
+
+ @ApiOperation(value = "修改登录账号")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/account", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updateAccount(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.UpdateAccount updateAccount) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ userInfoService.updateAccount(currentUserId, updateAccount);
+ return JsonResponse.newInstance().ok();
+ }
+
+
+ @ApiOperation(value = "修改昵称")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/nickname", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updateNickname(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.UpdateNickname updateNickname) throws Exception {
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ userInfoService.updateNickname(currentUserId, updateNickname);
+ return JsonResponse.newInstance().ok();
+ }
+
+ @ApiOperation(value = "上传头像")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "/avatarUrl", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse uploadAvatarUrl(HttpServletRequest request,
+ @RequestParam(required = true) Part file) throws Exception {
+
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ userInfoService.uploadAvatarUrl(currentUserId,file);
+ return JsonResponse.newInstance().ok();
+ }
+
+ @ApiOperation(value = "查找用户详细信息")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse selectUserInfo(HttpServletRequest request) throws Exception {
+
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ UserVo.SelectUserInfo selectUserInfo = userInfoService.selectUserInfo(currentUserId);
+ return JsonResponse.newInstance().ok(selectUserInfo);
+ }
+
+ @ApiOperation(value = "修改用户详细信息")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse updateUserInfo(HttpServletRequest request,
+ @ApiParam @Validated @RequestBody UserDto.UpdateUserInfo updateUserInfo) throws Exception {
+
+ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject());
+ UserVo.SelectUserInfo selectUserInfo = userInfoService.updateUserInfo(currentUserId,updateUserInfo);
+ return JsonResponse.newInstance().ok(selectUserInfo);
+ }
+
+
+}
diff --git a/signin/src/main/java/com/ccsens/signin/bean/dto/UserDto.java b/signin/src/main/java/com/ccsens/signin/bean/dto/UserDto.java
new file mode 100644
index 00000000..4a179c92
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/dto/UserDto.java
@@ -0,0 +1,214 @@
+package com.ccsens.signin.bean.dto;
+
+import com.ccsens.util.WebConstant;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import javax.validation.constraints.NotEmpty;
+import javax.validation.constraints.NotNull;
+import javax.validation.constraints.Pattern;
+
+/**
+ * @author 逗
+ */
+@Data
+public class UserDto {
+ @Data
+ @ApiModel
+ public static class UserSginin{
+ @lombok.Data
+ @ApiModel
+ public static class Data{
+ @ApiModelProperty("用户标识|用户名")
+ @NotEmpty(message = "identifier is required.")
+ private String identifier;
+ @ApiModelProperty("用户凭据|密码")
+ private String credential;
+ }
+ @ApiModelProperty("登录客户端:0-wxmp,1-H5,2-Android,3-IOS,4-WxEnterprise")
+ @NotNull(message = "client is required.")
+ private Integer client;
+ @ApiModelProperty("登录类型:0-wxmp,1-phone,2-email,3-accounts,4-OAUTH2_Wx,5-Wx_H5,6-OAUTH2_WeiBo, 7-Wx_Enterprise")
+ @NotNull(message = "type is required.")
+ private Integer type;
+ @ApiModelProperty("登录信息")
+ private Data data;
+ @ApiModelProperty("通知消息")
+ private String redirect;
+ }
+
+ @Data
+ @ApiModel
+ public static class UpdatePhone{
+ @ApiModelProperty("旧手机号")
+ private String oldPhone;
+ @ApiModelProperty("密码")
+ private String password;
+ @ApiModelProperty("新手机号")
+ private String newPhone;
+ @ApiModelProperty("新手机号的验证码")
+ private String code;
+ }
+
+ @Data
+ @ApiModel
+ public static class Account{
+ @ApiModelProperty("用户id")
+ private Long id;
+ @ApiModelProperty("用户名")
+ private String username;
+ @ApiModelProperty("密码")
+ private String password;
+ }
+ @Data
+ @ApiModel
+ public static class UpdatePassword{
+ @ApiModelProperty("手机号")
+ @NotEmpty(message = "手机号不能为空")
+ @Pattern(regexp="^[1]([3-9])[0-9]{9}$",message="请输入正确的手机号")
+ private String phone;
+ @ApiModelProperty("验证码")
+ @NotEmpty(message = "验证码不能为空.")
+ private String code;
+ @ApiModelProperty("密码")
+ @NotEmpty(message = "密码不能为空")
+ @Pattern(regexp="^[a-zA-Z0-9._-]{6,20}$",message="密码长度需在6~20之间,不能使用汉字,不能包含特殊字符")
+ private String password;
+ }
+
+ @Data
+ @ApiModel("通过账号修改密码")
+ public static class UpdatePasswordByAccount{
+ @ApiModelProperty("账号")
+ @NotEmpty(message = "账号不能为空")
+ private String account;
+ @ApiModelProperty("旧密码")
+ @NotEmpty(message = "旧密码不能为空.")
+ @Pattern(regexp="^[a-zA-Z0-9._-]{6,20}$",message="密码长度需在6~20之间,不能使用汉字,不能包含特殊字符")
+ private String passwordOld;
+ @ApiModelProperty("新密码")
+ @NotEmpty(message = "新密码不能为空")
+ @Pattern(regexp="^[a-zA-Z0-9._-]{6,20}$",message="密码长度需在6~20之间,不能使用汉字,不能包含特殊字符")
+ private String passwordNew;
+ }
+
+ @Data
+ @ApiModel("手机号注册")
+ public static class UserSignup{
+ @ApiModelProperty("手机号")
+ @NotEmpty(message = "手机号不能为空")
+ @Pattern(regexp="^[1]([3-9])[0-9]{9}$",message="请输入正确的手机号")
+ private String phone;
+ @ApiModelProperty("验证码")
+ @NotEmpty(message = "验证码不能为空.")
+ private String smsCode;
+ @ApiModelProperty("账号")
+ @NotEmpty(message = "账号不能为空.")
+ @Pattern(regexp="^[a-zA-Z0-9._-]{2,20}$",message="账号长度需在2~20之间,不能使用汉字,不能包含特殊字符")
+ private String account;
+ @ApiModelProperty("密码")
+ @NotEmpty(message = "密码不能为空")
+ @Pattern(regexp="^[a-zA-Z0-9._-]{6,20}$",message="密码长度需在6~20之间,不能使用汉字,不能包含特殊字符")
+ private String password;
+ @ApiModelProperty("来源 0:默认注册,1:跳绳")
+ private byte source = WebConstant.Regist.SOURCE;
+ }
+
+ @Data
+ @ApiModel("注册")
+ public static class UserSignupSystem{
+ @ApiModelProperty("账号")
+ private String account;
+ @ApiModelProperty("密码")
+ private String password;
+ }
+ @Data
+ @ApiModel
+ public static class WxMergePhone{
+ @ApiModelProperty("手机号")
+ private String phone;
+ @ApiModelProperty("合并方式 0直接合并 1不合并以前的信息")
+ private int isMerge;
+ }
+
+ @Data
+ @ApiModel
+ public static class WxBindingPhone{
+ @ApiModelProperty("手机号")
+ private String phone;
+ @ApiModelProperty("手机验证码")
+ private String smsCode;
+ }
+
+ @Data
+ @ApiModel
+ public static class WxInfo{
+// @ApiModelProperty("用户id")
+// private String userId;
+ @ApiModelProperty("微信名")
+ private String nickname;
+ @ApiModelProperty("微信头像")
+ private String headImgUrl;
+ @ApiModelProperty("性别")
+ private Byte sex;
+ @ApiModelProperty("省")
+ private String province;
+ @ApiModelProperty("市")
+ private String city;
+ @ApiModelProperty("国家")
+ private String country;
+ @ApiModelProperty("语言")
+ private String language;
+ }
+
+ @Data
+ @ApiModel("修改登录账号")
+ public static class UpdateAccount{
+ @ApiModelProperty("手机号")
+ @NotEmpty(message = "手机号不能为空")
+ @Pattern(regexp="^[1]([3-9])[0-9]{9}$",message="请输入正确的手机号")
+ private String phone;
+ @ApiModelProperty("验证码")
+ @NotEmpty(message = "验证码不能为空.")
+ private String smsCode;
+ @ApiModelProperty("账号")
+ @NotEmpty(message = "新账号不能为空.")
+ private String account;
+ @ApiModelProperty("密码,有账号登录信息则验证密码,没有则设为新密码")
+ @NotEmpty(message = "密码不能为空")
+ private String password;
+ }
+
+ @Data
+ @ApiModel("修改昵称")
+ public static class UpdateNickname{
+ @ApiModelProperty("昵称")
+ @NotEmpty(message = "新昵称不能为空.")
+ private String nickname;
+ }
+
+ @Data
+ @ApiModel("修改个人详细信息")
+ public static class UpdateUserInfo{
+ @NotNull
+ @ApiModelProperty("userId")
+ private Long id;
+ @ApiModelProperty("昵称")
+ private String nickname;
+ @ApiModelProperty("个人签名")
+ private String signature;
+ @ApiModelProperty("个人简介")
+ private String introduction;
+ @ApiModelProperty("生日")
+ private String birthday;
+ @ApiModelProperty("所在地")
+ private String address;
+ @ApiModelProperty("网页")
+ private String webPath;
+ @ApiModelProperty("公司")
+ private String company;
+ @ApiModelProperty("职位")
+ private String position;
+ }
+}
diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysAuth.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysAuth.java
new file mode 100644
index 00000000..cf818110
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/po/SysAuth.java
@@ -0,0 +1,128 @@
+package com.ccsens.signin.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class SysAuth implements Serializable {
+ private Long id;
+
+ private Long userId;
+
+ private Byte identifyType;
+
+ private String identifier;
+
+ private String credential;
+
+ private String salt;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private Byte registerType;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public Byte getIdentifyType() {
+ return identifyType;
+ }
+
+ public void setIdentifyType(Byte identifyType) {
+ this.identifyType = identifyType;
+ }
+
+ public String getIdentifier() {
+ return identifier;
+ }
+
+ public void setIdentifier(String identifier) {
+ this.identifier = identifier == null ? null : identifier.trim();
+ }
+
+ public String getCredential() {
+ return credential;
+ }
+
+ public void setCredential(String credential) {
+ this.credential = credential == null ? null : credential.trim();
+ }
+
+ public String getSalt() {
+ return salt;
+ }
+
+ public void setSalt(String salt) {
+ this.salt = salt == null ? null : salt.trim();
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ public Byte getRegisterType() {
+ return registerType;
+ }
+
+ public void setRegisterType(Byte registerType) {
+ this.registerType = registerType;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", userId=").append(userId);
+ sb.append(", identifyType=").append(identifyType);
+ sb.append(", identifier=").append(identifier);
+ sb.append(", credential=").append(credential);
+ sb.append(", salt=").append(salt);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append(", registerType=").append(registerType);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysAuthExample.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysAuthExample.java
new file mode 100644
index 00000000..5d8e4bfa
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/po/SysAuthExample.java
@@ -0,0 +1,831 @@
+package com.ccsens.signin.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SysAuthExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SysAuthExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Long value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Long value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Long value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Long value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Long value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Long value1, Long value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Long value1, Long value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeIsNull() {
+ addCriterion("identify_type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeIsNotNull() {
+ addCriterion("identify_type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeEqualTo(Byte value) {
+ addCriterion("identify_type =", value, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeNotEqualTo(Byte value) {
+ addCriterion("identify_type <>", value, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeGreaterThan(Byte value) {
+ addCriterion("identify_type >", value, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeGreaterThanOrEqualTo(Byte value) {
+ addCriterion("identify_type >=", value, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeLessThan(Byte value) {
+ addCriterion("identify_type <", value, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeLessThanOrEqualTo(Byte value) {
+ addCriterion("identify_type <=", value, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeIn(List values) {
+ addCriterion("identify_type in", values, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeNotIn(List values) {
+ addCriterion("identify_type not in", values, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeBetween(Byte value1, Byte value2) {
+ addCriterion("identify_type between", value1, value2, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifyTypeNotBetween(Byte value1, Byte value2) {
+ addCriterion("identify_type not between", value1, value2, "identifyType");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierIsNull() {
+ addCriterion("identifier is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierIsNotNull() {
+ addCriterion("identifier is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierEqualTo(String value) {
+ addCriterion("identifier =", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierNotEqualTo(String value) {
+ addCriterion("identifier <>", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierGreaterThan(String value) {
+ addCriterion("identifier >", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierGreaterThanOrEqualTo(String value) {
+ addCriterion("identifier >=", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierLessThan(String value) {
+ addCriterion("identifier <", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierLessThanOrEqualTo(String value) {
+ addCriterion("identifier <=", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierLike(String value) {
+ addCriterion("identifier like", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierNotLike(String value) {
+ addCriterion("identifier not like", value, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierIn(List values) {
+ addCriterion("identifier in", values, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierNotIn(List values) {
+ addCriterion("identifier not in", values, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierBetween(String value1, String value2) {
+ addCriterion("identifier between", value1, value2, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdentifierNotBetween(String value1, String value2) {
+ addCriterion("identifier not between", value1, value2, "identifier");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialIsNull() {
+ addCriterion("credential is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialIsNotNull() {
+ addCriterion("credential is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialEqualTo(String value) {
+ addCriterion("credential =", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialNotEqualTo(String value) {
+ addCriterion("credential <>", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialGreaterThan(String value) {
+ addCriterion("credential >", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialGreaterThanOrEqualTo(String value) {
+ addCriterion("credential >=", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialLessThan(String value) {
+ addCriterion("credential <", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialLessThanOrEqualTo(String value) {
+ addCriterion("credential <=", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialLike(String value) {
+ addCriterion("credential like", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialNotLike(String value) {
+ addCriterion("credential not like", value, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialIn(List values) {
+ addCriterion("credential in", values, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialNotIn(List values) {
+ addCriterion("credential not in", values, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialBetween(String value1, String value2) {
+ addCriterion("credential between", value1, value2, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andCredentialNotBetween(String value1, String value2) {
+ addCriterion("credential not between", value1, value2, "credential");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltIsNull() {
+ addCriterion("salt is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltIsNotNull() {
+ addCriterion("salt is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltEqualTo(String value) {
+ addCriterion("salt =", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotEqualTo(String value) {
+ addCriterion("salt <>", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltGreaterThan(String value) {
+ addCriterion("salt >", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltGreaterThanOrEqualTo(String value) {
+ addCriterion("salt >=", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltLessThan(String value) {
+ addCriterion("salt <", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltLessThanOrEqualTo(String value) {
+ addCriterion("salt <=", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltLike(String value) {
+ addCriterion("salt like", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotLike(String value) {
+ addCriterion("salt not like", value, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltIn(List values) {
+ addCriterion("salt in", values, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotIn(List values) {
+ addCriterion("salt not in", values, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltBetween(String value1, String value2) {
+ addCriterion("salt between", value1, value2, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andSaltNotBetween(String value1, String value2) {
+ addCriterion("salt not between", value1, value2, "salt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List values) {
+ addCriterion("created_at in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotIn(List values) {
+ addCriterion("created_at not in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtBetween(Date value1, Date value2) {
+ addCriterion("created_at between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("created_at not between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNull() {
+ addCriterion("updated_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNotNull() {
+ addCriterion("updated_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtEqualTo(Date value) {
+ addCriterion("updated_at =", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotEqualTo(Date value) {
+ addCriterion("updated_at <>", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThan(Date value) {
+ addCriterion("updated_at >", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated_at >=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThan(Date value) {
+ addCriterion("updated_at <", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("updated_at <=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIn(List values) {
+ addCriterion("updated_at in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotIn(List values) {
+ addCriterion("updated_at not in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtBetween(Date value1, Date value2) {
+ addCriterion("updated_at between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("updated_at not between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNull() {
+ addCriterion("rec_status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNotNull() {
+ addCriterion("rec_status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusEqualTo(Byte value) {
+ addCriterion("rec_status =", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotEqualTo(Byte value) {
+ addCriterion("rec_status <>", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThan(Byte value) {
+ addCriterion("rec_status >", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
+ addCriterion("rec_status >=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThan(Byte value) {
+ addCriterion("rec_status <", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
+ addCriterion("rec_status <=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIn(List values) {
+ addCriterion("rec_status in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotIn(List values) {
+ addCriterion("rec_status not in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status not between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeIsNull() {
+ addCriterion("register_type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeIsNotNull() {
+ addCriterion("register_type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeEqualTo(Byte value) {
+ addCriterion("register_type =", value, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeNotEqualTo(Byte value) {
+ addCriterion("register_type <>", value, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeGreaterThan(Byte value) {
+ addCriterion("register_type >", value, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeGreaterThanOrEqualTo(Byte value) {
+ addCriterion("register_type >=", value, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeLessThan(Byte value) {
+ addCriterion("register_type <", value, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeLessThanOrEqualTo(Byte value) {
+ addCriterion("register_type <=", value, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeIn(List values) {
+ addCriterion("register_type in", values, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeNotIn(List values) {
+ addCriterion("register_type not in", values, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeBetween(Byte value1, Byte value2) {
+ addCriterion("register_type between", value1, value2, "registerType");
+ return (Criteria) this;
+ }
+
+ public Criteria andRegisterTypeNotBetween(Byte value1, Byte value2) {
+ addCriterion("register_type not between", value1, value2, "registerType");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysUser.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysUser.java
new file mode 100644
index 00000000..5c2b1e4f
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/po/SysUser.java
@@ -0,0 +1,205 @@
+package com.ccsens.signin.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class SysUser implements Serializable {
+ private Long id;
+
+ private Long gradeId;
+
+ private String avatarUrl;
+
+ private String nickname;
+
+ private Byte gender;
+
+ private String country;
+
+ private String province;
+
+ private String city;
+
+ private String language;
+
+ private String phone;
+
+ private String wechat;
+
+ private String email;
+
+ private Long balance;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private Byte source;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getGradeId() {
+ return gradeId;
+ }
+
+ public void setGradeId(Long gradeId) {
+ this.gradeId = gradeId;
+ }
+
+ public String getAvatarUrl() {
+ return avatarUrl;
+ }
+
+ public void setAvatarUrl(String avatarUrl) {
+ this.avatarUrl = avatarUrl == null ? null : avatarUrl.trim();
+ }
+
+ public String getNickname() {
+ return nickname;
+ }
+
+ public void setNickname(String nickname) {
+ this.nickname = nickname == null ? null : nickname.trim();
+ }
+
+ public Byte getGender() {
+ return gender;
+ }
+
+ public void setGender(Byte gender) {
+ this.gender = gender;
+ }
+
+ public String getCountry() {
+ return country;
+ }
+
+ public void setCountry(String country) {
+ this.country = country == null ? null : country.trim();
+ }
+
+ public String getProvince() {
+ return province;
+ }
+
+ public void setProvince(String province) {
+ this.province = province == null ? null : province.trim();
+ }
+
+ public String getCity() {
+ return city;
+ }
+
+ public void setCity(String city) {
+ this.city = city == null ? null : city.trim();
+ }
+
+ public String getLanguage() {
+ return language;
+ }
+
+ public void setLanguage(String language) {
+ this.language = language == null ? null : language.trim();
+ }
+
+ public String getPhone() {
+ return phone;
+ }
+
+ public void setPhone(String phone) {
+ this.phone = phone == null ? null : phone.trim();
+ }
+
+ public String getWechat() {
+ return wechat;
+ }
+
+ public void setWechat(String wechat) {
+ this.wechat = wechat == null ? null : wechat.trim();
+ }
+
+ public String getEmail() {
+ return email;
+ }
+
+ public void setEmail(String email) {
+ this.email = email == null ? null : email.trim();
+ }
+
+ public Long getBalance() {
+ return balance;
+ }
+
+ public void setBalance(Long balance) {
+ this.balance = balance;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ public Byte getSource() {
+ return source;
+ }
+
+ public void setSource(Byte source) {
+ this.source = source;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", gradeId=").append(gradeId);
+ sb.append(", avatarUrl=").append(avatarUrl);
+ sb.append(", nickname=").append(nickname);
+ sb.append(", gender=").append(gender);
+ sb.append(", country=").append(country);
+ sb.append(", province=").append(province);
+ sb.append(", city=").append(city);
+ sb.append(", language=").append(language);
+ sb.append(", phone=").append(phone);
+ sb.append(", wechat=").append(wechat);
+ sb.append(", email=").append(email);
+ sb.append(", balance=").append(balance);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append(", source=").append(source);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysUserExample.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserExample.java
new file mode 100644
index 00000000..7c040d20
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserExample.java
@@ -0,0 +1,1311 @@
+package com.ccsens.signin.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SysUserExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SysUserExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdIsNull() {
+ addCriterion("grade_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdIsNotNull() {
+ addCriterion("grade_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdEqualTo(Long value) {
+ addCriterion("grade_id =", value, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdNotEqualTo(Long value) {
+ addCriterion("grade_id <>", value, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdGreaterThan(Long value) {
+ addCriterion("grade_id >", value, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("grade_id >=", value, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdLessThan(Long value) {
+ addCriterion("grade_id <", value, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdLessThanOrEqualTo(Long value) {
+ addCriterion("grade_id <=", value, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdIn(List values) {
+ addCriterion("grade_id in", values, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdNotIn(List values) {
+ addCriterion("grade_id not in", values, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdBetween(Long value1, Long value2) {
+ addCriterion("grade_id between", value1, value2, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andGradeIdNotBetween(Long value1, Long value2) {
+ addCriterion("grade_id not between", value1, value2, "gradeId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlIsNull() {
+ addCriterion("avatar_url is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlIsNotNull() {
+ addCriterion("avatar_url is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlEqualTo(String value) {
+ addCriterion("avatar_url =", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlNotEqualTo(String value) {
+ addCriterion("avatar_url <>", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlGreaterThan(String value) {
+ addCriterion("avatar_url >", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlGreaterThanOrEqualTo(String value) {
+ addCriterion("avatar_url >=", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlLessThan(String value) {
+ addCriterion("avatar_url <", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlLessThanOrEqualTo(String value) {
+ addCriterion("avatar_url <=", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlLike(String value) {
+ addCriterion("avatar_url like", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlNotLike(String value) {
+ addCriterion("avatar_url not like", value, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlIn(List values) {
+ addCriterion("avatar_url in", values, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlNotIn(List values) {
+ addCriterion("avatar_url not in", values, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlBetween(String value1, String value2) {
+ addCriterion("avatar_url between", value1, value2, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andAvatarUrlNotBetween(String value1, String value2) {
+ addCriterion("avatar_url not between", value1, value2, "avatarUrl");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameIsNull() {
+ addCriterion("nickname is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameIsNotNull() {
+ addCriterion("nickname is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameEqualTo(String value) {
+ addCriterion("nickname =", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotEqualTo(String value) {
+ addCriterion("nickname <>", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameGreaterThan(String value) {
+ addCriterion("nickname >", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameGreaterThanOrEqualTo(String value) {
+ addCriterion("nickname >=", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameLessThan(String value) {
+ addCriterion("nickname <", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameLessThanOrEqualTo(String value) {
+ addCriterion("nickname <=", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameLike(String value) {
+ addCriterion("nickname like", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotLike(String value) {
+ addCriterion("nickname not like", value, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameIn(List values) {
+ addCriterion("nickname in", values, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotIn(List values) {
+ addCriterion("nickname not in", values, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameBetween(String value1, String value2) {
+ addCriterion("nickname between", value1, value2, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andNicknameNotBetween(String value1, String value2) {
+ addCriterion("nickname not between", value1, value2, "nickname");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderIsNull() {
+ addCriterion("gender is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderIsNotNull() {
+ addCriterion("gender is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderEqualTo(Byte value) {
+ addCriterion("gender =", value, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderNotEqualTo(Byte value) {
+ addCriterion("gender <>", value, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderGreaterThan(Byte value) {
+ addCriterion("gender >", value, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderGreaterThanOrEqualTo(Byte value) {
+ addCriterion("gender >=", value, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderLessThan(Byte value) {
+ addCriterion("gender <", value, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderLessThanOrEqualTo(Byte value) {
+ addCriterion("gender <=", value, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderIn(List values) {
+ addCriterion("gender in", values, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderNotIn(List values) {
+ addCriterion("gender not in", values, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderBetween(Byte value1, Byte value2) {
+ addCriterion("gender between", value1, value2, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andGenderNotBetween(Byte value1, Byte value2) {
+ addCriterion("gender not between", value1, value2, "gender");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryIsNull() {
+ addCriterion("country is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryIsNotNull() {
+ addCriterion("country is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryEqualTo(String value) {
+ addCriterion("country =", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryNotEqualTo(String value) {
+ addCriterion("country <>", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryGreaterThan(String value) {
+ addCriterion("country >", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryGreaterThanOrEqualTo(String value) {
+ addCriterion("country >=", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryLessThan(String value) {
+ addCriterion("country <", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryLessThanOrEqualTo(String value) {
+ addCriterion("country <=", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryLike(String value) {
+ addCriterion("country like", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryNotLike(String value) {
+ addCriterion("country not like", value, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryIn(List values) {
+ addCriterion("country in", values, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryNotIn(List values) {
+ addCriterion("country not in", values, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryBetween(String value1, String value2) {
+ addCriterion("country between", value1, value2, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andCountryNotBetween(String value1, String value2) {
+ addCriterion("country not between", value1, value2, "country");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceIsNull() {
+ addCriterion("province is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceIsNotNull() {
+ addCriterion("province is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceEqualTo(String value) {
+ addCriterion("province =", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceNotEqualTo(String value) {
+ addCriterion("province <>", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceGreaterThan(String value) {
+ addCriterion("province >", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceGreaterThanOrEqualTo(String value) {
+ addCriterion("province >=", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceLessThan(String value) {
+ addCriterion("province <", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceLessThanOrEqualTo(String value) {
+ addCriterion("province <=", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceLike(String value) {
+ addCriterion("province like", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceNotLike(String value) {
+ addCriterion("province not like", value, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceIn(List values) {
+ addCriterion("province in", values, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceNotIn(List values) {
+ addCriterion("province not in", values, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceBetween(String value1, String value2) {
+ addCriterion("province between", value1, value2, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andProvinceNotBetween(String value1, String value2) {
+ addCriterion("province not between", value1, value2, "province");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityIsNull() {
+ addCriterion("city is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityIsNotNull() {
+ addCriterion("city is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityEqualTo(String value) {
+ addCriterion("city =", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityNotEqualTo(String value) {
+ addCriterion("city <>", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityGreaterThan(String value) {
+ addCriterion("city >", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityGreaterThanOrEqualTo(String value) {
+ addCriterion("city >=", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityLessThan(String value) {
+ addCriterion("city <", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityLessThanOrEqualTo(String value) {
+ addCriterion("city <=", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityLike(String value) {
+ addCriterion("city like", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityNotLike(String value) {
+ addCriterion("city not like", value, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityIn(List values) {
+ addCriterion("city in", values, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityNotIn(List values) {
+ addCriterion("city not in", values, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityBetween(String value1, String value2) {
+ addCriterion("city between", value1, value2, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andCityNotBetween(String value1, String value2) {
+ addCriterion("city not between", value1, value2, "city");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageIsNull() {
+ addCriterion("language is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageIsNotNull() {
+ addCriterion("language is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageEqualTo(String value) {
+ addCriterion("language =", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageNotEqualTo(String value) {
+ addCriterion("language <>", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageGreaterThan(String value) {
+ addCriterion("language >", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageGreaterThanOrEqualTo(String value) {
+ addCriterion("language >=", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageLessThan(String value) {
+ addCriterion("language <", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageLessThanOrEqualTo(String value) {
+ addCriterion("language <=", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageLike(String value) {
+ addCriterion("language like", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageNotLike(String value) {
+ addCriterion("language not like", value, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageIn(List values) {
+ addCriterion("language in", values, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageNotIn(List values) {
+ addCriterion("language not in", values, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageBetween(String value1, String value2) {
+ addCriterion("language between", value1, value2, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andLanguageNotBetween(String value1, String value2) {
+ addCriterion("language not between", value1, value2, "language");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneIsNull() {
+ addCriterion("phone is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneIsNotNull() {
+ addCriterion("phone is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneEqualTo(String value) {
+ addCriterion("phone =", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotEqualTo(String value) {
+ addCriterion("phone <>", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneGreaterThan(String value) {
+ addCriterion("phone >", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneGreaterThanOrEqualTo(String value) {
+ addCriterion("phone >=", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneLessThan(String value) {
+ addCriterion("phone <", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneLessThanOrEqualTo(String value) {
+ addCriterion("phone <=", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneLike(String value) {
+ addCriterion("phone like", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotLike(String value) {
+ addCriterion("phone not like", value, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneIn(List values) {
+ addCriterion("phone in", values, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotIn(List values) {
+ addCriterion("phone not in", values, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneBetween(String value1, String value2) {
+ addCriterion("phone between", value1, value2, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andPhoneNotBetween(String value1, String value2) {
+ addCriterion("phone not between", value1, value2, "phone");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatIsNull() {
+ addCriterion("wechat is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatIsNotNull() {
+ addCriterion("wechat is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatEqualTo(String value) {
+ addCriterion("wechat =", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatNotEqualTo(String value) {
+ addCriterion("wechat <>", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatGreaterThan(String value) {
+ addCriterion("wechat >", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatGreaterThanOrEqualTo(String value) {
+ addCriterion("wechat >=", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatLessThan(String value) {
+ addCriterion("wechat <", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatLessThanOrEqualTo(String value) {
+ addCriterion("wechat <=", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatLike(String value) {
+ addCriterion("wechat like", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatNotLike(String value) {
+ addCriterion("wechat not like", value, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatIn(List values) {
+ addCriterion("wechat in", values, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatNotIn(List values) {
+ addCriterion("wechat not in", values, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatBetween(String value1, String value2) {
+ addCriterion("wechat between", value1, value2, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andWechatNotBetween(String value1, String value2) {
+ addCriterion("wechat not between", value1, value2, "wechat");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailIsNull() {
+ addCriterion("email is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailIsNotNull() {
+ addCriterion("email is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailEqualTo(String value) {
+ addCriterion("email =", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailNotEqualTo(String value) {
+ addCriterion("email <>", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailGreaterThan(String value) {
+ addCriterion("email >", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailGreaterThanOrEqualTo(String value) {
+ addCriterion("email >=", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailLessThan(String value) {
+ addCriterion("email <", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailLessThanOrEqualTo(String value) {
+ addCriterion("email <=", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailLike(String value) {
+ addCriterion("email like", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailNotLike(String value) {
+ addCriterion("email not like", value, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailIn(List values) {
+ addCriterion("email in", values, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailNotIn(List values) {
+ addCriterion("email not in", values, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailBetween(String value1, String value2) {
+ addCriterion("email between", value1, value2, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andEmailNotBetween(String value1, String value2) {
+ addCriterion("email not between", value1, value2, "email");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceIsNull() {
+ addCriterion("balance is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceIsNotNull() {
+ addCriterion("balance is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceEqualTo(Long value) {
+ addCriterion("balance =", value, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceNotEqualTo(Long value) {
+ addCriterion("balance <>", value, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceGreaterThan(Long value) {
+ addCriterion("balance >", value, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceGreaterThanOrEqualTo(Long value) {
+ addCriterion("balance >=", value, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceLessThan(Long value) {
+ addCriterion("balance <", value, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceLessThanOrEqualTo(Long value) {
+ addCriterion("balance <=", value, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceIn(List values) {
+ addCriterion("balance in", values, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceNotIn(List values) {
+ addCriterion("balance not in", values, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceBetween(Long value1, Long value2) {
+ addCriterion("balance between", value1, value2, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andBalanceNotBetween(Long value1, Long value2) {
+ addCriterion("balance not between", value1, value2, "balance");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List values) {
+ addCriterion("created_at in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotIn(List values) {
+ addCriterion("created_at not in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtBetween(Date value1, Date value2) {
+ addCriterion("created_at between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("created_at not between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNull() {
+ addCriterion("updated_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNotNull() {
+ addCriterion("updated_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtEqualTo(Date value) {
+ addCriterion("updated_at =", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotEqualTo(Date value) {
+ addCriterion("updated_at <>", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThan(Date value) {
+ addCriterion("updated_at >", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated_at >=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThan(Date value) {
+ addCriterion("updated_at <", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("updated_at <=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIn(List values) {
+ addCriterion("updated_at in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotIn(List values) {
+ addCriterion("updated_at not in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtBetween(Date value1, Date value2) {
+ addCriterion("updated_at between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("updated_at not between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNull() {
+ addCriterion("rec_status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNotNull() {
+ addCriterion("rec_status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusEqualTo(Byte value) {
+ addCriterion("rec_status =", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotEqualTo(Byte value) {
+ addCriterion("rec_status <>", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThan(Byte value) {
+ addCriterion("rec_status >", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
+ addCriterion("rec_status >=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThan(Byte value) {
+ addCriterion("rec_status <", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
+ addCriterion("rec_status <=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIn(List values) {
+ addCriterion("rec_status in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotIn(List values) {
+ addCriterion("rec_status not in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status not between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceIsNull() {
+ addCriterion("source is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceIsNotNull() {
+ addCriterion("source is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceEqualTo(Byte value) {
+ addCriterion("source =", value, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceNotEqualTo(Byte value) {
+ addCriterion("source <>", value, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceGreaterThan(Byte value) {
+ addCriterion("source >", value, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceGreaterThanOrEqualTo(Byte value) {
+ addCriterion("source >=", value, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceLessThan(Byte value) {
+ addCriterion("source <", value, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceLessThanOrEqualTo(Byte value) {
+ addCriterion("source <=", value, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceIn(List values) {
+ addCriterion("source in", values, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceNotIn(List values) {
+ addCriterion("source not in", values, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceBetween(Byte value1, Byte value2) {
+ addCriterion("source between", value1, value2, "source");
+ return (Criteria) this;
+ }
+
+ public Criteria andSourceNotBetween(Byte value1, Byte value2) {
+ addCriterion("source not between", value1, value2, "source");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfo.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfo.java
new file mode 100644
index 00000000..2830d45b
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfo.java
@@ -0,0 +1,150 @@
+package com.ccsens.signin.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class SysUserInfo implements Serializable {
+ private Long id;
+
+ private Long userId;
+
+ private String signature;
+
+ private String introduction;
+
+ private String birthday;
+
+ private String address;
+
+ private String webPath;
+
+ private String company;
+
+ private String position;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getUserId() {
+ return userId;
+ }
+
+ public void setUserId(Long userId) {
+ this.userId = userId;
+ }
+
+ public String getSignature() {
+ return signature;
+ }
+
+ public void setSignature(String signature) {
+ this.signature = signature == null ? null : signature.trim();
+ }
+
+ public String getIntroduction() {
+ return introduction;
+ }
+
+ public void setIntroduction(String introduction) {
+ this.introduction = introduction == null ? null : introduction.trim();
+ }
+
+ public String getBirthday() {
+ return birthday;
+ }
+
+ public void setBirthday(String birthday) {
+ this.birthday = birthday == null ? null : birthday.trim();
+ }
+
+ public String getAddress() {
+ return address;
+ }
+
+ public void setAddress(String address) {
+ this.address = address == null ? null : address.trim();
+ }
+
+ public String getWebPath() {
+ return webPath;
+ }
+
+ public void setWebPath(String webPath) {
+ this.webPath = webPath == null ? null : webPath.trim();
+ }
+
+ public String getCompany() {
+ return company;
+ }
+
+ public void setCompany(String company) {
+ this.company = company == null ? null : company.trim();
+ }
+
+ public String getPosition() {
+ return position;
+ }
+
+ public void setPosition(String position) {
+ this.position = position == null ? null : position.trim();
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", userId=").append(userId);
+ sb.append(", signature=").append(signature);
+ sb.append(", introduction=").append(introduction);
+ sb.append(", birthday=").append(birthday);
+ sb.append(", address=").append(address);
+ sb.append(", webPath=").append(webPath);
+ sb.append(", company=").append(company);
+ sb.append(", position=").append(position);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfoExample.java b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfoExample.java
new file mode 100644
index 00000000..80005119
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/po/SysUserInfoExample.java
@@ -0,0 +1,991 @@
+package com.ccsens.signin.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class SysUserInfoExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public SysUserInfoExample() {
+ oredCriteria = new ArrayList();
+ }
+
+ public void setOrderByClause(String orderByClause) {
+ this.orderByClause = orderByClause;
+ }
+
+ public String getOrderByClause() {
+ return orderByClause;
+ }
+
+ public void setDistinct(boolean distinct) {
+ this.distinct = distinct;
+ }
+
+ public boolean isDistinct() {
+ return distinct;
+ }
+
+ public List getOredCriteria() {
+ return oredCriteria;
+ }
+
+ public void or(Criteria criteria) {
+ oredCriteria.add(criteria);
+ }
+
+ public Criteria or() {
+ Criteria criteria = createCriteriaInternal();
+ oredCriteria.add(criteria);
+ return criteria;
+ }
+
+ public Criteria createCriteria() {
+ Criteria criteria = createCriteriaInternal();
+ if (oredCriteria.size() == 0) {
+ oredCriteria.add(criteria);
+ }
+ return criteria;
+ }
+
+ protected Criteria createCriteriaInternal() {
+ Criteria criteria = new Criteria();
+ return criteria;
+ }
+
+ public void clear() {
+ oredCriteria.clear();
+ orderByClause = null;
+ distinct = false;
+ }
+
+ protected abstract static class GeneratedCriteria {
+ protected List criteria;
+
+ protected GeneratedCriteria() {
+ super();
+ criteria = new ArrayList();
+ }
+
+ public boolean isValid() {
+ return criteria.size() > 0;
+ }
+
+ public List getAllCriteria() {
+ return criteria;
+ }
+
+ public List getCriteria() {
+ return criteria;
+ }
+
+ protected void addCriterion(String condition) {
+ if (condition == null) {
+ throw new RuntimeException("Value for condition cannot be null");
+ }
+ criteria.add(new Criterion(condition));
+ }
+
+ protected void addCriterion(String condition, Object value, String property) {
+ if (value == null) {
+ throw new RuntimeException("Value for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value));
+ }
+
+ protected void addCriterion(String condition, Object value1, Object value2, String property) {
+ if (value1 == null || value2 == null) {
+ throw new RuntimeException("Between values for " + property + " cannot be null");
+ }
+ criteria.add(new Criterion(condition, value1, value2));
+ }
+
+ public Criteria andIdIsNull() {
+ addCriterion("id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIsNotNull() {
+ addCriterion("id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdEqualTo(Long value) {
+ addCriterion("id =", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotEqualTo(Long value) {
+ addCriterion("id <>", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThan(Long value) {
+ addCriterion("id >", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("id >=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThan(Long value) {
+ addCriterion("id <", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdLessThanOrEqualTo(Long value) {
+ addCriterion("id <=", value, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdIn(List values) {
+ addCriterion("id in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotIn(List values) {
+ addCriterion("id not in", values, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdBetween(Long value1, Long value2) {
+ addCriterion("id between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andIdNotBetween(Long value1, Long value2) {
+ addCriterion("id not between", value1, value2, "id");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNull() {
+ addCriterion("user_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIsNotNull() {
+ addCriterion("user_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdEqualTo(Long value) {
+ addCriterion("user_id =", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotEqualTo(Long value) {
+ addCriterion("user_id <>", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThan(Long value) {
+ addCriterion("user_id >", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("user_id >=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThan(Long value) {
+ addCriterion("user_id <", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdLessThanOrEqualTo(Long value) {
+ addCriterion("user_id <=", value, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdIn(List values) {
+ addCriterion("user_id in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotIn(List values) {
+ addCriterion("user_id not in", values, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdBetween(Long value1, Long value2) {
+ addCriterion("user_id between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andUserIdNotBetween(Long value1, Long value2) {
+ addCriterion("user_id not between", value1, value2, "userId");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureIsNull() {
+ addCriterion("signature is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureIsNotNull() {
+ addCriterion("signature is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureEqualTo(String value) {
+ addCriterion("signature =", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureNotEqualTo(String value) {
+ addCriterion("signature <>", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureGreaterThan(String value) {
+ addCriterion("signature >", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureGreaterThanOrEqualTo(String value) {
+ addCriterion("signature >=", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureLessThan(String value) {
+ addCriterion("signature <", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureLessThanOrEqualTo(String value) {
+ addCriterion("signature <=", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureLike(String value) {
+ addCriterion("signature like", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureNotLike(String value) {
+ addCriterion("signature not like", value, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureIn(List values) {
+ addCriterion("signature in", values, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureNotIn(List values) {
+ addCriterion("signature not in", values, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureBetween(String value1, String value2) {
+ addCriterion("signature between", value1, value2, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andSignatureNotBetween(String value1, String value2) {
+ addCriterion("signature not between", value1, value2, "signature");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionIsNull() {
+ addCriterion("introduction is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionIsNotNull() {
+ addCriterion("introduction is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionEqualTo(String value) {
+ addCriterion("introduction =", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionNotEqualTo(String value) {
+ addCriterion("introduction <>", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionGreaterThan(String value) {
+ addCriterion("introduction >", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionGreaterThanOrEqualTo(String value) {
+ addCriterion("introduction >=", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionLessThan(String value) {
+ addCriterion("introduction <", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionLessThanOrEqualTo(String value) {
+ addCriterion("introduction <=", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionLike(String value) {
+ addCriterion("introduction like", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionNotLike(String value) {
+ addCriterion("introduction not like", value, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionIn(List values) {
+ addCriterion("introduction in", values, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionNotIn(List values) {
+ addCriterion("introduction not in", values, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionBetween(String value1, String value2) {
+ addCriterion("introduction between", value1, value2, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andIntroductionNotBetween(String value1, String value2) {
+ addCriterion("introduction not between", value1, value2, "introduction");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayIsNull() {
+ addCriterion("birthday is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayIsNotNull() {
+ addCriterion("birthday is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayEqualTo(String value) {
+ addCriterion("birthday =", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayNotEqualTo(String value) {
+ addCriterion("birthday <>", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayGreaterThan(String value) {
+ addCriterion("birthday >", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayGreaterThanOrEqualTo(String value) {
+ addCriterion("birthday >=", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayLessThan(String value) {
+ addCriterion("birthday <", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayLessThanOrEqualTo(String value) {
+ addCriterion("birthday <=", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayLike(String value) {
+ addCriterion("birthday like", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayNotLike(String value) {
+ addCriterion("birthday not like", value, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayIn(List values) {
+ addCriterion("birthday in", values, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayNotIn(List values) {
+ addCriterion("birthday not in", values, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayBetween(String value1, String value2) {
+ addCriterion("birthday between", value1, value2, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andBirthdayNotBetween(String value1, String value2) {
+ addCriterion("birthday not between", value1, value2, "birthday");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressIsNull() {
+ addCriterion("address is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressIsNotNull() {
+ addCriterion("address is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressEqualTo(String value) {
+ addCriterion("address =", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotEqualTo(String value) {
+ addCriterion("address <>", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressGreaterThan(String value) {
+ addCriterion("address >", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressGreaterThanOrEqualTo(String value) {
+ addCriterion("address >=", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressLessThan(String value) {
+ addCriterion("address <", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressLessThanOrEqualTo(String value) {
+ addCriterion("address <=", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressLike(String value) {
+ addCriterion("address like", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotLike(String value) {
+ addCriterion("address not like", value, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressIn(List values) {
+ addCriterion("address in", values, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotIn(List values) {
+ addCriterion("address not in", values, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressBetween(String value1, String value2) {
+ addCriterion("address between", value1, value2, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddressNotBetween(String value1, String value2) {
+ addCriterion("address not between", value1, value2, "address");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathIsNull() {
+ addCriterion("web_path is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathIsNotNull() {
+ addCriterion("web_path is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathEqualTo(String value) {
+ addCriterion("web_path =", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathNotEqualTo(String value) {
+ addCriterion("web_path <>", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathGreaterThan(String value) {
+ addCriterion("web_path >", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathGreaterThanOrEqualTo(String value) {
+ addCriterion("web_path >=", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathLessThan(String value) {
+ addCriterion("web_path <", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathLessThanOrEqualTo(String value) {
+ addCriterion("web_path <=", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathLike(String value) {
+ addCriterion("web_path like", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathNotLike(String value) {
+ addCriterion("web_path not like", value, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathIn(List values) {
+ addCriterion("web_path in", values, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathNotIn(List values) {
+ addCriterion("web_path not in", values, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathBetween(String value1, String value2) {
+ addCriterion("web_path between", value1, value2, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andWebPathNotBetween(String value1, String value2) {
+ addCriterion("web_path not between", value1, value2, "webPath");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyIsNull() {
+ addCriterion("company is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyIsNotNull() {
+ addCriterion("company is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyEqualTo(String value) {
+ addCriterion("company =", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyNotEqualTo(String value) {
+ addCriterion("company <>", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyGreaterThan(String value) {
+ addCriterion("company >", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyGreaterThanOrEqualTo(String value) {
+ addCriterion("company >=", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyLessThan(String value) {
+ addCriterion("company <", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyLessThanOrEqualTo(String value) {
+ addCriterion("company <=", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyLike(String value) {
+ addCriterion("company like", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyNotLike(String value) {
+ addCriterion("company not like", value, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyIn(List values) {
+ addCriterion("company in", values, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyNotIn(List values) {
+ addCriterion("company not in", values, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyBetween(String value1, String value2) {
+ addCriterion("company between", value1, value2, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andCompanyNotBetween(String value1, String value2) {
+ addCriterion("company not between", value1, value2, "company");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionIsNull() {
+ addCriterion("position is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionIsNotNull() {
+ addCriterion("position is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionEqualTo(String value) {
+ addCriterion("position =", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionNotEqualTo(String value) {
+ addCriterion("position <>", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionGreaterThan(String value) {
+ addCriterion("position >", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionGreaterThanOrEqualTo(String value) {
+ addCriterion("position >=", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionLessThan(String value) {
+ addCriterion("position <", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionLessThanOrEqualTo(String value) {
+ addCriterion("position <=", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionLike(String value) {
+ addCriterion("position like", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionNotLike(String value) {
+ addCriterion("position not like", value, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionIn(List values) {
+ addCriterion("position in", values, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionNotIn(List values) {
+ addCriterion("position not in", values, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionBetween(String value1, String value2) {
+ addCriterion("position between", value1, value2, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andPositionNotBetween(String value1, String value2) {
+ addCriterion("position not between", value1, value2, "position");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List values) {
+ addCriterion("created_at in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotIn(List values) {
+ addCriterion("created_at not in", values, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtBetween(Date value1, Date value2) {
+ addCriterion("created_at between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("created_at not between", value1, value2, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNull() {
+ addCriterion("updated_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIsNotNull() {
+ addCriterion("updated_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtEqualTo(Date value) {
+ addCriterion("updated_at =", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotEqualTo(Date value) {
+ addCriterion("updated_at <>", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThan(Date value) {
+ addCriterion("updated_at >", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("updated_at >=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThan(Date value) {
+ addCriterion("updated_at <", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("updated_at <=", value, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtIn(List values) {
+ addCriterion("updated_at in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotIn(List values) {
+ addCriterion("updated_at not in", values, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtBetween(Date value1, Date value2) {
+ addCriterion("updated_at between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andUpdatedAtNotBetween(Date value1, Date value2) {
+ addCriterion("updated_at not between", value1, value2, "updatedAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNull() {
+ addCriterion("rec_status is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIsNotNull() {
+ addCriterion("rec_status is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusEqualTo(Byte value) {
+ addCriterion("rec_status =", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotEqualTo(Byte value) {
+ addCriterion("rec_status <>", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThan(Byte value) {
+ addCriterion("rec_status >", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusGreaterThanOrEqualTo(Byte value) {
+ addCriterion("rec_status >=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThan(Byte value) {
+ addCriterion("rec_status <", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusLessThanOrEqualTo(Byte value) {
+ addCriterion("rec_status <=", value, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusIn(List values) {
+ addCriterion("rec_status in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotIn(List values) {
+ addCriterion("rec_status not in", values, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+
+ public Criteria andRecStatusNotBetween(Byte value1, Byte value2) {
+ addCriterion("rec_status not between", value1, value2, "recStatus");
+ return (Criteria) this;
+ }
+ }
+
+ public static class Criteria extends GeneratedCriteria {
+
+ protected Criteria() {
+ super();
+ }
+ }
+
+ public static class Criterion {
+ private String condition;
+
+ private Object value;
+
+ private Object secondValue;
+
+ private boolean noValue;
+
+ private boolean singleValue;
+
+ private boolean betweenValue;
+
+ private boolean listValue;
+
+ private String typeHandler;
+
+ public String getCondition() {
+ return condition;
+ }
+
+ public Object getValue() {
+ return value;
+ }
+
+ public Object getSecondValue() {
+ return secondValue;
+ }
+
+ public boolean isNoValue() {
+ return noValue;
+ }
+
+ public boolean isSingleValue() {
+ return singleValue;
+ }
+
+ public boolean isBetweenValue() {
+ return betweenValue;
+ }
+
+ public boolean isListValue() {
+ return listValue;
+ }
+
+ public String getTypeHandler() {
+ return typeHandler;
+ }
+
+ protected Criterion(String condition) {
+ super();
+ this.condition = condition;
+ this.typeHandler = null;
+ this.noValue = true;
+ }
+
+ protected Criterion(String condition, Object value, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.typeHandler = typeHandler;
+ if (value instanceof List>) {
+ this.listValue = true;
+ } else {
+ this.singleValue = true;
+ }
+ }
+
+ protected Criterion(String condition, Object value) {
+ this(condition, value, null);
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
+ super();
+ this.condition = condition;
+ this.value = value;
+ this.secondValue = secondValue;
+ this.typeHandler = typeHandler;
+ this.betweenValue = true;
+ }
+
+ protected Criterion(String condition, Object value, Object secondValue) {
+ this(condition, value, secondValue, null);
+ }
+ }
+}
\ No newline at end of file
diff --git a/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java b/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java
new file mode 100644
index 00000000..396b4253
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/bean/vo/UserVo.java
@@ -0,0 +1,165 @@
+package com.ccsens.signin.bean.vo;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+import java.util.List;
+
+@Data
+public class UserVo {
+ @Data
+ @ApiModel
+ public static class UserSign{
+ @ApiModelProperty("用户Id")
+ private Long userId;
+ @ApiModelProperty("认证类型Id")
+ private Long authId;
+ }
+
+ @Data
+ @ApiModel
+ public static class TokenBean {
+ @ApiModelProperty("用户id")
+ private Long id;
+ @ApiModelProperty("账号")
+ private String account;
+ @ApiModelProperty("手机号")
+ private String phone;
+ @ApiModelProperty("token")
+ private String token;
+ @ApiModelProperty("刷新token")
+ private String refresh_token;
+ @ApiModelProperty("微信信息")
+ private WxInfo wxInfo;
+ }
+
+ @Data
+ @ApiModel
+ public static class SmsCode{
+ @ApiModelProperty("手机号")
+ private String phone;
+ @ApiModelProperty("有效时间(秒)")
+ private Integer expiredInSeconds;
+ @JsonIgnore
+ private String smsCode;
+ }
+
+ @Data
+ @ApiModel
+ public static class Account{
+ @ApiModelProperty("用户id")
+ private Long id;
+ @ApiModelProperty("用户名")
+ private String username;
+ @ApiModelProperty("密码")
+ private String password;
+ }
+
+ @Data
+ @ApiModel
+ public static class TokenToUserId{
+ @ApiModelProperty("用户id")
+ private Long id;
+ }
+
+ @Data
+ @ApiModel
+ public static class WxInfo{
+ @ApiModelProperty("微信名")
+ private String nickname;
+ @ApiModelProperty("微信头像")
+ private String headImgUrl;
+ @ApiModelProperty("性别")
+ private Byte sex;
+ @ApiModelProperty("省")
+ private String province;
+ @ApiModelProperty("市")
+ private String city;
+ @ApiModelProperty("国家")
+ private String country;
+ @ApiModelProperty("语言")
+ private String language;
+ }
+
+ @Data
+ @ApiModel("公众号用户")
+ public static class Oauth2WX{
+ @ApiModelProperty("openid")
+ private String openid;
+ @ApiModelProperty("用户id")
+ private Long userId;
+ }
+
+ @Data
+ @ApiModel("用户信息")
+ public static class UserInfo {
+ @ApiModelProperty("用户id")
+ private Long id;
+ @ApiModelProperty("昵称")
+ private String nickname;
+ @ApiModelProperty("头像")
+ private String avatarUrl;
+ }
+
+ @Data
+ @ApiModel("查询个人信息")
+ public static class SelectUserInfo{
+ @ApiModelProperty("userId")
+ private Long id;
+ @ApiModelProperty("账号")
+ private String account;
+ @ApiModelProperty("手机号")
+ private String phone;
+ @ApiModelProperty("昵称")
+ private String nickname;
+ @ApiModelProperty("头像")
+ private String avatarUrl;
+ @ApiModelProperty("个人签名")
+ private String signature;
+ @ApiModelProperty("个人简介")
+ private String introduction;
+ @ApiModelProperty("生日")
+ private String birthday;
+ @ApiModelProperty("所在地")
+ private String address;
+ @ApiModelProperty("网页")
+ private String webPath;
+ @ApiModelProperty("公司")
+ private String company;
+ @ApiModelProperty("职位")
+ private String position;
+ @ApiModelProperty("已使用tall多少天")
+ private Integer dayOfUseTall;
+ @JsonIgnore // 已使用tall多少天
+ private Date createdAt;
+ @ApiModelProperty("空间使用情况")
+ private Interspace interspace;
+// @ApiModelProperty("标签信息")
+// private List labelList;
+ }
+
+ @Data
+ @ApiModel("空间使用信息")
+ public static class Interspace{
+ @ApiModelProperty("空间已有项目")
+ private Integer projectNum;
+ @ApiModelProperty("空间总项目(目前写无限制)")
+ private Integer projectTotal;
+ @ApiModelProperty("空间剩余(目前写无限制)")
+ private Integer interspaceResidue;
+ @ApiModelProperty("总空间(目前写无限制)")
+ private Integer interspaceTotal;
+ }
+
+ @Data
+ @ApiModel("返回图片验证码")
+ public static class VerificationCode{
+ @ApiModelProperty("图片验证码Id")
+ private String verificationCodeId;
+ @ApiModelProperty("图片的Base64字符串")
+ private String imageBase64;
+ }
+}
diff --git a/signin/src/main/java/com/ccsens/signin/config/BeanConfig.java b/signin/src/main/java/com/ccsens/signin/config/BeanConfig.java
new file mode 100644
index 00000000..a7660236
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/config/BeanConfig.java
@@ -0,0 +1,31 @@
+package com.ccsens.wisdomcar.config;
+
+import com.ccsens.wisdomcar.intercept.MybatisInterceptor;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * @description:
+ * @author: wuHuiJuan
+ * @create: 2019/12/03 18:01
+ */
+@Configuration
+public class BeanConfig {
+// @Bean
+// public static PropertySourcesPlaceholderConfigurer properties(){
+// PropertySourcesPlaceholderConfigurer conf = new PropertySourcesPlaceholderConfigurer();
+// YamlPropertiesFactoryBean yml = new YamlPropertiesFactoryBean();
+// yml.setResources(new ClassPathResource("business.yml"));
+// conf.setProperties(yml.getObject());
+// return conf;
+// }
+
+ /**
+ * 注册拦截器
+ */
+ @Bean
+ public MybatisInterceptor mybatisInterceptor() {
+ MybatisInterceptor interceptor = new MybatisInterceptor();
+ return interceptor;
+ }
+}
diff --git a/signin/src/main/java/com/ccsens/signin/config/SpringConfig.java b/signin/src/main/java/com/ccsens/signin/config/SpringConfig.java
new file mode 100644
index 00000000..ba4c397f
--- /dev/null
+++ b/signin/src/main/java/com/ccsens/signin/config/SpringConfig.java
@@ -0,0 +1,169 @@
+package com.ccsens.wisdomcar.config;
+
+
+import cn.hutool.core.lang.Snowflake;
+import cn.hutool.core.util.IdUtil;
+import com.ccsens.util.config.DruidProps;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.module.SimpleModule;
+import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.MediaType;
+import org.springframework.http.converter.HttpMessageConverter;
+import org.springframework.http.converter.StringHttpMessageConverter;
+import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
+import org.springframework.web.servlet.config.annotation.*;
+
+import javax.annotation.Resource;
+import javax.sql.DataSource;
+import java.nio.charset.Charset;
+import java.util.ArrayList;
+import java.util.List;
+
+@Configuration
+//public class SpringConfig extends WebMvcConfigurationSupport {
+public class SpringConfig implements WebMvcConfigurer {
+ @Resource
+ private DruidProps druidPropsUtil;
+ @Value("${spring.snowflake.workerId}")
+ private String workerId;
+ @Value("${spring.snowflake.datacenterId}")
+ private String datacenterId;
+
+ /**
+ * 配置Converter
+ * @return
+ */
+ @Bean
+ public HttpMessageConverter responseStringConverter() {
+ StringHttpMessageConverter converter = new StringHttpMessageConverter(
+ Charset.forName("UTF-8"));
+ return converter;
+ }
+
+ @Bean
+ public HttpMessageConverter