diff --git a/beneficiation/.gitignore b/beneficiation/.gitignore
new file mode 100644
index 00000000..549e00a2
--- /dev/null
+++ b/beneficiation/.gitignore
@@ -0,0 +1,33 @@
+HELP.md
+target/
+!.mvn/wrapper/maven-wrapper.jar
+!**/src/main/**/target/
+!**/src/test/**/target/
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+build/
+!**/src/main/**/build/
+!**/src/test/**/build/
+
+### VS Code ###
+.vscode/
diff --git a/beneficiation/mvnw b/beneficiation/mvnw
new file mode 100644
index 00000000..3c8a5537
--- /dev/null
+++ b/beneficiation/mvnw
@@ -0,0 +1,322 @@
+#!/bin/sh
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# https://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+
+# ----------------------------------------------------------------------------
+# Maven Start Up Batch script
+#
+# Required ENV vars:
+# ------------------
+# JAVA_HOME - location of a JDK home dir
+#
+# Optional ENV vars
+# -----------------
+# M2_HOME - location of maven2's installed home dir
+# MAVEN_OPTS - parameters passed to the Java VM when running Maven
+# e.g. to debug Maven itself, use
+# set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+# MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+# ----------------------------------------------------------------------------
+
+if [ -z "$MAVEN_SKIP_RC" ]; then
+
+ if [ -f /etc/mavenrc ]; then
+ . /etc/mavenrc
+ fi
+
+ if [ -f "$HOME/.mavenrc" ]; then
+ . "$HOME/.mavenrc"
+ fi
+
+fi
+
+# OS specific support. $var _must_ be set to either true or false.
+cygwin=false
+darwin=false
+mingw=false
+case "$(uname)" in
+CYGWIN*) cygwin=true ;;
+MINGW*) mingw=true ;;
+Darwin*)
+ darwin=true
+ # Use /usr/libexec/java_home if available, otherwise fall back to /Library/Java/Home
+ # See https://developer.apple.com/library/mac/qa/qa1170/_index.html
+ if [ -z "$JAVA_HOME" ]; then
+ if [ -x "/usr/libexec/java_home" ]; then
+ export JAVA_HOME="$(/usr/libexec/java_home)"
+ else
+ export JAVA_HOME="/Library/Java/Home"
+ fi
+ fi
+ ;;
+esac
+
+if [ -z "$JAVA_HOME" ]; then
+ if [ -r /etc/gentoo-release ]; then
+ JAVA_HOME=$(java-config --jre-home)
+ fi
+fi
+
+if [ -z "$M2_HOME" ]; then
+ ## resolve links - $0 may be a link to maven's home
+ PRG="$0"
+
+ # need this for relative symlinks
+ while [ -h "$PRG" ]; do
+ ls=$(ls -ld "$PRG")
+ link=$(expr "$ls" : '.*-> \(.*\)$')
+ if expr "$link" : '/.*' >/dev/null; then
+ PRG="$link"
+ else
+ PRG="$(dirname "$PRG")/$link"
+ fi
+ done
+
+ saveddir=$(pwd)
+
+ M2_HOME=$(dirname "$PRG")/..
+
+ # make it fully qualified
+ M2_HOME=$(cd "$M2_HOME" && pwd)
+
+ cd "$saveddir"
+ # echo Using m2 at $M2_HOME
+fi
+
+# For Cygwin, ensure paths are in UNIX format before anything is touched
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=$(cygpath --unix "$M2_HOME")
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=$(cygpath --unix "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=$(cygpath --path --unix "$CLASSPATH")
+fi
+
+# For Mingw, ensure paths are in UNIX format before anything is touched
+if $mingw; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME="$( (
+ cd "$M2_HOME"
+ pwd
+ ))"
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME="$( (
+ cd "$JAVA_HOME"
+ pwd
+ ))"
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ javaExecutable="$(which javac)"
+ if [ -n "$javaExecutable" ] && ! [ "$(expr \"$javaExecutable\" : '\([^ ]*\)')" = "no" ]; then
+ # readlink(1) is not available as standard on Solaris 10.
+ readLink=$(which readlink)
+ if [ ! $(expr "$readLink" : '\([^ ]*\)') = "no" ]; then
+ if $darwin; then
+ javaHome="$(dirname \"$javaExecutable\")"
+ javaExecutable="$(cd \"$javaHome\" && pwd -P)/javac"
+ else
+ javaExecutable="$(readlink -f \"$javaExecutable\")"
+ fi
+ javaHome="$(dirname \"$javaExecutable\")"
+ javaHome=$(expr "$javaHome" : '\(.*\)/bin')
+ JAVA_HOME="$javaHome"
+ export JAVA_HOME
+ fi
+ fi
+fi
+
+if [ -z "$JAVACMD" ]; then
+ if [ -n "$JAVA_HOME" ]; then
+ if [ -x "$JAVA_HOME/jre/sh/java" ]; then
+ # IBM's JDK on AIX uses strange locations for the executables
+ JAVACMD="$JAVA_HOME/jre/sh/java"
+ else
+ JAVACMD="$JAVA_HOME/bin/java"
+ fi
+ else
+ JAVACMD="$(which java)"
+ fi
+fi
+
+if [ ! -x "$JAVACMD" ]; then
+ echo "Error: JAVA_HOME is not defined correctly." >&2
+ echo " We cannot execute $JAVACMD" >&2
+ exit 1
+fi
+
+if [ -z "$JAVA_HOME" ]; then
+ echo "Warning: JAVA_HOME environment variable is not set."
+fi
+
+CLASSWORLDS_LAUNCHER=org.codehaus.plexus.classworlds.launcher.Launcher
+
+# traverses directory structure from process work directory to filesystem root
+# first directory with .mvn subdirectory is considered project base directory
+find_maven_basedir() {
+
+ if [ -z "$1" ]; then
+ echo "Path not specified to find_maven_basedir"
+ return 1
+ fi
+
+ basedir="$1"
+ wdir="$1"
+ while [ "$wdir" != '/' ]; do
+ if [ -d "$wdir"/.mvn ]; then
+ basedir=$wdir
+ break
+ fi
+ # workaround for JBEAP-8937 (on Solaris 10/Sparc)
+ if [ -d "${wdir}" ]; then
+ wdir=$(
+ cd "$wdir/.."
+ pwd
+ )
+ fi
+ # end of workaround
+ done
+ echo "${basedir}"
+}
+
+# concatenates all lines of a file
+concat_lines() {
+ if [ -f "$1" ]; then
+ echo "$(tr -s '\n' ' ' <"$1")"
+ fi
+}
+
+BASE_DIR=$(find_maven_basedir "$(pwd)")
+if [ -z "$BASE_DIR" ]; then
+ exit 1
+fi
+
+##########################################################################################
+# Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+# This allows using the maven wrapper in projects that prohibit checking in binary data.
+##########################################################################################
+if [ -r "$BASE_DIR/.mvn/wrapper/maven-wrapper.jar" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found .mvn/wrapper/maven-wrapper.jar"
+ fi
+else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Couldn't find .mvn/wrapper/maven-wrapper.jar, downloading it ..."
+ fi
+ if [ -n "$MVNW_REPOURL" ]; then
+ jarUrl="$MVNW_REPOURL/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ else
+ jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ fi
+ while IFS="=" read key value; do
+ case "$key" in wrapperUrl)
+ jarUrl="$value"
+ break
+ ;;
+ esac
+ done <"$BASE_DIR/.mvn/wrapper/maven-wrapper.properties"
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Downloading from: $jarUrl"
+ fi
+ wrapperJarPath="$BASE_DIR/.mvn/wrapper/maven-wrapper.jar"
+ if $cygwin; then
+ wrapperJarPath=$(cygpath --path --windows "$wrapperJarPath")
+ fi
+
+ if command -v wget >/dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found wget ... using wget"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ wget "$jarUrl" -O "$wrapperJarPath"
+ else
+ wget --http-user=$MVNW_USERNAME --http-password=$MVNW_PASSWORD "$jarUrl" -O "$wrapperJarPath"
+ fi
+ elif command -v curl >/dev/null; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Found curl ... using curl"
+ fi
+ if [ -z "$MVNW_USERNAME" ] || [ -z "$MVNW_PASSWORD" ]; then
+ curl -o "$wrapperJarPath" "$jarUrl" -f
+ else
+ curl --user $MVNW_USERNAME:$MVNW_PASSWORD -o "$wrapperJarPath" "$jarUrl" -f
+ fi
+
+ else
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo "Falling back to using Java to download"
+ fi
+ javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java"
+ # For Cygwin, switch paths to Windows format before running javac
+ if $cygwin; then
+ javaClass=$(cygpath --path --windows "$javaClass")
+ fi
+ if [ -e "$javaClass" ]; then
+ if [ ! -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Compiling MavenWrapperDownloader.java ..."
+ fi
+ # Compiling the Java class
+ ("$JAVA_HOME/bin/javac" "$javaClass")
+ fi
+ if [ -e "$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.class" ]; then
+ # Running the downloader
+ if [ "$MVNW_VERBOSE" = true ]; then
+ echo " - Running MavenWrapperDownloader.java ..."
+ fi
+ ("$JAVA_HOME/bin/java" -cp .mvn/wrapper MavenWrapperDownloader "$MAVEN_PROJECTBASEDIR")
+ fi
+ fi
+ fi
+fi
+##########################################################################################
+# End of extension
+##########################################################################################
+
+export MAVEN_PROJECTBASEDIR=${MAVEN_BASEDIR:-"$BASE_DIR"}
+if [ "$MVNW_VERBOSE" = true ]; then
+ echo $MAVEN_PROJECTBASEDIR
+fi
+MAVEN_OPTS="$(concat_lines "$MAVEN_PROJECTBASEDIR/.mvn/jvm.config") $MAVEN_OPTS"
+
+# For Cygwin, switch paths to Windows format before running java
+if $cygwin; then
+ [ -n "$M2_HOME" ] &&
+ M2_HOME=$(cygpath --path --windows "$M2_HOME")
+ [ -n "$JAVA_HOME" ] &&
+ JAVA_HOME=$(cygpath --path --windows "$JAVA_HOME")
+ [ -n "$CLASSPATH" ] &&
+ CLASSPATH=$(cygpath --path --windows "$CLASSPATH")
+ [ -n "$MAVEN_PROJECTBASEDIR" ] &&
+ MAVEN_PROJECTBASEDIR=$(cygpath --path --windows "$MAVEN_PROJECTBASEDIR")
+fi
+
+# Provide a "standardized" way to retrieve the CLI args that will
+# work with both Windows and non-Windows executions.
+MAVEN_CMD_LINE_ARGS="$MAVEN_CONFIG $@"
+export MAVEN_CMD_LINE_ARGS
+
+WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+exec "$JAVACMD" \
+ $MAVEN_OPTS \
+ -classpath "$MAVEN_PROJECTBASEDIR/.mvn/wrapper/maven-wrapper.jar" \
+ "-Dmaven.home=${M2_HOME}" "-Dmaven.multiModuleProjectDirectory=${MAVEN_PROJECTBASEDIR}" \
+ ${WRAPPER_LAUNCHER} $MAVEN_CONFIG "$@"
diff --git a/beneficiation/mvnw.cmd b/beneficiation/mvnw.cmd
new file mode 100644
index 00000000..c8d43372
--- /dev/null
+++ b/beneficiation/mvnw.cmd
@@ -0,0 +1,182 @@
+@REM ----------------------------------------------------------------------------
+@REM Licensed to the Apache Software Foundation (ASF) under one
+@REM or more contributor license agreements. See the NOTICE file
+@REM distributed with this work for additional information
+@REM regarding copyright ownership. The ASF licenses this file
+@REM to you under the Apache License, Version 2.0 (the
+@REM "License"); you may not use this file except in compliance
+@REM with the License. You may obtain a copy of the License at
+@REM
+@REM https://www.apache.org/licenses/LICENSE-2.0
+@REM
+@REM Unless required by applicable law or agreed to in writing,
+@REM software distributed under the License is distributed on an
+@REM "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+@REM KIND, either express or implied. See the License for the
+@REM specific language governing permissions and limitations
+@REM under the License.
+@REM ----------------------------------------------------------------------------
+
+@REM ----------------------------------------------------------------------------
+@REM Maven Start Up Batch script
+@REM
+@REM Required ENV vars:
+@REM JAVA_HOME - location of a JDK home dir
+@REM
+@REM Optional ENV vars
+@REM M2_HOME - location of maven2's installed home dir
+@REM MAVEN_BATCH_ECHO - set to 'on' to enable the echoing of the batch commands
+@REM MAVEN_BATCH_PAUSE - set to 'on' to wait for a keystroke before ending
+@REM MAVEN_OPTS - parameters passed to the Java VM when running Maven
+@REM e.g. to debug Maven itself, use
+@REM set MAVEN_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8000
+@REM MAVEN_SKIP_RC - flag to disable loading of mavenrc files
+@REM ----------------------------------------------------------------------------
+
+@REM Begin all REM lines with '@' in case MAVEN_BATCH_ECHO is 'on'
+@echo off
+@REM set title of command window
+title %0
+@REM enable echoing by setting MAVEN_BATCH_ECHO to 'on'
+@if "%MAVEN_BATCH_ECHO%" == "on" echo %MAVEN_BATCH_ECHO%
+
+@REM set %HOME% to equivalent of $HOME
+if "%HOME%" == "" (set "HOME=%HOMEDRIVE%%HOMEPATH%")
+
+@REM Execute a user defined script before this one
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPre
+@REM check for pre script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_pre.bat" call "%HOME%\mavenrc_pre.bat"
+if exist "%HOME%\mavenrc_pre.cmd" call "%HOME%\mavenrc_pre.cmd"
+:skipRcPre
+
+@setlocal
+
+set ERROR_CODE=0
+
+@REM To isolate internal variables from possible post scripts, we use another setlocal
+@setlocal
+
+@REM ==== START VALIDATION ====
+if not "%JAVA_HOME%" == "" goto OkJHome
+
+echo.
+echo Error: JAVA_HOME not found in your environment. >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+:OkJHome
+if exist "%JAVA_HOME%\bin\java.exe" goto init
+
+echo.
+echo Error: JAVA_HOME is set to an invalid directory. >&2
+echo JAVA_HOME = "%JAVA_HOME%" >&2
+echo Please set the JAVA_HOME variable in your environment to match the >&2
+echo location of your Java installation. >&2
+echo.
+goto error
+
+@REM ==== END VALIDATION ====
+
+:init
+
+@REM Find the project base dir, i.e. the directory that contains the folder ".mvn".
+@REM Fallback to current working directory if not found.
+
+set MAVEN_PROJECTBASEDIR=%MAVEN_BASEDIR%
+IF NOT "%MAVEN_PROJECTBASEDIR%"=="" goto endDetectBaseDir
+
+set EXEC_DIR=%CD%
+set WDIR=%EXEC_DIR%
+:findBaseDir
+IF EXIST "%WDIR%"\.mvn goto baseDirFound
+cd ..
+IF "%WDIR%"=="%CD%" goto baseDirNotFound
+set WDIR=%CD%
+goto findBaseDir
+
+:baseDirFound
+set MAVEN_PROJECTBASEDIR=%WDIR%
+cd "%EXEC_DIR%"
+goto endDetectBaseDir
+
+:baseDirNotFound
+set MAVEN_PROJECTBASEDIR=%EXEC_DIR%
+cd "%EXEC_DIR%"
+
+:endDetectBaseDir
+
+IF NOT EXIST "%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config" goto endReadAdditionalConfig
+
+@setlocal EnableExtensions EnableDelayedExpansion
+for /F "usebackq delims=" %%a in ("%MAVEN_PROJECTBASEDIR%\.mvn\jvm.config") do set JVM_CONFIG_MAVEN_PROPS=!JVM_CONFIG_MAVEN_PROPS! %%a
+@endlocal & set JVM_CONFIG_MAVEN_PROPS=%JVM_CONFIG_MAVEN_PROPS%
+
+:endReadAdditionalConfig
+
+SET MAVEN_JAVA_EXE="%JAVA_HOME%\bin\java.exe"
+set WRAPPER_JAR="%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.jar"
+set WRAPPER_LAUNCHER=org.apache.maven.wrapper.MavenWrapperMain
+
+set DOWNLOAD_URL="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+
+FOR /F "tokens=1,2 delims==" %%A IN ("%MAVEN_PROJECTBASEDIR%\.mvn\wrapper\maven-wrapper.properties") DO (
+ IF "%%A"=="wrapperUrl" SET DOWNLOAD_URL=%%B
+)
+
+@REM Extension to allow automatically downloading the maven-wrapper.jar from Maven-central
+@REM This allows using the maven wrapper in projects that prohibit checking in binary data.
+if exist %WRAPPER_JAR% (
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Found %WRAPPER_JAR%
+ )
+) else (
+ if not "%MVNW_REPOURL%" == "" (
+ SET DOWNLOAD_URL="%MVNW_REPOURL%/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar"
+ )
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Couldn't find %WRAPPER_JAR%, downloading it ...
+ echo Downloading from: %DOWNLOAD_URL%
+ )
+
+ powershell -Command "&{"^
+ "$webclient = new-object System.Net.WebClient;"^
+ "if (-not ([string]::IsNullOrEmpty('%MVNW_USERNAME%') -and [string]::IsNullOrEmpty('%MVNW_PASSWORD%'))) {"^
+ "$webclient.Credentials = new-object System.Net.NetworkCredential('%MVNW_USERNAME%', '%MVNW_PASSWORD%');"^
+ "}"^
+ "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; $webclient.DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')"^
+ "}"
+ if "%MVNW_VERBOSE%" == "true" (
+ echo Finished downloading %WRAPPER_JAR%
+ )
+)
+@REM End of extension
+
+@REM Provide a "standardized" way to retrieve the CLI args that will
+@REM work with both Windows and non-Windows executions.
+set MAVEN_CMD_LINE_ARGS=%*
+
+%MAVEN_JAVA_EXE% %JVM_CONFIG_MAVEN_PROPS% %MAVEN_OPTS% %MAVEN_DEBUG_OPTS% -classpath %WRAPPER_JAR% "-Dmaven.multiModuleProjectDirectory=%MAVEN_PROJECTBASEDIR%" %WRAPPER_LAUNCHER% %MAVEN_CONFIG% %*
+if ERRORLEVEL 1 goto error
+goto end
+
+:error
+set ERROR_CODE=1
+
+:end
+@endlocal & set ERROR_CODE=%ERROR_CODE%
+
+if not "%MAVEN_SKIP_RC%" == "" goto skipRcPost
+@REM check for post script, once with legacy .bat ending and once with .cmd ending
+if exist "%HOME%\mavenrc_post.bat" call "%HOME%\mavenrc_post.bat"
+if exist "%HOME%\mavenrc_post.cmd" call "%HOME%\mavenrc_post.cmd"
+:skipRcPost
+
+@REM pause the script if MAVEN_BATCH_PAUSE is set to 'on'
+if "%MAVEN_BATCH_PAUSE%" == "on" pause
+
+if "%MAVEN_TERMINATE_CMD%" == "on" exit %ERROR_CODE%
+
+exit /B %ERROR_CODE%
diff --git a/beneficiation/pom.xml b/beneficiation/pom.xml
new file mode 100644
index 00000000..10a1ea92
--- /dev/null
+++ b/beneficiation/pom.xml
@@ -0,0 +1,72 @@
+
+
+
+ ccsenscloud
+ com.ccsens
+ 1.0-SNAPSHOT
+
+ 4.0.0
+
+ beneficiation
+
+ 1.8
+
+
+
+
+
+ cloudutil
+ com.ccsens
+ 1.0-SNAPSHOT
+
+
+
+
+ com.ccsens
+ util
+ 1.0-SNAPSHOT
+ compile
+
+
+
+
+
+
+
+ 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.beneficiation.BeneficiationApplication
+
+
+
+
+
+ repackage
+
+
+
+
+
+
+
+
+
+
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/BeneficiationApplication.java b/beneficiation/src/main/java/com/ccsens/beneficiation/BeneficiationApplication.java
new file mode 100644
index 00000000..30701483
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/BeneficiationApplication.java
@@ -0,0 +1,27 @@
+package com.ccsens.beneficiation;
+
+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 逗
+ */
+@MapperScan(basePackages = {"com.ccsens.beneficiation.persist.*"})
+@ServletComponentScan
+@EnableAsync
+//开启断路器功能
+@EnableCircuitBreaker
+@EnableFeignClients(basePackages = "com.ccsens.cloudutil.feign")
+@SpringBootApplication(scanBasePackages = "com.ccsens")
+public class BeneficiationApplication {
+
+ public static void main(String[] args) {
+ SpringApplication.run(BeneficiationApplication.class, args);
+ }
+
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/api/DebugController.java b/beneficiation/src/main/java/com/ccsens/beneficiation/api/DebugController.java
new file mode 100644
index 00000000..23148be1
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/api/DebugController.java
@@ -0,0 +1,30 @@
+package com.ccsens.beneficiation.api;
+
+import com.ccsens.util.JsonResponse;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiImplicitParams;
+import io.swagger.annotations.ApiOperation;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.servlet.http.HttpServletRequest;
+
+@Api(tags = "DEBUG" , description = "DebugController | ")
+@RestController
+@RequestMapping("/debug")
+@Slf4j
+public class DebugController {
+
+ @ApiOperation(value = "/测试",notes = "")
+ @ApiImplicitParams({
+ })
+ @RequestMapping(value="",method = RequestMethod.GET,produces = {"application/json;charset=UTF-8"})
+ public JsonResponse debug(HttpServletRequest request) throws Exception {
+
+ return JsonResponse.newInstance().ok("测试");
+ }
+
+
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/api/WeightController.java b/beneficiation/src/main/java/com/ccsens/beneficiation/api/WeightController.java
new file mode 100644
index 00000000..5dc7cde2
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/api/WeightController.java
@@ -0,0 +1,52 @@
+package com.ccsens.beneficiation.api;
+
+import com.ccsens.beneficiation.bean.dto.WeightDto;
+import com.ccsens.beneficiation.bean.vo.WeightVo;
+import com.ccsens.beneficiation.service.IWeightService;
+import com.ccsens.cloudutil.annotation.MustLogin;
+import com.ccsens.util.JsonResponse;
+import com.ccsens.util.bean.dto.QueryDto;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import io.swagger.annotations.ApiParam;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.validation.annotation.Validated;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestMethod;
+import org.springframework.web.bind.annotation.RestController;
+
+import javax.annotation.Resource;
+import java.util.List;
+
+/**
+ * @author 逗
+ */
+@Slf4j
+@Api(tags = "皮带秤每天上传的重量统计相关" , description = "")
+@RestController
+@RequestMapping("/weight")
+public class WeightController {
+ @Resource
+ private IWeightService weightService;
+
+ @MustLogin
+ @ApiOperation(value = "重量统计折线图", notes = "")
+ @RequestMapping(value = "/query", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse> queryWeight(@ApiParam @Validated @RequestBody QueryDto params) {
+ log.info("统计每天的重量:{}",params);
+ List weightDay = weightService.queryWeightDay(params.getParam());
+ log.info("统计每天的重量成功");
+ return JsonResponse.newInstance().ok(weightDay);
+ }
+
+ @MustLogin
+ @ApiOperation(value = "重量累计表格", notes = "")
+ @RequestMapping(value = "/total", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
+ public JsonResponse queryWeightTotal(@ApiParam @Validated @RequestBody QueryDto params) {
+ log.info("重量累计表格:{}",params);
+ WeightVo.WeightTotal weightTotal = weightService.queryWeightTotal(params.getParam());
+ log.info("重量累计表格返回");
+ return JsonResponse.newInstance().ok(weightTotal);
+ }
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/Message/BaseMessageDto.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/Message/BaseMessageDto.java
new file mode 100644
index 00000000..74a199bd
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/Message/BaseMessageDto.java
@@ -0,0 +1,66 @@
+package com.ccsens.beneficiation.bean.dto.Message;
+
+import cn.hutool.core.collection.CollectionUtil;
+import com.alibaba.fastjson.JSONObject;
+import com.ccsens.util.bean.message.common.InMessage;
+import lombok.Data;
+
+import java.util.ArrayList;
+import java.util.HashSet;
+import java.util.List;
+import java.util.Set;
+
+@Data
+public class BaseMessageDto {
+ @Data
+ public static class MessageUser {
+ private Long id;
+ private Long userId; //本质上是authId //20190507 本质上是userId
+ private String nickname;
+ private String avatarUrl;
+ private boolean hasRead;
+ public MessageUser(){
+ hasRead = false;
+ }
+ public MessageUser(Long userId){
+ hasRead = false;
+ this.userId = userId;
+ }
+ public MessageUser(Long id,Long userId,String nickname,String avatarUrl){
+ this();
+ this.id = id;
+ this.userId = userId;
+ this.nickname = nickname;
+ this.avatarUrl = avatarUrl;
+ }
+
+ public static List userIdToUsers(List userIds) {
+ List users = new ArrayList<>();
+ userIds.forEach(userId ->{
+ users.add(new MessageUser(userId));
+ });
+ return users;
+ }
+ }
+
+ private Long time;
+ private String type;
+ private String event;
+ private Long projectId;
+ private MessageUser sender;
+ private List receivers;
+// private Object data;
+
+ public Set receiversTransTos() {
+ Set tos = new HashSet<>();
+ if (CollectionUtil.isEmpty(receivers)) {
+ return tos;
+ }
+ receivers.forEach(receiver -> {
+ InMessage.To to = new InMessage.To(receiver.getUserId());
+ tos.add(JSONObject.toJSONString(to));
+ });
+
+ return tos;
+ }
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/Message/BeneficiationMessageDto.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/Message/BeneficiationMessageDto.java
new file mode 100644
index 00000000..f1a021dd
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/Message/BeneficiationMessageDto.java
@@ -0,0 +1,63 @@
+package com.ccsens.beneficiation.bean.dto.Message;
+
+import lombok.Data;
+
+/**
+ * @author 逗
+ */
+@Data
+public class BeneficiationMessageDto {
+ /**
+ * 设备编号
+ */
+ private String authId;
+ /**
+ * 类型 0变频器 1皮带秤 2电磁阀 3流量计 4电耳 5每日称重信息 6界限值 7触碰界限值后更改记录
+ */
+ private Byte type;
+ /**
+ * 寄存器地址
+ */
+ private int addr;
+ /**
+ * 类型对应的值,
+ */
+ private String value;
+ /**
+ * 版本号
+ */
+ private String version;
+ /**
+ * 时间
+ */
+ private Long time = System.currentTimeMillis();
+
+ public Byte getType(){
+ if(this.type != null){
+ return type;
+ }
+ switch (addr){
+ case 21:
+ return 0;
+ case 22:
+ return 1;
+ case 23:
+ return 2;
+ case 24:
+ return 3;
+ case 25:
+ return 4;
+ case 26:
+ return 5;
+ case 27:
+ case 28:
+ case 29:
+ return 6;
+ case 30: //触碰到的界限的信息()
+ return 7;
+ default:
+ return type;
+ }
+ }
+
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/WeightDto.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/WeightDto.java
new file mode 100644
index 00000000..cbb74ed9
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/dto/WeightDto.java
@@ -0,0 +1,52 @@
+package com.ccsens.beneficiation.bean.dto;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * @author 逗
+ */
+@Data
+public class WeightDto {
+
+ @Data
+ @ApiModel("统计重量信息")
+ public static class GetWeightByDay {
+ @ApiModelProperty("设备id(皮带秤id)默认1")
+ private Long equipmentId = 1L;
+ @ApiModelProperty("开始时间 不传默认查询全部")
+ private Date startTime;
+ @ApiModelProperty("结束时间 不传默认查询全部")
+ private Date endTime;
+ @ApiModelProperty("查询颗粒度 0天 1周 2月 3年 默认天")
+ private int dateType;
+ @JsonIgnore
+ private String dateTypeStr;
+
+ public String getDateTypeStr() {
+ switch (dateType){
+ case 1:
+ return "%Y-%u";
+ case 2:
+ return "%Y-%m";
+ case 3:
+ return "%Y";
+ default:
+ return "%Y-%m-%d";
+ }
+ }
+ }
+
+
+ @Data
+ @ApiModel("查询重量累计")
+ public static class GetWeightTotal {
+ @ApiModelProperty("日期 为空则默认当前")
+ private Date datetime;
+
+ }
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/AdjustRecord.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/AdjustRecord.java
new file mode 100644
index 00000000..bfdf08f6
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/AdjustRecord.java
@@ -0,0 +1,150 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class AdjustRecord implements Serializable {
+ private Long id;
+
+ private Long time;
+
+ private Long monitoringId;
+
+ private String monitoringValue;
+
+ private Long thresholdId;
+
+ private Long equipmentId;
+
+ private String beforeValue;
+
+ private String afterValue;
+
+ private Long operator;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getTime() {
+ return time;
+ }
+
+ public void setTime(Long time) {
+ this.time = time;
+ }
+
+ public Long getMonitoringId() {
+ return monitoringId;
+ }
+
+ public void setMonitoringId(Long monitoringId) {
+ this.monitoringId = monitoringId;
+ }
+
+ public String getMonitoringValue() {
+ return monitoringValue;
+ }
+
+ public void setMonitoringValue(String monitoringValue) {
+ this.monitoringValue = monitoringValue == null ? null : monitoringValue.trim();
+ }
+
+ public Long getThresholdId() {
+ return thresholdId;
+ }
+
+ public void setThresholdId(Long thresholdId) {
+ this.thresholdId = thresholdId;
+ }
+
+ public Long getEquipmentId() {
+ return equipmentId;
+ }
+
+ public void setEquipmentId(Long equipmentId) {
+ this.equipmentId = equipmentId;
+ }
+
+ public String getBeforeValue() {
+ return beforeValue;
+ }
+
+ public void setBeforeValue(String beforeValue) {
+ this.beforeValue = beforeValue == null ? null : beforeValue.trim();
+ }
+
+ public String getAfterValue() {
+ return afterValue;
+ }
+
+ public void setAfterValue(String afterValue) {
+ this.afterValue = afterValue == null ? null : afterValue.trim();
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", time=").append(time);
+ sb.append(", monitoringId=").append(monitoringId);
+ sb.append(", monitoringValue=").append(monitoringValue);
+ sb.append(", thresholdId=").append(thresholdId);
+ sb.append(", equipmentId=").append(equipmentId);
+ sb.append(", beforeValue=").append(beforeValue);
+ sb.append(", afterValue=").append(afterValue);
+ sb.append(", operator=").append(operator);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/AdjustRecordExample.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/AdjustRecordExample.java
new file mode 100644
index 00000000..8ac0dbe5
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/AdjustRecordExample.java
@@ -0,0 +1,951 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class AdjustRecordExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public AdjustRecordExample() {
+ 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 andTimeIsNull() {
+ addCriterion("time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIsNotNull() {
+ addCriterion("time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeEqualTo(Long value) {
+ addCriterion("time =", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotEqualTo(Long value) {
+ addCriterion("time <>", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeGreaterThan(Long value) {
+ addCriterion("time >", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeGreaterThanOrEqualTo(Long value) {
+ addCriterion("time >=", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeLessThan(Long value) {
+ addCriterion("time <", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeLessThanOrEqualTo(Long value) {
+ addCriterion("time <=", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIn(List values) {
+ addCriterion("time in", values, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotIn(List values) {
+ addCriterion("time not in", values, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeBetween(Long value1, Long value2) {
+ addCriterion("time between", value1, value2, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotBetween(Long value1, Long value2) {
+ addCriterion("time not between", value1, value2, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdIsNull() {
+ addCriterion("monitoring_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdIsNotNull() {
+ addCriterion("monitoring_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdEqualTo(Long value) {
+ addCriterion("monitoring_id =", value, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdNotEqualTo(Long value) {
+ addCriterion("monitoring_id <>", value, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdGreaterThan(Long value) {
+ addCriterion("monitoring_id >", value, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("monitoring_id >=", value, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdLessThan(Long value) {
+ addCriterion("monitoring_id <", value, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdLessThanOrEqualTo(Long value) {
+ addCriterion("monitoring_id <=", value, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdIn(List values) {
+ addCriterion("monitoring_id in", values, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdNotIn(List values) {
+ addCriterion("monitoring_id not in", values, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdBetween(Long value1, Long value2) {
+ addCriterion("monitoring_id between", value1, value2, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringIdNotBetween(Long value1, Long value2) {
+ addCriterion("monitoring_id not between", value1, value2, "monitoringId");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueIsNull() {
+ addCriterion("monitoring_value is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueIsNotNull() {
+ addCriterion("monitoring_value is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueEqualTo(String value) {
+ addCriterion("monitoring_value =", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueNotEqualTo(String value) {
+ addCriterion("monitoring_value <>", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueGreaterThan(String value) {
+ addCriterion("monitoring_value >", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueGreaterThanOrEqualTo(String value) {
+ addCriterion("monitoring_value >=", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueLessThan(String value) {
+ addCriterion("monitoring_value <", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueLessThanOrEqualTo(String value) {
+ addCriterion("monitoring_value <=", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueLike(String value) {
+ addCriterion("monitoring_value like", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueNotLike(String value) {
+ addCriterion("monitoring_value not like", value, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueIn(List values) {
+ addCriterion("monitoring_value in", values, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueNotIn(List values) {
+ addCriterion("monitoring_value not in", values, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueBetween(String value1, String value2) {
+ addCriterion("monitoring_value between", value1, value2, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andMonitoringValueNotBetween(String value1, String value2) {
+ addCriterion("monitoring_value not between", value1, value2, "monitoringValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdIsNull() {
+ addCriterion("threshold_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdIsNotNull() {
+ addCriterion("threshold_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdEqualTo(Long value) {
+ addCriterion("threshold_id =", value, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdNotEqualTo(Long value) {
+ addCriterion("threshold_id <>", value, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdGreaterThan(Long value) {
+ addCriterion("threshold_id >", value, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("threshold_id >=", value, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdLessThan(Long value) {
+ addCriterion("threshold_id <", value, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdLessThanOrEqualTo(Long value) {
+ addCriterion("threshold_id <=", value, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdIn(List values) {
+ addCriterion("threshold_id in", values, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdNotIn(List values) {
+ addCriterion("threshold_id not in", values, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdBetween(Long value1, Long value2) {
+ addCriterion("threshold_id between", value1, value2, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andThresholdIdNotBetween(Long value1, Long value2) {
+ addCriterion("threshold_id not between", value1, value2, "thresholdId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIsNull() {
+ addCriterion("equipment_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIsNotNull() {
+ addCriterion("equipment_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdEqualTo(Long value) {
+ addCriterion("equipment_id =", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotEqualTo(Long value) {
+ addCriterion("equipment_id <>", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdGreaterThan(Long value) {
+ addCriterion("equipment_id >", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("equipment_id >=", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdLessThan(Long value) {
+ addCriterion("equipment_id <", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdLessThanOrEqualTo(Long value) {
+ addCriterion("equipment_id <=", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIn(List values) {
+ addCriterion("equipment_id in", values, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotIn(List values) {
+ addCriterion("equipment_id not in", values, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdBetween(Long value1, Long value2) {
+ addCriterion("equipment_id between", value1, value2, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotBetween(Long value1, Long value2) {
+ addCriterion("equipment_id not between", value1, value2, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueIsNull() {
+ addCriterion("before_value is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueIsNotNull() {
+ addCriterion("before_value is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueEqualTo(String value) {
+ addCriterion("before_value =", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueNotEqualTo(String value) {
+ addCriterion("before_value <>", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueGreaterThan(String value) {
+ addCriterion("before_value >", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueGreaterThanOrEqualTo(String value) {
+ addCriterion("before_value >=", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueLessThan(String value) {
+ addCriterion("before_value <", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueLessThanOrEqualTo(String value) {
+ addCriterion("before_value <=", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueLike(String value) {
+ addCriterion("before_value like", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueNotLike(String value) {
+ addCriterion("before_value not like", value, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueIn(List values) {
+ addCriterion("before_value in", values, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueNotIn(List values) {
+ addCriterion("before_value not in", values, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueBetween(String value1, String value2) {
+ addCriterion("before_value between", value1, value2, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andBeforeValueNotBetween(String value1, String value2) {
+ addCriterion("before_value not between", value1, value2, "beforeValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueIsNull() {
+ addCriterion("after_value is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueIsNotNull() {
+ addCriterion("after_value is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueEqualTo(String value) {
+ addCriterion("after_value =", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueNotEqualTo(String value) {
+ addCriterion("after_value <>", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueGreaterThan(String value) {
+ addCriterion("after_value >", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueGreaterThanOrEqualTo(String value) {
+ addCriterion("after_value >=", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueLessThan(String value) {
+ addCriterion("after_value <", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueLessThanOrEqualTo(String value) {
+ addCriterion("after_value <=", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueLike(String value) {
+ addCriterion("after_value like", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueNotLike(String value) {
+ addCriterion("after_value not like", value, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueIn(List values) {
+ addCriterion("after_value in", values, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueNotIn(List values) {
+ addCriterion("after_value not in", values, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueBetween(String value1, String value2) {
+ addCriterion("after_value between", value1, value2, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andAfterValueNotBetween(String value1, String value2) {
+ addCriterion("after_value not between", value1, value2, "afterValue");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List 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/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Equipment.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Equipment.java
new file mode 100644
index 00000000..c46e53ea
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Equipment.java
@@ -0,0 +1,117 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class Equipment implements Serializable {
+ private Long id;
+
+ private Byte type;
+
+ private String authId;
+
+ private String addr;
+
+ private String verion;
+
+ private Long operator;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Byte getType() {
+ return type;
+ }
+
+ public void setType(Byte type) {
+ this.type = type;
+ }
+
+ public String getAuthId() {
+ return authId;
+ }
+
+ public void setAuthId(String authId) {
+ this.authId = authId == null ? null : authId.trim();
+ }
+
+ public String getAddr() {
+ return addr;
+ }
+
+ public void setAddr(String addr) {
+ this.addr = addr == null ? null : addr.trim();
+ }
+
+ public String getVerion() {
+ return verion;
+ }
+
+ public void setVerion(String verion) {
+ this.verion = verion == null ? null : verion.trim();
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", type=").append(type);
+ sb.append(", authId=").append(authId);
+ sb.append(", addr=").append(addr);
+ sb.append(", verion=").append(verion);
+ sb.append(", operator=").append(operator);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/EquipmentExample.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/EquipmentExample.java
new file mode 100644
index 00000000..9abef3e6
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/EquipmentExample.java
@@ -0,0 +1,771 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class EquipmentExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public EquipmentExample() {
+ 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 andTypeIsNull() {
+ addCriterion("type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(Byte value) {
+ addCriterion("type =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(Byte value) {
+ addCriterion("type <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(Byte value) {
+ addCriterion("type >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
+ addCriterion("type >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(Byte value) {
+ addCriterion("type <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(Byte value) {
+ addCriterion("type <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("type in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("type not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(Byte value1, Byte value2) {
+ addCriterion("type between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(Byte value1, Byte value2) {
+ addCriterion("type not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdIsNull() {
+ addCriterion("auth_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdIsNotNull() {
+ addCriterion("auth_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdEqualTo(String value) {
+ addCriterion("auth_id =", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotEqualTo(String value) {
+ addCriterion("auth_id <>", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdGreaterThan(String value) {
+ addCriterion("auth_id >", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdGreaterThanOrEqualTo(String value) {
+ addCriterion("auth_id >=", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdLessThan(String value) {
+ addCriterion("auth_id <", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdLessThanOrEqualTo(String value) {
+ addCriterion("auth_id <=", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdLike(String value) {
+ addCriterion("auth_id like", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotLike(String value) {
+ addCriterion("auth_id not like", value, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdIn(List values) {
+ addCriterion("auth_id in", values, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotIn(List values) {
+ addCriterion("auth_id not in", values, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdBetween(String value1, String value2) {
+ addCriterion("auth_id between", value1, value2, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAuthIdNotBetween(String value1, String value2) {
+ addCriterion("auth_id not between", value1, value2, "authId");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrIsNull() {
+ addCriterion("addr is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrIsNotNull() {
+ addCriterion("addr is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrEqualTo(String value) {
+ addCriterion("addr =", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrNotEqualTo(String value) {
+ addCriterion("addr <>", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrGreaterThan(String value) {
+ addCriterion("addr >", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrGreaterThanOrEqualTo(String value) {
+ addCriterion("addr >=", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrLessThan(String value) {
+ addCriterion("addr <", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrLessThanOrEqualTo(String value) {
+ addCriterion("addr <=", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrLike(String value) {
+ addCriterion("addr like", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrNotLike(String value) {
+ addCriterion("addr not like", value, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrIn(List values) {
+ addCriterion("addr in", values, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrNotIn(List values) {
+ addCriterion("addr not in", values, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrBetween(String value1, String value2) {
+ addCriterion("addr between", value1, value2, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andAddrNotBetween(String value1, String value2) {
+ addCriterion("addr not between", value1, value2, "addr");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionIsNull() {
+ addCriterion("verion is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionIsNotNull() {
+ addCriterion("verion is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionEqualTo(String value) {
+ addCriterion("verion =", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionNotEqualTo(String value) {
+ addCriterion("verion <>", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionGreaterThan(String value) {
+ addCriterion("verion >", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionGreaterThanOrEqualTo(String value) {
+ addCriterion("verion >=", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionLessThan(String value) {
+ addCriterion("verion <", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionLessThanOrEqualTo(String value) {
+ addCriterion("verion <=", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionLike(String value) {
+ addCriterion("verion like", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionNotLike(String value) {
+ addCriterion("verion not like", value, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionIn(List values) {
+ addCriterion("verion in", values, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionNotIn(List values) {
+ addCriterion("verion not in", values, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionBetween(String value1, String value2) {
+ addCriterion("verion between", value1, value2, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andVerionNotBetween(String value1, String value2) {
+ addCriterion("verion not between", value1, value2, "verion");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List 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/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Record.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Record.java
new file mode 100644
index 00000000..0c683738
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Record.java
@@ -0,0 +1,106 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class Record implements Serializable {
+ private Long id;
+
+ private Long equipmentId;
+
+ private String value;
+
+ private Date time;
+
+ private Long operator;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getEquipmentId() {
+ return equipmentId;
+ }
+
+ public void setEquipmentId(Long equipmentId) {
+ this.equipmentId = equipmentId;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value == null ? null : value.trim();
+ }
+
+ public Date getTime() {
+ return time;
+ }
+
+ public void setTime(Date time) {
+ this.time = time;
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", equipmentId=").append(equipmentId);
+ sb.append(", value=").append(value);
+ sb.append(", time=").append(time);
+ sb.append(", operator=").append(operator);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/RecordExample.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/RecordExample.java
new file mode 100644
index 00000000..e15570e1
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/RecordExample.java
@@ -0,0 +1,691 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class RecordExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public RecordExample() {
+ 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 andEquipmentIdIsNull() {
+ addCriterion("equipment_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIsNotNull() {
+ addCriterion("equipment_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdEqualTo(Long value) {
+ addCriterion("equipment_id =", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotEqualTo(Long value) {
+ addCriterion("equipment_id <>", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdGreaterThan(Long value) {
+ addCriterion("equipment_id >", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("equipment_id >=", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdLessThan(Long value) {
+ addCriterion("equipment_id <", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdLessThanOrEqualTo(Long value) {
+ addCriterion("equipment_id <=", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIn(List values) {
+ addCriterion("equipment_id in", values, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotIn(List values) {
+ addCriterion("equipment_id not in", values, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdBetween(Long value1, Long value2) {
+ addCriterion("equipment_id between", value1, value2, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotBetween(Long value1, Long value2) {
+ addCriterion("equipment_id not between", value1, value2, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueIsNull() {
+ addCriterion("value is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueIsNotNull() {
+ addCriterion("value is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueEqualTo(String value) {
+ addCriterion("value =", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueNotEqualTo(String value) {
+ addCriterion("value <>", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueGreaterThan(String value) {
+ addCriterion("value >", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueGreaterThanOrEqualTo(String value) {
+ addCriterion("value >=", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueLessThan(String value) {
+ addCriterion("value <", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueLessThanOrEqualTo(String value) {
+ addCriterion("value <=", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueLike(String value) {
+ addCriterion("value like", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueNotLike(String value) {
+ addCriterion("value not like", value, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueIn(List values) {
+ addCriterion("value in", values, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueNotIn(List values) {
+ addCriterion("value not in", values, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueBetween(String value1, String value2) {
+ addCriterion("value between", value1, value2, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andValueNotBetween(String value1, String value2) {
+ addCriterion("value not between", value1, value2, "value");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIsNull() {
+ addCriterion("time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIsNotNull() {
+ addCriterion("time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeEqualTo(Date value) {
+ addCriterion("time =", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotEqualTo(Date value) {
+ addCriterion("time <>", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeGreaterThan(Date value) {
+ addCriterion("time >", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("time >=", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeLessThan(Date value) {
+ addCriterion("time <", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeLessThanOrEqualTo(Date value) {
+ addCriterion("time <=", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIn(List values) {
+ addCriterion("time in", values, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotIn(List values) {
+ addCriterion("time not in", values, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeBetween(Date value1, Date value2) {
+ addCriterion("time between", value1, value2, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotBetween(Date value1, Date value2) {
+ addCriterion("time not between", value1, value2, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List 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/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/ThresholdValue.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/ThresholdValue.java
new file mode 100644
index 00000000..0f81e7bc
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/ThresholdValue.java
@@ -0,0 +1,117 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class ThresholdValue implements Serializable {
+ private Long id;
+
+ private Byte type;
+
+ private Byte stages;
+
+ private Integer max;
+
+ private Integer min;
+
+ private Long operator;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Byte getType() {
+ return type;
+ }
+
+ public void setType(Byte type) {
+ this.type = type;
+ }
+
+ public Byte getStages() {
+ return stages;
+ }
+
+ public void setStages(Byte stages) {
+ this.stages = stages;
+ }
+
+ public Integer getMax() {
+ return max;
+ }
+
+ public void setMax(Integer max) {
+ this.max = max;
+ }
+
+ public Integer getMin() {
+ return min;
+ }
+
+ public void setMin(Integer min) {
+ this.min = min;
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", type=").append(type);
+ sb.append(", stages=").append(stages);
+ sb.append(", max=").append(max);
+ sb.append(", min=").append(min);
+ sb.append(", operator=").append(operator);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/ThresholdValueExample.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/ThresholdValueExample.java
new file mode 100644
index 00000000..16d1850a
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/ThresholdValueExample.java
@@ -0,0 +1,741 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class ThresholdValueExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public ThresholdValueExample() {
+ 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 andTypeIsNull() {
+ addCriterion("type is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIsNotNull() {
+ addCriterion("type is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeEqualTo(Byte value) {
+ addCriterion("type =", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotEqualTo(Byte value) {
+ addCriterion("type <>", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThan(Byte value) {
+ addCriterion("type >", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeGreaterThanOrEqualTo(Byte value) {
+ addCriterion("type >=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThan(Byte value) {
+ addCriterion("type <", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeLessThanOrEqualTo(Byte value) {
+ addCriterion("type <=", value, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeIn(List values) {
+ addCriterion("type in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotIn(List values) {
+ addCriterion("type not in", values, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeBetween(Byte value1, Byte value2) {
+ addCriterion("type between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andTypeNotBetween(Byte value1, Byte value2) {
+ addCriterion("type not between", value1, value2, "type");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesIsNull() {
+ addCriterion("stages is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesIsNotNull() {
+ addCriterion("stages is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesEqualTo(Byte value) {
+ addCriterion("stages =", value, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesNotEqualTo(Byte value) {
+ addCriterion("stages <>", value, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesGreaterThan(Byte value) {
+ addCriterion("stages >", value, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesGreaterThanOrEqualTo(Byte value) {
+ addCriterion("stages >=", value, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesLessThan(Byte value) {
+ addCriterion("stages <", value, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesLessThanOrEqualTo(Byte value) {
+ addCriterion("stages <=", value, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesIn(List values) {
+ addCriterion("stages in", values, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesNotIn(List values) {
+ addCriterion("stages not in", values, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesBetween(Byte value1, Byte value2) {
+ addCriterion("stages between", value1, value2, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andStagesNotBetween(Byte value1, Byte value2) {
+ addCriterion("stages not between", value1, value2, "stages");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxIsNull() {
+ addCriterion("max is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxIsNotNull() {
+ addCriterion("max is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxEqualTo(Integer value) {
+ addCriterion("max =", value, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxNotEqualTo(Integer value) {
+ addCriterion("max <>", value, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxGreaterThan(Integer value) {
+ addCriterion("max >", value, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxGreaterThanOrEqualTo(Integer value) {
+ addCriterion("max >=", value, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxLessThan(Integer value) {
+ addCriterion("max <", value, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxLessThanOrEqualTo(Integer value) {
+ addCriterion("max <=", value, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxIn(List values) {
+ addCriterion("max in", values, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxNotIn(List values) {
+ addCriterion("max not in", values, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxBetween(Integer value1, Integer value2) {
+ addCriterion("max between", value1, value2, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMaxNotBetween(Integer value1, Integer value2) {
+ addCriterion("max not between", value1, value2, "max");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinIsNull() {
+ addCriterion("min is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinIsNotNull() {
+ addCriterion("min is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinEqualTo(Integer value) {
+ addCriterion("min =", value, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinNotEqualTo(Integer value) {
+ addCriterion("min <>", value, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinGreaterThan(Integer value) {
+ addCriterion("min >", value, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinGreaterThanOrEqualTo(Integer value) {
+ addCriterion("min >=", value, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinLessThan(Integer value) {
+ addCriterion("min <", value, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinLessThanOrEqualTo(Integer value) {
+ addCriterion("min <=", value, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinIn(List values) {
+ addCriterion("min in", values, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinNotIn(List values) {
+ addCriterion("min not in", values, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinBetween(Integer value1, Integer value2) {
+ addCriterion("min between", value1, value2, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andMinNotBetween(Integer value1, Integer value2) {
+ addCriterion("min not between", value1, value2, "min");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List 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/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Weight.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Weight.java
new file mode 100644
index 00000000..a3bfbc09
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/Weight.java
@@ -0,0 +1,106 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.io.Serializable;
+import java.util.Date;
+
+public class Weight implements Serializable {
+ private Long id;
+
+ private Long equipmentId;
+
+ private String weight;
+
+ private Date time;
+
+ private Long operator;
+
+ private Date createdAt;
+
+ private Date updatedAt;
+
+ private Byte recStatus;
+
+ private static final long serialVersionUID = 1L;
+
+ public Long getId() {
+ return id;
+ }
+
+ public void setId(Long id) {
+ this.id = id;
+ }
+
+ public Long getEquipmentId() {
+ return equipmentId;
+ }
+
+ public void setEquipmentId(Long equipmentId) {
+ this.equipmentId = equipmentId;
+ }
+
+ public String getWeight() {
+ return weight;
+ }
+
+ public void setWeight(String weight) {
+ this.weight = weight == null ? null : weight.trim();
+ }
+
+ public Date getTime() {
+ return time;
+ }
+
+ public void setTime(Date time) {
+ this.time = time;
+ }
+
+ public Long getOperator() {
+ return operator;
+ }
+
+ public void setOperator(Long operator) {
+ this.operator = operator;
+ }
+
+ public Date getCreatedAt() {
+ return createdAt;
+ }
+
+ public void setCreatedAt(Date createdAt) {
+ this.createdAt = createdAt;
+ }
+
+ public Date getUpdatedAt() {
+ return updatedAt;
+ }
+
+ public void setUpdatedAt(Date updatedAt) {
+ this.updatedAt = updatedAt;
+ }
+
+ public Byte getRecStatus() {
+ return recStatus;
+ }
+
+ public void setRecStatus(Byte recStatus) {
+ this.recStatus = recStatus;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder sb = new StringBuilder();
+ sb.append(getClass().getSimpleName());
+ sb.append(" [");
+ sb.append("Hash = ").append(hashCode());
+ sb.append(", id=").append(id);
+ sb.append(", equipmentId=").append(equipmentId);
+ sb.append(", weight=").append(weight);
+ sb.append(", time=").append(time);
+ sb.append(", operator=").append(operator);
+ sb.append(", createdAt=").append(createdAt);
+ sb.append(", updatedAt=").append(updatedAt);
+ sb.append(", recStatus=").append(recStatus);
+ sb.append("]");
+ return sb.toString();
+ }
+}
\ No newline at end of file
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/WeightExample.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/WeightExample.java
new file mode 100644
index 00000000..064c0435
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/po/WeightExample.java
@@ -0,0 +1,691 @@
+package com.ccsens.beneficiation.bean.po;
+
+import java.util.ArrayList;
+import java.util.Date;
+import java.util.List;
+
+public class WeightExample {
+ protected String orderByClause;
+
+ protected boolean distinct;
+
+ protected List oredCriteria;
+
+ public WeightExample() {
+ 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 andEquipmentIdIsNull() {
+ addCriterion("equipment_id is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIsNotNull() {
+ addCriterion("equipment_id is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdEqualTo(Long value) {
+ addCriterion("equipment_id =", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotEqualTo(Long value) {
+ addCriterion("equipment_id <>", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdGreaterThan(Long value) {
+ addCriterion("equipment_id >", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdGreaterThanOrEqualTo(Long value) {
+ addCriterion("equipment_id >=", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdLessThan(Long value) {
+ addCriterion("equipment_id <", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdLessThanOrEqualTo(Long value) {
+ addCriterion("equipment_id <=", value, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdIn(List values) {
+ addCriterion("equipment_id in", values, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotIn(List values) {
+ addCriterion("equipment_id not in", values, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdBetween(Long value1, Long value2) {
+ addCriterion("equipment_id between", value1, value2, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andEquipmentIdNotBetween(Long value1, Long value2) {
+ addCriterion("equipment_id not between", value1, value2, "equipmentId");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightIsNull() {
+ addCriterion("weight is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightIsNotNull() {
+ addCriterion("weight is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightEqualTo(String value) {
+ addCriterion("weight =", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightNotEqualTo(String value) {
+ addCriterion("weight <>", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightGreaterThan(String value) {
+ addCriterion("weight >", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightGreaterThanOrEqualTo(String value) {
+ addCriterion("weight >=", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightLessThan(String value) {
+ addCriterion("weight <", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightLessThanOrEqualTo(String value) {
+ addCriterion("weight <=", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightLike(String value) {
+ addCriterion("weight like", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightNotLike(String value) {
+ addCriterion("weight not like", value, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightIn(List values) {
+ addCriterion("weight in", values, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightNotIn(List values) {
+ addCriterion("weight not in", values, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightBetween(String value1, String value2) {
+ addCriterion("weight between", value1, value2, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andWeightNotBetween(String value1, String value2) {
+ addCriterion("weight not between", value1, value2, "weight");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIsNull() {
+ addCriterion("time is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIsNotNull() {
+ addCriterion("time is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeEqualTo(Date value) {
+ addCriterion("time =", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotEqualTo(Date value) {
+ addCriterion("time <>", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeGreaterThan(Date value) {
+ addCriterion("time >", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeGreaterThanOrEqualTo(Date value) {
+ addCriterion("time >=", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeLessThan(Date value) {
+ addCriterion("time <", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeLessThanOrEqualTo(Date value) {
+ addCriterion("time <=", value, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeIn(List values) {
+ addCriterion("time in", values, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotIn(List values) {
+ addCriterion("time not in", values, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeBetween(Date value1, Date value2) {
+ addCriterion("time between", value1, value2, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andTimeNotBetween(Date value1, Date value2) {
+ addCriterion("time not between", value1, value2, "time");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNull() {
+ addCriterion("operator is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIsNotNull() {
+ addCriterion("operator is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorEqualTo(Long value) {
+ addCriterion("operator =", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotEqualTo(Long value) {
+ addCriterion("operator <>", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThan(Long value) {
+ addCriterion("operator >", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorGreaterThanOrEqualTo(Long value) {
+ addCriterion("operator >=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThan(Long value) {
+ addCriterion("operator <", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorLessThanOrEqualTo(Long value) {
+ addCriterion("operator <=", value, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorIn(List values) {
+ addCriterion("operator in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotIn(List values) {
+ addCriterion("operator not in", values, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorBetween(Long value1, Long value2) {
+ addCriterion("operator between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andOperatorNotBetween(Long value1, Long value2) {
+ addCriterion("operator not between", value1, value2, "operator");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNull() {
+ addCriterion("created_at is null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIsNotNull() {
+ addCriterion("created_at is not null");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtEqualTo(Date value) {
+ addCriterion("created_at =", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtNotEqualTo(Date value) {
+ addCriterion("created_at <>", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThan(Date value) {
+ addCriterion("created_at >", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtGreaterThanOrEqualTo(Date value) {
+ addCriterion("created_at >=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThan(Date value) {
+ addCriterion("created_at <", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtLessThanOrEqualTo(Date value) {
+ addCriterion("created_at <=", value, "createdAt");
+ return (Criteria) this;
+ }
+
+ public Criteria andCreatedAtIn(List 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/beneficiation/src/main/java/com/ccsens/beneficiation/bean/vo/WeightVo.java b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/vo/WeightVo.java
new file mode 100644
index 00000000..5513193d
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/bean/vo/WeightVo.java
@@ -0,0 +1,37 @@
+package com.ccsens.beneficiation.bean.vo;
+
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+import lombok.Data;
+
+import java.util.Date;
+
+/**
+ * @author 逗
+ */
+@Data
+public class WeightVo {
+
+ @Data
+ @ApiModel("查看的称重数据折线图")
+ public static class WeightDay {
+ @ApiModelProperty("日期")
+ private String date;
+ @ApiModelProperty("重量")
+ private double weight;
+ }
+
+ @Data
+ @ApiModel("重量累计")
+ public static class WeightTotal {
+ @ApiModelProperty("当天累计")
+ private double weightDay;
+ @ApiModelProperty("本周累计")
+ private double weightWeek;
+ @ApiModelProperty("本月累计")
+ private double weightMonth;
+ @ApiModelProperty("本年累计")
+ private double weightYear;
+ }
+}
diff --git a/beneficiation/src/main/java/com/ccsens/beneficiation/config/BeanConfig.java b/beneficiation/src/main/java/com/ccsens/beneficiation/config/BeanConfig.java
new file mode 100644
index 00000000..da7a584d
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/config/BeanConfig.java
@@ -0,0 +1,31 @@
+package com.ccsens.beneficiation.config;
+
+import com.ccsens.beneficiation.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/beneficiation/src/main/java/com/ccsens/beneficiation/config/SpringConfig.java b/beneficiation/src/main/java/com/ccsens/beneficiation/config/SpringConfig.java
new file mode 100644
index 00000000..7735b9e9
--- /dev/null
+++ b/beneficiation/src/main/java/com/ccsens/beneficiation/config/SpringConfig.java
@@ -0,0 +1,169 @@
+package com.ccsens.beneficiation.config;
+
+
+import cn.hutool.core.lang.Snowflake;
+import cn.hutool.core.util.IdUtil;
+import com.ccsens.util.config.DruidProps;
+import com.fasterxml.jackson.databind.DeserializationFeature;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.fasterxml.jackson.databind.module.SimpleModule;
+import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.http.MediaType;
+import org.springframework.http.converter.HttpMessageConverter;
+import org.springframework.http.converter.StringHttpMessageConverter;
+import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
+import org.springframework.web.servlet.config.annotation.*;
+
+import javax.annotation.Resource;
+import javax.sql.DataSource;
+import java.nio.charset.Charset;
+import java.util.ArrayList;
+import java.util.List;
+
+@Configuration
+//public class SpringConfig extends WebMvcConfigurationSupport {
+public class SpringConfig implements WebMvcConfigurer {
+ @Resource
+ private DruidProps druidPropsUtil;
+ @Value("${spring.snowflake.workerId}")
+ private String workerId;
+ @Value("${spring.snowflake.datacenterId}")
+ private String datacenterId;
+
+ /**
+ * 配置Converter
+ * @return
+ */
+ @Bean
+ public HttpMessageConverter responseStringConverter() {
+ StringHttpMessageConverter converter = new StringHttpMessageConverter(
+ Charset.forName("UTF-8"));
+ return converter;
+ }
+
+ @Bean
+ public HttpMessageConverter