diff --git a/ct/src/main/resources/application-test.yml b/ct/src/main/resources/application-test.yml index 57d9ab85..6e3a892d 100644 --- a/ct/src/main/resources/application-test.yml +++ b/ct/src/main/resources/application-test.yml @@ -8,7 +8,8 @@ spring: datasource: type: com.alibaba.druid.pool.DruidDataSource rabbitmq: - host: api.ccsens.com +# host: api.ccsens.com + host: 127.0.0.1 password: 111111 port: 5672 username: admin @@ -28,4 +29,4 @@ swagger: enable: true eureka: instance: - ip-address: 49.233.89.188 \ No newline at end of file + ip-address: 192.168.0.99 \ No newline at end of file diff --git a/ct/src/main/resources/druid-test.yml b/ct/src/main/resources/druid-test.yml index e38249c2..1bbd01f0 100644 --- a/ct/src/main/resources/druid-test.yml +++ b/ct/src/main/resources/druid-test.yml @@ -15,7 +15,8 @@ spring: maxWait: 60000 minEvictableIdleTimeMillis: 300000 minIdle: 5 - password: +# password: + password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 poolPreparedStatements: true servletLogSlowSql: true servletLoginPassword: 111111 @@ -27,7 +28,8 @@ spring: testOnReturn: false testWhileIdle: true timeBetweenEvictionRunsMillis: 60000 - url: jdbc:mysql://127.0.0.1/ct?useUnicode=true&characterEncoding=UTF-8 +# url: jdbc:mysql://127.0.0.1/ct?useUnicode=true&characterEncoding=UTF-8 + url: jdbc:mysql://test.tall.wiki/ct?useUnicode=true&characterEncoding=UTF-8 username: root validationQuery: SELECT 1 FROM DUAL - env: CCSENS_GAME \ No newline at end of file + env: CCSENS_TALL \ No newline at end of file diff --git a/pims/.gitignore b/pims/.gitignore deleted file mode 100644 index 549e00a2..00000000 --- a/pims/.gitignore +++ /dev/null @@ -1,33 +0,0 @@ -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/pims/mvnw b/pims/mvnw deleted file mode 100644 index a16b5431..00000000 --- a/pims/mvnw +++ /dev/null @@ -1,310 +0,0 @@ -#!/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/pims/mvnw.cmd b/pims/mvnw.cmd deleted file mode 100644 index c8d43372..00000000 --- a/pims/mvnw.cmd +++ /dev/null @@ -1,182 +0,0 @@ -@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/pims/pom.xml b/pims/pom.xml index 8ae846bd..9e55baf9 100644 --- a/pims/pom.xml +++ b/pims/pom.xml @@ -2,47 +2,70 @@ 4.0.0 + - org.springframework.boot - spring-boot-starter-parent - 2.3.1.RELEASE - + ccsenscloud + com.ccsens + 1.0-SNAPSHOT - com.ccsens + pims - 0.0.1-SNAPSHOT - pims - Demo project for Spring Boot 1.8 + + - org.springframework.boot - spring-boot-starter-web + cloudutil + com.ccsens + 1.0-SNAPSHOT - + - org.springframework.boot - spring-boot-starter-test - test - - - org.junit.vintage - junit-vintage-engine - - + 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.health.HealthApplication + + + + + + repackage + + + + diff --git a/pims/src/main/java/com/ccsens/pims/PimsApplication.java b/pims/src/main/java/com/ccsens/pims/PimsApplication.java index 89de79de..d8c7afc4 100644 --- a/pims/src/main/java/com/ccsens/pims/PimsApplication.java +++ b/pims/src/main/java/com/ccsens/pims/PimsApplication.java @@ -1,12 +1,24 @@ package com.ccsens.pims; +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; + /** * @author 逗 */ -@SpringBootApplication +@MapperScan(basePackages = {"com.ccsens.pims.persist.*"}) +@ServletComponentScan +@EnableAsync +//开启断路器功能 +@EnableCircuitBreaker +@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign") +@SpringBootApplication(scanBasePackages = "com.ccsens") public class PimsApplication { public static void main(String[] args) { diff --git a/pims/src/main/java/com/ccsens/pims/api/DebugController.java b/pims/src/main/java/com/ccsens/pims/api/DebugController.java index 47bcdb47..ce1e6151 100644 --- a/pims/src/main/java/com/ccsens/pims/api/DebugController.java +++ b/pims/src/main/java/com/ccsens/pims/api/DebugController.java @@ -1,20 +1,23 @@ package com.ccsens.pims.api; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; 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 | ") +@Api(tags = "DEBUG" , description = "DebugController | ") @RestController @RequestMapping("/debug") public class DebugController { -// @ApiOperation(value = "/测试",notes = "") -// @ApiImplicitParams({ -// }) + @ApiOperation(value = "/测试",notes = "") + @ApiImplicitParams({ + }) @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"}) public String getSmsCode(HttpServletRequest request) throws Exception { diff --git a/pims/src/main/java/com/ccsens/pims/api/ProductController.java b/pims/src/main/java/com/ccsens/pims/api/ProductController.java new file mode 100644 index 00000000..78c07071 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/api/ProductController.java @@ -0,0 +1,95 @@ +package com.ccsens.pims.api; + +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.pims.bean.dto.CompanyDto; +import com.ccsens.pims.bean.vo.CompanyVo; +import com.ccsens.pims.service.IProductService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Slf4j +@Api(tags = "产品相关api") +@RestController +@RequestMapping("/chart") +public class ProductController { + @Resource + private IProductService productService; + + @MustLogin + @ApiOperation(value = "查看产品价格依据信息", notes = "") + @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryProductInfo(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看产品价格使用依据表:{}",params); + List productTypeList = productService.queryProductInfo(params); + return JsonResponse.newInstance().ok(productTypeList); + } + + @MustLogin + @ApiOperation(value = "查看单个产品销售收入", notes = "") + @RequestMapping(value = "/product", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getProductIncome(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看单个产品销售收入:{}",params); + List productIncomeList = productService.getProductIncome(params); + return JsonResponse.newInstance().ok(productIncomeList); + } + + @MustLogin + @ApiOperation(value = "查看所有产品销售收入", notes = "") + @RequestMapping(value = "/product/all", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryProductIncome(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看所有产品销售收入:{}",params); + List productIncomeList = productService.queryProductIncome(params); + return JsonResponse.newInstance().ok(productIncomeList); + } + + @MustLogin + @ApiOperation(value = "产品总收入占比图", notes = "") + @RequestMapping(value = "/income/proportion", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> queryProductIncomeProportion(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("产品总收入占比图:{}",params); + List productIncomeProportions = productService.queryProductIncomeProportion(params); + return JsonResponse.newInstance().ok(productIncomeProportions); + } + + @MustLogin + @ApiOperation(value = "总成本费用估算表", notes = "") + @RequestMapping(value = "/cost", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getTotalCost(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("总成本费用估算表:{}",params); + List totalCostList = productService.getTotalCost(params); + return JsonResponse.newInstance().ok(totalCostList); + } + + @MustLogin + @ApiOperation(value = "损益表", notes = "") + @RequestMapping(value = "/income", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getIncome(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("损益表:{}",params); + List incomeList = productService.getIncome(params); + return JsonResponse.newInstance().ok(incomeList); + } + + @MustLogin + @ApiOperation(value = "现金流表", notes = "") + @RequestMapping(value = "/money", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getMonth(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("现金流表:{}",params); + List moneyFlowTypes = productService.getMonthFlow(params); + return JsonResponse.newInstance().ok(moneyFlowTypes); + } +} diff --git a/pims/src/main/java/com/ccsens/pims/api/ReportController.java b/pims/src/main/java/com/ccsens/pims/api/ReportController.java new file mode 100644 index 00000000..9d10dfb6 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/api/ReportController.java @@ -0,0 +1,76 @@ +package com.ccsens.pims.api; + +import com.ccsens.cloudutil.annotation.MustLogin; +import com.ccsens.pims.bean.dto.CompanyDto; +import com.ccsens.pims.service.IReportService; +import com.ccsens.util.JsonResponse; +import com.ccsens.util.bean.dto.QueryDto; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.extern.slf4j.Slf4j; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Slf4j +@Api(tags = "报表相关api") +@RestController +@RequestMapping("/report") +public class ReportController { + @Resource + private IReportService reportService; + + @MustLogin + @ApiOperation(value = "查看产品价格使用依据表", notes = "") + @RequestMapping(value = "/product", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getProduct(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看产品价格使用依据表:{}",params); + List wpsFilePath = reportService.getProduct(params); + return JsonResponse.newInstance().ok(wpsFilePath); + } + + @MustLogin + @ApiOperation(value = "查看产值及附加估算表", notes = "") + @RequestMapping(value = "/production", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getProduction(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看产值及附加估算表:{}",params); + List wpsFilePath = reportService.getProduction(params); + return JsonResponse.newInstance().ok(wpsFilePath); + } + + @MustLogin + @ApiOperation(value = "查看总成本费用估算表", notes = "") + @RequestMapping(value = "/cost", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getCost(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看总成本费用估算表:{}",params); + List wpsFilePath = reportService.getCost(params); + return JsonResponse.newInstance().ok(wpsFilePath); + } + + @MustLogin + @ApiOperation(value = "查看损益表表", notes = "") + @RequestMapping(value = "/income", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getIncome(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看损益表表:{}",params); + List wpsFilePath = reportService.getIncome(params); + return JsonResponse.newInstance().ok(wpsFilePath); + } + + @MustLogin + @ApiOperation(value = "查看现金流表", notes = "") + @RequestMapping(value = "/money", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + public JsonResponse> getMoney(@ApiParam @Validated @RequestBody QueryDto params) { + log.info("查看现金流表:{}",params); + List wpsFilePath = reportService.getMoney(params); + return JsonResponse.newInstance().ok(wpsFilePath); + } +} diff --git a/pims/src/main/java/com/ccsens/pims/bean/dto/CompanyDto.java b/pims/src/main/java/com/ccsens/pims/bean/dto/CompanyDto.java new file mode 100644 index 00000000..f8e797c5 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/dto/CompanyDto.java @@ -0,0 +1,26 @@ +package com.ccsens.pims.bean.dto; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +/** + * @author 逗 + */ +@Data +public class CompanyDto { + + @Data + @ApiModel("项目id") + public static class Project{ + @ApiModelProperty("项目id") + private Long projectId; + } + + @Data + @ApiModel("产品id") + public static class Product{ + @ApiModelProperty("产品id") + private Long productId; + } +} diff --git a/pims/src/main/java/com/ccsens/pims/bean/po/Company.java b/pims/src/main/java/com/ccsens/pims/bean/po/Company.java new file mode 100644 index 00000000..40ab9b13 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/Company.java @@ -0,0 +1,95 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Company implements Serializable { + private Long id; + + private Long projectId; + + private String name; + + private Long balance; + + 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 getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.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; + } + + @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(", projectId=").append(projectId); + sb.append(", name=").append(name); + sb.append(", balance=").append(balance); + 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/pims/src/main/java/com/ccsens/pims/bean/po/CompanyCost.java b/pims/src/main/java/com/ccsens/pims/bean/po/CompanyCost.java new file mode 100644 index 00000000..f49f5d61 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/CompanyCost.java @@ -0,0 +1,249 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class CompanyCost implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private String monthTime; + + private Long businessCommission; + + private Long commission; + + private Long adminExpense; + + private Long salary; + + private Long insurance; + + private Long officeRent; + + private Long officeOtherRent; + + private Long depreciation; + + private Long travelOnBusiness; + + private Long market; + + private Long onlinePromotion; + + private Long offlinePromotion; + + private Long businessExpand; + + private Long financialAffairs; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public String getMonthTime() { + return monthTime; + } + + public void setMonthTime(String monthTime) { + this.monthTime = monthTime == null ? null : monthTime.trim(); + } + + public Long getBusinessCommission() { + return businessCommission; + } + + public void setBusinessCommission(Long businessCommission) { + this.businessCommission = businessCommission; + } + + public Long getCommission() { + return commission; + } + + public void setCommission(Long commission) { + this.commission = commission; + } + + public Long getAdminExpense() { + return adminExpense; + } + + public void setAdminExpense(Long adminExpense) { + this.adminExpense = adminExpense; + } + + public Long getSalary() { + return salary; + } + + public void setSalary(Long salary) { + this.salary = salary; + } + + public Long getInsurance() { + return insurance; + } + + public void setInsurance(Long insurance) { + this.insurance = insurance; + } + + public Long getOfficeRent() { + return officeRent; + } + + public void setOfficeRent(Long officeRent) { + this.officeRent = officeRent; + } + + public Long getOfficeOtherRent() { + return officeOtherRent; + } + + public void setOfficeOtherRent(Long officeOtherRent) { + this.officeOtherRent = officeOtherRent; + } + + public Long getDepreciation() { + return depreciation; + } + + public void setDepreciation(Long depreciation) { + this.depreciation = depreciation; + } + + public Long getTravelOnBusiness() { + return travelOnBusiness; + } + + public void setTravelOnBusiness(Long travelOnBusiness) { + this.travelOnBusiness = travelOnBusiness; + } + + public Long getMarket() { + return market; + } + + public void setMarket(Long market) { + this.market = market; + } + + public Long getOnlinePromotion() { + return onlinePromotion; + } + + public void setOnlinePromotion(Long onlinePromotion) { + this.onlinePromotion = onlinePromotion; + } + + public Long getOfflinePromotion() { + return offlinePromotion; + } + + public void setOfflinePromotion(Long offlinePromotion) { + this.offlinePromotion = offlinePromotion; + } + + public Long getBusinessExpand() { + return businessExpand; + } + + public void setBusinessExpand(Long businessExpand) { + this.businessExpand = businessExpand; + } + + public Long getFinancialAffairs() { + return financialAffairs; + } + + public void setFinancialAffairs(Long financialAffairs) { + this.financialAffairs = financialAffairs; + } + + 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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", monthTime=").append(monthTime); + sb.append(", businessCommission=").append(businessCommission); + sb.append(", commission=").append(commission); + sb.append(", adminExpense=").append(adminExpense); + sb.append(", salary=").append(salary); + sb.append(", insurance=").append(insurance); + sb.append(", officeRent=").append(officeRent); + sb.append(", officeOtherRent=").append(officeOtherRent); + sb.append(", depreciation=").append(depreciation); + sb.append(", travelOnBusiness=").append(travelOnBusiness); + sb.append(", market=").append(market); + sb.append(", onlinePromotion=").append(onlinePromotion); + sb.append(", offlinePromotion=").append(offlinePromotion); + sb.append(", businessExpand=").append(businessExpand); + sb.append(", financialAffairs=").append(financialAffairs); + 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/pims/src/main/java/com/ccsens/pims/bean/po/CompanyCostExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/CompanyCostExample.java new file mode 100644 index 00000000..9477afa2 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/CompanyCostExample.java @@ -0,0 +1,1471 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompanyCostExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompanyCostExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNull() { + addCriterion("month_time is null"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNotNull() { + addCriterion("month_time is not null"); + return (Criteria) this; + } + + public Criteria andMonthTimeEqualTo(String value) { + addCriterion("month_time =", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotEqualTo(String value) { + addCriterion("month_time <>", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThan(String value) { + addCriterion("month_time >", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThanOrEqualTo(String value) { + addCriterion("month_time >=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThan(String value) { + addCriterion("month_time <", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThanOrEqualTo(String value) { + addCriterion("month_time <=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLike(String value) { + addCriterion("month_time like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotLike(String value) { + addCriterion("month_time not like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeIn(List values) { + addCriterion("month_time in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotIn(List values) { + addCriterion("month_time not in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeBetween(String value1, String value2) { + addCriterion("month_time between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotBetween(String value1, String value2) { + addCriterion("month_time not between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionIsNull() { + addCriterion("business_commission is null"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionIsNotNull() { + addCriterion("business_commission is not null"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionEqualTo(Long value) { + addCriterion("business_commission =", value, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionNotEqualTo(Long value) { + addCriterion("business_commission <>", value, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionGreaterThan(Long value) { + addCriterion("business_commission >", value, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionGreaterThanOrEqualTo(Long value) { + addCriterion("business_commission >=", value, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionLessThan(Long value) { + addCriterion("business_commission <", value, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionLessThanOrEqualTo(Long value) { + addCriterion("business_commission <=", value, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionIn(List values) { + addCriterion("business_commission in", values, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionNotIn(List values) { + addCriterion("business_commission not in", values, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionBetween(Long value1, Long value2) { + addCriterion("business_commission between", value1, value2, "businessCommission"); + return (Criteria) this; + } + + public Criteria andBusinessCommissionNotBetween(Long value1, Long value2) { + addCriterion("business_commission not between", value1, value2, "businessCommission"); + return (Criteria) this; + } + + public Criteria andCommissionIsNull() { + addCriterion("commission is null"); + return (Criteria) this; + } + + public Criteria andCommissionIsNotNull() { + addCriterion("commission is not null"); + return (Criteria) this; + } + + public Criteria andCommissionEqualTo(Long value) { + addCriterion("commission =", value, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionNotEqualTo(Long value) { + addCriterion("commission <>", value, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionGreaterThan(Long value) { + addCriterion("commission >", value, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionGreaterThanOrEqualTo(Long value) { + addCriterion("commission >=", value, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionLessThan(Long value) { + addCriterion("commission <", value, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionLessThanOrEqualTo(Long value) { + addCriterion("commission <=", value, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionIn(List values) { + addCriterion("commission in", values, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionNotIn(List values) { + addCriterion("commission not in", values, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionBetween(Long value1, Long value2) { + addCriterion("commission between", value1, value2, "commission"); + return (Criteria) this; + } + + public Criteria andCommissionNotBetween(Long value1, Long value2) { + addCriterion("commission not between", value1, value2, "commission"); + return (Criteria) this; + } + + public Criteria andAdminExpenseIsNull() { + addCriterion("admin_expense is null"); + return (Criteria) this; + } + + public Criteria andAdminExpenseIsNotNull() { + addCriterion("admin_expense is not null"); + return (Criteria) this; + } + + public Criteria andAdminExpenseEqualTo(Long value) { + addCriterion("admin_expense =", value, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseNotEqualTo(Long value) { + addCriterion("admin_expense <>", value, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseGreaterThan(Long value) { + addCriterion("admin_expense >", value, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseGreaterThanOrEqualTo(Long value) { + addCriterion("admin_expense >=", value, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseLessThan(Long value) { + addCriterion("admin_expense <", value, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseLessThanOrEqualTo(Long value) { + addCriterion("admin_expense <=", value, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseIn(List values) { + addCriterion("admin_expense in", values, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseNotIn(List values) { + addCriterion("admin_expense not in", values, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseBetween(Long value1, Long value2) { + addCriterion("admin_expense between", value1, value2, "adminExpense"); + return (Criteria) this; + } + + public Criteria andAdminExpenseNotBetween(Long value1, Long value2) { + addCriterion("admin_expense not between", value1, value2, "adminExpense"); + return (Criteria) this; + } + + public Criteria andSalaryIsNull() { + addCriterion("salary is null"); + return (Criteria) this; + } + + public Criteria andSalaryIsNotNull() { + addCriterion("salary is not null"); + return (Criteria) this; + } + + public Criteria andSalaryEqualTo(Long value) { + addCriterion("salary =", value, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryNotEqualTo(Long value) { + addCriterion("salary <>", value, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryGreaterThan(Long value) { + addCriterion("salary >", value, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryGreaterThanOrEqualTo(Long value) { + addCriterion("salary >=", value, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryLessThan(Long value) { + addCriterion("salary <", value, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryLessThanOrEqualTo(Long value) { + addCriterion("salary <=", value, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryIn(List values) { + addCriterion("salary in", values, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryNotIn(List values) { + addCriterion("salary not in", values, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryBetween(Long value1, Long value2) { + addCriterion("salary between", value1, value2, "salary"); + return (Criteria) this; + } + + public Criteria andSalaryNotBetween(Long value1, Long value2) { + addCriterion("salary not between", value1, value2, "salary"); + return (Criteria) this; + } + + public Criteria andInsuranceIsNull() { + addCriterion("insurance is null"); + return (Criteria) this; + } + + public Criteria andInsuranceIsNotNull() { + addCriterion("insurance is not null"); + return (Criteria) this; + } + + public Criteria andInsuranceEqualTo(Long value) { + addCriterion("insurance =", value, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceNotEqualTo(Long value) { + addCriterion("insurance <>", value, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceGreaterThan(Long value) { + addCriterion("insurance >", value, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceGreaterThanOrEqualTo(Long value) { + addCriterion("insurance >=", value, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceLessThan(Long value) { + addCriterion("insurance <", value, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceLessThanOrEqualTo(Long value) { + addCriterion("insurance <=", value, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceIn(List values) { + addCriterion("insurance in", values, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceNotIn(List values) { + addCriterion("insurance not in", values, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceBetween(Long value1, Long value2) { + addCriterion("insurance between", value1, value2, "insurance"); + return (Criteria) this; + } + + public Criteria andInsuranceNotBetween(Long value1, Long value2) { + addCriterion("insurance not between", value1, value2, "insurance"); + return (Criteria) this; + } + + public Criteria andOfficeRentIsNull() { + addCriterion("office_rent is null"); + return (Criteria) this; + } + + public Criteria andOfficeRentIsNotNull() { + addCriterion("office_rent is not null"); + return (Criteria) this; + } + + public Criteria andOfficeRentEqualTo(Long value) { + addCriterion("office_rent =", value, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentNotEqualTo(Long value) { + addCriterion("office_rent <>", value, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentGreaterThan(Long value) { + addCriterion("office_rent >", value, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentGreaterThanOrEqualTo(Long value) { + addCriterion("office_rent >=", value, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentLessThan(Long value) { + addCriterion("office_rent <", value, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentLessThanOrEqualTo(Long value) { + addCriterion("office_rent <=", value, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentIn(List values) { + addCriterion("office_rent in", values, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentNotIn(List values) { + addCriterion("office_rent not in", values, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentBetween(Long value1, Long value2) { + addCriterion("office_rent between", value1, value2, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeRentNotBetween(Long value1, Long value2) { + addCriterion("office_rent not between", value1, value2, "officeRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentIsNull() { + addCriterion("office_other_rent is null"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentIsNotNull() { + addCriterion("office_other_rent is not null"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentEqualTo(Long value) { + addCriterion("office_other_rent =", value, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentNotEqualTo(Long value) { + addCriterion("office_other_rent <>", value, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentGreaterThan(Long value) { + addCriterion("office_other_rent >", value, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentGreaterThanOrEqualTo(Long value) { + addCriterion("office_other_rent >=", value, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentLessThan(Long value) { + addCriterion("office_other_rent <", value, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentLessThanOrEqualTo(Long value) { + addCriterion("office_other_rent <=", value, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentIn(List values) { + addCriterion("office_other_rent in", values, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentNotIn(List values) { + addCriterion("office_other_rent not in", values, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentBetween(Long value1, Long value2) { + addCriterion("office_other_rent between", value1, value2, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andOfficeOtherRentNotBetween(Long value1, Long value2) { + addCriterion("office_other_rent not between", value1, value2, "officeOtherRent"); + return (Criteria) this; + } + + public Criteria andDepreciationIsNull() { + addCriterion("depreciation is null"); + return (Criteria) this; + } + + public Criteria andDepreciationIsNotNull() { + addCriterion("depreciation is not null"); + return (Criteria) this; + } + + public Criteria andDepreciationEqualTo(Long value) { + addCriterion("depreciation =", value, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationNotEqualTo(Long value) { + addCriterion("depreciation <>", value, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationGreaterThan(Long value) { + addCriterion("depreciation >", value, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationGreaterThanOrEqualTo(Long value) { + addCriterion("depreciation >=", value, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationLessThan(Long value) { + addCriterion("depreciation <", value, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationLessThanOrEqualTo(Long value) { + addCriterion("depreciation <=", value, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationIn(List values) { + addCriterion("depreciation in", values, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationNotIn(List values) { + addCriterion("depreciation not in", values, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationBetween(Long value1, Long value2) { + addCriterion("depreciation between", value1, value2, "depreciation"); + return (Criteria) this; + } + + public Criteria andDepreciationNotBetween(Long value1, Long value2) { + addCriterion("depreciation not between", value1, value2, "depreciation"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessIsNull() { + addCriterion("travel_on_business is null"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessIsNotNull() { + addCriterion("travel_on_business is not null"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessEqualTo(Long value) { + addCriterion("travel_on_business =", value, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessNotEqualTo(Long value) { + addCriterion("travel_on_business <>", value, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessGreaterThan(Long value) { + addCriterion("travel_on_business >", value, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessGreaterThanOrEqualTo(Long value) { + addCriterion("travel_on_business >=", value, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessLessThan(Long value) { + addCriterion("travel_on_business <", value, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessLessThanOrEqualTo(Long value) { + addCriterion("travel_on_business <=", value, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessIn(List values) { + addCriterion("travel_on_business in", values, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessNotIn(List values) { + addCriterion("travel_on_business not in", values, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessBetween(Long value1, Long value2) { + addCriterion("travel_on_business between", value1, value2, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andTravelOnBusinessNotBetween(Long value1, Long value2) { + addCriterion("travel_on_business not between", value1, value2, "travelOnBusiness"); + return (Criteria) this; + } + + public Criteria andMarketIsNull() { + addCriterion("market is null"); + return (Criteria) this; + } + + public Criteria andMarketIsNotNull() { + addCriterion("market is not null"); + return (Criteria) this; + } + + public Criteria andMarketEqualTo(Long value) { + addCriterion("market =", value, "market"); + return (Criteria) this; + } + + public Criteria andMarketNotEqualTo(Long value) { + addCriterion("market <>", value, "market"); + return (Criteria) this; + } + + public Criteria andMarketGreaterThan(Long value) { + addCriterion("market >", value, "market"); + return (Criteria) this; + } + + public Criteria andMarketGreaterThanOrEqualTo(Long value) { + addCriterion("market >=", value, "market"); + return (Criteria) this; + } + + public Criteria andMarketLessThan(Long value) { + addCriterion("market <", value, "market"); + return (Criteria) this; + } + + public Criteria andMarketLessThanOrEqualTo(Long value) { + addCriterion("market <=", value, "market"); + return (Criteria) this; + } + + public Criteria andMarketIn(List values) { + addCriterion("market in", values, "market"); + return (Criteria) this; + } + + public Criteria andMarketNotIn(List values) { + addCriterion("market not in", values, "market"); + return (Criteria) this; + } + + public Criteria andMarketBetween(Long value1, Long value2) { + addCriterion("market between", value1, value2, "market"); + return (Criteria) this; + } + + public Criteria andMarketNotBetween(Long value1, Long value2) { + addCriterion("market not between", value1, value2, "market"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionIsNull() { + addCriterion("online_promotion is null"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionIsNotNull() { + addCriterion("online_promotion is not null"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionEqualTo(Long value) { + addCriterion("online_promotion =", value, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionNotEqualTo(Long value) { + addCriterion("online_promotion <>", value, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionGreaterThan(Long value) { + addCriterion("online_promotion >", value, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionGreaterThanOrEqualTo(Long value) { + addCriterion("online_promotion >=", value, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionLessThan(Long value) { + addCriterion("online_promotion <", value, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionLessThanOrEqualTo(Long value) { + addCriterion("online_promotion <=", value, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionIn(List values) { + addCriterion("online_promotion in", values, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionNotIn(List values) { + addCriterion("online_promotion not in", values, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionBetween(Long value1, Long value2) { + addCriterion("online_promotion between", value1, value2, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOnlinePromotionNotBetween(Long value1, Long value2) { + addCriterion("online_promotion not between", value1, value2, "onlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionIsNull() { + addCriterion("offline_promotion is null"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionIsNotNull() { + addCriterion("offline_promotion is not null"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionEqualTo(Long value) { + addCriterion("offline_promotion =", value, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionNotEqualTo(Long value) { + addCriterion("offline_promotion <>", value, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionGreaterThan(Long value) { + addCriterion("offline_promotion >", value, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionGreaterThanOrEqualTo(Long value) { + addCriterion("offline_promotion >=", value, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionLessThan(Long value) { + addCriterion("offline_promotion <", value, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionLessThanOrEqualTo(Long value) { + addCriterion("offline_promotion <=", value, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionIn(List values) { + addCriterion("offline_promotion in", values, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionNotIn(List values) { + addCriterion("offline_promotion not in", values, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionBetween(Long value1, Long value2) { + addCriterion("offline_promotion between", value1, value2, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andOfflinePromotionNotBetween(Long value1, Long value2) { + addCriterion("offline_promotion not between", value1, value2, "offlinePromotion"); + return (Criteria) this; + } + + public Criteria andBusinessExpandIsNull() { + addCriterion("business_expand is null"); + return (Criteria) this; + } + + public Criteria andBusinessExpandIsNotNull() { + addCriterion("business_expand is not null"); + return (Criteria) this; + } + + public Criteria andBusinessExpandEqualTo(Long value) { + addCriterion("business_expand =", value, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandNotEqualTo(Long value) { + addCriterion("business_expand <>", value, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandGreaterThan(Long value) { + addCriterion("business_expand >", value, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandGreaterThanOrEqualTo(Long value) { + addCriterion("business_expand >=", value, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandLessThan(Long value) { + addCriterion("business_expand <", value, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandLessThanOrEqualTo(Long value) { + addCriterion("business_expand <=", value, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandIn(List values) { + addCriterion("business_expand in", values, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandNotIn(List values) { + addCriterion("business_expand not in", values, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandBetween(Long value1, Long value2) { + addCriterion("business_expand between", value1, value2, "businessExpand"); + return (Criteria) this; + } + + public Criteria andBusinessExpandNotBetween(Long value1, Long value2) { + addCriterion("business_expand not between", value1, value2, "businessExpand"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsIsNull() { + addCriterion("financial_affairs is null"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsIsNotNull() { + addCriterion("financial_affairs is not null"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsEqualTo(Long value) { + addCriterion("financial_affairs =", value, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsNotEqualTo(Long value) { + addCriterion("financial_affairs <>", value, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsGreaterThan(Long value) { + addCriterion("financial_affairs >", value, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsGreaterThanOrEqualTo(Long value) { + addCriterion("financial_affairs >=", value, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsLessThan(Long value) { + addCriterion("financial_affairs <", value, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsLessThanOrEqualTo(Long value) { + addCriterion("financial_affairs <=", value, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsIn(List values) { + addCriterion("financial_affairs in", values, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsNotIn(List values) { + addCriterion("financial_affairs not in", values, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsBetween(Long value1, Long value2) { + addCriterion("financial_affairs between", value1, value2, "financialAffairs"); + return (Criteria) this; + } + + public Criteria andFinancialAffairsNotBetween(Long value1, Long value2) { + addCriterion("financial_affairs not between", value1, value2, "financialAffairs"); + 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/pims/src/main/java/com/ccsens/pims/bean/po/CompanyExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/CompanyExample.java new file mode 100644 index 00000000..47fe79d7 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/CompanyExample.java @@ -0,0 +1,631 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompanyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompanyExample() { + 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 andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria 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 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/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatements.java b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatements.java new file mode 100644 index 00000000..dba39162 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatements.java @@ -0,0 +1,95 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class IncomeStatements implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private String name; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", name=").append(name); + 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/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsExample.java new file mode 100644 index 00000000..8d4a1aa0 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsExample.java @@ -0,0 +1,631 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class IncomeStatementsExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public IncomeStatementsExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria 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/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsLog.java b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsLog.java new file mode 100644 index 00000000..674cb1f7 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsLog.java @@ -0,0 +1,128 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class IncomeStatementsLog implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private Long incomeStatementsId; + + private String monthTime; + + private Long predictMoney; + + private Long realMoney; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public Long getIncomeStatementsId() { + return incomeStatementsId; + } + + public void setIncomeStatementsId(Long incomeStatementsId) { + this.incomeStatementsId = incomeStatementsId; + } + + public String getMonthTime() { + return monthTime; + } + + public void setMonthTime(String monthTime) { + this.monthTime = monthTime == null ? null : monthTime.trim(); + } + + public Long getPredictMoney() { + return predictMoney; + } + + public void setPredictMoney(Long predictMoney) { + this.predictMoney = predictMoney; + } + + public Long getRealMoney() { + return realMoney; + } + + public void setRealMoney(Long realMoney) { + this.realMoney = realMoney; + } + + 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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", incomeStatementsId=").append(incomeStatementsId); + sb.append(", monthTime=").append(monthTime); + sb.append(", predictMoney=").append(predictMoney); + sb.append(", realMoney=").append(realMoney); + 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/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsLogExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsLogExample.java new file mode 100644 index 00000000..df218ac6 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/IncomeStatementsLogExample.java @@ -0,0 +1,811 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class IncomeStatementsLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public IncomeStatementsLogExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdIsNull() { + addCriterion("income_statements_id is null"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdIsNotNull() { + addCriterion("income_statements_id is not null"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdEqualTo(Long value) { + addCriterion("income_statements_id =", value, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdNotEqualTo(Long value) { + addCriterion("income_statements_id <>", value, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdGreaterThan(Long value) { + addCriterion("income_statements_id >", value, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdGreaterThanOrEqualTo(Long value) { + addCriterion("income_statements_id >=", value, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdLessThan(Long value) { + addCriterion("income_statements_id <", value, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdLessThanOrEqualTo(Long value) { + addCriterion("income_statements_id <=", value, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdIn(List values) { + addCriterion("income_statements_id in", values, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdNotIn(List values) { + addCriterion("income_statements_id not in", values, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdBetween(Long value1, Long value2) { + addCriterion("income_statements_id between", value1, value2, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andIncomeStatementsIdNotBetween(Long value1, Long value2) { + addCriterion("income_statements_id not between", value1, value2, "incomeStatementsId"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNull() { + addCriterion("month_time is null"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNotNull() { + addCriterion("month_time is not null"); + return (Criteria) this; + } + + public Criteria andMonthTimeEqualTo(String value) { + addCriterion("month_time =", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotEqualTo(String value) { + addCriterion("month_time <>", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThan(String value) { + addCriterion("month_time >", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThanOrEqualTo(String value) { + addCriterion("month_time >=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThan(String value) { + addCriterion("month_time <", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThanOrEqualTo(String value) { + addCriterion("month_time <=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLike(String value) { + addCriterion("month_time like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotLike(String value) { + addCriterion("month_time not like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeIn(List values) { + addCriterion("month_time in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotIn(List values) { + addCriterion("month_time not in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeBetween(String value1, String value2) { + addCriterion("month_time between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotBetween(String value1, String value2) { + addCriterion("month_time not between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andPredictMoneyIsNull() { + addCriterion("predict_money is null"); + return (Criteria) this; + } + + public Criteria andPredictMoneyIsNotNull() { + addCriterion("predict_money is not null"); + return (Criteria) this; + } + + public Criteria andPredictMoneyEqualTo(Long value) { + addCriterion("predict_money =", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyNotEqualTo(Long value) { + addCriterion("predict_money <>", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyGreaterThan(Long value) { + addCriterion("predict_money >", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyGreaterThanOrEqualTo(Long value) { + addCriterion("predict_money >=", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyLessThan(Long value) { + addCriterion("predict_money <", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyLessThanOrEqualTo(Long value) { + addCriterion("predict_money <=", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyIn(List values) { + addCriterion("predict_money in", values, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyNotIn(List values) { + addCriterion("predict_money not in", values, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyBetween(Long value1, Long value2) { + addCriterion("predict_money between", value1, value2, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyNotBetween(Long value1, Long value2) { + addCriterion("predict_money not between", value1, value2, "predictMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyIsNull() { + addCriterion("real_money is null"); + return (Criteria) this; + } + + public Criteria andRealMoneyIsNotNull() { + addCriterion("real_money is not null"); + return (Criteria) this; + } + + public Criteria andRealMoneyEqualTo(Long value) { + addCriterion("real_money =", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyNotEqualTo(Long value) { + addCriterion("real_money <>", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyGreaterThan(Long value) { + addCriterion("real_money >", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyGreaterThanOrEqualTo(Long value) { + addCriterion("real_money >=", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyLessThan(Long value) { + addCriterion("real_money <", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyLessThanOrEqualTo(Long value) { + addCriterion("real_money <=", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyIn(List values) { + addCriterion("real_money in", values, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyNotIn(List values) { + addCriterion("real_money not in", values, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyBetween(Long value1, Long value2) { + addCriterion("real_money between", value1, value2, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyNotBetween(Long value1, Long value2) { + addCriterion("real_money not between", value1, value2, "realMoney"); + 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/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlow.java b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlow.java new file mode 100644 index 00000000..5899596e --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlow.java @@ -0,0 +1,106 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class MoneyFlow implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private String name; + + private Byte moneyType; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Byte getMoneyType() { + return moneyType; + } + + public void setMoneyType(Byte moneyType) { + this.moneyType = moneyType; + } + + 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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", name=").append(name); + sb.append(", moneyType=").append(moneyType); + 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/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowExample.java new file mode 100644 index 00000000..ee661c97 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowExample.java @@ -0,0 +1,691 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class MoneyFlowExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public MoneyFlowExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andMoneyTypeIsNull() { + addCriterion("money_type is null"); + return (Criteria) this; + } + + public Criteria andMoneyTypeIsNotNull() { + addCriterion("money_type is not null"); + return (Criteria) this; + } + + public Criteria andMoneyTypeEqualTo(Byte value) { + addCriterion("money_type =", value, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeNotEqualTo(Byte value) { + addCriterion("money_type <>", value, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeGreaterThan(Byte value) { + addCriterion("money_type >", value, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeGreaterThanOrEqualTo(Byte value) { + addCriterion("money_type >=", value, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeLessThan(Byte value) { + addCriterion("money_type <", value, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeLessThanOrEqualTo(Byte value) { + addCriterion("money_type <=", value, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeIn(List values) { + addCriterion("money_type in", values, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeNotIn(List values) { + addCriterion("money_type not in", values, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeBetween(Byte value1, Byte value2) { + addCriterion("money_type between", value1, value2, "moneyType"); + return (Criteria) this; + } + + public Criteria andMoneyTypeNotBetween(Byte value1, Byte value2) { + addCriterion("money_type not between", value1, value2, "moneyType"); + 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/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowLog.java b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowLog.java new file mode 100644 index 00000000..2e123200 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowLog.java @@ -0,0 +1,128 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class MoneyFlowLog implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private Long moneyFlowId; + + private String monthTime; + + private Long predictMoney; + + private Long realMoney; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public Long getMoneyFlowId() { + return moneyFlowId; + } + + public void setMoneyFlowId(Long moneyFlowId) { + this.moneyFlowId = moneyFlowId; + } + + public String getMonthTime() { + return monthTime; + } + + public void setMonthTime(String monthTime) { + this.monthTime = monthTime == null ? null : monthTime.trim(); + } + + public Long getPredictMoney() { + return predictMoney; + } + + public void setPredictMoney(Long predictMoney) { + this.predictMoney = predictMoney; + } + + public Long getRealMoney() { + return realMoney; + } + + public void setRealMoney(Long realMoney) { + this.realMoney = realMoney; + } + + 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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", moneyFlowId=").append(moneyFlowId); + sb.append(", monthTime=").append(monthTime); + sb.append(", predictMoney=").append(predictMoney); + sb.append(", realMoney=").append(realMoney); + 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/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowLogExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowLogExample.java new file mode 100644 index 00000000..bcc899a0 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/MoneyFlowLogExample.java @@ -0,0 +1,811 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class MoneyFlowLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public MoneyFlowLogExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdIsNull() { + addCriterion("money_flow_id is null"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdIsNotNull() { + addCriterion("money_flow_id is not null"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdEqualTo(Long value) { + addCriterion("money_flow_id =", value, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdNotEqualTo(Long value) { + addCriterion("money_flow_id <>", value, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdGreaterThan(Long value) { + addCriterion("money_flow_id >", value, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdGreaterThanOrEqualTo(Long value) { + addCriterion("money_flow_id >=", value, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdLessThan(Long value) { + addCriterion("money_flow_id <", value, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdLessThanOrEqualTo(Long value) { + addCriterion("money_flow_id <=", value, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdIn(List values) { + addCriterion("money_flow_id in", values, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdNotIn(List values) { + addCriterion("money_flow_id not in", values, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdBetween(Long value1, Long value2) { + addCriterion("money_flow_id between", value1, value2, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMoneyFlowIdNotBetween(Long value1, Long value2) { + addCriterion("money_flow_id not between", value1, value2, "moneyFlowId"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNull() { + addCriterion("month_time is null"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNotNull() { + addCriterion("month_time is not null"); + return (Criteria) this; + } + + public Criteria andMonthTimeEqualTo(String value) { + addCriterion("month_time =", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotEqualTo(String value) { + addCriterion("month_time <>", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThan(String value) { + addCriterion("month_time >", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThanOrEqualTo(String value) { + addCriterion("month_time >=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThan(String value) { + addCriterion("month_time <", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThanOrEqualTo(String value) { + addCriterion("month_time <=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLike(String value) { + addCriterion("month_time like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotLike(String value) { + addCriterion("month_time not like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeIn(List values) { + addCriterion("month_time in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotIn(List values) { + addCriterion("month_time not in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeBetween(String value1, String value2) { + addCriterion("month_time between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotBetween(String value1, String value2) { + addCriterion("month_time not between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andPredictMoneyIsNull() { + addCriterion("predict_money is null"); + return (Criteria) this; + } + + public Criteria andPredictMoneyIsNotNull() { + addCriterion("predict_money is not null"); + return (Criteria) this; + } + + public Criteria andPredictMoneyEqualTo(Long value) { + addCriterion("predict_money =", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyNotEqualTo(Long value) { + addCriterion("predict_money <>", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyGreaterThan(Long value) { + addCriterion("predict_money >", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyGreaterThanOrEqualTo(Long value) { + addCriterion("predict_money >=", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyLessThan(Long value) { + addCriterion("predict_money <", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyLessThanOrEqualTo(Long value) { + addCriterion("predict_money <=", value, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyIn(List values) { + addCriterion("predict_money in", values, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyNotIn(List values) { + addCriterion("predict_money not in", values, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyBetween(Long value1, Long value2) { + addCriterion("predict_money between", value1, value2, "predictMoney"); + return (Criteria) this; + } + + public Criteria andPredictMoneyNotBetween(Long value1, Long value2) { + addCriterion("predict_money not between", value1, value2, "predictMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyIsNull() { + addCriterion("real_money is null"); + return (Criteria) this; + } + + public Criteria andRealMoneyIsNotNull() { + addCriterion("real_money is not null"); + return (Criteria) this; + } + + public Criteria andRealMoneyEqualTo(Long value) { + addCriterion("real_money =", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyNotEqualTo(Long value) { + addCriterion("real_money <>", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyGreaterThan(Long value) { + addCriterion("real_money >", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyGreaterThanOrEqualTo(Long value) { + addCriterion("real_money >=", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyLessThan(Long value) { + addCriterion("real_money <", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyLessThanOrEqualTo(Long value) { + addCriterion("real_money <=", value, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyIn(List values) { + addCriterion("real_money in", values, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyNotIn(List values) { + addCriterion("real_money not in", values, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyBetween(Long value1, Long value2) { + addCriterion("real_money between", value1, value2, "realMoney"); + return (Criteria) this; + } + + public Criteria andRealMoneyNotBetween(Long value1, Long value2) { + addCriterion("real_money not between", value1, value2, "realMoney"); + 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/pims/src/main/java/com/ccsens/pims/bean/po/Product.java b/pims/src/main/java/com/ccsens/pims/bean/po/Product.java new file mode 100644 index 00000000..67f40efb --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/Product.java @@ -0,0 +1,161 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class Product implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private String name; + + private String description; + + private Byte productTypeId; + + private Long pricing; + + private Long priceUnits; + + private Integer grossMargin; + + private Byte significanceSort; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description == null ? null : description.trim(); + } + + public Byte getProductTypeId() { + return productTypeId; + } + + public void setProductTypeId(Byte productTypeId) { + this.productTypeId = productTypeId; + } + + public Long getPricing() { + return pricing; + } + + public void setPricing(Long pricing) { + this.pricing = pricing; + } + + public Long getPriceUnits() { + return priceUnits; + } + + public void setPriceUnits(Long priceUnits) { + this.priceUnits = priceUnits; + } + + public Integer getGrossMargin() { + return grossMargin; + } + + public void setGrossMargin(Integer grossMargin) { + this.grossMargin = grossMargin; + } + + public Byte getSignificanceSort() { + return significanceSort; + } + + public void setSignificanceSort(Byte significanceSort) { + this.significanceSort = significanceSort; + } + + 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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", name=").append(name); + sb.append(", description=").append(description); + sb.append(", productTypeId=").append(productTypeId); + sb.append(", pricing=").append(pricing); + sb.append(", priceUnits=").append(priceUnits); + sb.append(", grossMargin=").append(grossMargin); + sb.append(", significanceSort=").append(significanceSort); + 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/pims/src/main/java/com/ccsens/pims/bean/po/ProductExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/ProductExample.java new file mode 100644 index 00000000..e8af2016 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/ProductExample.java @@ -0,0 +1,1001 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProductExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProductExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNull() { + addCriterion("description is null"); + return (Criteria) this; + } + + public Criteria andDescriptionIsNotNull() { + addCriterion("description is not null"); + return (Criteria) this; + } + + public Criteria andDescriptionEqualTo(String value) { + addCriterion("description =", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotEqualTo(String value) { + addCriterion("description <>", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThan(String value) { + addCriterion("description >", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionGreaterThanOrEqualTo(String value) { + addCriterion("description >=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThan(String value) { + addCriterion("description <", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLessThanOrEqualTo(String value) { + addCriterion("description <=", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionLike(String value) { + addCriterion("description like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotLike(String value) { + addCriterion("description not like", value, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionIn(List values) { + addCriterion("description in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotIn(List values) { + addCriterion("description not in", values, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionBetween(String value1, String value2) { + addCriterion("description between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andDescriptionNotBetween(String value1, String value2) { + addCriterion("description not between", value1, value2, "description"); + return (Criteria) this; + } + + public Criteria andProductTypeIdIsNull() { + addCriterion("product_type_id is null"); + return (Criteria) this; + } + + public Criteria andProductTypeIdIsNotNull() { + addCriterion("product_type_id is not null"); + return (Criteria) this; + } + + public Criteria andProductTypeIdEqualTo(Byte value) { + addCriterion("product_type_id =", value, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdNotEqualTo(Byte value) { + addCriterion("product_type_id <>", value, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdGreaterThan(Byte value) { + addCriterion("product_type_id >", value, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdGreaterThanOrEqualTo(Byte value) { + addCriterion("product_type_id >=", value, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdLessThan(Byte value) { + addCriterion("product_type_id <", value, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdLessThanOrEqualTo(Byte value) { + addCriterion("product_type_id <=", value, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdIn(List values) { + addCriterion("product_type_id in", values, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdNotIn(List values) { + addCriterion("product_type_id not in", values, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdBetween(Byte value1, Byte value2) { + addCriterion("product_type_id between", value1, value2, "productTypeId"); + return (Criteria) this; + } + + public Criteria andProductTypeIdNotBetween(Byte value1, Byte value2) { + addCriterion("product_type_id not between", value1, value2, "productTypeId"); + return (Criteria) this; + } + + public Criteria andPricingIsNull() { + addCriterion("pricing is null"); + return (Criteria) this; + } + + public Criteria andPricingIsNotNull() { + addCriterion("pricing is not null"); + return (Criteria) this; + } + + public Criteria andPricingEqualTo(Long value) { + addCriterion("pricing =", value, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingNotEqualTo(Long value) { + addCriterion("pricing <>", value, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingGreaterThan(Long value) { + addCriterion("pricing >", value, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingGreaterThanOrEqualTo(Long value) { + addCriterion("pricing >=", value, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingLessThan(Long value) { + addCriterion("pricing <", value, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingLessThanOrEqualTo(Long value) { + addCriterion("pricing <=", value, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingIn(List values) { + addCriterion("pricing in", values, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingNotIn(List values) { + addCriterion("pricing not in", values, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingBetween(Long value1, Long value2) { + addCriterion("pricing between", value1, value2, "pricing"); + return (Criteria) this; + } + + public Criteria andPricingNotBetween(Long value1, Long value2) { + addCriterion("pricing not between", value1, value2, "pricing"); + return (Criteria) this; + } + + public Criteria andPriceUnitsIsNull() { + addCriterion("price_units is null"); + return (Criteria) this; + } + + public Criteria andPriceUnitsIsNotNull() { + addCriterion("price_units is not null"); + return (Criteria) this; + } + + public Criteria andPriceUnitsEqualTo(Long value) { + addCriterion("price_units =", value, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsNotEqualTo(Long value) { + addCriterion("price_units <>", value, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsGreaterThan(Long value) { + addCriterion("price_units >", value, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsGreaterThanOrEqualTo(Long value) { + addCriterion("price_units >=", value, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsLessThan(Long value) { + addCriterion("price_units <", value, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsLessThanOrEqualTo(Long value) { + addCriterion("price_units <=", value, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsIn(List values) { + addCriterion("price_units in", values, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsNotIn(List values) { + addCriterion("price_units not in", values, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsBetween(Long value1, Long value2) { + addCriterion("price_units between", value1, value2, "priceUnits"); + return (Criteria) this; + } + + public Criteria andPriceUnitsNotBetween(Long value1, Long value2) { + addCriterion("price_units not between", value1, value2, "priceUnits"); + return (Criteria) this; + } + + public Criteria andGrossMarginIsNull() { + addCriterion("gross_margin is null"); + return (Criteria) this; + } + + public Criteria andGrossMarginIsNotNull() { + addCriterion("gross_margin is not null"); + return (Criteria) this; + } + + public Criteria andGrossMarginEqualTo(Integer value) { + addCriterion("gross_margin =", value, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginNotEqualTo(Integer value) { + addCriterion("gross_margin <>", value, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginGreaterThan(Integer value) { + addCriterion("gross_margin >", value, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginGreaterThanOrEqualTo(Integer value) { + addCriterion("gross_margin >=", value, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginLessThan(Integer value) { + addCriterion("gross_margin <", value, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginLessThanOrEqualTo(Integer value) { + addCriterion("gross_margin <=", value, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginIn(List values) { + addCriterion("gross_margin in", values, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginNotIn(List values) { + addCriterion("gross_margin not in", values, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginBetween(Integer value1, Integer value2) { + addCriterion("gross_margin between", value1, value2, "grossMargin"); + return (Criteria) this; + } + + public Criteria andGrossMarginNotBetween(Integer value1, Integer value2) { + addCriterion("gross_margin not between", value1, value2, "grossMargin"); + return (Criteria) this; + } + + public Criteria andSignificanceSortIsNull() { + addCriterion("significance_sort is null"); + return (Criteria) this; + } + + public Criteria andSignificanceSortIsNotNull() { + addCriterion("significance_sort is not null"); + return (Criteria) this; + } + + public Criteria andSignificanceSortEqualTo(Byte value) { + addCriterion("significance_sort =", value, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortNotEqualTo(Byte value) { + addCriterion("significance_sort <>", value, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortGreaterThan(Byte value) { + addCriterion("significance_sort >", value, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortGreaterThanOrEqualTo(Byte value) { + addCriterion("significance_sort >=", value, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortLessThan(Byte value) { + addCriterion("significance_sort <", value, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortLessThanOrEqualTo(Byte value) { + addCriterion("significance_sort <=", value, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortIn(List values) { + addCriterion("significance_sort in", values, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortNotIn(List values) { + addCriterion("significance_sort not in", values, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortBetween(Byte value1, Byte value2) { + addCriterion("significance_sort between", value1, value2, "significanceSort"); + return (Criteria) this; + } + + public Criteria andSignificanceSortNotBetween(Byte value1, Byte value2) { + addCriterion("significance_sort not between", value1, value2, "significanceSort"); + 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/pims/src/main/java/com/ccsens/pims/bean/po/ProductIncome.java b/pims/src/main/java/com/ccsens/pims/bean/po/ProductIncome.java new file mode 100644 index 00000000..7ce9279b --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/ProductIncome.java @@ -0,0 +1,106 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class ProductIncome implements Serializable { + private Long id; + + private Long productId; + + private String monthTime; + + private Long predictIncome; + + private Long realIncome; + + 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 getProductId() { + return productId; + } + + public void setProductId(Long productId) { + this.productId = productId; + } + + public String getMonthTime() { + return monthTime; + } + + public void setMonthTime(String monthTime) { + this.monthTime = monthTime == null ? null : monthTime.trim(); + } + + public Long getPredictIncome() { + return predictIncome; + } + + public void setPredictIncome(Long predictIncome) { + this.predictIncome = predictIncome; + } + + public Long getRealIncome() { + return realIncome; + } + + public void setRealIncome(Long realIncome) { + this.realIncome = realIncome; + } + + 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(", productId=").append(productId); + sb.append(", monthTime=").append(monthTime); + sb.append(", predictIncome=").append(predictIncome); + sb.append(", realIncome=").append(realIncome); + 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/pims/src/main/java/com/ccsens/pims/bean/po/ProductIncomeExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/ProductIncomeExample.java new file mode 100644 index 00000000..0fbe9816 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/ProductIncomeExample.java @@ -0,0 +1,691 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProductIncomeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProductIncomeExample() { + 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 andProductIdIsNull() { + addCriterion("product_id is null"); + return (Criteria) this; + } + + public Criteria andProductIdIsNotNull() { + addCriterion("product_id is not null"); + return (Criteria) this; + } + + public Criteria andProductIdEqualTo(Long value) { + addCriterion("product_id =", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotEqualTo(Long value) { + addCriterion("product_id <>", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdGreaterThan(Long value) { + addCriterion("product_id >", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdGreaterThanOrEqualTo(Long value) { + addCriterion("product_id >=", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdLessThan(Long value) { + addCriterion("product_id <", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdLessThanOrEqualTo(Long value) { + addCriterion("product_id <=", value, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdIn(List values) { + addCriterion("product_id in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotIn(List values) { + addCriterion("product_id not in", values, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdBetween(Long value1, Long value2) { + addCriterion("product_id between", value1, value2, "productId"); + return (Criteria) this; + } + + public Criteria andProductIdNotBetween(Long value1, Long value2) { + addCriterion("product_id not between", value1, value2, "productId"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNull() { + addCriterion("month_time is null"); + return (Criteria) this; + } + + public Criteria andMonthTimeIsNotNull() { + addCriterion("month_time is not null"); + return (Criteria) this; + } + + public Criteria andMonthTimeEqualTo(String value) { + addCriterion("month_time =", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotEqualTo(String value) { + addCriterion("month_time <>", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThan(String value) { + addCriterion("month_time >", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeGreaterThanOrEqualTo(String value) { + addCriterion("month_time >=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThan(String value) { + addCriterion("month_time <", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLessThanOrEqualTo(String value) { + addCriterion("month_time <=", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeLike(String value) { + addCriterion("month_time like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotLike(String value) { + addCriterion("month_time not like", value, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeIn(List values) { + addCriterion("month_time in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotIn(List values) { + addCriterion("month_time not in", values, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeBetween(String value1, String value2) { + addCriterion("month_time between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andMonthTimeNotBetween(String value1, String value2) { + addCriterion("month_time not between", value1, value2, "monthTime"); + return (Criteria) this; + } + + public Criteria andPredictIncomeIsNull() { + addCriterion("predict_income is null"); + return (Criteria) this; + } + + public Criteria andPredictIncomeIsNotNull() { + addCriterion("predict_income is not null"); + return (Criteria) this; + } + + public Criteria andPredictIncomeEqualTo(Long value) { + addCriterion("predict_income =", value, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeNotEqualTo(Long value) { + addCriterion("predict_income <>", value, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeGreaterThan(Long value) { + addCriterion("predict_income >", value, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeGreaterThanOrEqualTo(Long value) { + addCriterion("predict_income >=", value, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeLessThan(Long value) { + addCriterion("predict_income <", value, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeLessThanOrEqualTo(Long value) { + addCriterion("predict_income <=", value, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeIn(List values) { + addCriterion("predict_income in", values, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeNotIn(List values) { + addCriterion("predict_income not in", values, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeBetween(Long value1, Long value2) { + addCriterion("predict_income between", value1, value2, "predictIncome"); + return (Criteria) this; + } + + public Criteria andPredictIncomeNotBetween(Long value1, Long value2) { + addCriterion("predict_income not between", value1, value2, "predictIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeIsNull() { + addCriterion("real_income is null"); + return (Criteria) this; + } + + public Criteria andRealIncomeIsNotNull() { + addCriterion("real_income is not null"); + return (Criteria) this; + } + + public Criteria andRealIncomeEqualTo(Long value) { + addCriterion("real_income =", value, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeNotEqualTo(Long value) { + addCriterion("real_income <>", value, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeGreaterThan(Long value) { + addCriterion("real_income >", value, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeGreaterThanOrEqualTo(Long value) { + addCriterion("real_income >=", value, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeLessThan(Long value) { + addCriterion("real_income <", value, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeLessThanOrEqualTo(Long value) { + addCriterion("real_income <=", value, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeIn(List values) { + addCriterion("real_income in", values, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeNotIn(List values) { + addCriterion("real_income not in", values, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeBetween(Long value1, Long value2) { + addCriterion("real_income between", value1, value2, "realIncome"); + return (Criteria) this; + } + + public Criteria andRealIncomeNotBetween(Long value1, Long value2) { + addCriterion("real_income not between", value1, value2, "realIncome"); + 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/pims/src/main/java/com/ccsens/pims/bean/po/ProductType.java b/pims/src/main/java/com/ccsens/pims/bean/po/ProductType.java new file mode 100644 index 00000000..ea64a5fa --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/ProductType.java @@ -0,0 +1,95 @@ +package com.ccsens.pims.bean.po; + +import java.io.Serializable; +import java.util.Date; + +public class ProductType implements Serializable { + private Long id; + + private Long companyId; + + private Long projectId; + + private String name; + + 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 getCompanyId() { + return companyId; + } + + public void setCompanyId(Long companyId) { + this.companyId = companyId; + } + + public Long getProjectId() { + return projectId; + } + + public void setProjectId(Long projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.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(", companyId=").append(companyId); + sb.append(", projectId=").append(projectId); + sb.append(", name=").append(name); + 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/pims/src/main/java/com/ccsens/pims/bean/po/ProductTypeExample.java b/pims/src/main/java/com/ccsens/pims/bean/po/ProductTypeExample.java new file mode 100644 index 00000000..c20c0106 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/po/ProductTypeExample.java @@ -0,0 +1,631 @@ +package com.ccsens.pims.bean.po; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProductTypeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProductTypeExample() { + 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 andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Long value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Long value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Long value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Long value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Long value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Long value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Long value1, Long value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Long value1, Long value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Long value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Long value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Long value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Long value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Long value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Long value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Long value1, Long value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Long value1, Long value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria 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/pims/src/main/java/com/ccsens/pims/bean/vo/CompanyVo.java b/pims/src/main/java/com/ccsens/pims/bean/vo/CompanyVo.java new file mode 100644 index 00000000..a8990872 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/vo/CompanyVo.java @@ -0,0 +1,125 @@ +package com.ccsens.pims.bean.vo; + +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; + +import java.util.List; + +/** + * @author 逗 + */ +@Data +public class CompanyVo { + @Data + @ApiModel("产品分类信息") + public static class ProductType{ + @ApiModelProperty("产品分类id") + private Long productType; + @ApiModelProperty("产品分类名称") + private String productTypeName; + @ApiModelProperty("产品信息") + private List productList; + } + + + @Data + @ApiModel("查看产品使用依据") + public static class ProductInfo{ + @ApiModelProperty("产品id") + private Long productId; + @ApiModelProperty("产品名称") + private String productName; + @ApiModelProperty("产品定价") + private Long pricing; + @ApiModelProperty("价格单温(元)") + private Long priceUnits; + @ApiModelProperty("毛利") + private String grossMargin; + @ApiModelProperty("重要性 越高代表越重要") + private int significanceSort; + } + + @Data + @ApiModel("查看单个产品的销售收入") + public static class ProductIncome{ + @ApiModelProperty("月份") + private String month; + @ApiModelProperty("预计收入") + private Long predictIncome; + @ApiModelProperty("实际收入") + private Long realIncome; + } + + @Data + @ApiModel("查看所有产品的销售收入") + public static class ProductIncomeAll{ + @ApiModelProperty("产品id") + private Long productId; + @ApiModelProperty("产品名称") + private String productName; + @ApiModelProperty("每个月的销售收入") + private List productIncomeList; + } + + @Data + @ApiModel("查看产品总收入占比图") + public static class ProductIncomeProportion{ + @ApiModelProperty("月份") + private String month; + @ApiModelProperty("预计占比") + private Long predictProportion; + @ApiModelProperty("实际占比") + private Long realProportion; + } + + @Data + @ApiModel("总成本费用估算表") + public static class TotalCost{ + @ApiModelProperty("月份") + private String month; + @ApiModelProperty("预计成本") + private Long predictCost; + @ApiModelProperty("实际成本") + private Long realCost; + } + + + @Data + @ApiModel("损益类型") + public static class IncomeType{ + @ApiModelProperty("损益类型") + private Long incomeType; + @ApiModelProperty("损益类型名字") + private String incomeName; + @ApiModelProperty("每月损益") + private List incomeMonthList; + } + @Data + @ApiModel("损益") + public static class IncomeMonth{ + @ApiModelProperty("月份") + private String month; + @ApiModelProperty("损益数额") + private Long income; + } + + @Data + @ApiModel("现金流变动类型") + public static class MoneyFlowType{ + @ApiModelProperty("现金流变动类型") + private Long moneyFlowType; + @ApiModelProperty("现金流变动类型名字") + private String moneyFlowName; + @ApiModelProperty("每月现金流变动") + private List incomeMonthList; + } + @Data + @ApiModel("现金流变动") + public static class MoneyFlow{ + @ApiModelProperty("月份") + private String month; + @ApiModelProperty("现金流变动(收入是正数,支出为负数)") + private Long moneyFlow; + } +} diff --git a/pims/src/main/java/com/ccsens/pims/bean/vo/ProductDto.java b/pims/src/main/java/com/ccsens/pims/bean/vo/ProductDto.java new file mode 100644 index 00000000..ee9215f9 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/bean/vo/ProductDto.java @@ -0,0 +1,11 @@ +package com.ccsens.pims.bean.vo; + +import lombok.Data; + +/** + * @author 逗 + */ +@Data +public class ProductDto { + +} diff --git a/pims/src/main/java/com/ccsens/pims/config/BeanConfig.java b/pims/src/main/java/com/ccsens/pims/config/BeanConfig.java new file mode 100644 index 00000000..cc9bfeb0 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/config/BeanConfig.java @@ -0,0 +1,31 @@ +package com.ccsens.pims.config; + +import com.ccsens.pims.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/pims/src/main/java/com/ccsens/pims/config/SpringConfig.java b/pims/src/main/java/com/ccsens/pims/config/SpringConfig.java new file mode 100644 index 00000000..c8d02d73 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/config/SpringConfig.java @@ -0,0 +1,164 @@ +package com.ccsens.pims.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.Autowired; +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.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 { + @Autowired + 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 responseJsonConverter(){ + MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter(); + List mediaTypeList = new ArrayList<>(); + mediaTypeList.add(MediaType.TEXT_HTML); + mediaTypeList.add(MediaType.APPLICATION_JSON_UTF8); + converter.setSupportedMediaTypes(mediaTypeList); + + //converter.setObjectMapper(); + ObjectMapper objectMapper = new ObjectMapper(); + SimpleModule simpleModule = new SimpleModule(); + simpleModule.addSerializer(Long.class, ToStringSerializer.instance); + simpleModule.addSerializer(Long.TYPE, ToStringSerializer.instance); + objectMapper.registerModule(simpleModule); + objectMapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + converter.setObjectMapper(objectMapper); + + return converter; + } + + @Override + public void configureMessageConverters(List> converters) { + //super.configureMessageConverters(converters); + converters.add(responseStringConverter()); + converters.add(responseJsonConverter()); + } + + @Override + public void configureContentNegotiation(ContentNegotiationConfigurer configurer) { + configurer.favorPathExtension(false); + } + + + @Override + public void addCorsMappings(CorsRegistry registry) { + registry.addMapping("/**").allowedMethods("GET", "POST", "PUT", "DELETE", "OPTIONS"); + } + + /** + * 配置视图解析器 SpringBoot建议使用Thymeleaf代替jsp,动态页面默认路径:resources/template,静态页面默认路径: resources/static + * @return + */ +// @Bean +// public ViewResolver getViewResolver() { +// InternalResourceViewResolver resolver = new InternalResourceViewResolver(); +// resolver.setPrefix("/WEB-INF/views/"); +// resolver.setSuffix(".jsp"); +// return resolver; +// } +// @Override +// public void configureDefaultServletHandling( +// DefaultServletHandlerConfigurer configurer) { +// configurer.enable(); +// } + + + /** + * 配置静态资源 + */ + @Override + public void addResourceHandlers(ResourceHandlerRegistry registry) { + registry.addResourceHandler("swagger-ui.html") + .addResourceLocations("classpath:/META-INF/resources/"); + registry.addResourceHandler("/webjars/**") + .addResourceLocations("classpath:/META-INF/resources/webjars/"); + + registry.addResourceHandler("/uploads/**") + .addResourceLocations("file:///home/cloud/tall/uploads/"); + //super.addResourceHandlers(registry); + } + + /** + * 配置拦截器 + * @param registry + */ + @Override + public void addInterceptors(InterceptorRegistry registry) { + //addPathPatterns 用于添加拦截规则 + //excludePathPatterns 用于排除拦截 +// registry.addInterceptor(tokenInterceptor()) +// .addPathPatterns("/projects/**") +// .addPathPatterns("/messages/**") +// .addPathPatterns("/users/**") +// .excludePathPatterns("/users/signin") +// .excludePathPatterns("/users/smscode") +// .excludePathPatterns("/users/signup") +// .excludePathPatterns("/users/password") +// .excludePathPatterns("/users/account") +// .excludePathPatterns("/users/token") +// .excludePathPatterns("/users/claims") +// .addPathPatterns("/plugins/**") +// .addPathPatterns("/delivers/**") +// .addPathPatterns("/tasks/**") +// .addPathPatterns("/members/**") +// .addPathPatterns("/templates/**") +// .addPathPatterns("/hardware/**"); + //super.addInterceptors(registry); + } +// +// @Bean +// public TokenInterceptor tokenInterceptor(){ +// return new TokenInterceptor(); +// } + + /** + * 配置数据源(单数据源) + */ + @Bean + public DataSource dataSource(){ + return druidPropsUtil.createDruidDataSource(); + } + + @Bean + public Snowflake snowflake(){ +// return new Snowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); + return IdUtil.createSnowflake(Long.valueOf(workerId),Long.valueOf(datacenterId)); + } +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/config/SwaggerConfigure.java b/pims/src/main/java/com/ccsens/pims/config/SwaggerConfigure.java new file mode 100644 index 00000000..8c6e27a8 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/config/SwaggerConfigure.java @@ -0,0 +1,56 @@ +package com.ccsens.pims.config; + +import com.ccsens.util.WebConstant; +import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; +import springfox.documentation.builders.ParameterBuilder; +import springfox.documentation.builders.RequestHandlerSelectors; +import springfox.documentation.schema.ModelRef; +import springfox.documentation.service.ApiInfo; +import springfox.documentation.service.Parameter; +import springfox.documentation.spi.DocumentationType; +import springfox.documentation.spring.web.plugins.Docket; +import springfox.documentation.swagger2.annotations.EnableSwagger2; + +import java.util.ArrayList; +import java.util.List; + +@Configuration +@EnableSwagger2 +@ConditionalOnExpression("${swagger.enable}") +//public class SwaggerConfigure extends WebMvcConfigurationSupport { +public class SwaggerConfigure /*implements WebMvcConfigurer*/ { + @Bean + public Docket customDocket() { + // + return new Docket(DocumentationType.SWAGGER_2) + .apiInfo(apiInfo()) + .select() + .apis(RequestHandlerSelectors + .basePackage("com.ccsens.pims.api")) + .build() + .globalOperationParameters(setHeaderToken()); + } + + private ApiInfo apiInfo() { + return new ApiInfo("Swagger Tall-game",//大标题 title + "This is a sample server Petstore server. You can find out more about Swagger at [http://swagger.io](http://swagger.io) or on [irc.freenode.net, #swagger](http://swagger.io/irc/). For this sample, you can use the api key `special-key` to test the authorization filters.",//小标题 + "1.0.0",//版本 + "http://swagger.io/terms/",//termsOfServiceUrl + "zhangsan",//作者 + "Apache 2.0",//链接显示文字 + "http://www.apache.org/licenses/LICENSE-2.0.html"//网站链接 + ); + } + + private List setHeaderToken() { + ParameterBuilder tokenPar = new ParameterBuilder(); + List pars = new ArrayList<>(); + tokenPar.name(WebConstant.HEADER_KEY_TOKEN).description("token") + .defaultValue(WebConstant.HEADER_KEY_TOKEN_PREFIX) + .modelRef(new ModelRef("string")).parameterType("header").required(false).build(); + pars.add(tokenPar.build()); + return pars; + } +} diff --git a/pims/src/main/java/com/ccsens/pims/intercept/MybatisInterceptor.java b/pims/src/main/java/com/ccsens/pims/intercept/MybatisInterceptor.java new file mode 100644 index 00000000..393c3b70 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/intercept/MybatisInterceptor.java @@ -0,0 +1,154 @@ +package com.ccsens.pims.intercept; + +import cn.hutool.core.collection.CollectionUtil; +import com.ccsens.util.WebConstant; +import org.apache.ibatis.executor.Executor; +import org.apache.ibatis.mapping.*; +import org.apache.ibatis.plugin.*; +import org.apache.ibatis.reflection.DefaultReflectorFactory; +import org.apache.ibatis.reflection.MetaObject; +import org.apache.ibatis.reflection.factory.DefaultObjectFactory; +import org.apache.ibatis.reflection.wrapper.DefaultObjectWrapperFactory; +import org.apache.ibatis.session.ResultHandler; +import org.apache.ibatis.session.RowBounds; + +import java.lang.reflect.Method; +import java.util.List; +import java.util.Properties; + +/** + * @description: + * @author: wuHuiJuan + * @create: 2019/12/11 10:58 + */ +@Intercepts({ + @Signature( + type = Executor.class, + method = "query", + args = {MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class} + ) +}) +public class MybatisInterceptor implements Interceptor { + @Override + public Object intercept(Invocation invocation) throws Throwable { + + + String selectByExample = "selectByExample"; + String selectByPrimaryKey = "selectByPrimaryKey"; + + Object[] args = invocation.getArgs(); + MappedStatement statement = (MappedStatement) args[0]; + if (statement.getId().endsWith(selectByExample)) { + //XXXExample + Object example = args[1]; + Method method = example.getClass().getMethod("getOredCriteria", null); + //获取到条件数组,第一个是Criteria + List list = (List)method.invoke(example); + if (CollectionUtil.isEmpty(list)) { + Class clazz = ((ResultMap)statement.getResultMaps().get(0)).getType(); + String exampleName = clazz.getName() + "Example"; + Object paramExample = Class.forName(exampleName).newInstance(); + Method createCriteria = paramExample.getClass().getMethod("createCriteria"); + Object criteria = createCriteria.invoke(paramExample); + Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); + andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); + list.add(criteria); + } else { + Object criteria = list.get(0); + Method getCriteria = criteria.getClass().getMethod("getCriteria"); + List params = (List)getCriteria.invoke(criteria); + boolean hasDel = false; + for(Object param: params) { + Method getCondition = param.getClass().getMethod("getCondition"); + Object condition = getCondition.invoke(param); + if ("iis_del =".equals(condition)) { + hasDel = true; + } + } + if (!hasDel) { + Method andIsDelEqualTo = criteria.getClass().getMethod("andRecStatusEqualTo", Byte.class); + andIsDelEqualTo.invoke(criteria, WebConstant.REC_STATUS.Normal.value); + } + + } + + + } else if (statement.getId().endsWith(selectByPrimaryKey)) { + BoundSql boundSql = statement.getBoundSql(args[1]); + String sql = boundSql.getSql() + " and rec_status = 0"; + MappedStatement newStatement = newMappedStatement(statement, new BoundSqlSqlSource(boundSql)); + MetaObject msObject = MetaObject.forObject(newStatement, new DefaultObjectFactory(), new DefaultObjectWrapperFactory(),new DefaultReflectorFactory()); + msObject.setValue("sqlSource.boundSql.sql", sql); + args[0] = newStatement; + } + + return invocation.proceed(); + } + + @Override + public Object plugin(Object target) { + return Plugin.wrap(target, this); + } + + @Override + public void setProperties(Properties properties) { + + } + + private MappedStatement newMappedStatement(MappedStatement ms, SqlSource newSqlSource) { + MappedStatement.Builder builder = + new MappedStatement.Builder(ms.getConfiguration(), ms.getId(), newSqlSource, ms.getSqlCommandType()); + builder.resource(ms.getResource()); + builder.fetchSize(ms.getFetchSize()); + builder.statementType(ms.getStatementType()); + builder.keyGenerator(ms.getKeyGenerator()); + if (ms.getKeyProperties() != null && ms.getKeyProperties().length != 0) { + StringBuilder keyProperties = new StringBuilder(); + for (String keyProperty : ms.getKeyProperties()) { + keyProperties.append(keyProperty).append(","); + } + keyProperties.delete(keyProperties.length() - 1, keyProperties.length()); + builder.keyProperty(keyProperties.toString()); + } + builder.timeout(ms.getTimeout()); + builder.parameterMap(ms.getParameterMap()); + builder.resultMaps(ms.getResultMaps()); + builder.resultSetType(ms.getResultSetType()); + builder.cache(ms.getCache()); + builder.flushCacheRequired(ms.isFlushCacheRequired()); + builder.useCache(ms.isUseCache()); + + return builder.build(); + } + + private String getOperateType(Invocation invocation) { + final Object[] args = invocation.getArgs(); + MappedStatement ms = (MappedStatement) args[0]; + SqlCommandType commondType = ms.getSqlCommandType(); + if (commondType.compareTo(SqlCommandType.SELECT) == 0) { + return "select"; + } + if (commondType.compareTo(SqlCommandType.INSERT) == 0) { + return "insert"; + } + if (commondType.compareTo(SqlCommandType.UPDATE) == 0) { + return "update"; + } + if (commondType.compareTo(SqlCommandType.DELETE) == 0) { + return "delete"; + } + return null; + } + // 定义一个内部辅助类,作用是包装sq + class BoundSqlSqlSource implements SqlSource { + private BoundSql boundSql; + public BoundSqlSqlSource(BoundSql boundSql) { + this.boundSql = boundSql; + } + @Override + public BoundSql getBoundSql(Object parameterObject) { + return boundSql; + } + } + +} diff --git a/pims/src/main/java/com/ccsens/pims/persist/dao/ProductDao.java b/pims/src/main/java/com/ccsens/pims/persist/dao/ProductDao.java new file mode 100644 index 00000000..1b4fabf9 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/dao/ProductDao.java @@ -0,0 +1,21 @@ +package com.ccsens.pims.persist.dao; + +import com.ccsens.pims.bean.vo.CompanyVo; +import com.ccsens.pims.persist.mapper.ProductMapper; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import java.util.List; + +/** + * @author 逗 + */ +@Repository +public interface ProductDao extends ProductMapper { + /** + * 获取产品信息 + * @param projectId 项目id + * @return 返回产品信息 + */ + List queryProductInfo(@Param("projectId") Long projectId); +} diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/CompanyCostMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/CompanyCostMapper.java new file mode 100644 index 00000000..1992d7c4 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/CompanyCostMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.CompanyCost; +import com.ccsens.pims.bean.po.CompanyCostExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompanyCostMapper { + long countByExample(CompanyCostExample example); + + int deleteByExample(CompanyCostExample example); + + int deleteByPrimaryKey(Long id); + + int insert(CompanyCost record); + + int insertSelective(CompanyCost record); + + List selectByExample(CompanyCostExample example); + + CompanyCost selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") CompanyCost record, @Param("example") CompanyCostExample example); + + int updateByExample(@Param("record") CompanyCost record, @Param("example") CompanyCostExample example); + + int updateByPrimaryKeySelective(CompanyCost record); + + int updateByPrimaryKey(CompanyCost record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/CompanyMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/CompanyMapper.java new file mode 100644 index 00000000..848bde0f --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/CompanyMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.Company; +import com.ccsens.pims.bean.po.CompanyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompanyMapper { + long countByExample(CompanyExample example); + + int deleteByExample(CompanyExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Company record); + + int insertSelective(Company record); + + List selectByExample(CompanyExample example); + + Company selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Company record, @Param("example") CompanyExample example); + + int updateByExample(@Param("record") Company record, @Param("example") CompanyExample example); + + int updateByPrimaryKeySelective(Company record); + + int updateByPrimaryKey(Company record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/IncomeStatementsLogMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/IncomeStatementsLogMapper.java new file mode 100644 index 00000000..2f39a14a --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/IncomeStatementsLogMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.IncomeStatementsLog; +import com.ccsens.pims.bean.po.IncomeStatementsLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface IncomeStatementsLogMapper { + long countByExample(IncomeStatementsLogExample example); + + int deleteByExample(IncomeStatementsLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(IncomeStatementsLog record); + + int insertSelective(IncomeStatementsLog record); + + List selectByExample(IncomeStatementsLogExample example); + + IncomeStatementsLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") IncomeStatementsLog record, @Param("example") IncomeStatementsLogExample example); + + int updateByExample(@Param("record") IncomeStatementsLog record, @Param("example") IncomeStatementsLogExample example); + + int updateByPrimaryKeySelective(IncomeStatementsLog record); + + int updateByPrimaryKey(IncomeStatementsLog record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/IncomeStatementsMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/IncomeStatementsMapper.java new file mode 100644 index 00000000..42a4f99e --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/IncomeStatementsMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.IncomeStatements; +import com.ccsens.pims.bean.po.IncomeStatementsExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface IncomeStatementsMapper { + long countByExample(IncomeStatementsExample example); + + int deleteByExample(IncomeStatementsExample example); + + int deleteByPrimaryKey(Long id); + + int insert(IncomeStatements record); + + int insertSelective(IncomeStatements record); + + List selectByExample(IncomeStatementsExample example); + + IncomeStatements selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") IncomeStatements record, @Param("example") IncomeStatementsExample example); + + int updateByExample(@Param("record") IncomeStatements record, @Param("example") IncomeStatementsExample example); + + int updateByPrimaryKeySelective(IncomeStatements record); + + int updateByPrimaryKey(IncomeStatements record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/MoneyFlowLogMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/MoneyFlowLogMapper.java new file mode 100644 index 00000000..b8dfb002 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/MoneyFlowLogMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.MoneyFlowLog; +import com.ccsens.pims.bean.po.MoneyFlowLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface MoneyFlowLogMapper { + long countByExample(MoneyFlowLogExample example); + + int deleteByExample(MoneyFlowLogExample example); + + int deleteByPrimaryKey(Long id); + + int insert(MoneyFlowLog record); + + int insertSelective(MoneyFlowLog record); + + List selectByExample(MoneyFlowLogExample example); + + MoneyFlowLog selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") MoneyFlowLog record, @Param("example") MoneyFlowLogExample example); + + int updateByExample(@Param("record") MoneyFlowLog record, @Param("example") MoneyFlowLogExample example); + + int updateByPrimaryKeySelective(MoneyFlowLog record); + + int updateByPrimaryKey(MoneyFlowLog record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/MoneyFlowMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/MoneyFlowMapper.java new file mode 100644 index 00000000..4b8ee7d9 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/MoneyFlowMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.MoneyFlow; +import com.ccsens.pims.bean.po.MoneyFlowExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface MoneyFlowMapper { + long countByExample(MoneyFlowExample example); + + int deleteByExample(MoneyFlowExample example); + + int deleteByPrimaryKey(Long id); + + int insert(MoneyFlow record); + + int insertSelective(MoneyFlow record); + + List selectByExample(MoneyFlowExample example); + + MoneyFlow selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") MoneyFlow record, @Param("example") MoneyFlowExample example); + + int updateByExample(@Param("record") MoneyFlow record, @Param("example") MoneyFlowExample example); + + int updateByPrimaryKeySelective(MoneyFlow record); + + int updateByPrimaryKey(MoneyFlow record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductIncomeMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductIncomeMapper.java new file mode 100644 index 00000000..edcce5eb --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductIncomeMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.ProductIncome; +import com.ccsens.pims.bean.po.ProductIncomeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProductIncomeMapper { + long countByExample(ProductIncomeExample example); + + int deleteByExample(ProductIncomeExample example); + + int deleteByPrimaryKey(Long id); + + int insert(ProductIncome record); + + int insertSelective(ProductIncome record); + + List selectByExample(ProductIncomeExample example); + + ProductIncome selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") ProductIncome record, @Param("example") ProductIncomeExample example); + + int updateByExample(@Param("record") ProductIncome record, @Param("example") ProductIncomeExample example); + + int updateByPrimaryKeySelective(ProductIncome record); + + int updateByPrimaryKey(ProductIncome record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductMapper.java new file mode 100644 index 00000000..634856a3 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.Product; +import com.ccsens.pims.bean.po.ProductExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProductMapper { + long countByExample(ProductExample example); + + int deleteByExample(ProductExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Product record); + + int insertSelective(Product record); + + List selectByExample(ProductExample example); + + Product selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Product record, @Param("example") ProductExample example); + + int updateByExample(@Param("record") Product record, @Param("example") ProductExample example); + + int updateByPrimaryKeySelective(Product record); + + int updateByPrimaryKey(Product record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductTypeMapper.java b/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductTypeMapper.java new file mode 100644 index 00000000..f4704cb9 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/persist/mapper/ProductTypeMapper.java @@ -0,0 +1,30 @@ +package com.ccsens.pims.persist.mapper; + +import com.ccsens.pims.bean.po.ProductType; +import com.ccsens.pims.bean.po.ProductTypeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProductTypeMapper { + long countByExample(ProductTypeExample example); + + int deleteByExample(ProductTypeExample example); + + int deleteByPrimaryKey(Long id); + + int insert(ProductType record); + + int insertSelective(ProductType record); + + List selectByExample(ProductTypeExample example); + + ProductType selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") ProductType record, @Param("example") ProductTypeExample example); + + int updateByExample(@Param("record") ProductType record, @Param("example") ProductTypeExample example); + + int updateByPrimaryKeySelective(ProductType record); + + int updateByPrimaryKey(ProductType record); +} \ No newline at end of file diff --git a/pims/src/main/java/com/ccsens/pims/service/IProductService.java b/pims/src/main/java/com/ccsens/pims/service/IProductService.java new file mode 100644 index 00000000..1ff2ab43 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/service/IProductService.java @@ -0,0 +1,62 @@ +package com.ccsens.pims.service; + +import com.ccsens.pims.bean.dto.CompanyDto; +import com.ccsens.pims.bean.vo.CompanyVo; +import com.ccsens.util.bean.dto.QueryDto; + +import java.util.List; + +/** + * @author 逗 + */ +public interface IProductService { + + /** + * 查看所有产品的价格使用依据 + * @param params 项目id + * @return 返回所有产品的使用依据 + */ + List queryProductInfo(QueryDto params); + + /** + * 查看单个产品的销售收入 + * @param params 产品id + * @return 返回这个产品十个月的销售收入 + */ + List getProductIncome(QueryDto params); + + /** + * 查看所有的产品的销售收入 + * @param params 项目id + * @return 返回所有产品的销售收入 + */ + List queryProductIncome(QueryDto params); + + /** + * 查看产品总收入占比图 + * @param params 项目id + * @return 返回产品每个月份总收入的占比 + */ + List queryProductIncomeProportion(QueryDto params); + + /** + * 总成本费用估算表 + * @param params 项目id + * @return 返回每个与的预计成本与实际成本 + */ + List getTotalCost(QueryDto params); + + /** + * 损益表 + * @param params 项目id + * @return 返回损益类型和每个月的损益 + */ + List getIncome(QueryDto params); + + /** + * 现金流变动表 + * @param params 项目id + * @return 返回现金流变动类型和每个与变动的数额 + */ + List getMonthFlow(QueryDto params); +} diff --git a/pims/src/main/java/com/ccsens/pims/service/IReportService.java b/pims/src/main/java/com/ccsens/pims/service/IReportService.java new file mode 100644 index 00000000..9ad61513 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/service/IReportService.java @@ -0,0 +1,46 @@ +package com.ccsens.pims.service; + +import com.ccsens.pims.bean.dto.CompanyDto; +import com.ccsens.util.bean.dto.QueryDto; + +import java.util.List; + +/** + * @author 逗 + */ +public interface IReportService { + /** + * 通过项目id查找产品使用价格表 + * @param params 项目id + * @return 返回wps表格文件的路径 + */ + List getProduct(QueryDto params); + + /** + * 根据项目id查找产值及附加估算表 + * @param params 项目id + * @return 返回wps表格文件的路径 + */ + List getProduction(QueryDto params); + + /** + * 根据项目id查找总成本费用估算表 + * @param params 项目id + * @return 返回wps 表格文件的路径 + */ + List getCost(QueryDto params); + + /** + * 查看损益表 + * @param params 项目id + * @return 返回wps表格文件的路径 + */ + List getIncome(QueryDto params); + + /** + * 查看现金流表 + * @param params 项目id + * @return 返回wps表格文件的路径 + */ + List getMoney(QueryDto params); +} diff --git a/pims/src/main/java/com/ccsens/pims/service/ProductService.java b/pims/src/main/java/com/ccsens/pims/service/ProductService.java new file mode 100644 index 00000000..4e6c1cf1 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/service/ProductService.java @@ -0,0 +1,57 @@ +package com.ccsens.pims.service; + +import com.ccsens.pims.bean.dto.CompanyDto; +import com.ccsens.pims.bean.vo.CompanyVo; +import com.ccsens.pims.persist.dao.ProductDao; +import com.ccsens.util.bean.dto.QueryDto; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.List; + +/** + * @author 逗 + */ +@Service +public class ProductService implements IProductService{ + + @Resource + private ProductDao productDao; + + @Override + public List queryProductInfo(QueryDto params) { + CompanyDto.Project project = params.getParam(); + Long projectId = project.getProjectId(); + return productDao.queryProductInfo(projectId); + } + + @Override + public List getProductIncome(QueryDto params) { + return null; + } + + @Override + public List queryProductIncome(QueryDto params) { + return null; + } + + @Override + public List queryProductIncomeProportion(QueryDto params) { + return null; + } + + @Override + public List getTotalCost(QueryDto params) { + return null; + } + + @Override + public List getIncome(QueryDto params) { + return null; + } + + @Override + public List getMonthFlow(QueryDto params) { + return null; + } +} diff --git a/pims/src/main/java/com/ccsens/pims/service/ReportService.java b/pims/src/main/java/com/ccsens/pims/service/ReportService.java new file mode 100644 index 00000000..dad5db86 --- /dev/null +++ b/pims/src/main/java/com/ccsens/pims/service/ReportService.java @@ -0,0 +1,38 @@ +package com.ccsens.pims.service; + +import com.ccsens.pims.bean.dto.CompanyDto; +import com.ccsens.util.bean.dto.QueryDto; +import org.springframework.stereotype.Service; + +import java.util.List; + +/** + * @author 逗 + */ +@Service +public class ReportService implements IReportService{ + @Override + public List getProduct(QueryDto params) { + return null; + } + + @Override + public List getProduction(QueryDto params) { + return null; + } + + @Override + public List getCost(QueryDto params) { + return null; + } + + @Override + public List getIncome(QueryDto params) { + return null; + } + + @Override + public List getMoney(QueryDto params) { + return null; + } +} diff --git a/pims/src/main/resources/application-common.yml b/pims/src/main/resources/application-common.yml new file mode 100644 index 00000000..40efee80 --- /dev/null +++ b/pims/src/main/resources/application-common.yml @@ -0,0 +1,30 @@ +logging: + level: + com: + favorites: DEBUG + org: + hibernate: ERROR + springframework: + web: DEBUG +mybatis: + config-location: classpath:mybatis/mybatis-config.xml + mapper-locations: classpath*:mapper_*/*.xml + type-aliases-package: com.ccsens.mtpro.bean +#server: +# tomcat: +# uri-encoding: UTF-8 +spring: + http: + encoding: + charset: UTF-8 + enabled: true + force: true + log-request-details: true + servlet: + multipart: + max-file-size: 10MB + max-request-size: 100MB + snowflake: + datacenterId: 1 + workerId: 1 + diff --git a/pims/src/main/resources/application-dev.yml b/pims/src/main/resources/application-dev.yml new file mode 100644 index 00000000..1568eb82 --- /dev/null +++ b/pims/src/main/resources/application-dev.yml @@ -0,0 +1,29 @@ +server: + port: 7100 + servlet: + context-path: +spring: + application: + name: pims + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: api.ccsens.com + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: true + diff --git a/pims/src/main/resources/application-prod.yml b/pims/src/main/resources/application-prod.yml new file mode 100644 index 00000000..41884d4e --- /dev/null +++ b/pims/src/main/resources/application-prod.yml @@ -0,0 +1,34 @@ +server: + port: 7100 + servlet: + context-path: +spring: + snowflake: + datacenterId: 2 + workerId: 2 + application: + name: health + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: + host: api.ccsens.com + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: false +eureka: + instance: + ip-address: 192.144.182.42 diff --git a/pims/src/main/resources/application-test.yml b/pims/src/main/resources/application-test.yml new file mode 100644 index 00000000..15d8f9d0 --- /dev/null +++ b/pims/src/main/resources/application-test.yml @@ -0,0 +1,32 @@ +server: + port: 7100 + servlet: + context-path: +spring: + application: + name: ct + datasource: + type: com.alibaba.druid.pool.DruidDataSource + rabbitmq: +# host: api.ccsens.com + host: 127.0.0.1 + password: 111111 + port: 5672 + username: admin + redis: + database: 0 + host: 127.0.0.1 + jedis: + pool: + max-active: 200 + max-idle: 10 + max-wait: -1ms + min-idle: 0 + password: '' + port: 6379 + timeout: 1000ms +swagger: + enable: true +eureka: + instance: + ip-address: 192.168.0.99 \ No newline at end of file diff --git a/pims/src/main/resources/application.properties b/pims/src/main/resources/application.properties deleted file mode 100644 index 8b137891..00000000 --- a/pims/src/main/resources/application.properties +++ /dev/null @@ -1 +0,0 @@ - diff --git a/pims/src/main/resources/application.yml b/pims/src/main/resources/application.yml new file mode 100644 index 00000000..5c2cd5c4 --- /dev/null +++ b/pims/src/main/resources/application.yml @@ -0,0 +1,4 @@ +spring: + profiles: + active: dev + include: common, util-dev \ No newline at end of file diff --git a/pims/src/main/resources/druid-dev.yml b/pims/src/main/resources/druid-dev.yml new file mode 100644 index 00000000..e2ad81b5 --- /dev/null +++ b/pims/src/main/resources/druid-dev.yml @@ -0,0 +1,33 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 + password: 37080c1f223685592316b02dad8816c019290a476e54ebb638f9aa3ba8b6bdb9 + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://49.233.89.188:3306/pims?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_GAME \ No newline at end of file diff --git a/pims/src/main/resources/druid-prod.yml b/pims/src/main/resources/druid-prod.yml new file mode 100644 index 00000000..e38249c2 --- /dev/null +++ b/pims/src/main/resources/druid-prod.yml @@ -0,0 +1,33 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 + password: + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 + url: jdbc:mysql://127.0.0.1/ct?useUnicode=true&characterEncoding=UTF-8 + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_GAME \ No newline at end of file diff --git a/pims/src/main/resources/druid-test.yml b/pims/src/main/resources/druid-test.yml new file mode 100644 index 00000000..bc484453 --- /dev/null +++ b/pims/src/main/resources/druid-test.yml @@ -0,0 +1,35 @@ +spring: + datasource: + druid: + connectionProperties: druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000 + driverClassName: com.mysql.cj.jdbc.Driver + dynamicUrl: jdbc:mysql://localhost:3306/${schema} + filterExclusions: '*.js,*.gif,*.jpg,*.png,*.css,*.ico,/druid/*' + filterName: druidFilter + filterProfileEnable: true + filterUrlPattern: /* + filters: stat,wall + initialSize: 5 + maxActive: 20 + maxPoolPreparedStatementPerConnectionSize: 20 + maxWait: 60000 + minEvictableIdleTimeMillis: 300000 + minIdle: 5 +# password: + password: 68073a279b399baa1fa12cf39bfbb65bfc1480ffee7b659ccc81cf19be8c4473 + poolPreparedStatements: true + servletLogSlowSql: true + servletLoginPassword: 111111 + servletLoginUsername: druid + servletName: druidServlet + servletResetEnable: true + servletUrlMapping: /druid/* + testOnBorrow: false + testOnReturn: false + testWhileIdle: true + timeBetweenEvictionRunsMillis: 60000 +# url: jdbc:mysql://127.0.0.1/ct?useUnicode=true&characterEncoding=UTF-8 + url: jdbc:mysql://test.tall.wiki/pims?useUnicode=true&characterEncoding=UTF-8 + username: root + validationQuery: SELECT 1 FROM DUAL + env: CCSENS_TALL \ No newline at end of file diff --git a/pims/src/main/resources/logback-spring.xml b/pims/src/main/resources/logback-spring.xml new file mode 100644 index 00000000..3c1c8023 --- /dev/null +++ b/pims/src/main/resources/logback-spring.xml @@ -0,0 +1,196 @@ + + + + + + + + + + logback + + + + + + + + + + + + + + + + + info + + + ${CONSOLE_LOG_PATTERN} + + UTF-8 + + + + + + + + + + ${log.path}/log_debug.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/debug/log-debug-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + debug + ACCEPT + DENY + + + + + + + ${log.path}/log_info.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + + ${log.path}/info/log-info-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + info + ACCEPT + DENY + + + + + + + ${log.path}/log_warn.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/warn/log-warn-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + warn + ACCEPT + DENY + + + + + + + + ${log.path}/log_error.log + + + %d{yyyy-MM-dd HH:mm:ss.SSS} [%thread] %-5level %logger{50} - %msg%n + UTF-8 + + + + ${log.path}/error/log-error-%d{yyyy-MM-dd}.%i.log + + 100MB + + + 15 + + + + ERROR + ACCEPT + DENY + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_dao/ProducrDao.xml b/pims/src/main/resources/mapper_dao/ProducrDao.xml new file mode 100644 index 00000000..fa2e1a4c --- /dev/null +++ b/pims/src/main/resources/mapper_dao/ProducrDao.xml @@ -0,0 +1,26 @@ + + + + + + + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/CompanyCostMapper.xml b/pims/src/main/resources/mapper_raw/CompanyCostMapper.xml new file mode 100644 index 00000000..fcf85577 --- /dev/null +++ b/pims/src/main/resources/mapper_raw/CompanyCostMapper.xml @@ -0,0 +1,466 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, month_time, business_commission, commission, admin_expense, + salary, insurance, office_rent, office_other_rent, depreciation, travel_on_business, + market, online_promotion, offline_promotion, business_expand, financial_affairs, + created_at, updated_at, rec_status + + + + + delete from t_company_cost + where id = #{id,jdbcType=BIGINT} + + + delete from t_company_cost + + + + + + insert into t_company_cost (id, company_id, project_id, + month_time, business_commission, commission, + admin_expense, salary, insurance, + office_rent, office_other_rent, depreciation, + travel_on_business, market, online_promotion, + offline_promotion, business_expand, financial_affairs, + created_at, updated_at, rec_status + ) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{monthTime,jdbcType=VARCHAR}, #{businessCommission,jdbcType=BIGINT}, #{commission,jdbcType=BIGINT}, + #{adminExpense,jdbcType=BIGINT}, #{salary,jdbcType=BIGINT}, #{insurance,jdbcType=BIGINT}, + #{officeRent,jdbcType=BIGINT}, #{officeOtherRent,jdbcType=BIGINT}, #{depreciation,jdbcType=BIGINT}, + #{travelOnBusiness,jdbcType=BIGINT}, #{market,jdbcType=BIGINT}, #{onlinePromotion,jdbcType=BIGINT}, + #{offlinePromotion,jdbcType=BIGINT}, #{businessExpand,jdbcType=BIGINT}, #{financialAffairs,jdbcType=BIGINT}, + #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} + ) + + + insert into t_company_cost + + + id, + + + company_id, + + + project_id, + + + month_time, + + + business_commission, + + + commission, + + + admin_expense, + + + salary, + + + insurance, + + + office_rent, + + + office_other_rent, + + + depreciation, + + + travel_on_business, + + + market, + + + online_promotion, + + + offline_promotion, + + + business_expand, + + + financial_affairs, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{monthTime,jdbcType=VARCHAR}, + + + #{businessCommission,jdbcType=BIGINT}, + + + #{commission,jdbcType=BIGINT}, + + + #{adminExpense,jdbcType=BIGINT}, + + + #{salary,jdbcType=BIGINT}, + + + #{insurance,jdbcType=BIGINT}, + + + #{officeRent,jdbcType=BIGINT}, + + + #{officeOtherRent,jdbcType=BIGINT}, + + + #{depreciation,jdbcType=BIGINT}, + + + #{travelOnBusiness,jdbcType=BIGINT}, + + + #{market,jdbcType=BIGINT}, + + + #{onlinePromotion,jdbcType=BIGINT}, + + + #{offlinePromotion,jdbcType=BIGINT}, + + + #{businessExpand,jdbcType=BIGINT}, + + + #{financialAffairs,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_company_cost + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + month_time = #{record.monthTime,jdbcType=VARCHAR}, + + + business_commission = #{record.businessCommission,jdbcType=BIGINT}, + + + commission = #{record.commission,jdbcType=BIGINT}, + + + admin_expense = #{record.adminExpense,jdbcType=BIGINT}, + + + salary = #{record.salary,jdbcType=BIGINT}, + + + insurance = #{record.insurance,jdbcType=BIGINT}, + + + office_rent = #{record.officeRent,jdbcType=BIGINT}, + + + office_other_rent = #{record.officeOtherRent,jdbcType=BIGINT}, + + + depreciation = #{record.depreciation,jdbcType=BIGINT}, + + + travel_on_business = #{record.travelOnBusiness,jdbcType=BIGINT}, + + + market = #{record.market,jdbcType=BIGINT}, + + + online_promotion = #{record.onlinePromotion,jdbcType=BIGINT}, + + + offline_promotion = #{record.offlinePromotion,jdbcType=BIGINT}, + + + business_expand = #{record.businessExpand,jdbcType=BIGINT}, + + + financial_affairs = #{record.financialAffairs,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_company_cost + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + month_time = #{record.monthTime,jdbcType=VARCHAR}, + business_commission = #{record.businessCommission,jdbcType=BIGINT}, + commission = #{record.commission,jdbcType=BIGINT}, + admin_expense = #{record.adminExpense,jdbcType=BIGINT}, + salary = #{record.salary,jdbcType=BIGINT}, + insurance = #{record.insurance,jdbcType=BIGINT}, + office_rent = #{record.officeRent,jdbcType=BIGINT}, + office_other_rent = #{record.officeOtherRent,jdbcType=BIGINT}, + depreciation = #{record.depreciation,jdbcType=BIGINT}, + travel_on_business = #{record.travelOnBusiness,jdbcType=BIGINT}, + market = #{record.market,jdbcType=BIGINT}, + online_promotion = #{record.onlinePromotion,jdbcType=BIGINT}, + offline_promotion = #{record.offlinePromotion,jdbcType=BIGINT}, + business_expand = #{record.businessExpand,jdbcType=BIGINT}, + financial_affairs = #{record.financialAffairs,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_company_cost + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + month_time = #{monthTime,jdbcType=VARCHAR}, + + + business_commission = #{businessCommission,jdbcType=BIGINT}, + + + commission = #{commission,jdbcType=BIGINT}, + + + admin_expense = #{adminExpense,jdbcType=BIGINT}, + + + salary = #{salary,jdbcType=BIGINT}, + + + insurance = #{insurance,jdbcType=BIGINT}, + + + office_rent = #{officeRent,jdbcType=BIGINT}, + + + office_other_rent = #{officeOtherRent,jdbcType=BIGINT}, + + + depreciation = #{depreciation,jdbcType=BIGINT}, + + + travel_on_business = #{travelOnBusiness,jdbcType=BIGINT}, + + + market = #{market,jdbcType=BIGINT}, + + + online_promotion = #{onlinePromotion,jdbcType=BIGINT}, + + + offline_promotion = #{offlinePromotion,jdbcType=BIGINT}, + + + business_expand = #{businessExpand,jdbcType=BIGINT}, + + + financial_affairs = #{financialAffairs,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_company_cost + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + month_time = #{monthTime,jdbcType=VARCHAR}, + business_commission = #{businessCommission,jdbcType=BIGINT}, + commission = #{commission,jdbcType=BIGINT}, + admin_expense = #{adminExpense,jdbcType=BIGINT}, + salary = #{salary,jdbcType=BIGINT}, + insurance = #{insurance,jdbcType=BIGINT}, + office_rent = #{officeRent,jdbcType=BIGINT}, + office_other_rent = #{officeOtherRent,jdbcType=BIGINT}, + depreciation = #{depreciation,jdbcType=BIGINT}, + travel_on_business = #{travelOnBusiness,jdbcType=BIGINT}, + market = #{market,jdbcType=BIGINT}, + online_promotion = #{onlinePromotion,jdbcType=BIGINT}, + offline_promotion = #{offlinePromotion,jdbcType=BIGINT}, + business_expand = #{businessExpand,jdbcType=BIGINT}, + financial_affairs = #{financialAffairs,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/CompanyMapper.xml b/pims/src/main/resources/mapper_raw/CompanyMapper.xml new file mode 100644 index 00000000..7edd9017 --- /dev/null +++ b/pims/src/main/resources/mapper_raw/CompanyMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, project_id, name, balance, created_at, updated_at, rec_status + + + + + delete from t_company + where id = #{id,jdbcType=BIGINT} + + + delete from t_company + + + + + + insert into t_company (id, project_id, name, + balance, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, #{name,jdbcType=VARCHAR}, + #{balance,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_company + + + id, + + + project_id, + + + name, + + + balance, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{balance,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_company + + + id = #{record.id,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + balance = #{record.balance,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_company + set id = #{record.id,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + balance = #{record.balance,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_company + + + project_id = #{projectId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + balance = #{balance,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_company + set project_id = #{projectId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + balance = #{balance,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/IncomeStatementsLogMapper.xml b/pims/src/main/resources/mapper_raw/IncomeStatementsLogMapper.xml new file mode 100644 index 00000000..5503353b --- /dev/null +++ b/pims/src/main/resources/mapper_raw/IncomeStatementsLogMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, income_statements_id, month_time, predict_money, real_money, + created_at, updated_at, rec_status + + + + + delete from t_income_statements_log + where id = #{id,jdbcType=BIGINT} + + + delete from t_income_statements_log + + + + + + insert into t_income_statements_log (id, company_id, project_id, + income_statements_id, month_time, predict_money, + real_money, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{incomeStatementsId,jdbcType=BIGINT}, #{monthTime,jdbcType=VARCHAR}, #{predictMoney,jdbcType=BIGINT}, + #{realMoney,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_income_statements_log + + + id, + + + company_id, + + + project_id, + + + income_statements_id, + + + month_time, + + + predict_money, + + + real_money, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{incomeStatementsId,jdbcType=BIGINT}, + + + #{monthTime,jdbcType=VARCHAR}, + + + #{predictMoney,jdbcType=BIGINT}, + + + #{realMoney,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_income_statements_log + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + income_statements_id = #{record.incomeStatementsId,jdbcType=BIGINT}, + + + month_time = #{record.monthTime,jdbcType=VARCHAR}, + + + predict_money = #{record.predictMoney,jdbcType=BIGINT}, + + + real_money = #{record.realMoney,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_income_statements_log + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + income_statements_id = #{record.incomeStatementsId,jdbcType=BIGINT}, + month_time = #{record.monthTime,jdbcType=VARCHAR}, + predict_money = #{record.predictMoney,jdbcType=BIGINT}, + real_money = #{record.realMoney,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_income_statements_log + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + income_statements_id = #{incomeStatementsId,jdbcType=BIGINT}, + + + month_time = #{monthTime,jdbcType=VARCHAR}, + + + predict_money = #{predictMoney,jdbcType=BIGINT}, + + + real_money = #{realMoney,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_income_statements_log + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + income_statements_id = #{incomeStatementsId,jdbcType=BIGINT}, + month_time = #{monthTime,jdbcType=VARCHAR}, + predict_money = #{predictMoney,jdbcType=BIGINT}, + real_money = #{realMoney,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/IncomeStatementsMapper.xml b/pims/src/main/resources/mapper_raw/IncomeStatementsMapper.xml new file mode 100644 index 00000000..da69c77c --- /dev/null +++ b/pims/src/main/resources/mapper_raw/IncomeStatementsMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, name, created_at, updated_at, rec_status + + + + + delete from t_income_statements + where id = #{id,jdbcType=BIGINT} + + + delete from t_income_statements + + + + + + insert into t_income_statements (id, company_id, project_id, + name, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{name,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_income_statements + + + id, + + + company_id, + + + project_id, + + + name, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_income_statements + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_income_statements + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_income_statements + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_income_statements + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/MoneyFlowLogMapper.xml b/pims/src/main/resources/mapper_raw/MoneyFlowLogMapper.xml new file mode 100644 index 00000000..0f26954d --- /dev/null +++ b/pims/src/main/resources/mapper_raw/MoneyFlowLogMapper.xml @@ -0,0 +1,291 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, money_flow_id, month_time, predict_money, real_money, + created_at, updated_at, rec_status + + + + + delete from t_money_flow_log + where id = #{id,jdbcType=BIGINT} + + + delete from t_money_flow_log + + + + + + insert into t_money_flow_log (id, company_id, project_id, + money_flow_id, month_time, predict_money, + real_money, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{moneyFlowId,jdbcType=BIGINT}, #{monthTime,jdbcType=VARCHAR}, #{predictMoney,jdbcType=BIGINT}, + #{realMoney,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_money_flow_log + + + id, + + + company_id, + + + project_id, + + + money_flow_id, + + + month_time, + + + predict_money, + + + real_money, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{moneyFlowId,jdbcType=BIGINT}, + + + #{monthTime,jdbcType=VARCHAR}, + + + #{predictMoney,jdbcType=BIGINT}, + + + #{realMoney,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_money_flow_log + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + money_flow_id = #{record.moneyFlowId,jdbcType=BIGINT}, + + + month_time = #{record.monthTime,jdbcType=VARCHAR}, + + + predict_money = #{record.predictMoney,jdbcType=BIGINT}, + + + real_money = #{record.realMoney,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_money_flow_log + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + money_flow_id = #{record.moneyFlowId,jdbcType=BIGINT}, + month_time = #{record.monthTime,jdbcType=VARCHAR}, + predict_money = #{record.predictMoney,jdbcType=BIGINT}, + real_money = #{record.realMoney,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_money_flow_log + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + money_flow_id = #{moneyFlowId,jdbcType=BIGINT}, + + + month_time = #{monthTime,jdbcType=VARCHAR}, + + + predict_money = #{predictMoney,jdbcType=BIGINT}, + + + real_money = #{realMoney,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_money_flow_log + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + money_flow_id = #{moneyFlowId,jdbcType=BIGINT}, + month_time = #{monthTime,jdbcType=VARCHAR}, + predict_money = #{predictMoney,jdbcType=BIGINT}, + real_money = #{realMoney,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/MoneyFlowMapper.xml b/pims/src/main/resources/mapper_raw/MoneyFlowMapper.xml new file mode 100644 index 00000000..b1be70c3 --- /dev/null +++ b/pims/src/main/resources/mapper_raw/MoneyFlowMapper.xml @@ -0,0 +1,258 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, name, money_type, created_at, updated_at, rec_status + + + + + delete from t_money_flow + where id = #{id,jdbcType=BIGINT} + + + delete from t_money_flow + + + + + + insert into t_money_flow (id, company_id, project_id, + name, money_type, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{name,jdbcType=VARCHAR}, #{moneyType,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_money_flow + + + id, + + + company_id, + + + project_id, + + + name, + + + money_type, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{moneyType,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_money_flow + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + money_type = #{record.moneyType,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_money_flow + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + money_type = #{record.moneyType,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_money_flow + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + money_type = #{moneyType,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_money_flow + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + money_type = #{moneyType,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/ProductIncomeMapper.xml b/pims/src/main/resources/mapper_raw/ProductIncomeMapper.xml new file mode 100644 index 00000000..7d0df885 --- /dev/null +++ b/pims/src/main/resources/mapper_raw/ProductIncomeMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, product_id, month_time, predict_income, real_income, created_at, updated_at, + rec_status + + + + + delete from t_product_income + where id = #{id,jdbcType=BIGINT} + + + delete from t_product_income + + + + + + insert into t_product_income (id, product_id, month_time, + predict_income, real_income, created_at, + updated_at, rec_status) + values (#{id,jdbcType=BIGINT}, #{productId,jdbcType=BIGINT}, #{monthTime,jdbcType=VARCHAR}, + #{predictIncome,jdbcType=BIGINT}, #{realIncome,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, + #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) + + + insert into t_product_income + + + id, + + + product_id, + + + month_time, + + + predict_income, + + + real_income, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{productId,jdbcType=BIGINT}, + + + #{monthTime,jdbcType=VARCHAR}, + + + #{predictIncome,jdbcType=BIGINT}, + + + #{realIncome,jdbcType=BIGINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_product_income + + + id = #{record.id,jdbcType=BIGINT}, + + + product_id = #{record.productId,jdbcType=BIGINT}, + + + month_time = #{record.monthTime,jdbcType=VARCHAR}, + + + predict_income = #{record.predictIncome,jdbcType=BIGINT}, + + + real_income = #{record.realIncome,jdbcType=BIGINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_product_income + set id = #{record.id,jdbcType=BIGINT}, + product_id = #{record.productId,jdbcType=BIGINT}, + month_time = #{record.monthTime,jdbcType=VARCHAR}, + predict_income = #{record.predictIncome,jdbcType=BIGINT}, + real_income = #{record.realIncome,jdbcType=BIGINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_product_income + + + product_id = #{productId,jdbcType=BIGINT}, + + + month_time = #{monthTime,jdbcType=VARCHAR}, + + + predict_income = #{predictIncome,jdbcType=BIGINT}, + + + real_income = #{realIncome,jdbcType=BIGINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_product_income + set product_id = #{productId,jdbcType=BIGINT}, + month_time = #{monthTime,jdbcType=VARCHAR}, + predict_income = #{predictIncome,jdbcType=BIGINT}, + real_income = #{realIncome,jdbcType=BIGINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/ProductMapper.xml b/pims/src/main/resources/mapper_raw/ProductMapper.xml new file mode 100644 index 00000000..ef23e218 --- /dev/null +++ b/pims/src/main/resources/mapper_raw/ProductMapper.xml @@ -0,0 +1,338 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, name, description, product_type_id, pricing, price_units, + gross_margin, significance_sort, created_at, updated_at, rec_status + + + + + delete from t_product + where id = #{id,jdbcType=BIGINT} + + + delete from t_product + + + + + + insert into t_product (id, company_id, project_id, + name, description, product_type_id, + pricing, price_units, gross_margin, + significance_sort, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{name,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR}, #{productTypeId,jdbcType=TINYINT}, + #{pricing,jdbcType=BIGINT}, #{priceUnits,jdbcType=BIGINT}, #{grossMargin,jdbcType=INTEGER}, + #{significanceSort,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_product + + + id, + + + company_id, + + + project_id, + + + name, + + + description, + + + product_type_id, + + + pricing, + + + price_units, + + + gross_margin, + + + significance_sort, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{description,jdbcType=VARCHAR}, + + + #{productTypeId,jdbcType=TINYINT}, + + + #{pricing,jdbcType=BIGINT}, + + + #{priceUnits,jdbcType=BIGINT}, + + + #{grossMargin,jdbcType=INTEGER}, + + + #{significanceSort,jdbcType=TINYINT}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_product + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + description = #{record.description,jdbcType=VARCHAR}, + + + product_type_id = #{record.productTypeId,jdbcType=TINYINT}, + + + pricing = #{record.pricing,jdbcType=BIGINT}, + + + price_units = #{record.priceUnits,jdbcType=BIGINT}, + + + gross_margin = #{record.grossMargin,jdbcType=INTEGER}, + + + significance_sort = #{record.significanceSort,jdbcType=TINYINT}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_product + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + description = #{record.description,jdbcType=VARCHAR}, + product_type_id = #{record.productTypeId,jdbcType=TINYINT}, + pricing = #{record.pricing,jdbcType=BIGINT}, + price_units = #{record.priceUnits,jdbcType=BIGINT}, + gross_margin = #{record.grossMargin,jdbcType=INTEGER}, + significance_sort = #{record.significanceSort,jdbcType=TINYINT}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_product + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + description = #{description,jdbcType=VARCHAR}, + + + product_type_id = #{productTypeId,jdbcType=TINYINT}, + + + pricing = #{pricing,jdbcType=BIGINT}, + + + price_units = #{priceUnits,jdbcType=BIGINT}, + + + gross_margin = #{grossMargin,jdbcType=INTEGER}, + + + significance_sort = #{significanceSort,jdbcType=TINYINT}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_product + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + description = #{description,jdbcType=VARCHAR}, + product_type_id = #{productTypeId,jdbcType=TINYINT}, + pricing = #{pricing,jdbcType=BIGINT}, + price_units = #{priceUnits,jdbcType=BIGINT}, + gross_margin = #{grossMargin,jdbcType=INTEGER}, + significance_sort = #{significanceSort,jdbcType=TINYINT}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mapper_raw/ProductTypeMapper.xml b/pims/src/main/resources/mapper_raw/ProductTypeMapper.xml new file mode 100644 index 00000000..3427a0d6 --- /dev/null +++ b/pims/src/main/resources/mapper_raw/ProductTypeMapper.xml @@ -0,0 +1,243 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, name, created_at, updated_at, rec_status + + + + + delete from t_product_type + where id = #{id,jdbcType=BIGINT} + + + delete from t_product_type + + + + + + insert into t_product_type (id, company_id, project_id, + name, created_at, updated_at, + rec_status) + values (#{id,jdbcType=BIGINT}, #{companyId,jdbcType=BIGINT}, #{projectId,jdbcType=BIGINT}, + #{name,jdbcType=VARCHAR}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, + #{recStatus,jdbcType=TINYINT}) + + + insert into t_product_type + + + id, + + + company_id, + + + project_id, + + + name, + + + created_at, + + + updated_at, + + + rec_status, + + + + + #{id,jdbcType=BIGINT}, + + + #{companyId,jdbcType=BIGINT}, + + + #{projectId,jdbcType=BIGINT}, + + + #{name,jdbcType=VARCHAR}, + + + #{createdAt,jdbcType=TIMESTAMP}, + + + #{updatedAt,jdbcType=TIMESTAMP}, + + + #{recStatus,jdbcType=TINYINT}, + + + + + + update t_product_type + + + id = #{record.id,jdbcType=BIGINT}, + + + company_id = #{record.companyId,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=BIGINT}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{record.recStatus,jdbcType=TINYINT}, + + + + + + + + update t_product_type + set id = #{record.id,jdbcType=BIGINT}, + company_id = #{record.companyId,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=BIGINT}, + name = #{record.name,jdbcType=VARCHAR}, + created_at = #{record.createdAt,jdbcType=TIMESTAMP}, + updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{record.recStatus,jdbcType=TINYINT} + + + + + + update t_product_type + + + company_id = #{companyId,jdbcType=BIGINT}, + + + project_id = #{projectId,jdbcType=BIGINT}, + + + name = #{name,jdbcType=VARCHAR}, + + + created_at = #{createdAt,jdbcType=TIMESTAMP}, + + + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + + + rec_status = #{recStatus,jdbcType=TINYINT}, + + + where id = #{id,jdbcType=BIGINT} + + + update t_product_type + set company_id = #{companyId,jdbcType=BIGINT}, + project_id = #{projectId,jdbcType=BIGINT}, + name = #{name,jdbcType=VARCHAR}, + created_at = #{createdAt,jdbcType=TIMESTAMP}, + updated_at = #{updatedAt,jdbcType=TIMESTAMP}, + rec_status = #{recStatus,jdbcType=TINYINT} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/pims/src/main/resources/mybatis/mybatis-config.xml b/pims/src/main/resources/mybatis/mybatis-config.xml new file mode 100644 index 00000000..06ec6488 --- /dev/null +++ b/pims/src/main/resources/mybatis/mybatis-config.xml @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/pims/src/test/java/com/ccsens/pims/PimsApplicationTests.java b/pims/src/test/java/com/ccsens/pims/PimsApplicationTests.java deleted file mode 100644 index adfa462d..00000000 --- a/pims/src/test/java/com/ccsens/pims/PimsApplicationTests.java +++ /dev/null @@ -1,13 +0,0 @@ -package com.ccsens.pims; - -import org.junit.jupiter.api.Test; -import org.springframework.boot.test.context.SpringBootTest; - -@SpringBootTest -class PimsApplicationTests { - - @Test - void contextLoads() { - } - -} diff --git a/pom.xml b/pom.xml index 6fcbf0a4..60995ace 100644 --- a/pom.xml +++ b/pom.xml @@ -14,6 +14,7 @@ mt health ct + pims com.ccsens diff --git a/tall/src/main/java/com/ccsens/tall/bean/dto/ChartDto.java b/tall/src/main/java/com/ccsens/tall/bean/dto/ChartDto.java index 7125b550..14e84ea4 100644 --- a/tall/src/main/java/com/ccsens/tall/bean/dto/ChartDto.java +++ b/tall/src/main/java/com/ccsens/tall/bean/dto/ChartDto.java @@ -5,6 +5,7 @@ import lombok.Data; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; +import java.util.List; @Data public class ChartDto { @@ -23,4 +24,33 @@ public class ChartDto { @ApiModelProperty("角色id") private Long roleId; } + + @Data + public static class ChartsExecutorDto{ + @NotNull + @ApiModelProperty("项目id") + private Long projectId; + @ApiModelProperty("类型 0按任务数量返回 1按任务时长返回(分钟)") + private Integer type = 0; + @ApiModelProperty("完成状态 0全部,1完成,2未完成 默认0") + private Integer process = 0; + @ApiModelProperty("开始时间") + private Long beginTime; + @ApiModelProperty("结束时间") + private Long endTime; + @ApiModelProperty("角色id") + private List roleList; + } + @Data + public static class ChartsCompleteDto{ + @NotNull + @ApiModelProperty("项目id") + private Long projectId; + @ApiModelProperty("开始时间") + private Long beginTime; + @ApiModelProperty("结束时间") + private Long endTime; + @ApiModelProperty("角色id") + private List roleList; + } } diff --git a/tall/src/main/java/com/ccsens/tall/bean/dto/UserDto.java b/tall/src/main/java/com/ccsens/tall/bean/dto/UserDto.java index da03feee..5edd99dc 100644 --- a/tall/src/main/java/com/ccsens/tall/bean/dto/UserDto.java +++ b/tall/src/main/java/com/ccsens/tall/bean/dto/UserDto.java @@ -1,21 +1,17 @@ package com.ccsens.tall.bean.dto; -import com.ccsens.tall.bean.vo.LabelVo; -import com.ccsens.tall.bean.vo.UserVo; import com.ccsens.util.WebConstant; -import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import lombok.Data; -import lombok.Getter; -import lombok.Setter; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; import javax.validation.constraints.Pattern; -import java.util.Date; -import java.util.List; +/** + * @author 逗 + */ @Data public class UserDto { @Data diff --git a/tall/src/main/java/com/ccsens/tall/bean/dto/message/DeliverMessageWithUploadDto.java b/tall/src/main/java/com/ccsens/tall/bean/dto/message/DeliverMessageWithUploadDto.java index 85878a31..4ffd8a9c 100644 --- a/tall/src/main/java/com/ccsens/tall/bean/dto/message/DeliverMessageWithUploadDto.java +++ b/tall/src/main/java/com/ccsens/tall/bean/dto/message/DeliverMessageWithUploadDto.java @@ -22,7 +22,6 @@ public class DeliverMessageWithUploadDto extends BaseMessageDto { private Long uploader; private Long uploadTime; private List file; - } private Data data; diff --git a/tall/src/main/java/com/ccsens/tall/bean/vo/ChartVo.java b/tall/src/main/java/com/ccsens/tall/bean/vo/ChartVo.java index a449422d..60d8a4ca 100644 --- a/tall/src/main/java/com/ccsens/tall/bean/vo/ChartVo.java +++ b/tall/src/main/java/com/ccsens/tall/bean/vo/ChartVo.java @@ -1,6 +1,5 @@ package com.ccsens.tall.bean.vo; -import cn.hutool.core.collection.CollectionUtil; import cn.hutool.core.util.ObjectUtil; import com.fasterxml.jackson.annotation.JsonIgnore; import io.swagger.annotations.ApiModelProperty; @@ -16,7 +15,7 @@ public class ChartVo { public static class ExecutorChart{ @ApiModelProperty("查询类型") private int type; - @ApiModelProperty("查询类型") + @ApiModelProperty("详细数据") private List<__ExecutorChart> executorChart; } @Data @@ -26,7 +25,7 @@ public class ChartVo { @ApiModelProperty("角色名") private String roleName; @ApiModelProperty("value") - private Integer value; + private int value; } @@ -36,10 +35,10 @@ public class ChartVo { private Long roleId; @ApiModelProperty("角色名") private String roleName; - @ApiModelProperty("完成数量") - private Integer value; + @ApiModelProperty("完成数量/未完成的数量") + private int value; @ApiModelProperty("任务总数") - private Integer total; + private int total; } diff --git a/tall/src/main/java/com/ccsens/tall/bean/vo/WpsVo.java b/tall/src/main/java/com/ccsens/tall/bean/vo/WpsVo.java index 8dc86199..3edcb54b 100644 --- a/tall/src/main/java/com/ccsens/tall/bean/vo/WpsVo.java +++ b/tall/src/main/java/com/ccsens/tall/bean/vo/WpsVo.java @@ -1,7 +1,5 @@ package com.ccsens.tall.bean.vo; -import cn.hutool.core.util.StrUtil; -import com.alibaba.fastjson.annotation.JSONField; import com.ccsens.tall.bean.po.WpsFile; import com.ccsens.util.WebConstant; import com.fasterxml.jackson.annotation.JsonIgnore; @@ -11,7 +9,6 @@ import io.swagger.annotations.ApiModelProperty; import lombok.Data; import java.util.ArrayList; -import java.util.Date; import java.util.List; /** @@ -201,8 +198,8 @@ public class WpsVo { wpsFile.getModifier() + "", wpsFile.getUpdatedAt().getTime()/1000 ); - Watermark watermark = new Watermark(StrUtil.isEmpty(name) ? WebConstant.DEFAULT_NICKNAME : name); - file.watermark = watermark; +// Watermark watermark = new Watermark(StrUtil.isEmpty(name) ? WebConstant.DEFAULT_NICKNAME : name); +// file.watermark = watermark; return file; } } diff --git a/tall/src/main/java/com/ccsens/tall/persist/dao/SysProjectDao.java b/tall/src/main/java/com/ccsens/tall/persist/dao/SysProjectDao.java index 6bef3a41..7e53f4ea 100644 --- a/tall/src/main/java/com/ccsens/tall/persist/dao/SysProjectDao.java +++ b/tall/src/main/java/com/ccsens/tall/persist/dao/SysProjectDao.java @@ -25,9 +25,11 @@ public interface SysProjectDao extends SysProjectMapper{ List selectRelevanceProject(@Param("projectId")Long projectId); - List getExecutorChart(@Param("projectId")Long projectId,@Param("type")Integer type); + List getExecutorChart(@Param("projectId")Long projectId,@Param("type")Integer type,@Param("process")Integer process, + @Param("roleIdList")List roleIdList,@Param("beginTime")Long beginTime,@Param("endTime")Long endTime); - List getCompleteTaskByTime(@Param("projectId")Long projectId); + List getCompleteTaskByTime(@Param("projectId")Long projectId,@Param("roleIdList")List roleIdList, + @Param("beginTime")Long beginTime,@Param("endTime")Long endTime); List getProjectTrend(@Param("projectId")Long projectId, @Param("start")Long start, @Param("end")Long end, @Param("roleId")Long roleId,@Param("allMemberId")Long allMemberId); diff --git a/tall/src/main/java/com/ccsens/tall/service/ChartService.java b/tall/src/main/java/com/ccsens/tall/service/ChartService.java index 7c3c5f68..1cd18c0b 100644 --- a/tall/src/main/java/com/ccsens/tall/service/ChartService.java +++ b/tall/src/main/java/com/ccsens/tall/service/ChartService.java @@ -1,7 +1,6 @@ package com.ccsens.tall.service; import cn.hutool.core.collection.CollectionUtil; -import cn.hutool.core.date.DateTime; import cn.hutool.core.date.DateUtil; import cn.hutool.core.util.ObjectUtil; import com.ccsens.tall.bean.dto.ChartDto; @@ -30,18 +29,19 @@ public class ChartService implements IChartService{ /** * 任务执行者分布图 * @param currentUserId - * @param type + * @param * @return */ @Override - public ChartVo.ExecutorChart getExecutorChart(Long currentUserId,Long projectId,Integer type) { - SysProject sysProject = sysProjectDao.selectByPrimaryKey(projectId); + public ChartVo.ExecutorChart getExecutorChart(Long currentUserId,ChartDto.ChartsExecutorDto executor) { + SysProject sysProject = sysProjectDao.selectByPrimaryKey(executor.getProjectId()); if(ObjectUtil.isNull(sysProject)){ throw new BaseException(CodeEnum.NOT_PROJECT); } - List executorChartList = sysProjectDao.getExecutorChart(projectId,type); + List executorChartList = sysProjectDao.getExecutorChart(executor.getProjectId(),executor.getType(), executor.getProcess(), + executor.getRoleList(),executor.getBeginTime(),executor.getEndTime()); ChartVo.ExecutorChart executorChart = new ChartVo.ExecutorChart(); - executorChart.setType(type); + executorChart.setType(executor.getType()); executorChart.setExecutorChart(executorChartList); return executorChart; } @@ -49,13 +49,14 @@ public class ChartService implements IChartService{ /** * 计划时间内完成任务 * @param currentUserId - * @param projectId + * @param * @return */ @Override - public List getCompleteTaskByTime(Long currentUserId, Long projectId) { + public List getCompleteTaskByTime(Long currentUserId, ChartDto.ChartsCompleteDto completeDto) { //查找所有角色及任务数量 - List completeTaskNumList = sysProjectDao.getCompleteTaskByTime(projectId); + List completeTaskNumList = sysProjectDao.getCompleteTaskByTime(completeDto.getProjectId(),completeDto.getRoleList(), + completeDto.getBeginTime(),completeDto.getEndTime()); return completeTaskNumList; } diff --git a/tall/src/main/java/com/ccsens/tall/service/ExcelService.java b/tall/src/main/java/com/ccsens/tall/service/ExcelService.java index 5b40e005..dc9856c6 100644 --- a/tall/src/main/java/com/ccsens/tall/service/ExcelService.java +++ b/tall/src/main/java/com/ccsens/tall/service/ExcelService.java @@ -164,6 +164,9 @@ public class ExcelService implements IExcelService { */ private void readProject(XSSFSheet wbsSheet, int projectInfoStart, int projectInfoEnd, Long currentUserId, SysProject sysProject) throws Exception { XSSFRow row = wbsSheet.getRow(projectInfoStart + 1); + if(ObjectUtil.isNull(row)){ + throw new BaseException(CodeEnum.NOT_ROW.addMsg(wbsSheet.getSheetName() + (projectInfoStart + 1))); + } String projectName = ExcelUtil.getCellValue(row.getCell(0)); if (StrUtil.isNotEmpty(projectName)) { @@ -274,6 +277,9 @@ public class ExcelService implements IExcelService { Long secondRoleId = null; for (int i = memberStart + 1; i <= memberEnd; i++) { XSSFRow row = wbsSheet.getRow(i); + if(ObjectUtil.isNull(row)){ + continue; + } String proRoleCell = ExcelUtil.getCellValue(row.getCell(1)); String secondRoleCell = ExcelUtil.getCellValue(row.getCell(2)); String memberCell = ExcelUtil.getCellValue(row.getCell(3)); @@ -364,6 +370,9 @@ public class ExcelService implements IExcelService { String[] excludeRoleCells; for (int i = memberStart + 1; i <= memberEnd; i++) { XSSFRow row = wbsSheet.getRow(i); + if(ObjectUtil.isNull(row)){ + continue; + } String secondRoleCell = ExcelUtil.getCellValue(row.getCell(2)); String excludeRoleCell = StringUtil.replaceComma(ExcelUtil.getCellValue(row.getCell(4))); //获取角色对谁不可见 @@ -437,10 +446,14 @@ public class ExcelService implements IExcelService { Set userIdSet = new HashSet<>(); for (int i = 1; i <= memberSheet.getLastRowNum(); i++) { - String memberCell = ExcelUtil.getCellValue(memberSheet.getRow(i).getCell(1)); - String phoneCell = ExcelUtil.getCellValue(memberSheet.getRow(i).getCell(2)); - String stakeholderCell = ExcelUtil.getCellValue(memberSheet.getRow(i).getCell(3)); - String stakeholderPhoneCell = ExcelUtil.getCellValue(memberSheet.getRow(i).getCell(4)); + XSSFRow row = memberSheet.getRow(i); + if(ObjectUtil.isNull(row)){ + continue; + } + String memberCell = ExcelUtil.getCellValue(row.getCell(1)); + String phoneCell = ExcelUtil.getCellValue(row.getCell(2)); + String stakeholderCell = ExcelUtil.getCellValue(row.getCell(3)); + String stakeholderPhoneCell = ExcelUtil.getCellValue(row.getCell(4)); ProMember stakeholder = null; ProMember member; //手机号不能为空 @@ -599,14 +612,17 @@ public class ExcelService implements IExcelService { Long firstStartTime = null; for (int i = taskStart + 1; i <= taskEnd; i++) { XSSFRow row = wbsSheet.getRow(i); + if(ObjectUtil.isNull(row)){ + continue; + } //一级任务名称 String task1 = ExcelUtil.getCellValue(row.getCell(1)); //二级任务名称 String task2 = ExcelUtil.getCellValue(row.getCell(2)); String description = ExcelUtil.getCellValue(row.getCell(3)); - String beginTime = ExcelUtil.getCellValue(row.getCell(4)); - String endTime = ExcelUtil.getCellValue(row.getCell(5)); + String beginTime = StringUtil.replaceStrSpace(ExcelUtil.getCellValue(row.getCell(4))); + String endTime = StringUtil.replaceStrSpace(ExcelUtil.getCellValue(row.getCell(5))); String repeat = ExcelUtil.getCellValue(row.getCell(7)); String subTaskCell = ExcelUtil.getCellValue(row.getCell(8)); String subProject = ExcelUtil.getCellValue(row.getCell(9)); @@ -1007,7 +1023,11 @@ public class ExcelService implements IExcelService { throw new BaseException(CodeEnum.WBS_NOT_SUB_TASK); } for (int i = 2; i <= subSheet.getLastRowNum(); i++) { - String deliver = ExcelUtil.getCellValue(subSheet.getRow(i).getCell(1)); + XSSFRow row = subSheet.getRow(i); + if(ObjectUtil.isNull(row)){ + continue; + } + String deliver = ExcelUtil.getCellValue(row.getCell(1)); if (StrUtil.isNotEmpty(deliver)) { ProTaskDeliver taskDeliver = new ProTaskDeliver(); taskDeliver.setId(snowflake.nextId()); @@ -1049,10 +1069,15 @@ public class ExcelService implements IExcelService { Long taskId = null; Long memberRoleId = null; XSSFRow roleRow = sheet.getRow(2); - + if(ObjectUtil.isNull(roleRow)){ + throw new BaseException(CodeEnum.NOT_ROW.addMsg(sheet.getSheetName() + (2))); + } for (int i = 3; i < sheet.getLastRowNum(); i++) { List taskNameList = null; XSSFRow pluginRow = sheet.getRow(i); + if(ObjectUtil.isNull(pluginRow)){ + continue; + } String task = ExcelUtil.getCellValue(pluginRow.getCell(1)); //获取任务Id if (StrUtil.isNotEmpty(task)) { diff --git a/tall/src/main/java/com/ccsens/tall/service/ExportWbsService.java b/tall/src/main/java/com/ccsens/tall/service/ExportWbsService.java index 7762e073..06a49334 100644 --- a/tall/src/main/java/com/ccsens/tall/service/ExportWbsService.java +++ b/tall/src/main/java/com/ccsens/tall/service/ExportWbsService.java @@ -12,6 +12,7 @@ import com.ccsens.tall.bean.po.*; import com.ccsens.tall.bean.vo.WbsVo; import com.ccsens.tall.persist.dao.*; import com.ccsens.util.PoiUtil; +import com.ccsens.util.PropUtil; import com.ccsens.util.WebConstant; import lombok.Data; import lombok.extern.slf4j.Slf4j; @@ -105,7 +106,7 @@ public class ExportWbsService implements IExportWbsService{ wb.write(stream); stream.close(); - return WebConstant.TEST_URL_BASE + fileName; + return PropUtil.imgDomain + "/" + fileName; } /** * 查找所有成员及奖惩干系人 @@ -711,7 +712,7 @@ public class ExportWbsService implements IExportWbsService{ wb.write(stream); stream.close(); - return WebConstant.TEST_URL_BASE + fileName; + return PropUtil.imgDomain + "/" + fileName; } /** * 生成清单excel的写入数据 @@ -793,7 +794,7 @@ public class ExportWbsService implements IExportWbsService{ //生成压缩包并返回下载路径 String zipPath = "/project/" + DateUtil.today() +"/"+ deliverWithExcelList.get(0).getProjectName()+".zip"; ZipUtil.zip(WebConstant.UPLOAD_PATH_BASE + "/"+filePath, WebConstant.UPLOAD_PATH_BASE + zipPath); - path = WebConstant.TEST_URL_BASE + zipPath; + path = PropUtil.imgDomain + "/" + zipPath; //删除压缩前的文件 FileUtil.del(WebConstant.UPLOAD_PATH_BASE + "/"+filePath); } diff --git a/tall/src/main/java/com/ccsens/tall/service/IChartService.java b/tall/src/main/java/com/ccsens/tall/service/IChartService.java index 852ca89f..ebe063e2 100644 --- a/tall/src/main/java/com/ccsens/tall/service/IChartService.java +++ b/tall/src/main/java/com/ccsens/tall/service/IChartService.java @@ -6,9 +6,9 @@ import com.ccsens.tall.bean.vo.ChartVo; import java.util.List; public interface IChartService { - ChartVo.ExecutorChart getExecutorChart(Long currentUserId,Long projectId, Integer type); + ChartVo.ExecutorChart getExecutorChart(Long currentUserId,ChartDto.ChartsExecutorDto chartsExecutorDto); - List getCompleteTaskByTime(Long currentUserId, Long projectId); + List getCompleteTaskByTime(Long currentUserId,ChartDto.ChartsCompleteDto chartsCompleteDto); List getProjectTrend(Long currentUserId, ChartDto.ProjectTrendDto projectTrendDto); diff --git a/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java b/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java index 28474e1f..50fffd83 100644 --- a/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java +++ b/tall/src/main/java/com/ccsens/tall/service/SysDomainService.java @@ -13,7 +13,10 @@ import com.ccsens.tall.bean.vo.DomainVo; import com.ccsens.tall.persist.dao.DomainNavDao; import com.ccsens.tall.persist.dao.SysDomainDao; import com.ccsens.util.PropUtil; +import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Propagation; +import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; import java.util.List; @@ -21,7 +24,9 @@ import java.util.List; /** * @author 逗 */ +@Slf4j @Service +@Transactional(propagation = Propagation.REQUIRED,rollbackFor = Exception.class) public class SysDomainService implements ISysDomainService{ @Resource private SysDomainDao sysDomainDao; @@ -35,14 +40,17 @@ public class SysDomainService implements ISysDomainService{ */ @Override public DomainVo.DomainInfo getDomainByName(String domainName) { + log.info("根据域名:{} 来查找域配置信息",domainName); DomainVo.DomainInfo domainInfo = null; if(StrUtil.isNotEmpty(domainName)) { SysDomainExample domainExample = new SysDomainExample(); domainExample.createCriteria().andDomainNameEqualTo(domainName); List domainList = sysDomainDao.selectByExample(domainExample); if (CollectionUtil.isNotEmpty(domainList)) { + log.info("查找到的域配置信息:{}",domainList); domainInfo = new DomainVo.DomainInfo(); BeanUtil.copyProperties(domainList.get(0), domainInfo); + domainInfo.setDomainNav(domainList.get(0).getNavigationBar()); if(domainInfo.getDomainNav() != 0){ List domainNavInfoList = sysDomainDao.queryDomainNavByDomainId(domainInfo.getId()); if(CollectionUtil.isNotEmpty(domainNavInfoList)){ @@ -78,6 +86,7 @@ public class SysDomainService implements ISysDomainService{ DomainNav domainNav = new DomainNav(); BeanUtil.copyProperties(domainNavInfo, domainNav); domainNav.setId(snowflake.nextId()); + domainNav.setDomainId(sysDomain.getId()); domainNavDao.insertSelective(domainNav); }); } diff --git a/tall/src/main/java/com/ccsens/tall/service/TaskPluginService.java b/tall/src/main/java/com/ccsens/tall/service/TaskPluginService.java index 15c5ce47..a33897e1 100644 --- a/tall/src/main/java/com/ccsens/tall/service/TaskPluginService.java +++ b/tall/src/main/java/com/ccsens/tall/service/TaskPluginService.java @@ -17,7 +17,6 @@ import com.ccsens.util.PropUtil; import com.ccsens.util.WebConstant; import com.ccsens.util.exception.BaseException; import lombok.extern.slf4j.Slf4j; -import org.apache.poi.ss.usermodel.Workbook; import org.apache.poi.xssf.usermodel.XSSFWorkbook; import org.springframework.core.io.DefaultResourceLoader; import org.springframework.core.io.ResourceLoader; @@ -26,7 +25,10 @@ import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; import javax.annotation.Resource; -import java.io.*; +import java.io.File; +import java.io.FileOutputStream; +import java.io.InputStream; +import java.io.OutputStream; import java.util.*; import java.util.concurrent.atomic.AtomicReference; @@ -305,7 +307,7 @@ public class TaskPluginService implements ITaskPluginService{ // PoiUtil.exportWB("会议记录", minutes, wb); PoiUtil.exportWB("会议记录", minutes, wb); //生成文件 - String name = sysProject.getName() + "会议记录。xlsx"; + String name = sysProject.getName() + "会议记录.xlsx"; String fileName = "minutes/" + DateUtil.today() + "/" + System.currentTimeMillis() + ".xlsx"; String path = WebConstant.UPLOAD_PATH_BASE + File.separator + fileName; File tmpFile = new File(path); @@ -324,7 +326,7 @@ public class TaskPluginService implements ITaskPluginService{ business.setFilePath(fileName); business.setFileSize(tmpFile.length()); business.setOperation(WebConstant.Wps.USER_OPERATION_NEW); - business.setPrivilege(WebConstant.Wps.PROJECT_PRIVILEGE_READ); + business.setPrivilege(WebConstant.Wps.PROJECT_PRIVILEGE_WRITE); wpsService.saveFile(business); //获取wps文件的路径并返回 wpsPath = wpsService.queryVisitUrls(taskId,(byte) 2,token,params); diff --git a/tall/src/main/java/com/ccsens/tall/service/WbsSubSheetService.java b/tall/src/main/java/com/ccsens/tall/service/WbsSubSheetService.java index cb6a55ff..48b435fe 100644 --- a/tall/src/main/java/com/ccsens/tall/service/WbsSubSheetService.java +++ b/tall/src/main/java/com/ccsens/tall/service/WbsSubSheetService.java @@ -430,7 +430,7 @@ public class WbsSubSheetService implements IWbsSubSheetService { } } if (taskId == null) { - throw new BaseException(CodeEnum.NOT_TASK); + throw new BaseException(CodeEnum.NOT_TASK + ":" + taskName); } //获取插件id Long pluginId = 0L; diff --git a/tall/src/main/java/com/ccsens/tall/service/WpsService.java b/tall/src/main/java/com/ccsens/tall/service/WpsService.java index 2c5cef10..e9c4e2f2 100644 --- a/tall/src/main/java/com/ccsens/tall/service/WpsService.java +++ b/tall/src/main/java/com/ccsens/tall/service/WpsService.java @@ -19,7 +19,6 @@ import com.ccsens.util.*; import com.ccsens.util.exception.BaseException; import io.jsonwebtoken.Claims; import lombok.extern.slf4j.Slf4j; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Propagation; import org.springframework.transaction.annotation.Transactional; @@ -68,7 +67,9 @@ public class WpsService implements IWpsService { String name = file.getFileName(); log.info("文件名:{}", name); String url = getUrl(String.valueOf(file.getFileId()), name.substring(name.lastIndexOf(".") + 1), token, params); - urls.add(url); + if(StrUtil.isNotEmpty(url)){ + urls.add(url); + } }); log.info("访问路径返回结果:{}", urls); return urls; diff --git a/tall/src/main/java/com/ccsens/tall/web/ChartController.java b/tall/src/main/java/com/ccsens/tall/web/ChartController.java index 93ee7293..18f28103 100644 --- a/tall/src/main/java/com/ccsens/tall/web/ChartController.java +++ b/tall/src/main/java/com/ccsens/tall/web/ChartController.java @@ -1,15 +1,14 @@ package com.ccsens.tall.web; import com.ccsens.tall.bean.dto.ChartDto; -import com.ccsens.tall.bean.dto.TaskDto; import com.ccsens.tall.bean.vo.ChartVo; -import com.ccsens.tall.bean.vo.TaskVo; import com.ccsens.tall.service.IChartService; import com.ccsens.util.JsonResponse; import com.ccsens.util.WebConstant; import io.jsonwebtoken.Claims; -import io.swagger.annotations.*; -import jdk.internal.dynalink.linker.LinkerServices; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiImplicitParams; +import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.validation.annotation.Validated; import org.springframework.web.bind.annotation.*; @@ -27,28 +26,55 @@ public class ChartController { @ApiOperation(value = "任务执行者分布图",notes = "") @ApiImplicitParams({ - @ApiImplicitParam(name = "type", value = "类型 0按任务数量返回 1按任务时长返回(分钟)", required = true, paramType = "query"), }) - @RequestMapping(value = "/executor", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/executor", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse getTasksByTaskId(HttpServletRequest request, - @RequestParam(required = true)Long projectId, - @RequestParam(required = false)Integer type) throws Exception{ - type = type == null ? 0 : type; + @Validated @RequestBody ChartDto.ChartsExecutorDto chartsExecutorDto) throws Exception{ + Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); - ChartVo.ExecutorChart executorChart = chartService.getExecutorChart(currentUserId,projectId,type); + ChartVo.ExecutorChart executorChart = chartService.getExecutorChart(currentUserId,chartsExecutorDto); return JsonResponse.newInstance().ok(executorChart); } +// @ApiOperation(value = "任务执行者分布图",notes = "") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "type", value = "类型 0按任务数量返回 1按任务时长返回(分钟)", required = true, paramType = "query"), +// @ApiImplicitParam(name = "process", value = "完成状态 0全部,1完成,2未完成 默认0", required = false, paramType = "query"), +// }) +// @RequestMapping(value = "/executor", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse getTasksByTaskId(HttpServletRequest request, +// @RequestParam(required = true)Long projectId, +// @RequestParam(required = false)Integer type, +// @RequestParam(required = false)Integer process) throws Exception{ +// type = type == null ? 0 : type; +// process = process == null ? 0 : process; +// Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); +// ChartVo.ExecutorChart executorChart = chartService.getExecutorChart(currentUserId,projectId,type,process); +// return JsonResponse.newInstance().ok(executorChart); +// } @ApiOperation(value = "计划时间内完成任务",notes = "") @ApiImplicitParams({ }) - @RequestMapping(value = "/complete", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "/complete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse> getCompleteTaskByTime(HttpServletRequest request, - @RequestParam(required = true)Long projectId) throws Exception{ + @Validated @RequestBody ChartDto.ChartsCompleteDto chartsCompleteDto){ Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); - List completeTaskNumList = chartService.getCompleteTaskByTime(currentUserId,projectId); + List completeTaskNumList = chartService.getCompleteTaskByTime(currentUserId,chartsCompleteDto); return JsonResponse.newInstance().ok(completeTaskNumList); } +// @ApiOperation(value = "计划时间内完成任务",notes = "") +// @ApiImplicitParams({ +// @ApiImplicitParam(name = "process", value = "完成状态 1完成,2未完成 默认1", required = false, paramType = "query"), +// }) +// @RequestMapping(value = "/complete", method = RequestMethod.GET, produces = {"application/json;charset=UTF-8"}) +// public JsonResponse> getCompleteTaskByTime(HttpServletRequest request, +// @RequestParam(required = true)Long projectId, +// @RequestParam(required = false)Integer process) throws Exception{ +// process = process == null ? 1 : process; +// Long currentUserId = Long.valueOf(((Claims) request.getAttribute(WebConstant.REQUEST_KEY_CLAIMS)).getSubject()); +// List completeTaskNumList = chartService.getCompleteTaskByTime(currentUserId,projectId,process); +// return JsonResponse.newInstance().ok(completeTaskNumList); +// } @ApiOperation(value = "项目进展趋势图",notes = "") @@ -84,4 +110,5 @@ public class ChartController { List burnoutFigure = chartService.getBurnoutFigure(currentUserId,projectTrendDto); return JsonResponse.newInstance().ok(burnoutFigure); } + } diff --git a/tall/src/main/java/com/ccsens/tall/web/DomainController.java b/tall/src/main/java/com/ccsens/tall/web/DomainController.java index 1fd3730a..50b09f6c 100644 --- a/tall/src/main/java/com/ccsens/tall/web/DomainController.java +++ b/tall/src/main/java/com/ccsens/tall/web/DomainController.java @@ -39,12 +39,11 @@ public class DomainController { @ApiOperation(value = "添加域配置",notes = "") @ApiImplicitParams({ - @ApiImplicitParam(name = "saveDomain", value = "域名", required = true, paramType = "query") }) - @RequestMapping(value = "", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) + @RequestMapping(value = "saveDomain", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"}) public JsonResponse saveDomain(HttpServletRequest request, @Validated @RequestBody DomainDto.DomainInfo domainInfo) throws Exception { DomainVo.DomainInfo domain = domainService.saveDomain(domainInfo); - return JsonResponse.newInstance().ok(domainInfo); + return JsonResponse.newInstance().ok(domain); } } diff --git a/tall/src/main/resources/application-dev.yml b/tall/src/main/resources/application-dev.yml index d81ada96..7b4c03a3 100644 --- a/tall/src/main/resources/application-dev.yml +++ b/tall/src/main/resources/application-dev.yml @@ -29,6 +29,7 @@ spring: timeout: 1000ms swagger: enable: true + gatewayUrl: https://test.tall.wiki/gateway/ notGatewayUrl: /home/staticrec/logo.png wx: diff --git a/tall/src/main/resources/application-test.yml b/tall/src/main/resources/application-test.yml index 81423ad4..632be800 100644 --- a/tall/src/main/resources/application-test.yml +++ b/tall/src/main/resources/application-test.yml @@ -34,15 +34,15 @@ eureka: instance: ip-address: 192.168.0.99 # ip-address: 49.233.89.188 -gatewayUrl: http://192.168.0.99/gateway/ -notGatewayUrl: http://192.168.0.99/ -#gatewayUrl: https://test.tall.wiki/gateway/ -#notGatewayUrl: https://test.tall.wiki/ +#gatewayUrl: http://192.168.0.99/gateway/ +#notGatewayUrl: http://192.168.0.99/ +gatewayUrl: https://test.tall.wiki/gateway/ +notGatewayUrl: https://test.tall.wiki/ wx: prefixUrl: https://www.tall.wiki/wxconfigurer-api/ -#file: -# domain: https://test.tall.wiki/gateway/tall/v1.0/ -# imgDomain: https://test.tall.wiki/gateway/tall/v1.0/uploads file: - domain: http://192.168.0.99/gateway/tall/v1.0/ - imgDomain: http://192.168.0.99/gateway/tall/v1.0/uploads \ No newline at end of file + domain: https://test.tall.wiki/gateway/tall/v1.0/ + imgDomain: https://test.tall.wiki/gateway/tall/v1.0/uploads +#file: +# domain: http://192.168.0.99/gateway/tall/v1.0/ +# imgDomain: http://192.168.0.99/gateway/tall/v1.0/uploads \ No newline at end of file diff --git a/tall/src/main/resources/mapper_dao/SysProjectDao.xml b/tall/src/main/resources/mapper_dao/SysProjectDao.xml index 9bf3ab4c..3a73d7e8 100644 --- a/tall/src/main/resources/mapper_dao/SysProjectDao.xml +++ b/tall/src/main/resources/mapper_dao/SysProjectDao.xml @@ -256,18 +256,68 @@