diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..a2a3040 --- /dev/null +++ b/.gitignore @@ -0,0 +1,31 @@ +HELP.md +target/ +!.mvn/wrapper/maven-wrapper.jar +!**/src/main/** +!**/src/test/** + +### 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/ + +### VS Code ### +.vscode/ diff --git a/mvnw b/mvnw new file mode 100644 index 0000000..8b9da3b --- /dev/null +++ b/mvnw @@ -0,0 +1,286 @@ +#!/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. +# ---------------------------------------------------------------------------- + +# ---------------------------------------------------------------------------- +# Maven2 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)`" + # TODO classpath? +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 + jarUrl="https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar" + 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 command -v wget > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found wget ... using wget" + fi + wget "$jarUrl" -O "$wrapperJarPath" + elif command -v curl > /dev/null; then + if [ "$MVNW_VERBOSE" = true ]; then + echo "Found curl ... using curl" + fi + curl -o "$wrapperJarPath" "$jarUrl" + else + if [ "$MVNW_VERBOSE" = true ]; then + echo "Falling back to using Java to download" + fi + javaClass="$BASE_DIR/.mvn/wrapper/MavenWrapperDownloader.java" + 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 + +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/mvnw.cmd b/mvnw.cmd new file mode 100644 index 0000000..fef5a8f --- /dev/null +++ b/mvnw.cmd @@ -0,0 +1,161 @@ +@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 Maven2 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 key stroke 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 my 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.4.2/maven-wrapper-0.4.2.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% ( + echo Found %WRAPPER_JAR% +) else ( + echo Couldn't find %WRAPPER_JAR%, downloading it ... + echo Downloading from: %DOWNLOAD_URL% + powershell -Command "(New-Object Net.WebClient).DownloadFile('%DOWNLOAD_URL%', '%WRAPPER_JAR%')" + echo Finished downloading %WRAPPER_JAR% +) +@REM End of extension + +%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/pom.xml b/pom.xml new file mode 100644 index 0000000..e650f80 --- /dev/null +++ b/pom.xml @@ -0,0 +1,128 @@ + + + 4.0.0 + + org.springframework.boot + spring-boot-starter-parent + 2.1.8.RELEASE + + + com.topsail + OperateInfluxdb + 0.0.1-SNAPSHOT + OperateInfluxdb + Demo project for Spring Boot + + + 1.8 + + + + + org.springframework.boot + spring-boot-starter-amqp + + + org.mybatis.spring.boot + mybatis-spring-boot-starter + 2.1.0 + + + + mysql + mysql-connector-java + 8.0.13 + + + org.springframework.boot + spring-boot-starter-test + + + org.springframework.amqp + spring-rabbit-test + test + + + com.alibaba + fastjson + 1.2.15 + + + com.google.code.gson + gson + + + com.influxdb + influxdb-client-java + 1.8.0 + + + + + + + + + + + + org.springframework + spring-test + 4.3.6.RELEASE + + + + junit + junit + 4.12 + + + + + + + org.springframework.boot + spring-boot-maven-plugin + 2.1.8.RELEASE + + + org.mybatis.generator + mybatis-generator-maven-plugin + 1.3.5 + + + + mysql + mysql-connector-java + 5.1.40 + + + com.itfsw + mybatis-generator-plugin + 1.2.20 + + + + + + + src/main/java + + **/*.properties + **/*.xml + + false + + + src/main/resources + + **/*.properties + **/*.xml + + false + + + + + diff --git a/src/main/java/com/topsail/influxdb/OperateInfluxdbApplication.java b/src/main/java/com/topsail/influxdb/OperateInfluxdbApplication.java new file mode 100644 index 0000000..030353b --- /dev/null +++ b/src/main/java/com/topsail/influxdb/OperateInfluxdbApplication.java @@ -0,0 +1,18 @@ +package com.topsail.influxdb; + +import org.mybatis.spring.annotation.MapperScan; +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; + +import java.util.TimeZone; + +@SpringBootApplication +@MapperScan("com.topsail.influxdb.mapper") +public class OperateInfluxdbApplication { + + public static void main(String[] args) { + TimeZone.setDefault(TimeZone.getTimeZone("Asia/Shanghai")); + SpringApplication.run(OperateInfluxdbApplication.class, args); + } + +} diff --git a/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java b/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java new file mode 100644 index 0000000..29d90b8 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java @@ -0,0 +1,62 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.Alarm; +import com.topsail.influxdb.pojo.AlarmExample; + +import java.util.Date; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface AlarmMapper { + long countByExample(AlarmExample example); + + int deleteByExample(AlarmExample example); + + int deleteByPrimaryKey(Long id); + + int insert(Alarm record); + + int insertAlarmData(@Param("alarmData") Alarm record); + + int updateAlarmData(Alarm record); + + int insertAlarmDataMonth(@Param("alarmData") Alarm record); + + + Alarm findAlarmData(@Param("imei")String imei); + + + int insertSelective(Alarm record); + + List selectByExample(AlarmExample example); + + Alarm selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") Alarm record, @Param("example") AlarmExample example); + + int updateByExample(@Param("record") Alarm record, @Param("example") AlarmExample example); + + int updateByPrimaryKeySelective(Alarm record); + + int updateByPrimaryKey(Alarm record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") Alarm.Column ... selective); + + int deleteAlarmDataMonth(@Param("endTime") Date endTime); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml b/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml new file mode 100644 index 0000000..2cd44d0 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml @@ -0,0 +1,553 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime + + + + + delete + from alarm + where id = #{id,jdbcType=BIGINT} + + + delete from alarm + + + + + + insert into alarm (id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime) + values (#{id,jdbcType=BIGINT}, + #{imei,jdbcType=VARCHAR}, + #{alarmtype,jdbcType=VARCHAR}, + #{alarmvalue,jdbcType=VARCHAR}, + #{unit,jdbcType=VARCHAR}, + #{status,jdbcType=INTEGER}, + #{createtime,jdbcType=TIMESTAMP}, + #{updatetime,jdbcType=TIMESTAMP}, + #{endtime,jdbcType=TIMESTAMP}) + + + + + insert into alarm + + + id, + + + Imei, + + + alarmType, + + + alarmValue, + + + unit, + + + status, + + + createtime, + + + updatetime, + + + endtime, + + + + + #{id,jdbcType=BIGINT}, + + + #{imei,jdbcType=VARCHAR}, + + + #{alarmtype,jdbcType=VARCHAR}, + + + #{alarmvalue,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{createtime,jdbcType=TIMESTAMP}, + + + #{updatetime,jdbcType=TIMESTAMP}, + + + #{endtime,jdbcType=TIMESTAMP}, + + + + + + update alarm + + + id = #{record.id,jdbcType=BIGINT}, + + + Imei = #{record.imei,jdbcType=VARCHAR}, + + + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + + + alarmValue = #{record.alarmvalue,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + status = #{record.status,jdbcType=INTEGER}, + + + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + + + updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, + + + endtime = #{record.endtime,jdbcType=TIMESTAMP}, + + + + + + + + update alarm + set id = #{record.id,jdbcType=BIGINT}, + Imei = #{record.imei,jdbcType=VARCHAR}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + alarmValue = #{record.alarmvalue,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=INTEGER}, + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, + endtime = #{record.endtime,jdbcType=TIMESTAMP} + + + + + + update alarm + + + Imei = #{imei,jdbcType=VARCHAR}, + + + alarmType = #{alarmtype,jdbcType=VARCHAR}, + + + alarmValue = #{alarmvalue,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + createtime = #{createtime,jdbcType=TIMESTAMP}, + + + updatetime = #{updatetime,jdbcType=TIMESTAMP}, + + + endtime = #{endtime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update alarm + set Imei = #{imei,jdbcType=VARCHAR}, + alarmType = #{alarmtype,jdbcType=VARCHAR}, + alarmValue = #{alarmvalue,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + createtime = #{createtime,jdbcType=TIMESTAMP}, + updatetime = #{updatetime,jdbcType=TIMESTAMP}, + endtime = #{endtime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + + + insert into alarm + (id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime) + values + + (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.alarmtype,jdbcType=VARCHAR}, + #{item.alarmvalue,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, + #{item.createtime,jdbcType=TIMESTAMP}, #{item.updatetime,jdbcType=TIMESTAMP}, + #{item.endtime,jdbcType=TIMESTAMP} + ) + + + + + insert into alarm ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=BIGINT} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.alarmtype,jdbcType=VARCHAR} + + + #{item.alarmvalue,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.status,jdbcType=INTEGER} + + + #{item.createtime,jdbcType=TIMESTAMP} + + + #{item.updatetime,jdbcType=TIMESTAMP} + + + #{item.endtime,jdbcType=TIMESTAMP} + + + ) + + + + + + + insert into alarm_data + + imei, + alarmtype, + alarmvalue, + unit, + `status`, + createtime, + updatetime, + endtime, + alarm_n, + address, + lon, + lat, + alarmmsg, + descr, + uuid + + + + #{alarmData.imei,jdbcType=VARCHAR}, + #{alarmData.alarmtype,jdbcType=VARCHAR}, + #{alarmData.alarmvalue,jdbcType=VARCHAR}, + #{alarmData.unit,jdbcType=VARCHAR}, + #{alarmData.status,jdbcType=INTEGER}, + #{alarmData.createtime,jdbcType=TIMESTAMP}, + #{alarmData.updatetime,jdbcType=TIMESTAMP}, + #{alarmData.endtime,jdbcType=TIMESTAMP}, + #{alarmData.alarmN,jdbcType=INTEGER}, + #{alarmData.address,jdbcType=VARCHAR}, + #{alarmData.lon,jdbcType=DOUBLE}, + #{alarmData.lat,jdbcType=DOUBLE}, + #{alarmData.alarmMsg,jdbcType=VARCHAR}, + #{alarmData.descr,jdbcType=VARCHAR}, + #{alarmData.uuid,jdbcType=VARCHAR} + + + + + + + insert into alarm_data_month + + imei, + alarmType, + alarmValue, + unit, + `status`, + createtime, + updatetime, + endtime, + address, + lon, + lat, + alarmMsg, + descr, + uuid + + + + #{alarmData.imei,jdbcType=VARCHAR}, + #{alarmData.alarmtype,jdbcType=VARCHAR}, + #{alarmData.alarmvalue,jdbcType=VARCHAR}, + #{alarmData.unit,jdbcType=VARCHAR}, + #{alarmData.status,jdbcType=INTEGER}, + #{alarmData.createtime,jdbcType=TIMESTAMP}, + #{alarmData.updatetime,jdbcType=TIMESTAMP}, + #{alarmData.endtime,jdbcType=TIMESTAMP}, + #{alarmData.address,jdbcType=VARCHAR}, + #{alarmData.lon,jdbcType=DOUBLE}, + #{alarmData.lat,jdbcType=DOUBLE}, + #{alarmData.alarmMsg,jdbcType=VARCHAR}, + #{alarmData.descr,jdbcType=VARCHAR}, + #{alarmData.uuid,jdbcType=VARCHAR} + + + + + + + update alarm_data + + + imei=#{imei,jdbcType=VARCHAR}, + + + alarmType=#{alarmtype,jdbcType=VARCHAR}, + + + alarmValue=#{alarmvalue,jdbcType=VARCHAR}, + + + unit=#{unit,jdbcType=VARCHAR}, + + + `status`=#{status,jdbcType=INTEGER}, + + + createtime=#{createtime,jdbcType=TIMESTAMP}, + + + updatetime=#{updatetime,jdbcType=TIMESTAMP}, + + + endtime=#{endtime,jdbcType=TIMESTAMP}, + + + alarm_n=#{alarmN,jdbcType=INTEGER}, + + + address=#{address,jdbcType=VARCHAR}, + + + lon=#{lon,jdbcType=DOUBLE}, + + + lat=#{lat,jdbcType=DOUBLE}, + + + alarmMsg=#{alarmMsg,jdbcType=VARCHAR}, + + + descr=#{descr,jdbcType=VARCHAR}, + + + uuid=#{uuid,jdbcType=VARCHAR} + + + + where id = #{id} + + + + + + + + + + + + + + + + + + + + + + + + + + ad.id, + + ad.imei, + + ad.alarmType, + + ad.alarmValue, + + ad.unit, + + ad.status, + + ad.createtime, + + ad.updatetime, + + ad.endtime, + + ad.alarm_n, + + ad.address, + + ad.lon, + + ad.lat, + + ad.alarmMsg, + + ad.descr, + + ad.uuid + + + + + + + + + + delete from alarm_data_month where #{endTime,jdbcType=TIMESTAMP} > createtime + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/CompanyMapper.java b/src/main/java/com/topsail/influxdb/mapper/CompanyMapper.java new file mode 100644 index 0000000..5192075 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/CompanyMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.Company; +import com.topsail.influxdb.pojo.CompanyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface CompanyMapper { + long countByExample(CompanyExample example); + + int deleteByExample(CompanyExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(Company record); + + int insertSelective(Company record); + + List selectByExample(CompanyExample example); + + Company selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") Company record, @Param("example") CompanyExample example); + + int updateByExample(@Param("record") Company record, @Param("example") CompanyExample example); + + int updateByPrimaryKeySelective(Company record); + + int updateByPrimaryKey(Company record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") Company.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/CompanyMapper.xml b/src/main/java/com/topsail/influxdb/mapper/CompanyMapper.xml new file mode 100644 index 0000000..69c2f51 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/CompanyMapper.xml @@ -0,0 +1,339 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_name, company_full_name, platformType, dmp_id, createtime, creator, area_id, + period + + + + + delete from company + where id = #{id,jdbcType=INTEGER} + + + delete from company + + + + + + insert into company (id, company_name, company_full_name, + platformType, dmp_id, createtime, + creator, area_id, period + ) + values (#{id,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, #{companyFullName,jdbcType=VARCHAR}, + #{platformtype,jdbcType=VARCHAR}, #{dmpId,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP}, + #{creator,jdbcType=VARCHAR}, #{areaId,jdbcType=INTEGER}, #{period,jdbcType=VARCHAR} + ) + + + insert into company + + + id, + + + company_name, + + + company_full_name, + + + platformType, + + + dmp_id, + + + createtime, + + + creator, + + + area_id, + + + period, + + + + + #{id,jdbcType=INTEGER}, + + + #{companyName,jdbcType=VARCHAR}, + + + #{companyFullName,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{dmpId,jdbcType=INTEGER}, + + + #{createtime,jdbcType=TIMESTAMP}, + + + #{creator,jdbcType=VARCHAR}, + + + #{areaId,jdbcType=INTEGER}, + + + #{period,jdbcType=VARCHAR}, + + + + + + update company + + + id = #{record.id,jdbcType=INTEGER}, + + + company_name = #{record.companyName,jdbcType=VARCHAR}, + + + company_full_name = #{record.companyFullName,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + dmp_id = #{record.dmpId,jdbcType=INTEGER}, + + + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + + + creator = #{record.creator,jdbcType=VARCHAR}, + + + area_id = #{record.areaId,jdbcType=INTEGER}, + + + period = #{record.period,jdbcType=VARCHAR}, + + + + + + + + update company + set id = #{record.id,jdbcType=INTEGER}, + company_name = #{record.companyName,jdbcType=VARCHAR}, + company_full_name = #{record.companyFullName,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + dmp_id = #{record.dmpId,jdbcType=INTEGER}, + createtime = #{record.createtime,jdbcType=TIMESTAMP}, + creator = #{record.creator,jdbcType=VARCHAR}, + area_id = #{record.areaId,jdbcType=INTEGER}, + period = #{record.period,jdbcType=VARCHAR} + + + + + + update company + + + company_name = #{companyName,jdbcType=VARCHAR}, + + + company_full_name = #{companyFullName,jdbcType=VARCHAR}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + dmp_id = #{dmpId,jdbcType=INTEGER}, + + + createtime = #{createtime,jdbcType=TIMESTAMP}, + + + creator = #{creator,jdbcType=VARCHAR}, + + + area_id = #{areaId,jdbcType=INTEGER}, + + + period = #{period,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update company + set company_name = #{companyName,jdbcType=VARCHAR}, + company_full_name = #{companyFullName,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + dmp_id = #{dmpId,jdbcType=INTEGER}, + createtime = #{createtime,jdbcType=TIMESTAMP}, + creator = #{creator,jdbcType=VARCHAR}, + area_id = #{areaId,jdbcType=INTEGER}, + period = #{period,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + + + insert into company + (id, company_name, company_full_name, platformType, dmp_id, createtime, creator, + area_id, period) + values + + (#{item.id,jdbcType=INTEGER}, #{item.companyName,jdbcType=VARCHAR}, #{item.companyFullName,jdbcType=VARCHAR}, + #{item.platformtype,jdbcType=VARCHAR}, #{item.dmpId,jdbcType=INTEGER}, #{item.createtime,jdbcType=TIMESTAMP}, + #{item.creator,jdbcType=VARCHAR}, #{item.areaId,jdbcType=INTEGER}, #{item.period,jdbcType=VARCHAR} + ) + + + + + insert into company ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.companyName,jdbcType=VARCHAR} + + + #{item.companyFullName,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.dmpId,jdbcType=INTEGER} + + + #{item.createtime,jdbcType=TIMESTAMP} + + + #{item.creator,jdbcType=VARCHAR} + + + #{item.areaId,jdbcType=INTEGER} + + + #{item.period,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ConfigMapper.java b/src/main/java/com/topsail/influxdb/mapper/ConfigMapper.java new file mode 100644 index 0000000..f05f43e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ConfigMapper.java @@ -0,0 +1,54 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.Config; +import com.topsail.influxdb.pojo.ConfigExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ConfigMapper { + long countByExample(ConfigExample example); + + int deleteByExample(ConfigExample example); + + int deleteByPrimaryKey(String imei); + + int insert(Config record); + + int insertSelective(Config record); + + List selectByExampleWithBLOBs(ConfigExample example); + + List selectByExample(ConfigExample example); + + Config selectByPrimaryKey(String imei); + + int updateByExampleSelective(@Param("record") Config record, @Param("example") ConfigExample example); + + int updateByExampleWithBLOBs(@Param("record") Config record, @Param("example") ConfigExample example); + + int updateByExample(@Param("record") Config record, @Param("example") ConfigExample example); + + int updateByPrimaryKeySelective(Config record); + + int updateByPrimaryKeyWithBLOBs(Config record); + + int updateByPrimaryKey(Config record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") Config.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ConfigMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ConfigMapper.xml new file mode 100644 index 0000000..f5bd6a9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ConfigMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + imei, updatetime + + + config + + + + + + delete from config + where imei = #{imei,jdbcType=VARCHAR} + + + delete from config + + + + + + insert into config (imei, updatetime, config + ) + values (#{imei,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}, #{config,jdbcType=LONGVARCHAR} + ) + + + insert into config + + + imei, + + + updatetime, + + + config, + + + + + #{imei,jdbcType=VARCHAR}, + + + #{updatetime,jdbcType=TIMESTAMP}, + + + #{config,jdbcType=LONGVARCHAR}, + + + + + + update config + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, + + + config = #{record.config,jdbcType=LONGVARCHAR}, + + + + + + + + update config + set imei = #{record.imei,jdbcType=VARCHAR}, + updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, + config = #{record.config,jdbcType=LONGVARCHAR} + + + + + + update config + set imei = #{record.imei,jdbcType=VARCHAR}, + updatetime = #{record.updatetime,jdbcType=TIMESTAMP} + + + + + + update config + + + updatetime = #{updatetime,jdbcType=TIMESTAMP}, + + + config = #{config,jdbcType=LONGVARCHAR}, + + + where imei = #{imei,jdbcType=VARCHAR} + + + update config + set updatetime = #{updatetime,jdbcType=TIMESTAMP}, + config = #{config,jdbcType=LONGVARCHAR} + where imei = #{imei,jdbcType=VARCHAR} + + + update config + set updatetime = #{updatetime,jdbcType=TIMESTAMP} + where imei = #{imei,jdbcType=VARCHAR} + + + + insert into config + (imei, updatetime, config) + values + + (#{item.imei,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=TIMESTAMP}, #{item.config,jdbcType=LONGVARCHAR} + ) + + + + + insert into config ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.updatetime,jdbcType=TIMESTAMP} + + + #{item.config,jdbcType=LONGVARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DataFilterMapper.java b/src/main/java/com/topsail/influxdb/mapper/DataFilterMapper.java new file mode 100644 index 0000000..8817f51 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DataFilterMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DataFilter; +import com.topsail.influxdb.pojo.DataFilterExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DataFilterMapper { + long countByExample(DataFilterExample example); + + int deleteByExample(DataFilterExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(DataFilter record); + + int insertSelective(DataFilter record); + + List selectByExample(DataFilterExample example); + + DataFilter selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") DataFilter record, @Param("example") DataFilterExample example); + + int updateByExample(@Param("record") DataFilter record, @Param("example") DataFilterExample example); + + int updateByPrimaryKeySelective(DataFilter record); + + int updateByPrimaryKey(DataFilter record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DataFilter.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DataFilterMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DataFilterMapper.xml new file mode 100644 index 0000000..0df7357 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DataFilterMapper.xml @@ -0,0 +1,278 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, device_type, device_model, unit, low, high + + + + + delete from data_filter + where id = #{id,jdbcType=INTEGER} + + + delete from data_filter + + + + + + insert into data_filter (id, device_type, device_model, + unit, low, high) + values (#{id,jdbcType=INTEGER}, #{deviceType,jdbcType=INTEGER}, #{deviceModel,jdbcType=VARCHAR}, + #{unit,jdbcType=VARCHAR}, #{low,jdbcType=REAL}, #{high,jdbcType=REAL}) + + + insert into data_filter + + + id, + + + device_type, + + + device_model, + + + unit, + + + low, + + + high, + + + + + #{id,jdbcType=INTEGER}, + + + #{deviceType,jdbcType=INTEGER}, + + + #{deviceModel,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{low,jdbcType=REAL}, + + + #{high,jdbcType=REAL}, + + + + + + update data_filter + + + id = #{record.id,jdbcType=INTEGER}, + + + device_type = #{record.deviceType,jdbcType=INTEGER}, + + + device_model = #{record.deviceModel,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + low = #{record.low,jdbcType=REAL}, + + + high = #{record.high,jdbcType=REAL}, + + + + + + + + update data_filter + set id = #{record.id,jdbcType=INTEGER}, + device_type = #{record.deviceType,jdbcType=INTEGER}, + device_model = #{record.deviceModel,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + low = #{record.low,jdbcType=REAL}, + high = #{record.high,jdbcType=REAL} + + + + + + update data_filter + + + device_type = #{deviceType,jdbcType=INTEGER}, + + + device_model = #{deviceModel,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + low = #{low,jdbcType=REAL}, + + + high = #{high,jdbcType=REAL}, + + + where id = #{id,jdbcType=INTEGER} + + + update data_filter + set device_type = #{deviceType,jdbcType=INTEGER}, + device_model = #{deviceModel,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + low = #{low,jdbcType=REAL}, + high = #{high,jdbcType=REAL} + where id = #{id,jdbcType=INTEGER} + + + + insert into data_filter + (id, device_type, device_model, unit, low, high) + values + + (#{item.id,jdbcType=INTEGER}, #{item.deviceType,jdbcType=INTEGER}, #{item.deviceModel,jdbcType=VARCHAR}, + #{item.unit,jdbcType=VARCHAR}, #{item.low,jdbcType=REAL}, #{item.high,jdbcType=REAL} + ) + + + + + insert into data_filter ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.deviceType,jdbcType=INTEGER} + + + #{item.deviceModel,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.low,jdbcType=REAL} + + + #{item.high,jdbcType=REAL} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceDetailMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailMapper.java new file mode 100644 index 0000000..3bdaf17 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailMapper.java @@ -0,0 +1,50 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DeviceDetail; +import com.topsail.influxdb.pojo.DeviceDetailExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceDetailMapper { + long countByExample(DeviceDetailExample example); + + int deleteByExample(DeviceDetailExample example); + + int deleteByPrimaryKey(String imei); + + int insert(DeviceDetail record); + + int insertSelective(DeviceDetail record); + + List selectByExample(DeviceDetailExample example); + + DeviceDetail selectByPrimaryKey(String imei); + + int updateByExampleSelective(@Param("record") DeviceDetail record, @Param("example") DeviceDetailExample example); + + int updateByExample(@Param("record") DeviceDetail record, @Param("example") DeviceDetailExample example); + + int updateByPrimaryKeySelective(DeviceDetail record); + + int updateByPrimaryKey(DeviceDetail record); + + int updateDeviceDetailByImei(@Param("deviceDetail") DeviceDetail deviceDetail); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceDetail.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceDetailMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailMapper.xml new file mode 100644 index 0000000..64b153f --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailMapper.xml @@ -0,0 +1,622 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + imei, id, device_type, order_id, project_id, name, lon, lat, buy_date, buy_long, + time, imsi, iccid, address, delivered, platform, deviceId, company_id, period, belong, + handle_result, register_info_id, updatetime + + + + + delete from device_detail + where imei = #{imei,jdbcType=VARCHAR} + + + delete from device_detail + + + + + + insert into device_detail (imei, id, device_type, + order_id, project_id, name, + lon, lat, buy_date, + buy_long, time, imsi, + iccid, address, delivered, + platform, deviceId, company_id, + period, belong, handle_result, + register_info_id, updatetime) + values (#{imei,jdbcType=VARCHAR}, #{id,jdbcType=INTEGER}, #{deviceType,jdbcType=INTEGER}, + #{orderId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, + #{lon,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{buyDate,jdbcType=TIMESTAMP}, + #{buyLong,jdbcType=REAL}, #{time,jdbcType=TIMESTAMP}, #{imsi,jdbcType=VARCHAR}, + #{iccid,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{delivered,jdbcType=INTEGER}, + #{platform,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR}, #{companyId,jdbcType=INTEGER}, + #{period,jdbcType=INTEGER}, #{belong,jdbcType=INTEGER}, #{handleResult,jdbcType=VARCHAR}, + #{registerInfoId,jdbcType=INTEGER}, #{updatetime,jdbcType=TIMESTAMP}) + + + insert into device_detail + + + imei, + + + id, + + + device_type, + + + order_id, + + + project_id, + + + name, + + + lon, + + + lat, + + + buy_date, + + + buy_long, + + + time, + + + imsi, + + + iccid, + + + address, + + + delivered, + + + platform, + + + deviceId, + + + company_id, + + + period, + + + belong, + + + handle_result, + + + register_info_id, + + + updatetime, + + + + + #{imei,jdbcType=VARCHAR}, + + + #{id,jdbcType=INTEGER}, + + + #{deviceType,jdbcType=INTEGER}, + + + #{orderId,jdbcType=INTEGER}, + + + #{projectId,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{lon,jdbcType=DOUBLE}, + + + #{lat,jdbcType=DOUBLE}, + + + #{buyDate,jdbcType=TIMESTAMP}, + + + #{buyLong,jdbcType=REAL}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{imsi,jdbcType=VARCHAR}, + + + #{iccid,jdbcType=VARCHAR}, + + + #{address,jdbcType=VARCHAR}, + + + #{delivered,jdbcType=INTEGER}, + + + #{platform,jdbcType=VARCHAR}, + + + #{deviceid,jdbcType=VARCHAR}, + + + #{companyId,jdbcType=INTEGER}, + + + #{period,jdbcType=INTEGER}, + + + #{belong,jdbcType=INTEGER}, + + + #{handleResult,jdbcType=VARCHAR}, + + + #{registerInfoId,jdbcType=INTEGER}, + + + #{updatetime,jdbcType=TIMESTAMP}, + + + + + + update device_detail + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + id = #{record.id,jdbcType=INTEGER}, + + + device_type = #{record.deviceType,jdbcType=INTEGER}, + + + order_id = #{record.orderId,jdbcType=INTEGER}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + lon = #{record.lon,jdbcType=DOUBLE}, + + + lat = #{record.lat,jdbcType=DOUBLE}, + + + buy_date = #{record.buyDate,jdbcType=TIMESTAMP}, + + + buy_long = #{record.buyLong,jdbcType=REAL}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + imsi = #{record.imsi,jdbcType=VARCHAR}, + + + iccid = #{record.iccid,jdbcType=VARCHAR}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + delivered = #{record.delivered,jdbcType=INTEGER}, + + + platform = #{record.platform,jdbcType=VARCHAR}, + + + deviceId = #{record.deviceid,jdbcType=VARCHAR}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + period = #{record.period,jdbcType=INTEGER}, + + + belong = #{record.belong,jdbcType=INTEGER}, + + + handle_result = #{record.handleResult,jdbcType=VARCHAR}, + + + register_info_id = #{record.registerInfoId,jdbcType=INTEGER}, + + + updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, + + + + + + + + update device_detail + set imei = #{record.imei,jdbcType=VARCHAR}, + id = #{record.id,jdbcType=INTEGER}, + device_type = #{record.deviceType,jdbcType=INTEGER}, + order_id = #{record.orderId,jdbcType=INTEGER}, + project_id = #{record.projectId,jdbcType=INTEGER}, + name = #{record.name,jdbcType=VARCHAR}, + lon = #{record.lon,jdbcType=DOUBLE}, + lat = #{record.lat,jdbcType=DOUBLE}, + buy_date = #{record.buyDate,jdbcType=TIMESTAMP}, + buy_long = #{record.buyLong,jdbcType=REAL}, + time = #{record.time,jdbcType=TIMESTAMP}, + imsi = #{record.imsi,jdbcType=VARCHAR}, + iccid = #{record.iccid,jdbcType=VARCHAR}, + address = #{record.address,jdbcType=VARCHAR}, + delivered = #{record.delivered,jdbcType=INTEGER}, + platform = #{record.platform,jdbcType=VARCHAR}, + deviceId = #{record.deviceid,jdbcType=VARCHAR}, + company_id = #{record.companyId,jdbcType=INTEGER}, + period = #{record.period,jdbcType=INTEGER}, + belong = #{record.belong,jdbcType=INTEGER}, + handle_result = #{record.handleResult,jdbcType=VARCHAR}, + register_info_id = #{record.registerInfoId,jdbcType=INTEGER}, + updatetime = #{record.updatetime,jdbcType=TIMESTAMP} + + + + + + update device_detail + + + id = #{id,jdbcType=INTEGER}, + + + device_type = #{deviceType,jdbcType=INTEGER}, + + + order_id = #{orderId,jdbcType=INTEGER}, + + + project_id = #{projectId,jdbcType=INTEGER}, + + + name = #{name,jdbcType=VARCHAR}, + + + lon = #{lon,jdbcType=DOUBLE}, + + + lat = #{lat,jdbcType=DOUBLE}, + + + buy_date = #{buyDate,jdbcType=TIMESTAMP}, + + + buy_long = #{buyLong,jdbcType=REAL}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + imsi = #{imsi,jdbcType=VARCHAR}, + + + iccid = #{iccid,jdbcType=VARCHAR}, + + + address = #{address,jdbcType=VARCHAR}, + + + delivered = #{delivered,jdbcType=INTEGER}, + + + platform = #{platform,jdbcType=VARCHAR}, + + + deviceId = #{deviceid,jdbcType=VARCHAR}, + + + company_id = #{companyId,jdbcType=INTEGER}, + + + period = #{period,jdbcType=INTEGER}, + + + belong = #{belong,jdbcType=INTEGER}, + + + handle_result = #{handleResult,jdbcType=VARCHAR}, + + + register_info_id = #{registerInfoId,jdbcType=INTEGER}, + + + updatetime = #{updatetime,jdbcType=TIMESTAMP}, + + + where imei = #{imei,jdbcType=VARCHAR} + + + update device_detail + set id = #{id,jdbcType=INTEGER}, + device_type = #{deviceType,jdbcType=INTEGER}, + order_id = #{orderId,jdbcType=INTEGER}, + project_id = #{projectId,jdbcType=INTEGER}, + name = #{name,jdbcType=VARCHAR}, + lon = #{lon,jdbcType=DOUBLE}, + lat = #{lat,jdbcType=DOUBLE}, + buy_date = #{buyDate,jdbcType=TIMESTAMP}, + buy_long = #{buyLong,jdbcType=REAL}, + time = #{time,jdbcType=TIMESTAMP}, + imsi = #{imsi,jdbcType=VARCHAR}, + iccid = #{iccid,jdbcType=VARCHAR}, + address = #{address,jdbcType=VARCHAR}, + delivered = #{delivered,jdbcType=INTEGER}, + platform = #{platform,jdbcType=VARCHAR}, + deviceId = #{deviceid,jdbcType=VARCHAR}, + company_id = #{companyId,jdbcType=INTEGER}, + period = #{period,jdbcType=INTEGER}, + belong = #{belong,jdbcType=INTEGER}, + handle_result = #{handleResult,jdbcType=VARCHAR}, + register_info_id = #{registerInfoId,jdbcType=INTEGER}, + updatetime = now() + where imei = #{imei,jdbcType=VARCHAR} + + + + insert into device_detail + (imei, id, device_type, order_id, project_id, name, lon, lat, buy_date, buy_long, + time, imsi, iccid, address, delivered, platform, deviceId, company_id, period, + belong, handle_result, register_info_id, updatetime) + values + + (#{item.imei,jdbcType=VARCHAR}, #{item.id,jdbcType=INTEGER}, #{item.deviceType,jdbcType=INTEGER}, + #{item.orderId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, + #{item.lon,jdbcType=DOUBLE}, #{item.lat,jdbcType=DOUBLE}, #{item.buyDate,jdbcType=TIMESTAMP}, + #{item.buyLong,jdbcType=REAL}, #{item.time,jdbcType=TIMESTAMP}, #{item.imsi,jdbcType=VARCHAR}, + #{item.iccid,jdbcType=VARCHAR}, #{item.address,jdbcType=VARCHAR}, #{item.delivered,jdbcType=INTEGER}, + #{item.platform,jdbcType=VARCHAR}, #{item.deviceid,jdbcType=VARCHAR}, #{item.companyId,jdbcType=INTEGER}, + #{item.period,jdbcType=INTEGER}, #{item.belong,jdbcType=INTEGER}, #{item.handleResult,jdbcType=VARCHAR}, + #{item.registerInfoId,jdbcType=INTEGER}, #{item.updatetime,jdbcType=TIMESTAMP}) + + + + + insert into device_detail ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.id,jdbcType=INTEGER} + + + #{item.deviceType,jdbcType=INTEGER} + + + #{item.orderId,jdbcType=INTEGER} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.name,jdbcType=VARCHAR} + + + #{item.lon,jdbcType=DOUBLE} + + + #{item.lat,jdbcType=DOUBLE} + + + #{item.buyDate,jdbcType=TIMESTAMP} + + + #{item.buyLong,jdbcType=REAL} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.imsi,jdbcType=VARCHAR} + + + #{item.iccid,jdbcType=VARCHAR} + + + #{item.address,jdbcType=VARCHAR} + + + #{item.delivered,jdbcType=INTEGER} + + + #{item.platform,jdbcType=VARCHAR} + + + #{item.deviceid,jdbcType=VARCHAR} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.period,jdbcType=INTEGER} + + + #{item.belong,jdbcType=INTEGER} + + + #{item.handleResult,jdbcType=VARCHAR} + + + #{item.registerInfoId,jdbcType=INTEGER} + + + #{item.updatetime,jdbcType=TIMESTAMP} + + + ) + + + + + update device_detail + + + lon = #{deviceDetail.lon,jdbcType=DOUBLE}, + + + lat = #{deviceDetail.lat,jdbcType=DOUBLE}, + + + imei = #{deviceDetail.imei,jdbcType=VARCHAR}, + + updatetime=now() + + where imei = #{deviceDetail.imei,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceDetailsMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailsMapper.java new file mode 100644 index 0000000..77631b9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailsMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DeviceDetails; +import com.topsail.influxdb.pojo.DeviceDetailsExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceDetailsMapper { + long countByExample(DeviceDetailsExample example); + + int deleteByExample(DeviceDetailsExample example); + + int insert(DeviceDetails record); + + int insertSelective(DeviceDetails record); + + List selectByExample(DeviceDetailsExample example); + + int updateByExampleSelective(@Param("record") DeviceDetails record, @Param("example") DeviceDetailsExample example); + + int updateByExample(@Param("record") DeviceDetails record, @Param("example") DeviceDetailsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceDetails.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceDetailsMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailsMapper.xml new file mode 100644 index 0000000..66323d4 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceDetailsMapper.xml @@ -0,0 +1,424 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, imei, device_type, buy_date, buy_long, delivered, company_id, company_name, companyperiod, + project_id, platform, project_name, order_id, order_no, buy_number, product_status, + period, status + + + + delete from device_details + + + + + + insert into device_details (id, imei, device_type, + buy_date, buy_long, delivered, + company_id, company_name, companyperiod, + project_id, platform, project_name, + order_id, order_no, buy_number, + product_status, period, status + ) + values (#{id,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, #{deviceType,jdbcType=INTEGER}, + #{buyDate,jdbcType=TIMESTAMP}, #{buyLong,jdbcType=REAL}, #{delivered,jdbcType=INTEGER}, + #{companyId,jdbcType=INTEGER}, #{companyName,jdbcType=VARCHAR}, #{companyperiod,jdbcType=VARCHAR}, + #{projectId,jdbcType=INTEGER}, #{platform,jdbcType=VARCHAR}, #{projectName,jdbcType=VARCHAR}, + #{orderId,jdbcType=INTEGER}, #{orderNo,jdbcType=VARCHAR}, #{buyNumber,jdbcType=INTEGER}, + #{productStatus,jdbcType=VARCHAR}, #{period,jdbcType=INTEGER}, #{status,jdbcType=INTEGER} + ) + + + insert into device_details + + + id, + + + imei, + + + device_type, + + + buy_date, + + + buy_long, + + + delivered, + + + company_id, + + + company_name, + + + companyperiod, + + + project_id, + + + platform, + + + project_name, + + + order_id, + + + order_no, + + + buy_number, + + + product_status, + + + period, + + + status, + + + + + #{id,jdbcType=INTEGER}, + + + #{imei,jdbcType=VARCHAR}, + + + #{deviceType,jdbcType=INTEGER}, + + + #{buyDate,jdbcType=TIMESTAMP}, + + + #{buyLong,jdbcType=REAL}, + + + #{delivered,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + #{companyName,jdbcType=VARCHAR}, + + + #{companyperiod,jdbcType=VARCHAR}, + + + #{projectId,jdbcType=INTEGER}, + + + #{platform,jdbcType=VARCHAR}, + + + #{projectName,jdbcType=VARCHAR}, + + + #{orderId,jdbcType=INTEGER}, + + + #{orderNo,jdbcType=VARCHAR}, + + + #{buyNumber,jdbcType=INTEGER}, + + + #{productStatus,jdbcType=VARCHAR}, + + + #{period,jdbcType=INTEGER}, + + + #{status,jdbcType=INTEGER}, + + + + + + update device_details + + + id = #{record.id,jdbcType=INTEGER}, + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + device_type = #{record.deviceType,jdbcType=INTEGER}, + + + buy_date = #{record.buyDate,jdbcType=TIMESTAMP}, + + + buy_long = #{record.buyLong,jdbcType=REAL}, + + + delivered = #{record.delivered,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + company_name = #{record.companyName,jdbcType=VARCHAR}, + + + companyperiod = #{record.companyperiod,jdbcType=VARCHAR}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + platform = #{record.platform,jdbcType=VARCHAR}, + + + project_name = #{record.projectName,jdbcType=VARCHAR}, + + + order_id = #{record.orderId,jdbcType=INTEGER}, + + + order_no = #{record.orderNo,jdbcType=VARCHAR}, + + + buy_number = #{record.buyNumber,jdbcType=INTEGER}, + + + product_status = #{record.productStatus,jdbcType=VARCHAR}, + + + period = #{record.period,jdbcType=INTEGER}, + + + status = #{record.status,jdbcType=INTEGER}, + + + + + + + + update device_details + set id = #{record.id,jdbcType=INTEGER}, + imei = #{record.imei,jdbcType=VARCHAR}, + device_type = #{record.deviceType,jdbcType=INTEGER}, + buy_date = #{record.buyDate,jdbcType=TIMESTAMP}, + buy_long = #{record.buyLong,jdbcType=REAL}, + delivered = #{record.delivered,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER}, + company_name = #{record.companyName,jdbcType=VARCHAR}, + companyperiod = #{record.companyperiod,jdbcType=VARCHAR}, + project_id = #{record.projectId,jdbcType=INTEGER}, + platform = #{record.platform,jdbcType=VARCHAR}, + project_name = #{record.projectName,jdbcType=VARCHAR}, + order_id = #{record.orderId,jdbcType=INTEGER}, + order_no = #{record.orderNo,jdbcType=VARCHAR}, + buy_number = #{record.buyNumber,jdbcType=INTEGER}, + product_status = #{record.productStatus,jdbcType=VARCHAR}, + period = #{record.period,jdbcType=INTEGER}, + status = #{record.status,jdbcType=INTEGER} + + + + + + + insert into device_details + (id, imei, device_type, buy_date, buy_long, delivered, company_id, company_name, + companyperiod, project_id, platform, project_name, order_id, order_no, buy_number, + product_status, period, status) + values + + (#{item.id,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, #{item.deviceType,jdbcType=INTEGER}, + #{item.buyDate,jdbcType=TIMESTAMP}, #{item.buyLong,jdbcType=REAL}, #{item.delivered,jdbcType=INTEGER}, + #{item.companyId,jdbcType=INTEGER}, #{item.companyName,jdbcType=VARCHAR}, #{item.companyperiod,jdbcType=VARCHAR}, + #{item.projectId,jdbcType=INTEGER}, #{item.platform,jdbcType=VARCHAR}, #{item.projectName,jdbcType=VARCHAR}, + #{item.orderId,jdbcType=INTEGER}, #{item.orderNo,jdbcType=VARCHAR}, #{item.buyNumber,jdbcType=INTEGER}, + #{item.productStatus,jdbcType=VARCHAR}, #{item.period,jdbcType=INTEGER}, #{item.status,jdbcType=INTEGER} + ) + + + + + insert into device_details ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.deviceType,jdbcType=INTEGER} + + + #{item.buyDate,jdbcType=TIMESTAMP} + + + #{item.buyLong,jdbcType=REAL} + + + #{item.delivered,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.companyName,jdbcType=VARCHAR} + + + #{item.companyperiod,jdbcType=VARCHAR} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.platform,jdbcType=VARCHAR} + + + #{item.projectName,jdbcType=VARCHAR} + + + #{item.orderId,jdbcType=INTEGER} + + + #{item.orderNo,jdbcType=VARCHAR} + + + #{item.buyNumber,jdbcType=INTEGER} + + + #{item.productStatus,jdbcType=VARCHAR} + + + #{item.period,jdbcType=INTEGER} + + + #{item.status,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java new file mode 100644 index 0000000..2391b3d --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java @@ -0,0 +1,44 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DeviceInfo; +import com.topsail.influxdb.pojo.DeviceInfoExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceInfoMapper { + long countByExample(DeviceInfoExample example); + + int deleteByExample(DeviceInfoExample example); + + int insert(DeviceInfo record); + + int insertSelective(DeviceInfo record); + + List selectByExampleWithBLOBs(DeviceInfoExample example); + + List selectByExample(DeviceInfoExample example); + + int updateByExampleSelective(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); + + int updateByExampleWithBLOBs(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); + + int updateByExample(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceInfo.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml new file mode 100644 index 0000000..2e63535 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml @@ -0,0 +1,321 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid + + + deviceId + + + + + delete from device_info + + + + + + insert into device_info (id, verifyCode, deviceType, + userName, latitude, longitude, + version, fk_pid, deviceId + ) + values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{devicetype,jdbcType=VARCHAR}, + #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, + #{version,jdbcType=VARCHAR}, #{fkPid,jdbcType=INTEGER}, #{deviceid,jdbcType=LONGVARCHAR} + ) + + + insert into device_info + + + id, + + + verifyCode, + + + deviceType, + + + userName, + + + latitude, + + + longitude, + + + version, + + + fk_pid, + + + deviceId, + + + + + #{id,jdbcType=INTEGER}, + + + #{verifycode,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{latitude,jdbcType=VARCHAR}, + + + #{longitude,jdbcType=VARCHAR}, + + + #{version,jdbcType=VARCHAR}, + + + #{fkPid,jdbcType=INTEGER}, + + + #{deviceid,jdbcType=LONGVARCHAR}, + + + + + + update device_info + + + id = #{record.id,jdbcType=INTEGER}, + + + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + latitude = #{record.latitude,jdbcType=VARCHAR}, + + + longitude = #{record.longitude,jdbcType=VARCHAR}, + + + version = #{record.version,jdbcType=VARCHAR}, + + + fk_pid = #{record.fkPid,jdbcType=INTEGER}, + + + deviceId = #{record.deviceid,jdbcType=LONGVARCHAR}, + + + + + + + + update device_info + set id = #{record.id,jdbcType=INTEGER}, + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + latitude = #{record.latitude,jdbcType=VARCHAR}, + longitude = #{record.longitude,jdbcType=VARCHAR}, + version = #{record.version,jdbcType=VARCHAR}, + fk_pid = #{record.fkPid,jdbcType=INTEGER}, + deviceId = #{record.deviceid,jdbcType=LONGVARCHAR} + + + + + + update device_info + set id = #{record.id,jdbcType=INTEGER}, + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + latitude = #{record.latitude,jdbcType=VARCHAR}, + longitude = #{record.longitude,jdbcType=VARCHAR}, + version = #{record.version,jdbcType=VARCHAR}, + fk_pid = #{record.fkPid,jdbcType=INTEGER} + + + + + + + insert into device_info + (id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, deviceId + ) + values + + (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=VARCHAR}, + #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, + #{item.version,jdbcType=VARCHAR}, #{item.fkPid,jdbcType=INTEGER}, #{item.deviceid,jdbcType=LONGVARCHAR} + ) + + + + + insert into device_info ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.verifycode,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.latitude,jdbcType=VARCHAR} + + + #{item.longitude,jdbcType=VARCHAR} + + + #{item.version,jdbcType=VARCHAR} + + + #{item.fkPid,jdbcType=INTEGER} + + + #{item.deviceid,jdbcType=LONGVARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceLogMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceLogMapper.java new file mode 100644 index 0000000..0ed9abb --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceLogMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DeviceLog; +import com.topsail.influxdb.pojo.DeviceLogExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceLogMapper { + long countByExample(DeviceLogExample example); + + int deleteByExample(DeviceLogExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(DeviceLog record); + + int insertSelective(DeviceLog record); + + List selectByExample(DeviceLogExample example); + + DeviceLog selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") DeviceLog record, @Param("example") DeviceLogExample example); + + int updateByExample(@Param("record") DeviceLog record, @Param("example") DeviceLogExample example); + + int updateByPrimaryKeySelective(DeviceLog record); + + int updateByPrimaryKey(DeviceLog record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceLog.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceLogMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceLogMapper.xml new file mode 100644 index 0000000..f3427fc --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceLogMapper.xml @@ -0,0 +1,259 @@ + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, imei, operation, params, updatetime + + + + + delete from device_log + where id = #{id,jdbcType=INTEGER} + + + delete from device_log + + + + + + insert into device_log ( imei, operation, + params, updatetime) + values ( #{imei,jdbcType=VARCHAR}, #{operation,jdbcType=VARCHAR}, + #{params,jdbcType=VARCHAR}, #{updatetime,jdbcType=TIMESTAMP}) + + + insert into device_log + + + id, + + + imei, + + + operation, + + + params, + + + updatetime, + + + + + #{id,jdbcType=INTEGER}, + + + #{imei,jdbcType=VARCHAR}, + + + #{operation,jdbcType=VARCHAR}, + + + #{params,jdbcType=VARCHAR}, + + + #{updatetime,jdbcType=TIMESTAMP}, + + + + + + update device_log + + + id = #{record.id,jdbcType=INTEGER}, + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + operation = #{record.operation,jdbcType=VARCHAR}, + + + params = #{record.params,jdbcType=VARCHAR}, + + + updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, + + + + + + + + update device_log + set id = #{record.id,jdbcType=INTEGER}, + imei = #{record.imei,jdbcType=VARCHAR}, + operation = #{record.operation,jdbcType=VARCHAR}, + params = #{record.params,jdbcType=VARCHAR}, + updatetime = #{record.updatetime,jdbcType=TIMESTAMP} + + + + + + update device_log + + + imei = #{imei,jdbcType=VARCHAR}, + + + operation = #{operation,jdbcType=VARCHAR}, + + + params = #{params,jdbcType=VARCHAR}, + + + updatetime = #{updatetime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update device_log + set imei = #{imei,jdbcType=VARCHAR}, + operation = #{operation,jdbcType=VARCHAR}, + params = #{params,jdbcType=VARCHAR}, + updatetime = #{updatetime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + + + insert into device_log + (id, imei, operation, params, updatetime) + values + + (#{item.id,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, #{item.operation,jdbcType=VARCHAR}, + #{item.params,jdbcType=VARCHAR}, #{item.updatetime,jdbcType=TIMESTAMP}) + + + + + insert into device_log ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.operation,jdbcType=VARCHAR} + + + #{item.params,jdbcType=VARCHAR} + + + #{item.updatetime,jdbcType=TIMESTAMP} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceMapper.java new file mode 100644 index 0000000..505235d --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.Device; +import com.topsail.influxdb.pojo.DeviceExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceMapper { + long countByExample(DeviceExample example); + + int deleteByExample(DeviceExample example); + + int deleteByPrimaryKey(String imei); + + int insert(Device record); + + int insertSelective(Device record); + + List selectByExample(DeviceExample example); + + Device selectByPrimaryKey(String imei); + + int updateByExampleSelective(@Param("record") Device record, @Param("example") DeviceExample example); + + int updateByExample(@Param("record") Device record, @Param("example") DeviceExample example); + + int updateByPrimaryKeySelective(Device record); + + int updateByPrimaryKey(Device record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") Device.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceMapper.xml new file mode 100644 index 0000000..67a2db9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceMapper.xml @@ -0,0 +1,504 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, time, offlineTime, value,sampTime, protocol, sendDate + + + + + delete from device + where Imei = #{imei,jdbcType=VARCHAR} + + + delete from device + + + + + + insert into device (Imei, deviceType, batteryLevel, + singalStrength, sampleData, passNum, + batteryState, alarmType, platformType, + userName, unit, sendTime, + time, offlineTime, value, sampTime, protocol, + sendDate,devModel) + values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{batterylevel,jdbcType=INTEGER}, + #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, #{passnum,jdbcType=INTEGER}, + #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, + #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{sendtime,jdbcType=VARCHAR}, + #{time,jdbcType=TIMESTAMP}, #{offlinetime,jdbcType=TIMESTAMP}, #{value,jdbcType=VARCHAR}, #{sampTime,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}, + #{senddate,jdbcType=TIMESTAMP},#{devModel,jdbcType=INTEGER}) + + + insert into device + + + Imei, + + + deviceType, + + + batteryLevel, + + + singalStrength, + + + sampleData, + + + passNum, + + + batteryState, + + + alarmType, + + + platformType, + + + userName, + + + unit, + + + sendTime, + + + time, + + + offlineTime, + + + value, + + + sampTime, + + + sendDate, + + + + + #{imei,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{batterylevel,jdbcType=INTEGER}, + + + #{singalstrength,jdbcType=INTEGER}, + + + #{sampledata,jdbcType=VARCHAR}, + + + #{passnum,jdbcType=INTEGER}, + + + #{batterystate,jdbcType=INTEGER}, + + + #{alarmtype,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{sendtime,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{offlinetime,jdbcType=TIMESTAMP}, + + + #{value,jdbcType=VARCHAR}, + + + #{sampTime,jdbcType=VARCHAR}, + + + #{senddate,jdbcType=TIMESTAMP}, + + + + + + update device + + + Imei = #{record.imei,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + + + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + + + passNum = #{record.passnum,jdbcType=INTEGER}, + + + batteryState = #{record.batterystate,jdbcType=INTEGER}, + + + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + sampTime = #{record.sampTime,jdbcType=VARCHAR}, + + + protocol = #{record.protocol,jdbcType=VARCHAR}, + + + sendDate = #{record.senddate,jdbcType=TIMESTAMP}, + + + + + + + + update device + set Imei = #{record.imei,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + passNum = #{record.passnum,jdbcType=INTEGER}, + batteryState = #{record.batterystate,jdbcType=INTEGER}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, + value = #{record.value,jdbcType=VARCHAR}, + sampTime = #{record.sampTime,jdbcType=VARCHAR}, + protocol = #{record.protocol,jdbcType=VARCHAR}, + sendDate = #{record.senddate,jdbcType=TIMESTAMP} + + + + + + update device + + + deviceType = #{devicetype,jdbcType=INTEGER}, + + + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{singalstrength,jdbcType=INTEGER}, + + + sampleData = #{sampledata,jdbcType=VARCHAR}, + + + passNum = #{passnum,jdbcType=INTEGER}, + + + batteryState = #{batterystate,jdbcType=INTEGER}, + + + alarmType = #{alarmtype,jdbcType=VARCHAR}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + userName = #{username,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + sendTime = #{sendtime,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + offlineTime = #{offlinetime,jdbcType=TIMESTAMP}, + + + value = #{value,jdbcType=VARCHAR}, + + + sampTime = #{sampTime,jdbcType=VARCHAR}, + + + protocol = #{protocol,jdbcType=VARCHAR}, + + + sendDate = #{senddate,jdbcType=TIMESTAMP}, + + + where Imei = #{imei,jdbcType=VARCHAR} + + + update device + set deviceType = #{devicetype,jdbcType=INTEGER}, + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + singalStrength = #{singalstrength,jdbcType=INTEGER}, + sampleData = #{sampledata,jdbcType=VARCHAR}, + passNum = #{passnum,jdbcType=INTEGER}, + batteryState = #{batterystate,jdbcType=INTEGER}, + alarmType = #{alarmtype,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + userName = #{username,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + sendTime = #{sendtime,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + offlineTime = #{offlinetime,jdbcType=TIMESTAMP}, + value = #{value,jdbcType=VARCHAR}, + sampTime = #{sampTime,jdbcType=VARCHAR}, + protocol = #{protocol,jdbcType=VARCHAR}, + sendDate = #{senddate,jdbcType=TIMESTAMP}, + devModel=#{devModel,jdbcType=INTEGER} + where Imei = #{imei,jdbcType=VARCHAR} + + + + insert into device + (Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, time, offlineTime, value,sampTime,protocol, sendDate + ) + values + + (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.batterylevel,jdbcType=INTEGER}, + #{item.singalstrength,jdbcType=INTEGER}, #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, + #{item.batterystate,jdbcType=INTEGER}, #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, + #{item.username,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, + #{item.time,jdbcType=TIMESTAMP}, #{item.offlinetime,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.sampTime,jdbcType=VARCHAR}, #{item.protocol,jdbcType=VARCHAR}, + #{item.senddate,jdbcType=TIMESTAMP}) + + + + + insert into device ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.batterylevel,jdbcType=INTEGER} + + + #{item.singalstrength,jdbcType=INTEGER} + + + #{item.sampledata,jdbcType=VARCHAR} + + + #{item.passnum,jdbcType=INTEGER} + + + #{item.batterystate,jdbcType=INTEGER} + + + #{item.alarmtype,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.sendtime,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.offlinetime,jdbcType=TIMESTAMP} + + + #{item.value,jdbcType=VARCHAR} + + + #{item.sampTime,jdbcType=VARCHAR} + + + #{item.protocol,jdbcType=VARCHAR} + + + #{item.senddate,jdbcType=TIMESTAMP} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java new file mode 100644 index 0000000..4530e6e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DeviceProjectView; +import com.topsail.influxdb.pojo.DeviceProjectViewExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceProjectViewMapper { + long countByExample(DeviceProjectViewExample example); + + int deleteByExample(DeviceProjectViewExample example); + + int insert(DeviceProjectView record); + + int insertSelective(DeviceProjectView record); + + List selectByExample(DeviceProjectViewExample example); + + int updateByExampleSelective(@Param("record") DeviceProjectView record, @Param("example") DeviceProjectViewExample example); + + int updateByExample(@Param("record") DeviceProjectView record, @Param("example") DeviceProjectViewExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceProjectView.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml new file mode 100644 index 0000000..b287d2c --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml @@ -0,0 +1,240 @@ + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + imei, deviceType, userName, company_id, project_id, imei2 + + + + delete from device_project_view + + + + + + insert into device_project_view (imei, deviceType, userName, + company_id, project_id, imei2 + ) + values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, + #{companyId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{imei2,jdbcType=VARCHAR} + ) + + + insert into device_project_view + + + imei, + + + deviceType, + + + userName, + + + company_id, + + + project_id, + + + imei2, + + + + + #{imei,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{username,jdbcType=VARCHAR}, + + + #{companyId,jdbcType=INTEGER}, + + + #{projectId,jdbcType=INTEGER}, + + + #{imei2,jdbcType=VARCHAR}, + + + + + + update device_project_view + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + imei2 = #{record.imei2,jdbcType=VARCHAR}, + + + + + + + + update device_project_view + set imei = #{record.imei,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + userName = #{record.username,jdbcType=VARCHAR}, + company_id = #{record.companyId,jdbcType=INTEGER}, + project_id = #{record.projectId,jdbcType=INTEGER}, + imei2 = #{record.imei2,jdbcType=VARCHAR} + + + + + + + insert into device_project_view + (imei, deviceType, userName, company_id, project_id, imei2) + values + + (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, + #{item.companyId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, #{item.imei2,jdbcType=VARCHAR} + ) + + + + + insert into device_project_view ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.imei2,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java new file mode 100644 index 0000000..e0f9feb --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.DeviceUser; +import com.topsail.influxdb.pojo.DeviceUserExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface DeviceUserMapper { + long countByExample(DeviceUserExample example); + + int deleteByExample(DeviceUserExample example); + + int insert(DeviceUser record); + + int insertSelective(DeviceUser record); + + List selectByExample(DeviceUserExample example); + + int updateByExampleSelective(@Param("record") DeviceUser record, @Param("example") DeviceUserExample example); + + int updateByExample(@Param("record") DeviceUser record, @Param("example") DeviceUserExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceUser.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml new file mode 100644 index 0000000..f8bca25 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml @@ -0,0 +1,483 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, time, offlineTime, address, lon, + lat, value, name, project_id, user_id, STATUS + + + + delete from device_user + + + + + + insert into device_user (Imei, deviceType, batteryLevel, + singalStrength, sampleData, passNum, + batteryState, alarmType, platformType, + userName, unit, sendTime, + time, offlineTime, address, + lon, lat, value, name, + project_id, user_id, STATUS + ) + values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{batterylevel,jdbcType=INTEGER}, + #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, #{passnum,jdbcType=INTEGER}, + #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, + #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{sendtime,jdbcType=VARCHAR}, + #{time,jdbcType=TIMESTAMP}, #{offlinetime,jdbcType=TIMESTAMP}, #{address,jdbcType=VARCHAR}, + #{lon,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{value,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, + #{projectId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR} + ) + + + insert into device_user + + + Imei, + + + deviceType, + + + batteryLevel, + + + singalStrength, + + + sampleData, + + + passNum, + + + batteryState, + + + alarmType, + + + platformType, + + + userName, + + + unit, + + + sendTime, + + + time, + + + offlineTime, + + + address, + + + lon, + + + lat, + + + value, + + + name, + + + project_id, + + + user_id, + + + STATUS, + + + + + #{imei,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{batterylevel,jdbcType=INTEGER}, + + + #{singalstrength,jdbcType=INTEGER}, + + + #{sampledata,jdbcType=VARCHAR}, + + + #{passnum,jdbcType=INTEGER}, + + + #{batterystate,jdbcType=INTEGER}, + + + #{alarmtype,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{sendtime,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{offlinetime,jdbcType=TIMESTAMP}, + + + #{address,jdbcType=VARCHAR}, + + + #{lon,jdbcType=DOUBLE}, + + + #{lat,jdbcType=DOUBLE}, + + + #{value,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{projectId,jdbcType=INTEGER}, + + + #{userId,jdbcType=INTEGER}, + + + #{status,jdbcType=VARCHAR}, + + + + + + update device_user + + + Imei = #{record.imei,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + + + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + + + passNum = #{record.passnum,jdbcType=INTEGER}, + + + batteryState = #{record.batterystate,jdbcType=INTEGER}, + + + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, + + + address = #{record.address,jdbcType=VARCHAR}, + + + lon = #{record.lon,jdbcType=DOUBLE}, + + + lat = #{record.lat,jdbcType=DOUBLE}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + user_id = #{record.userId,jdbcType=INTEGER}, + + + STATUS = #{record.status,jdbcType=VARCHAR}, + + + + + + + + update device_user + set Imei = #{record.imei,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + passNum = #{record.passnum,jdbcType=INTEGER}, + batteryState = #{record.batterystate,jdbcType=INTEGER}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, + address = #{record.address,jdbcType=VARCHAR}, + lon = #{record.lon,jdbcType=DOUBLE}, + lat = #{record.lat,jdbcType=DOUBLE}, + value = #{record.value,jdbcType=VARCHAR}, + name = #{record.name,jdbcType=VARCHAR}, + project_id = #{record.projectId,jdbcType=INTEGER}, + user_id = #{record.userId,jdbcType=INTEGER}, + STATUS = #{record.status,jdbcType=VARCHAR} + + + + + + + insert into device_user + (Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, time, offlineTime, address, + lon, lat, value, name, project_id, user_id, STATUS) + values + + (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.batterylevel,jdbcType=INTEGER}, + #{item.singalstrength,jdbcType=INTEGER}, #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, + #{item.batterystate,jdbcType=INTEGER}, #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, + #{item.username,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, + #{item.time,jdbcType=TIMESTAMP}, #{item.offlinetime,jdbcType=TIMESTAMP}, #{item.address,jdbcType=VARCHAR}, + #{item.lon,jdbcType=DOUBLE}, #{item.lat,jdbcType=DOUBLE}, #{item.value,jdbcType=VARCHAR}, + #{item.name,jdbcType=VARCHAR}, #{item.projectId,jdbcType=INTEGER}, #{item.userId,jdbcType=INTEGER}, + #{item.status,jdbcType=VARCHAR}) + + + + + insert into device_user ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.batterylevel,jdbcType=INTEGER} + + + #{item.singalstrength,jdbcType=INTEGER} + + + #{item.sampledata,jdbcType=VARCHAR} + + + #{item.passnum,jdbcType=INTEGER} + + + #{item.batterystate,jdbcType=INTEGER} + + + #{item.alarmtype,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.sendtime,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.offlinetime,jdbcType=TIMESTAMP} + + + #{item.address,jdbcType=VARCHAR} + + + #{item.lon,jdbcType=DOUBLE} + + + #{item.lat,jdbcType=DOUBLE} + + + #{item.value,jdbcType=VARCHAR} + + + #{item.name,jdbcType=VARCHAR} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.userId,jdbcType=INTEGER} + + + #{item.status,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java new file mode 100644 index 0000000..5c85a26 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java @@ -0,0 +1,32 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.GatewayDevice; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Update; + + +/** + * + * + * @version + *
+ * Author	Version		Date		Changes
+ * Administrator 	1.0  		2022年04月22日 	Created
+ *
+ * 
+ * @since 1. + */ +public interface GatewayDeviceMapper { + + /** + * 新增 + * + * @param + * @return + */ + int saveGatewayDevice(GatewayDevice gatewayDevice); + + @Update("update gateway_device set bind_status = #{bindStatus} where imei = #{imei}") + int updateGatewayDeviceStatus(@Param("imei") String imei,@Param("bindStatus") Integer bindStatus); + +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml new file mode 100644 index 0000000..f2dfe88 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml @@ -0,0 +1,17 @@ + + + + + + insert into gateway_device + (imei,parent_imei,device_id,platform_type,bind_status,create_time) + values + (#{imei},#{parentImei},#{deviceId},#{platformType},#{bindStatus},now()) + ON DUPLICATE KEY UPDATE + device_id = #{deviceId}, + platform_type = #{platformType}, + bind_status = #{bindStatus}, + update_time = now(); + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java b/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java new file mode 100644 index 0000000..0010337 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.HistoryAll; +import com.topsail.influxdb.pojo.HistoryAllExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface HistoryAllMapper { + long countByExample(HistoryAllExample example); + + int deleteByExample(HistoryAllExample example); + + int deleteByPrimaryKey(Long id); + + int insert(HistoryAll record); + + int insertSelective(HistoryAll record); + + List selectByExample(HistoryAllExample example); + + HistoryAll selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") HistoryAll record, @Param("example") HistoryAllExample example); + + int updateByExample(@Param("record") HistoryAll record, @Param("example") HistoryAllExample example); + + int updateByPrimaryKeySelective(HistoryAll record); + + int updateByPrimaryKey(HistoryAll record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") HistoryAll.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml b/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml new file mode 100644 index 0000000..8454065 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml @@ -0,0 +1,491 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate + + + + + delete from history_all + where id = #{id,jdbcType=BIGINT} + + + delete from history_all + + + + + + insert into history_all (id, deviceType, Imei, + batteryLevel, singalStrength, sampleData, + passNum, batteryState, alarmType, + platformType, userName, unit, + sendTime, dataBody, time, + value, sendDate) + values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, + #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, + #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, + #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, + #{sendtime,jdbcType=VARCHAR}, #{databody,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, + #{value,jdbcType=VARCHAR}, #{senddate,jdbcType=TIMESTAMP}) + + + insert into history_all + + + id, + + + deviceType, + + + Imei, + + + batteryLevel, + + + singalStrength, + + + sampleData, + + + passNum, + + + batteryState, + + + alarmType, + + + platformType, + + + userName, + + + unit, + + + sendTime, + + + dataBody, + + + time, + + + value, + + + sendDate, + + + + + #{id,jdbcType=BIGINT}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{imei,jdbcType=VARCHAR}, + + + #{batterylevel,jdbcType=INTEGER}, + + + #{singalstrength,jdbcType=INTEGER}, + + + #{sampledata,jdbcType=VARCHAR}, + + + #{passnum,jdbcType=INTEGER}, + + + #{batterystate,jdbcType=INTEGER}, + + + #{alarmtype,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{sendtime,jdbcType=VARCHAR}, + + + #{databody,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{value,jdbcType=VARCHAR}, + + + #{senddate,jdbcType=TIMESTAMP}, + + + + + + update history_all + + + id = #{record.id,jdbcType=BIGINT}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + Imei = #{record.imei,jdbcType=VARCHAR}, + + + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + + + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + + + passNum = #{record.passnum,jdbcType=INTEGER}, + + + batteryState = #{record.batterystate,jdbcType=INTEGER}, + + + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + + + dataBody = #{record.databody,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + sendDate = #{record.senddate,jdbcType=TIMESTAMP}, + + + + + + + + update history_all + set id = #{record.id,jdbcType=BIGINT}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + Imei = #{record.imei,jdbcType=VARCHAR}, + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + passNum = #{record.passnum,jdbcType=INTEGER}, + batteryState = #{record.batterystate,jdbcType=INTEGER}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + dataBody = #{record.databody,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + value = #{record.value,jdbcType=VARCHAR}, + sendDate = #{record.senddate,jdbcType=TIMESTAMP} + + + + + + update history_all + + + deviceType = #{devicetype,jdbcType=INTEGER}, + + + Imei = #{imei,jdbcType=VARCHAR}, + + + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{singalstrength,jdbcType=INTEGER}, + + + sampleData = #{sampledata,jdbcType=VARCHAR}, + + + passNum = #{passnum,jdbcType=INTEGER}, + + + batteryState = #{batterystate,jdbcType=INTEGER}, + + + alarmType = #{alarmtype,jdbcType=VARCHAR}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + userName = #{username,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + sendTime = #{sendtime,jdbcType=VARCHAR}, + + + dataBody = #{databody,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + value = #{value,jdbcType=VARCHAR}, + + + sendDate = #{senddate,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update history_all + set deviceType = #{devicetype,jdbcType=INTEGER}, + Imei = #{imei,jdbcType=VARCHAR}, + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + singalStrength = #{singalstrength,jdbcType=INTEGER}, + sampleData = #{sampledata,jdbcType=VARCHAR}, + passNum = #{passnum,jdbcType=INTEGER}, + batteryState = #{batterystate,jdbcType=INTEGER}, + alarmType = #{alarmtype,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + userName = #{username,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + sendTime = #{sendtime,jdbcType=VARCHAR}, + dataBody = #{databody,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + value = #{value,jdbcType=VARCHAR}, + sendDate = #{senddate,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + + + insert into history_all + (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate + ) + values + + (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, + #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, + #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, + #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, + #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.databody,jdbcType=VARCHAR}, + #{item.time,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP} + ) + + + + + insert into history_all ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=BIGINT} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.batterylevel,jdbcType=INTEGER} + + + #{item.singalstrength,jdbcType=INTEGER} + + + #{item.sampledata,jdbcType=VARCHAR} + + + #{item.passnum,jdbcType=INTEGER} + + + #{item.batterystate,jdbcType=INTEGER} + + + #{item.alarmtype,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.sendtime,jdbcType=VARCHAR} + + + #{item.databody,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.value,jdbcType=VARCHAR} + + + #{item.senddate,jdbcType=TIMESTAMP} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java b/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java new file mode 100644 index 0000000..de4fd01 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.HistoryErr; +import com.topsail.influxdb.pojo.HistoryErrExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface HistoryErrMapper { + long countByExample(HistoryErrExample example); + + int deleteByExample(HistoryErrExample example); + + int deleteByPrimaryKey(Long id); + + int insert(HistoryErr record); + + int insertSelective(HistoryErr record); + + List selectByExample(HistoryErrExample example); + + HistoryErr selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") HistoryErr record, @Param("example") HistoryErrExample example); + + int updateByExample(@Param("record") HistoryErr record, @Param("example") HistoryErrExample example); + + int updateByPrimaryKeySelective(HistoryErr record); + + int updateByPrimaryKey(HistoryErr record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") HistoryErr.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml b/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml new file mode 100644 index 0000000..a0e7ed9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml @@ -0,0 +1,491 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate + + + + + delete from history_err + where id = #{id,jdbcType=BIGINT} + + + delete from history_err + + + + + + insert into history_err (id, deviceType, Imei, + batteryLevel, singalStrength, sampleData, + passNum, batteryState, alarmType, + platformType, userName, unit, + sendTime, dataBody, time, + value, sendDate) + values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, + #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, + #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, + #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, + #{sendtime,jdbcType=VARCHAR}, #{databody,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, + #{value,jdbcType=VARCHAR}, #{senddate,jdbcType=TIMESTAMP}) + + + insert into history_err + + + id, + + + deviceType, + + + Imei, + + + batteryLevel, + + + singalStrength, + + + sampleData, + + + passNum, + + + batteryState, + + + alarmType, + + + platformType, + + + userName, + + + unit, + + + sendTime, + + + dataBody, + + + time, + + + value, + + + sendDate, + + + + + #{id,jdbcType=BIGINT}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{imei,jdbcType=VARCHAR}, + + + #{batterylevel,jdbcType=INTEGER}, + + + #{singalstrength,jdbcType=INTEGER}, + + + #{sampledata,jdbcType=VARCHAR}, + + + #{passnum,jdbcType=INTEGER}, + + + #{batterystate,jdbcType=INTEGER}, + + + #{alarmtype,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{sendtime,jdbcType=VARCHAR}, + + + #{databody,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{value,jdbcType=VARCHAR}, + + + #{senddate,jdbcType=TIMESTAMP}, + + + + + + update history_err + + + id = #{record.id,jdbcType=BIGINT}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + Imei = #{record.imei,jdbcType=VARCHAR}, + + + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + + + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + + + passNum = #{record.passnum,jdbcType=INTEGER}, + + + batteryState = #{record.batterystate,jdbcType=INTEGER}, + + + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + + + dataBody = #{record.databody,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + sendDate = #{record.senddate,jdbcType=TIMESTAMP}, + + + + + + + + update history_err + set id = #{record.id,jdbcType=BIGINT}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + Imei = #{record.imei,jdbcType=VARCHAR}, + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + passNum = #{record.passnum,jdbcType=INTEGER}, + batteryState = #{record.batterystate,jdbcType=INTEGER}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + dataBody = #{record.databody,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + value = #{record.value,jdbcType=VARCHAR}, + sendDate = #{record.senddate,jdbcType=TIMESTAMP} + + + + + + update history_err + + + deviceType = #{devicetype,jdbcType=INTEGER}, + + + Imei = #{imei,jdbcType=VARCHAR}, + + + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{singalstrength,jdbcType=INTEGER}, + + + sampleData = #{sampledata,jdbcType=VARCHAR}, + + + passNum = #{passnum,jdbcType=INTEGER}, + + + batteryState = #{batterystate,jdbcType=INTEGER}, + + + alarmType = #{alarmtype,jdbcType=VARCHAR}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + userName = #{username,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + sendTime = #{sendtime,jdbcType=VARCHAR}, + + + dataBody = #{databody,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + value = #{value,jdbcType=VARCHAR}, + + + sendDate = #{senddate,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + update history_err + set deviceType = #{devicetype,jdbcType=INTEGER}, + Imei = #{imei,jdbcType=VARCHAR}, + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + singalStrength = #{singalstrength,jdbcType=INTEGER}, + sampleData = #{sampledata,jdbcType=VARCHAR}, + passNum = #{passnum,jdbcType=INTEGER}, + batteryState = #{batterystate,jdbcType=INTEGER}, + alarmType = #{alarmtype,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + userName = #{username,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + sendTime = #{sendtime,jdbcType=VARCHAR}, + dataBody = #{databody,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + value = #{value,jdbcType=VARCHAR}, + sendDate = #{senddate,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + + + insert into history_err + (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate + ) + values + + (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, + #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, + #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, + #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, + #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.databody,jdbcType=VARCHAR}, + #{item.time,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP} + ) + + + + + insert into history_err ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=BIGINT} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.batterylevel,jdbcType=INTEGER} + + + #{item.singalstrength,jdbcType=INTEGER} + + + #{item.sampledata,jdbcType=VARCHAR} + + + #{item.passnum,jdbcType=INTEGER} + + + #{item.batterystate,jdbcType=INTEGER} + + + #{item.alarmtype,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.sendtime,jdbcType=VARCHAR} + + + #{item.databody,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.value,jdbcType=VARCHAR} + + + #{item.senddate,jdbcType=TIMESTAMP} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java b/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java new file mode 100644 index 0000000..026c2f7 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java @@ -0,0 +1,60 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.History; +import com.topsail.influxdb.pojo.HistoryExample; +import java.util.List; +import java.util.Map; + +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.annotations.Select; + +public interface HistoryMapper { + long countByExample(HistoryExample example); + + int deleteByExample(HistoryExample example); + + int deleteByPrimaryKey(Long id); + + int insert(History record); + + int insertSelective(History record); + + List selectByExampleWithBLOBs(HistoryExample example); + + List selectByExample(HistoryExample example); + + History selectByPrimaryKey(Long id); + + int updateByExampleSelective(@Param("record") History record, @Param("example") HistoryExample example); + + int updateByExampleWithBLOBs(@Param("record") History record, @Param("example") HistoryExample example); + + int updateByExample(@Param("record") History record, @Param("example") HistoryExample example); + + int updateByPrimaryKeySelective(History record); + + int updateByPrimaryKeyWithBLOBs(History record); + + int updateByPrimaryKey(History record); + + @Select("select * from (SELECT imei,count( 1 ) as num FROM history GROUP BY imei ORDER BY count( 1 ) DESC ) m where num>200") + List> getBigImei(); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") History.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml b/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml new file mode 100644 index 0000000..a312468 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml @@ -0,0 +1,555 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, time, value, sendDate + + + dataBody + + + + + + delete from history + where id = #{id,jdbcType=BIGINT} + + + delete from history + + + + + + insert into history (id, deviceType, Imei, + batteryLevel, singalStrength, sampleData, + passNum, batteryState, alarmType, + platformType, userName, unit, + sendTime, time, value, + sendDate, dataBody,devModel) + values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, + #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, + #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, + #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, + #{sendtime,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{value,jdbcType=VARCHAR}, + #{senddate,jdbcType=TIMESTAMP}, #{databody,jdbcType=LONGVARCHAR},#{devModel,jdbcType=INTEGER}) + + + insert into history + + + id, + + + deviceType, + + + Imei, + + + batteryLevel, + + + singalStrength, + + + sampleData, + + + passNum, + + + batteryState, + + + alarmType, + + + platformType, + + + userName, + + + unit, + + + sendTime, + + + time, + + + value, + + + sendDate, + + + dataBody, + + + + + #{id,jdbcType=BIGINT}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{imei,jdbcType=VARCHAR}, + + + #{batterylevel,jdbcType=INTEGER}, + + + #{singalstrength,jdbcType=INTEGER}, + + + #{sampledata,jdbcType=VARCHAR}, + + + #{passnum,jdbcType=INTEGER}, + + + #{batterystate,jdbcType=INTEGER}, + + + #{alarmtype,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{unit,jdbcType=VARCHAR}, + + + #{sendtime,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{value,jdbcType=VARCHAR}, + + + #{senddate,jdbcType=TIMESTAMP}, + + + #{databody,jdbcType=LONGVARCHAR}, + + + + + + update history + + + id = #{record.id,jdbcType=BIGINT}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + Imei = #{record.imei,jdbcType=VARCHAR}, + + + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + + + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + + + passNum = #{record.passnum,jdbcType=INTEGER}, + + + batteryState = #{record.batterystate,jdbcType=INTEGER}, + + + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + unit = #{record.unit,jdbcType=VARCHAR}, + + + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + value = #{record.value,jdbcType=VARCHAR}, + + + sendDate = #{record.senddate,jdbcType=TIMESTAMP}, + + + dataBody = #{record.databody,jdbcType=LONGVARCHAR}, + + + + + + + + update history + set id = #{record.id,jdbcType=BIGINT}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + Imei = #{record.imei,jdbcType=VARCHAR}, + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + passNum = #{record.passnum,jdbcType=INTEGER}, + batteryState = #{record.batterystate,jdbcType=INTEGER}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + value = #{record.value,jdbcType=VARCHAR}, + sendDate = #{record.senddate,jdbcType=TIMESTAMP}, + dataBody = #{record.databody,jdbcType=LONGVARCHAR} + + + + + + update history + set id = #{record.id,jdbcType=BIGINT}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + Imei = #{record.imei,jdbcType=VARCHAR}, + batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, + singalStrength = #{record.singalstrength,jdbcType=INTEGER}, + sampleData = #{record.sampledata,jdbcType=VARCHAR}, + passNum = #{record.passnum,jdbcType=INTEGER}, + batteryState = #{record.batterystate,jdbcType=INTEGER}, + alarmType = #{record.alarmtype,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + unit = #{record.unit,jdbcType=VARCHAR}, + sendTime = #{record.sendtime,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + value = #{record.value,jdbcType=VARCHAR}, + sendDate = #{record.senddate,jdbcType=TIMESTAMP} + + + + + + update history + + + deviceType = #{devicetype,jdbcType=INTEGER}, + + + Imei = #{imei,jdbcType=VARCHAR}, + + + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + + + singalStrength = #{singalstrength,jdbcType=INTEGER}, + + + sampleData = #{sampledata,jdbcType=VARCHAR}, + + + passNum = #{passnum,jdbcType=INTEGER}, + + + batteryState = #{batterystate,jdbcType=INTEGER}, + + + alarmType = #{alarmtype,jdbcType=VARCHAR}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + userName = #{username,jdbcType=VARCHAR}, + + + unit = #{unit,jdbcType=VARCHAR}, + + + sendTime = #{sendtime,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + value = #{value,jdbcType=VARCHAR}, + + + sendDate = #{senddate,jdbcType=TIMESTAMP}, + + + dataBody = #{databody,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=BIGINT} + + + update history + set deviceType = #{devicetype,jdbcType=INTEGER}, + Imei = #{imei,jdbcType=VARCHAR}, + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + singalStrength = #{singalstrength,jdbcType=INTEGER}, + sampleData = #{sampledata,jdbcType=VARCHAR}, + passNum = #{passnum,jdbcType=INTEGER}, + batteryState = #{batterystate,jdbcType=INTEGER}, + alarmType = #{alarmtype,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + userName = #{username,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + sendTime = #{sendtime,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + value = #{value,jdbcType=VARCHAR}, + sendDate = #{senddate,jdbcType=TIMESTAMP}, + dataBody = #{databody,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=BIGINT} + + + update history + set deviceType = #{devicetype,jdbcType=INTEGER}, + Imei = #{imei,jdbcType=VARCHAR}, + batteryLevel = #{batterylevel,jdbcType=INTEGER}, + singalStrength = #{singalstrength,jdbcType=INTEGER}, + sampleData = #{sampledata,jdbcType=VARCHAR}, + passNum = #{passnum,jdbcType=INTEGER}, + batteryState = #{batterystate,jdbcType=INTEGER}, + alarmType = #{alarmtype,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + userName = #{username,jdbcType=VARCHAR}, + unit = #{unit,jdbcType=VARCHAR}, + sendTime = #{sendtime,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + value = #{value,jdbcType=VARCHAR}, + sendDate = #{senddate,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + + + insert into history + (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, + alarmType, platformType, userName, unit, sendTime, time, value, sendDate, dataBody + ) + values + + (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, + #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, + #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, + #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, + #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, + #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP}, #{item.databody,jdbcType=LONGVARCHAR} + ) + + + + + insert into history ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=BIGINT} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.batterylevel,jdbcType=INTEGER} + + + #{item.singalstrength,jdbcType=INTEGER} + + + #{item.sampledata,jdbcType=VARCHAR} + + + #{item.passnum,jdbcType=INTEGER} + + + #{item.batterystate,jdbcType=INTEGER} + + + #{item.alarmtype,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.unit,jdbcType=VARCHAR} + + + #{item.sendtime,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.value,jdbcType=VARCHAR} + + + #{item.senddate,jdbcType=TIMESTAMP} + + + #{item.databody,jdbcType=LONGVARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java b/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java new file mode 100644 index 0000000..82abb01 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java @@ -0,0 +1,72 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.ImsiImei; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +/** + * + * imsi和imei关系表Dao + * + * @version + *
+ * Author	Version		Date		Changes
+ * Administrator 	1.0  		2021年05月31日 	Created
+ *
+ * 
+ * @since 1. + */ +public interface ImsiImeiMapper { + + /** + * imsi和imei关系表 新增 + * + * @param imsiImei + * @return + */ + int saveImsiImei(@Param("imsiImei") ImsiImei imsiImei); + + + /** + * imsi和imei关系表 更新 + * + * @param imsiImei + * @return + */ + int updateImsiImei(ImsiImei imsiImei); + + /** + *imsi和imei关系表 删除 + * + * @param id + * @return + */ + int deleteImsiImei(@Param("imsi") String id); + + /** + * imsi和imei关系表 查询列表 + * + * @param imsiImei + * @param start + * @param pageSize + * @return + */ + List pageListImsiImei(@Param("imsiImei") ImsiImei imsiImei, @Param("start") Integer start, @Param("pageSize") Integer pageSize); + + /** + * imsi和imei关系表 count + * + * @param imsiImei + * @return + */ + Integer findCountImsiImei(@Param("imsiImei") ImsiImei imsiImei); + + /** + * imsi和imei关系表 根据id查询 + * + * @param imsi + * @return + */ + ImsiImei findImsiImei(String imsi); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml new file mode 100644 index 0000000..49a0469 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml @@ -0,0 +1,131 @@ + + + + + + + + + + + + + + + + ii.imsi, + + ii.imei, + + ii.create_time, + + ii.update_time + + + + + insert into imsi_imei + + imsi, + imei, + create_time + + + #{imsiImei.imsi,jdbcType=VARCHAR}, + #{imsiImei.imei,jdbcType=VARCHAR}, + now() + + ON DUPLICATE KEY UPDATE + imei = #{imsiImei.imei}, + update_time = now(); + + + + + + + + update imsi_imei + + + imsi=#{imsi,jdbcType=VARCHAR}, + + + imei=#{imei,jdbcType=VARCHAR}, + + + update_time=#{updateTime,jdbcType=TIMESTAMP}, + + + where imsi = #{imsi} + + + + + + + delete from imsi_imei where imsi = #{imsi} + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java b/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java new file mode 100644 index 0000000..40524e1 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.NbiotConfig; +import com.topsail.influxdb.pojo.NbiotConfigExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface NbiotConfigMapper { + long countByExample(NbiotConfigExample example); + + int deleteByExample(NbiotConfigExample example); + + int insert(NbiotConfig record); + + int insertSelective(NbiotConfig record); + + List selectByExample(NbiotConfigExample example); + + int updateByExampleSelective(@Param("record") NbiotConfig record, @Param("example") NbiotConfigExample example); + + int updateByExample(@Param("record") NbiotConfig record, @Param("example") NbiotConfigExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") NbiotConfig.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml b/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml new file mode 100644 index 0000000..95da0cc --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml @@ -0,0 +1,688 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, + unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, + multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, + stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, + autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, lora_spreading, + lora_encoding_rate, netType + + + + delete from nbiot_config + + + + + + insert into nbiot_config (id, imei, typeName, + deviceType, collectionGap, sendingGap, + urlAddress, port, unipathThresholdLimit, + unipathThresholdUpper, unipathChangeThreshold, + multipleThresholdLimit, multipleThresholdUpper, + multipleChangeThreshold, controlValveState, + startTime, endTime, numDays, + switchingValue, stopReporting, softwareVersions, + hardwareVersions, IMSI, APN, + time, autoControlPolicy, autoControlTime, + selfCheckTime, collide, lean, + lora_frequency, lora_bandwidth, lora_spreading, + lora_encoding_rate, netType) + values (#{id,jdbcType=BIGINT}, #{imei,jdbcType=VARCHAR}, #{typename,jdbcType=VARCHAR}, + #{devicetype,jdbcType=INTEGER}, #{collectiongap,jdbcType=INTEGER}, #{sendinggap,jdbcType=INTEGER}, + #{urladdress,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{unipaththresholdlimit,jdbcType=INTEGER}, + #{unipaththresholdupper,jdbcType=INTEGER}, #{unipathchangethreshold,jdbcType=INTEGER}, + #{multiplethresholdlimit,jdbcType=INTEGER}, #{multiplethresholdupper,jdbcType=INTEGER}, + #{multiplechangethreshold,jdbcType=INTEGER}, #{controlvalvestate,jdbcType=INTEGER}, + #{starttime,jdbcType=VARCHAR}, #{endtime,jdbcType=VARCHAR}, #{numdays,jdbcType=INTEGER}, + #{switchingvalue,jdbcType=INTEGER}, #{stopreporting,jdbcType=INTEGER}, #{softwareversions,jdbcType=VARCHAR}, + #{hardwareversions,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR}, #{apn,jdbcType=VARCHAR}, + #{time,jdbcType=TIMESTAMP}, #{autocontrolpolicy,jdbcType=VARCHAR}, #{autocontroltime,jdbcType=VARCHAR}, + #{selfchecktime,jdbcType=VARCHAR}, #{collide,jdbcType=INTEGER}, #{lean,jdbcType=INTEGER}, + #{loraFrequency,jdbcType=INTEGER}, #{loraBandwidth,jdbcType=INTEGER}, #{loraSpreading,jdbcType=INTEGER}, + #{loraEncodingRate,jdbcType=INTEGER}, #{nettype,jdbcType=INTEGER}) + + + insert into nbiot_config + + + id, + + + imei, + + + typeName, + + + deviceType, + + + collectionGap, + + + sendingGap, + + + urlAddress, + + + port, + + + unipathThresholdLimit, + + + unipathThresholdUpper, + + + unipathChangeThreshold, + + + multipleThresholdLimit, + + + multipleThresholdUpper, + + + multipleChangeThreshold, + + + controlValveState, + + + startTime, + + + endTime, + + + numDays, + + + switchingValue, + + + stopReporting, + + + softwareVersions, + + + hardwareVersions, + + + IMSI, + + + APN, + + + time, + + + autoControlPolicy, + + + autoControlTime, + + + selfCheckTime, + + + collide, + + + lean, + + + lora_frequency, + + + lora_bandwidth, + + + lora_spreading, + + + lora_encoding_rate, + + + netType, + + + + + #{id,jdbcType=BIGINT}, + + + #{imei,jdbcType=VARCHAR}, + + + #{typename,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{collectiongap,jdbcType=INTEGER}, + + + #{sendinggap,jdbcType=INTEGER}, + + + #{urladdress,jdbcType=VARCHAR}, + + + #{port,jdbcType=VARCHAR}, + + + #{unipaththresholdlimit,jdbcType=INTEGER}, + + + #{unipaththresholdupper,jdbcType=INTEGER}, + + + #{unipathchangethreshold,jdbcType=INTEGER}, + + + #{multiplethresholdlimit,jdbcType=INTEGER}, + + + #{multiplethresholdupper,jdbcType=INTEGER}, + + + #{multiplechangethreshold,jdbcType=INTEGER}, + + + #{controlvalvestate,jdbcType=INTEGER}, + + + #{starttime,jdbcType=VARCHAR}, + + + #{endtime,jdbcType=VARCHAR}, + + + #{numdays,jdbcType=INTEGER}, + + + #{switchingvalue,jdbcType=INTEGER}, + + + #{stopreporting,jdbcType=INTEGER}, + + + #{softwareversions,jdbcType=VARCHAR}, + + + #{hardwareversions,jdbcType=VARCHAR}, + + + #{imsi,jdbcType=VARCHAR}, + + + #{apn,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{autocontrolpolicy,jdbcType=VARCHAR}, + + + #{autocontroltime,jdbcType=VARCHAR}, + + + #{selfchecktime,jdbcType=VARCHAR}, + + + #{collide,jdbcType=INTEGER}, + + + #{lean,jdbcType=INTEGER}, + + + #{loraFrequency,jdbcType=INTEGER}, + + + #{loraBandwidth,jdbcType=INTEGER}, + + + #{loraSpreading,jdbcType=INTEGER}, + + + #{loraEncodingRate,jdbcType=INTEGER}, + + + #{nettype,jdbcType=INTEGER}, + + + + + + update nbiot_config + + + id = #{record.id,jdbcType=BIGINT}, + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + typeName = #{record.typename,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + collectionGap = #{record.collectiongap,jdbcType=INTEGER}, + + + sendingGap = #{record.sendinggap,jdbcType=INTEGER}, + + + urlAddress = #{record.urladdress,jdbcType=VARCHAR}, + + + port = #{record.port,jdbcType=VARCHAR}, + + + unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, + + + unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, + + + unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, + + + multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, + + + multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, + + + multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, + + + controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, + + + startTime = #{record.starttime,jdbcType=VARCHAR}, + + + endTime = #{record.endtime,jdbcType=VARCHAR}, + + + numDays = #{record.numdays,jdbcType=INTEGER}, + + + switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, + + + stopReporting = #{record.stopreporting,jdbcType=INTEGER}, + + + softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, + + + hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, + + + IMSI = #{record.imsi,jdbcType=VARCHAR}, + + + APN = #{record.apn,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, + + + autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, + + + selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, + + + collide = #{record.collide,jdbcType=INTEGER}, + + + lean = #{record.lean,jdbcType=INTEGER}, + + + lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, + + + lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, + + + lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, + + + lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, + + + netType = #{record.nettype,jdbcType=INTEGER}, + + + + + + + + update nbiot_config + set id = #{record.id,jdbcType=BIGINT}, + imei = #{record.imei,jdbcType=VARCHAR}, + typeName = #{record.typename,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + collectionGap = #{record.collectiongap,jdbcType=INTEGER}, + sendingGap = #{record.sendinggap,jdbcType=INTEGER}, + urlAddress = #{record.urladdress,jdbcType=VARCHAR}, + port = #{record.port,jdbcType=VARCHAR}, + unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, + unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, + unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, + multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, + multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, + multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, + controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, + startTime = #{record.starttime,jdbcType=VARCHAR}, + endTime = #{record.endtime,jdbcType=VARCHAR}, + numDays = #{record.numdays,jdbcType=INTEGER}, + switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, + stopReporting = #{record.stopreporting,jdbcType=INTEGER}, + softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, + hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, + IMSI = #{record.imsi,jdbcType=VARCHAR}, + APN = #{record.apn,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, + autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, + selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, + collide = #{record.collide,jdbcType=INTEGER}, + lean = #{record.lean,jdbcType=INTEGER}, + lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, + lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, + lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, + lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, + netType = #{record.nettype,jdbcType=INTEGER} + + + + + + + insert into nbiot_config + (id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, + unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, + multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, + stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, + autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, + lora_spreading, lora_encoding_rate, netType) + values + + (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.typename,jdbcType=VARCHAR}, + #{item.devicetype,jdbcType=INTEGER}, #{item.collectiongap,jdbcType=INTEGER}, #{item.sendinggap,jdbcType=INTEGER}, + #{item.urladdress,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, #{item.unipaththresholdlimit,jdbcType=INTEGER}, + #{item.unipaththresholdupper,jdbcType=INTEGER}, #{item.unipathchangethreshold,jdbcType=INTEGER}, + #{item.multiplethresholdlimit,jdbcType=INTEGER}, #{item.multiplethresholdupper,jdbcType=INTEGER}, + #{item.multiplechangethreshold,jdbcType=INTEGER}, #{item.controlvalvestate,jdbcType=INTEGER}, + #{item.starttime,jdbcType=VARCHAR}, #{item.endtime,jdbcType=VARCHAR}, #{item.numdays,jdbcType=INTEGER}, + #{item.switchingvalue,jdbcType=INTEGER}, #{item.stopreporting,jdbcType=INTEGER}, + #{item.softwareversions,jdbcType=VARCHAR}, #{item.hardwareversions,jdbcType=VARCHAR}, + #{item.imsi,jdbcType=VARCHAR}, #{item.apn,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, + #{item.autocontrolpolicy,jdbcType=VARCHAR}, #{item.autocontroltime,jdbcType=VARCHAR}, + #{item.selfchecktime,jdbcType=VARCHAR}, #{item.collide,jdbcType=INTEGER}, #{item.lean,jdbcType=INTEGER}, + #{item.loraFrequency,jdbcType=INTEGER}, #{item.loraBandwidth,jdbcType=INTEGER}, + #{item.loraSpreading,jdbcType=INTEGER}, #{item.loraEncodingRate,jdbcType=INTEGER}, + #{item.nettype,jdbcType=INTEGER}) + + + + + insert into nbiot_config ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=BIGINT} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.typename,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.collectiongap,jdbcType=INTEGER} + + + #{item.sendinggap,jdbcType=INTEGER} + + + #{item.urladdress,jdbcType=VARCHAR} + + + #{item.port,jdbcType=VARCHAR} + + + #{item.unipaththresholdlimit,jdbcType=INTEGER} + + + #{item.unipaththresholdupper,jdbcType=INTEGER} + + + #{item.unipathchangethreshold,jdbcType=INTEGER} + + + #{item.multiplethresholdlimit,jdbcType=INTEGER} + + + #{item.multiplethresholdupper,jdbcType=INTEGER} + + + #{item.multiplechangethreshold,jdbcType=INTEGER} + + + #{item.controlvalvestate,jdbcType=INTEGER} + + + #{item.starttime,jdbcType=VARCHAR} + + + #{item.endtime,jdbcType=VARCHAR} + + + #{item.numdays,jdbcType=INTEGER} + + + #{item.switchingvalue,jdbcType=INTEGER} + + + #{item.stopreporting,jdbcType=INTEGER} + + + #{item.softwareversions,jdbcType=VARCHAR} + + + #{item.hardwareversions,jdbcType=VARCHAR} + + + #{item.imsi,jdbcType=VARCHAR} + + + #{item.apn,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.autocontrolpolicy,jdbcType=VARCHAR} + + + #{item.autocontroltime,jdbcType=VARCHAR} + + + #{item.selfchecktime,jdbcType=VARCHAR} + + + #{item.collide,jdbcType=INTEGER} + + + #{item.lean,jdbcType=INTEGER} + + + #{item.loraFrequency,jdbcType=INTEGER} + + + #{item.loraBandwidth,jdbcType=INTEGER} + + + #{item.loraSpreading,jdbcType=INTEGER} + + + #{item.loraEncodingRate,jdbcType=INTEGER} + + + #{item.nettype,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java b/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java new file mode 100644 index 0000000..9e9b4c2 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OcCompany; +import com.topsail.influxdb.pojo.OcCompanyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OcCompanyMapper { + long countByExample(OcCompanyExample example); + + int deleteByExample(OcCompanyExample example); + + int insert(OcCompany record); + + int insertSelective(OcCompany record); + + List selectByExample(OcCompanyExample example); + + int updateByExampleSelective(@Param("record") OcCompany record, @Param("example") OcCompanyExample example); + + int updateByExample(@Param("record") OcCompany record, @Param("example") OcCompanyExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OcCompany.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml new file mode 100644 index 0000000..70d07bf --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml @@ -0,0 +1,285 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, username, userip, userport, userprot, period, phoneNum, cid, cperiod + + + + delete from oc_company + + + + + + insert into oc_company (id, username, userip, + userport, userprot, period, + phoneNum, cid, cperiod + ) + values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{userip,jdbcType=VARCHAR}, + #{userport,jdbcType=INTEGER}, #{userprot,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, + #{phonenum,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{cperiod,jdbcType=VARCHAR} + ) + + + insert into oc_company + + + id, + + + username, + + + userip, + + + userport, + + + userprot, + + + period, + + + phoneNum, + + + cid, + + + cperiod, + + + + + #{id,jdbcType=INTEGER}, + + + #{username,jdbcType=VARCHAR}, + + + #{userip,jdbcType=VARCHAR}, + + + #{userport,jdbcType=INTEGER}, + + + #{userprot,jdbcType=VARCHAR}, + + + #{period,jdbcType=VARCHAR}, + + + #{phonenum,jdbcType=VARCHAR}, + + + #{cid,jdbcType=INTEGER}, + + + #{cperiod,jdbcType=VARCHAR}, + + + + + + update oc_company + + + id = #{record.id,jdbcType=INTEGER}, + + + username = #{record.username,jdbcType=VARCHAR}, + + + userip = #{record.userip,jdbcType=VARCHAR}, + + + userport = #{record.userport,jdbcType=INTEGER}, + + + userprot = #{record.userprot,jdbcType=VARCHAR}, + + + period = #{record.period,jdbcType=VARCHAR}, + + + phoneNum = #{record.phonenum,jdbcType=VARCHAR}, + + + cid = #{record.cid,jdbcType=INTEGER}, + + + cperiod = #{record.cperiod,jdbcType=VARCHAR}, + + + + + + + + update oc_company + set id = #{record.id,jdbcType=INTEGER}, + username = #{record.username,jdbcType=VARCHAR}, + userip = #{record.userip,jdbcType=VARCHAR}, + userport = #{record.userport,jdbcType=INTEGER}, + userprot = #{record.userprot,jdbcType=VARCHAR}, + period = #{record.period,jdbcType=VARCHAR}, + phoneNum = #{record.phonenum,jdbcType=VARCHAR}, + cid = #{record.cid,jdbcType=INTEGER}, + cperiod = #{record.cperiod,jdbcType=VARCHAR} + + + + + + + insert into oc_company + (id, username, userip, userport, userprot, period, phoneNum, cid, cperiod) + values + + (#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.userip,jdbcType=VARCHAR}, + #{item.userport,jdbcType=INTEGER}, #{item.userprot,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, + #{item.phonenum,jdbcType=VARCHAR}, #{item.cid,jdbcType=INTEGER}, #{item.cperiod,jdbcType=VARCHAR} + ) + + + + + insert into oc_company ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.userip,jdbcType=VARCHAR} + + + #{item.userport,jdbcType=INTEGER} + + + #{item.userprot,jdbcType=VARCHAR} + + + #{item.period,jdbcType=VARCHAR} + + + #{item.phonenum,jdbcType=VARCHAR} + + + #{item.cid,jdbcType=INTEGER} + + + #{item.cperiod,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java b/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java new file mode 100644 index 0000000..b7f713b --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OcConfig; +import com.topsail.influxdb.pojo.OcConfigExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OcConfigMapper { + long countByExample(OcConfigExample example); + + int deleteByExample(OcConfigExample example); + + int insert(OcConfig record); + + int insertSelective(OcConfig record); + + List selectByExample(OcConfigExample example); + + int updateByExampleSelective(@Param("record") OcConfig record, @Param("example") OcConfigExample example); + + int updateByExample(@Param("record") OcConfig record, @Param("example") OcConfigExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OcConfig.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml new file mode 100644 index 0000000..81c0cd8 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml @@ -0,0 +1,688 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, + unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, + multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, + stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, + autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, lora_spreading, + lora_encoding_rate, cimei + + + + delete from oc_config + + + + + + insert into oc_config (id, imei, typeName, + deviceType, collectionGap, sendingGap, + urlAddress, port, unipathThresholdLimit, + unipathThresholdUpper, unipathChangeThreshold, + multipleThresholdLimit, multipleThresholdUpper, + multipleChangeThreshold, controlValveState, + startTime, endTime, numDays, + switchingValue, stopReporting, softwareVersions, + hardwareVersions, IMSI, APN, + time, autoControlPolicy, autoControlTime, + selfCheckTime, collide, lean, + lora_frequency, lora_bandwidth, lora_spreading, + lora_encoding_rate, cimei) + values (#{id,jdbcType=BIGINT}, #{imei,jdbcType=VARCHAR}, #{typename,jdbcType=VARCHAR}, + #{devicetype,jdbcType=INTEGER}, #{collectiongap,jdbcType=INTEGER}, #{sendinggap,jdbcType=INTEGER}, + #{urladdress,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{unipaththresholdlimit,jdbcType=INTEGER}, + #{unipaththresholdupper,jdbcType=INTEGER}, #{unipathchangethreshold,jdbcType=INTEGER}, + #{multiplethresholdlimit,jdbcType=INTEGER}, #{multiplethresholdupper,jdbcType=INTEGER}, + #{multiplechangethreshold,jdbcType=INTEGER}, #{controlvalvestate,jdbcType=INTEGER}, + #{starttime,jdbcType=VARCHAR}, #{endtime,jdbcType=VARCHAR}, #{numdays,jdbcType=INTEGER}, + #{switchingvalue,jdbcType=INTEGER}, #{stopreporting,jdbcType=INTEGER}, #{softwareversions,jdbcType=VARCHAR}, + #{hardwareversions,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR}, #{apn,jdbcType=VARCHAR}, + #{time,jdbcType=TIMESTAMP}, #{autocontrolpolicy,jdbcType=VARCHAR}, #{autocontroltime,jdbcType=VARCHAR}, + #{selfchecktime,jdbcType=VARCHAR}, #{collide,jdbcType=INTEGER}, #{lean,jdbcType=INTEGER}, + #{loraFrequency,jdbcType=INTEGER}, #{loraBandwidth,jdbcType=INTEGER}, #{loraSpreading,jdbcType=INTEGER}, + #{loraEncodingRate,jdbcType=INTEGER}, #{cimei,jdbcType=VARCHAR}) + + + insert into oc_config + + + id, + + + imei, + + + typeName, + + + deviceType, + + + collectionGap, + + + sendingGap, + + + urlAddress, + + + port, + + + unipathThresholdLimit, + + + unipathThresholdUpper, + + + unipathChangeThreshold, + + + multipleThresholdLimit, + + + multipleThresholdUpper, + + + multipleChangeThreshold, + + + controlValveState, + + + startTime, + + + endTime, + + + numDays, + + + switchingValue, + + + stopReporting, + + + softwareVersions, + + + hardwareVersions, + + + IMSI, + + + APN, + + + time, + + + autoControlPolicy, + + + autoControlTime, + + + selfCheckTime, + + + collide, + + + lean, + + + lora_frequency, + + + lora_bandwidth, + + + lora_spreading, + + + lora_encoding_rate, + + + cimei, + + + + + #{id,jdbcType=BIGINT}, + + + #{imei,jdbcType=VARCHAR}, + + + #{typename,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=INTEGER}, + + + #{collectiongap,jdbcType=INTEGER}, + + + #{sendinggap,jdbcType=INTEGER}, + + + #{urladdress,jdbcType=VARCHAR}, + + + #{port,jdbcType=VARCHAR}, + + + #{unipaththresholdlimit,jdbcType=INTEGER}, + + + #{unipaththresholdupper,jdbcType=INTEGER}, + + + #{unipathchangethreshold,jdbcType=INTEGER}, + + + #{multiplethresholdlimit,jdbcType=INTEGER}, + + + #{multiplethresholdupper,jdbcType=INTEGER}, + + + #{multiplechangethreshold,jdbcType=INTEGER}, + + + #{controlvalvestate,jdbcType=INTEGER}, + + + #{starttime,jdbcType=VARCHAR}, + + + #{endtime,jdbcType=VARCHAR}, + + + #{numdays,jdbcType=INTEGER}, + + + #{switchingvalue,jdbcType=INTEGER}, + + + #{stopreporting,jdbcType=INTEGER}, + + + #{softwareversions,jdbcType=VARCHAR}, + + + #{hardwareversions,jdbcType=VARCHAR}, + + + #{imsi,jdbcType=VARCHAR}, + + + #{apn,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{autocontrolpolicy,jdbcType=VARCHAR}, + + + #{autocontroltime,jdbcType=VARCHAR}, + + + #{selfchecktime,jdbcType=VARCHAR}, + + + #{collide,jdbcType=INTEGER}, + + + #{lean,jdbcType=INTEGER}, + + + #{loraFrequency,jdbcType=INTEGER}, + + + #{loraBandwidth,jdbcType=INTEGER}, + + + #{loraSpreading,jdbcType=INTEGER}, + + + #{loraEncodingRate,jdbcType=INTEGER}, + + + #{cimei,jdbcType=VARCHAR}, + + + + + + update oc_config + + + id = #{record.id,jdbcType=BIGINT}, + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + typeName = #{record.typename,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=INTEGER}, + + + collectionGap = #{record.collectiongap,jdbcType=INTEGER}, + + + sendingGap = #{record.sendinggap,jdbcType=INTEGER}, + + + urlAddress = #{record.urladdress,jdbcType=VARCHAR}, + + + port = #{record.port,jdbcType=VARCHAR}, + + + unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, + + + unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, + + + unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, + + + multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, + + + multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, + + + multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, + + + controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, + + + startTime = #{record.starttime,jdbcType=VARCHAR}, + + + endTime = #{record.endtime,jdbcType=VARCHAR}, + + + numDays = #{record.numdays,jdbcType=INTEGER}, + + + switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, + + + stopReporting = #{record.stopreporting,jdbcType=INTEGER}, + + + softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, + + + hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, + + + IMSI = #{record.imsi,jdbcType=VARCHAR}, + + + APN = #{record.apn,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, + + + autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, + + + selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, + + + collide = #{record.collide,jdbcType=INTEGER}, + + + lean = #{record.lean,jdbcType=INTEGER}, + + + lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, + + + lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, + + + lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, + + + lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, + + + cimei = #{record.cimei,jdbcType=VARCHAR}, + + + + + + + + update oc_config + set id = #{record.id,jdbcType=BIGINT}, + imei = #{record.imei,jdbcType=VARCHAR}, + typeName = #{record.typename,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=INTEGER}, + collectionGap = #{record.collectiongap,jdbcType=INTEGER}, + sendingGap = #{record.sendinggap,jdbcType=INTEGER}, + urlAddress = #{record.urladdress,jdbcType=VARCHAR}, + port = #{record.port,jdbcType=VARCHAR}, + unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, + unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, + unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, + multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, + multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, + multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, + controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, + startTime = #{record.starttime,jdbcType=VARCHAR}, + endTime = #{record.endtime,jdbcType=VARCHAR}, + numDays = #{record.numdays,jdbcType=INTEGER}, + switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, + stopReporting = #{record.stopreporting,jdbcType=INTEGER}, + softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, + hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, + IMSI = #{record.imsi,jdbcType=VARCHAR}, + APN = #{record.apn,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, + autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, + selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, + collide = #{record.collide,jdbcType=INTEGER}, + lean = #{record.lean,jdbcType=INTEGER}, + lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, + lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, + lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, + lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, + cimei = #{record.cimei,jdbcType=VARCHAR} + + + + + + + insert into oc_config + (id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, + unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, + multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, + stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, + autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, + lora_spreading, lora_encoding_rate, cimei) + values + + (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.typename,jdbcType=VARCHAR}, + #{item.devicetype,jdbcType=INTEGER}, #{item.collectiongap,jdbcType=INTEGER}, #{item.sendinggap,jdbcType=INTEGER}, + #{item.urladdress,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, #{item.unipaththresholdlimit,jdbcType=INTEGER}, + #{item.unipaththresholdupper,jdbcType=INTEGER}, #{item.unipathchangethreshold,jdbcType=INTEGER}, + #{item.multiplethresholdlimit,jdbcType=INTEGER}, #{item.multiplethresholdupper,jdbcType=INTEGER}, + #{item.multiplechangethreshold,jdbcType=INTEGER}, #{item.controlvalvestate,jdbcType=INTEGER}, + #{item.starttime,jdbcType=VARCHAR}, #{item.endtime,jdbcType=VARCHAR}, #{item.numdays,jdbcType=INTEGER}, + #{item.switchingvalue,jdbcType=INTEGER}, #{item.stopreporting,jdbcType=INTEGER}, + #{item.softwareversions,jdbcType=VARCHAR}, #{item.hardwareversions,jdbcType=VARCHAR}, + #{item.imsi,jdbcType=VARCHAR}, #{item.apn,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, + #{item.autocontrolpolicy,jdbcType=VARCHAR}, #{item.autocontroltime,jdbcType=VARCHAR}, + #{item.selfchecktime,jdbcType=VARCHAR}, #{item.collide,jdbcType=INTEGER}, #{item.lean,jdbcType=INTEGER}, + #{item.loraFrequency,jdbcType=INTEGER}, #{item.loraBandwidth,jdbcType=INTEGER}, + #{item.loraSpreading,jdbcType=INTEGER}, #{item.loraEncodingRate,jdbcType=INTEGER}, + #{item.cimei,jdbcType=VARCHAR}) + + + + + insert into oc_config ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=BIGINT} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.typename,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=INTEGER} + + + #{item.collectiongap,jdbcType=INTEGER} + + + #{item.sendinggap,jdbcType=INTEGER} + + + #{item.urladdress,jdbcType=VARCHAR} + + + #{item.port,jdbcType=VARCHAR} + + + #{item.unipaththresholdlimit,jdbcType=INTEGER} + + + #{item.unipaththresholdupper,jdbcType=INTEGER} + + + #{item.unipathchangethreshold,jdbcType=INTEGER} + + + #{item.multiplethresholdlimit,jdbcType=INTEGER} + + + #{item.multiplethresholdupper,jdbcType=INTEGER} + + + #{item.multiplechangethreshold,jdbcType=INTEGER} + + + #{item.controlvalvestate,jdbcType=INTEGER} + + + #{item.starttime,jdbcType=VARCHAR} + + + #{item.endtime,jdbcType=VARCHAR} + + + #{item.numdays,jdbcType=INTEGER} + + + #{item.switchingvalue,jdbcType=INTEGER} + + + #{item.stopreporting,jdbcType=INTEGER} + + + #{item.softwareversions,jdbcType=VARCHAR} + + + #{item.hardwareversions,jdbcType=VARCHAR} + + + #{item.imsi,jdbcType=VARCHAR} + + + #{item.apn,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.autocontrolpolicy,jdbcType=VARCHAR} + + + #{item.autocontroltime,jdbcType=VARCHAR} + + + #{item.selfchecktime,jdbcType=VARCHAR} + + + #{item.collide,jdbcType=INTEGER} + + + #{item.lean,jdbcType=INTEGER} + + + #{item.loraFrequency,jdbcType=INTEGER} + + + #{item.loraBandwidth,jdbcType=INTEGER} + + + #{item.loraSpreading,jdbcType=INTEGER} + + + #{item.loraEncodingRate,jdbcType=INTEGER} + + + #{item.cimei,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java new file mode 100644 index 0000000..919ed5f --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java @@ -0,0 +1,44 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OcDevice; +import com.topsail.influxdb.pojo.OcDeviceExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OcDeviceMapper { + long countByExample(OcDeviceExample example); + + int deleteByExample(OcDeviceExample example); + + int insert(OcDevice record); + + int insertSelective(OcDevice record); + + List selectByExampleWithBLOBs(OcDeviceExample example); + + List selectByExample(OcDeviceExample example); + + int updateByExampleSelective(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); + + int updateByExampleWithBLOBs(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); + + int updateByExample(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OcDevice.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml new file mode 100644 index 0000000..41acec8 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml @@ -0,0 +1,385 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, period, + imei, dperiod, company_id + + + deviceId + + + + + delete from oc_device + + + + + + insert into oc_device (id, verifyCode, deviceType, + userName, latitude, longitude, + version, fk_pid, period, + imei, dperiod, company_id, + deviceId) + values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{devicetype,jdbcType=VARCHAR}, + #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, + #{version,jdbcType=VARCHAR}, #{fkPid,jdbcType=INTEGER}, #{period,jdbcType=VARCHAR}, + #{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, + #{deviceid,jdbcType=LONGVARCHAR}) + + + insert into oc_device + + + id, + + + verifyCode, + + + deviceType, + + + userName, + + + latitude, + + + longitude, + + + version, + + + fk_pid, + + + period, + + + imei, + + + dperiod, + + + company_id, + + + deviceId, + + + + + #{id,jdbcType=INTEGER}, + + + #{verifycode,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{latitude,jdbcType=VARCHAR}, + + + #{longitude,jdbcType=VARCHAR}, + + + #{version,jdbcType=VARCHAR}, + + + #{fkPid,jdbcType=INTEGER}, + + + #{period,jdbcType=VARCHAR}, + + + #{imei,jdbcType=VARCHAR}, + + + #{dperiod,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + #{deviceid,jdbcType=LONGVARCHAR}, + + + + + + update oc_device + + + id = #{record.id,jdbcType=INTEGER}, + + + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + latitude = #{record.latitude,jdbcType=VARCHAR}, + + + longitude = #{record.longitude,jdbcType=VARCHAR}, + + + version = #{record.version,jdbcType=VARCHAR}, + + + fk_pid = #{record.fkPid,jdbcType=INTEGER}, + + + period = #{record.period,jdbcType=VARCHAR}, + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + dperiod = #{record.dperiod,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + deviceId = #{record.deviceid,jdbcType=LONGVARCHAR}, + + + + + + + + update oc_device + set id = #{record.id,jdbcType=INTEGER}, + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + latitude = #{record.latitude,jdbcType=VARCHAR}, + longitude = #{record.longitude,jdbcType=VARCHAR}, + version = #{record.version,jdbcType=VARCHAR}, + fk_pid = #{record.fkPid,jdbcType=INTEGER}, + period = #{record.period,jdbcType=VARCHAR}, + imei = #{record.imei,jdbcType=VARCHAR}, + dperiod = #{record.dperiod,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER}, + deviceId = #{record.deviceid,jdbcType=LONGVARCHAR} + + + + + + update oc_device + set id = #{record.id,jdbcType=INTEGER}, + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + latitude = #{record.latitude,jdbcType=VARCHAR}, + longitude = #{record.longitude,jdbcType=VARCHAR}, + version = #{record.version,jdbcType=VARCHAR}, + fk_pid = #{record.fkPid,jdbcType=INTEGER}, + period = #{record.period,jdbcType=VARCHAR}, + imei = #{record.imei,jdbcType=VARCHAR}, + dperiod = #{record.dperiod,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER} + + + + + + + insert into oc_device + (id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, period, + imei, dperiod, company_id, deviceId) + values + + (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=VARCHAR}, + #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, + #{item.version,jdbcType=VARCHAR}, #{item.fkPid,jdbcType=INTEGER}, #{item.period,jdbcType=VARCHAR}, + #{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, + #{item.deviceid,jdbcType=LONGVARCHAR}) + + + + + insert into oc_device ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.verifycode,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.latitude,jdbcType=VARCHAR} + + + #{item.longitude,jdbcType=VARCHAR} + + + #{item.version,jdbcType=VARCHAR} + + + #{item.fkPid,jdbcType=INTEGER} + + + #{item.period,jdbcType=VARCHAR} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.dperiod,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.deviceid,jdbcType=LONGVARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java new file mode 100644 index 0000000..a3b4572 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OnenetCompany; +import com.topsail.influxdb.pojo.OnenetCompanyExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OnenetCompanyMapper { + long countByExample(OnenetCompanyExample example); + + int deleteByExample(OnenetCompanyExample example); + + int insert(OnenetCompany record); + + int insertSelective(OnenetCompany record); + + List selectByExample(OnenetCompanyExample example); + + int updateByExampleSelective(@Param("record") OnenetCompany record, @Param("example") OnenetCompanyExample example); + + int updateByExample(@Param("record") OnenetCompany record, @Param("example") OnenetCompanyExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OnenetCompany.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml new file mode 100644 index 0000000..1010854 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml @@ -0,0 +1,254 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, username, userip, userport, userprot, period, cperiod + + + + delete from onenet_company + + + + + + insert into onenet_company (id, username, userip, + userport, userprot, period, + cperiod) + values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{userip,jdbcType=VARCHAR}, + #{userport,jdbcType=INTEGER}, #{userprot,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, + #{cperiod,jdbcType=VARCHAR}) + + + insert into onenet_company + + + id, + + + username, + + + userip, + + + userport, + + + userprot, + + + period, + + + cperiod, + + + + + #{id,jdbcType=INTEGER}, + + + #{username,jdbcType=VARCHAR}, + + + #{userip,jdbcType=VARCHAR}, + + + #{userport,jdbcType=INTEGER}, + + + #{userprot,jdbcType=VARCHAR}, + + + #{period,jdbcType=VARCHAR}, + + + #{cperiod,jdbcType=VARCHAR}, + + + + + + update onenet_company + + + id = #{record.id,jdbcType=INTEGER}, + + + username = #{record.username,jdbcType=VARCHAR}, + + + userip = #{record.userip,jdbcType=VARCHAR}, + + + userport = #{record.userport,jdbcType=INTEGER}, + + + userprot = #{record.userprot,jdbcType=VARCHAR}, + + + period = #{record.period,jdbcType=VARCHAR}, + + + cperiod = #{record.cperiod,jdbcType=VARCHAR}, + + + + + + + + update onenet_company + set id = #{record.id,jdbcType=INTEGER}, + username = #{record.username,jdbcType=VARCHAR}, + userip = #{record.userip,jdbcType=VARCHAR}, + userport = #{record.userport,jdbcType=INTEGER}, + userprot = #{record.userprot,jdbcType=VARCHAR}, + period = #{record.period,jdbcType=VARCHAR}, + cperiod = #{record.cperiod,jdbcType=VARCHAR} + + + + + + + insert into onenet_company + (id, username, userip, userport, userprot, period, cperiod) + values + + (#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.userip,jdbcType=VARCHAR}, + #{item.userport,jdbcType=INTEGER}, #{item.userprot,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, + #{item.cperiod,jdbcType=VARCHAR}) + + + + + insert into onenet_company ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.userip,jdbcType=VARCHAR} + + + #{item.userport,jdbcType=INTEGER} + + + #{item.userprot,jdbcType=VARCHAR} + + + #{item.period,jdbcType=VARCHAR} + + + #{item.cperiod,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java new file mode 100644 index 0000000..8e88233 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OnenetDevice; +import com.topsail.influxdb.pojo.OnenetDeviceExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OnenetDeviceMapper { + long countByExample(OnenetDeviceExample example); + + int deleteByExample(OnenetDeviceExample example); + + int insert(OnenetDevice record); + + int insertSelective(OnenetDevice record); + + List selectByExample(OnenetDeviceExample example); + + int updateByExampleSelective(@Param("record") OnenetDevice record, @Param("example") OnenetDeviceExample example); + + int updateByExample(@Param("record") OnenetDevice record, @Param("example") OnenetDeviceExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OnenetDevice.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml new file mode 100644 index 0000000..f59d7ae --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml @@ -0,0 +1,332 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period, + imei, dperiod, company_id + + + + delete from onenet_device + + + + + + insert into onenet_device (id, verifyCode, deviceId, + deviceType, userName, latitude, + longitude, type, period, + imei, dperiod, company_id + ) + values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR}, + #{devicetype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE}, + #{longitude,jdbcType=DOUBLE}, #{type,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, + #{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER} + ) + + + insert into onenet_device + + + id, + + + verifyCode, + + + deviceId, + + + deviceType, + + + userName, + + + latitude, + + + longitude, + + + type, + + + period, + + + imei, + + + dperiod, + + + company_id, + + + + + #{id,jdbcType=INTEGER}, + + + #{verifycode,jdbcType=VARCHAR}, + + + #{deviceid,jdbcType=VARCHAR}, + + + #{devicetype,jdbcType=VARCHAR}, + + + #{username,jdbcType=VARCHAR}, + + + #{latitude,jdbcType=DOUBLE}, + + + #{longitude,jdbcType=DOUBLE}, + + + #{type,jdbcType=VARCHAR}, + + + #{period,jdbcType=VARCHAR}, + + + #{imei,jdbcType=VARCHAR}, + + + #{dperiod,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + + + + update onenet_device + + + id = #{record.id,jdbcType=INTEGER}, + + + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + + + deviceId = #{record.deviceid,jdbcType=VARCHAR}, + + + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + latitude = #{record.latitude,jdbcType=DOUBLE}, + + + longitude = #{record.longitude,jdbcType=DOUBLE}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + period = #{record.period,jdbcType=VARCHAR}, + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + dperiod = #{record.dperiod,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + + + + + + update onenet_device + set id = #{record.id,jdbcType=INTEGER}, + verifyCode = #{record.verifycode,jdbcType=VARCHAR}, + deviceId = #{record.deviceid,jdbcType=VARCHAR}, + deviceType = #{record.devicetype,jdbcType=VARCHAR}, + userName = #{record.username,jdbcType=VARCHAR}, + latitude = #{record.latitude,jdbcType=DOUBLE}, + longitude = #{record.longitude,jdbcType=DOUBLE}, + type = #{record.type,jdbcType=VARCHAR}, + period = #{record.period,jdbcType=VARCHAR}, + imei = #{record.imei,jdbcType=VARCHAR}, + dperiod = #{record.dperiod,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER} + + + + + + + insert into onenet_device + (id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period, + imei, dperiod, company_id) + values + + (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.deviceid,jdbcType=VARCHAR}, + #{item.devicetype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=DOUBLE}, + #{item.longitude,jdbcType=DOUBLE}, #{item.type,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, + #{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER} + ) + + + + + insert into onenet_device ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.verifycode,jdbcType=VARCHAR} + + + #{item.deviceid,jdbcType=VARCHAR} + + + #{item.devicetype,jdbcType=VARCHAR} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.latitude,jdbcType=DOUBLE} + + + #{item.longitude,jdbcType=DOUBLE} + + + #{item.type,jdbcType=VARCHAR} + + + #{item.period,jdbcType=VARCHAR} + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.dperiod,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java new file mode 100644 index 0000000..48b4e60 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OnlineProject; +import com.topsail.influxdb.pojo.OnlineProjectExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OnlineProjectMapper { + long countByExample(OnlineProjectExample example); + + int deleteByExample(OnlineProjectExample example); + + int insert(OnlineProject record); + + int insertSelective(OnlineProject record); + + List selectByExample(OnlineProjectExample example); + + int updateByExampleSelective(@Param("record") OnlineProject record, @Param("example") OnlineProjectExample example); + + int updateByExample(@Param("record") OnlineProject record, @Param("example") OnlineProjectExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OnlineProject.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml new file mode 100644 index 0000000..610f4dd --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml @@ -0,0 +1,209 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + num, project_id, company_id, STATUS + + + + delete from online_project + + + + + + insert into online_project (num, project_id, company_id, + STATUS) + values (#{num,jdbcType=BIGINT}, #{projectId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, + #{status,jdbcType=INTEGER}) + + + insert into online_project + + + num, + + + project_id, + + + company_id, + + + STATUS, + + + + + #{num,jdbcType=BIGINT}, + + + #{projectId,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + #{status,jdbcType=INTEGER}, + + + + + + update online_project + + + num = #{record.num,jdbcType=BIGINT}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + STATUS = #{record.status,jdbcType=INTEGER}, + + + + + + + + update online_project + set num = #{record.num,jdbcType=BIGINT}, + project_id = #{record.projectId,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER}, + STATUS = #{record.status,jdbcType=INTEGER} + + + + + + + insert into online_project + (num, project_id, company_id, STATUS) + values + + (#{item.num,jdbcType=BIGINT}, #{item.projectId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, + #{item.status,jdbcType=INTEGER}) + + + + + insert into online_project ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.num,jdbcType=BIGINT} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.status,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java new file mode 100644 index 0000000..e6a2073 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OnlineRate; +import com.topsail.influxdb.pojo.OnlineRateExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OnlineRateMapper { + long countByExample(OnlineRateExample example); + + int deleteByExample(OnlineRateExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(OnlineRate record); + + int insertSelective(OnlineRate record); + + List selectByExample(OnlineRateExample example); + + OnlineRate selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") OnlineRate record, @Param("example") OnlineRateExample example); + + int updateByExample(@Param("record") OnlineRate record, @Param("example") OnlineRateExample example); + + int updateByPrimaryKeySelective(OnlineRate record); + + int updateByPrimaryKey(OnlineRate record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OnlineRate.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml new file mode 100644 index 0000000..886667b --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, online, count, per, platformType, time, userName, project_id, company_id + + + + + delete from online_rate + where id = #{id,jdbcType=INTEGER} + + + delete from online_rate + + + + + + insert into online_rate (id, online, count, + per, platformType, time, + userName, project_id, company_id + ) + values (#{id,jdbcType=INTEGER}, #{online,jdbcType=INTEGER}, #{count,jdbcType=INTEGER}, + #{per,jdbcType=DOUBLE}, #{platformtype,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, + #{username,jdbcType=VARCHAR}, #{projectId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER} + ) + + + insert into online_rate + + + id, + + + online, + + + count, + + + per, + + + platformType, + + + time, + + + userName, + + + project_id, + + + company_id, + + + + + #{id,jdbcType=INTEGER}, + + + #{online,jdbcType=INTEGER}, + + + #{count,jdbcType=INTEGER}, + + + #{per,jdbcType=DOUBLE}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{username,jdbcType=VARCHAR}, + + + #{projectId,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + + + + update online_rate + + + id = #{record.id,jdbcType=INTEGER}, + + + online = #{record.online,jdbcType=INTEGER}, + + + count = #{record.count,jdbcType=INTEGER}, + + + per = #{record.per,jdbcType=DOUBLE}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + userName = #{record.username,jdbcType=VARCHAR}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + + + + + + update online_rate + set id = #{record.id,jdbcType=INTEGER}, + online = #{record.online,jdbcType=INTEGER}, + count = #{record.count,jdbcType=INTEGER}, + per = #{record.per,jdbcType=DOUBLE}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + userName = #{record.username,jdbcType=VARCHAR}, + project_id = #{record.projectId,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER} + + + + + + update online_rate + + + online = #{online,jdbcType=INTEGER}, + + + count = #{count,jdbcType=INTEGER}, + + + per = #{per,jdbcType=DOUBLE}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + userName = #{username,jdbcType=VARCHAR}, + + + project_id = #{projectId,jdbcType=INTEGER}, + + + company_id = #{companyId,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + update online_rate + set online = #{online,jdbcType=INTEGER}, + count = #{count,jdbcType=INTEGER}, + per = #{per,jdbcType=DOUBLE}, + platformType = #{platformtype,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + userName = #{username,jdbcType=VARCHAR}, + project_id = #{projectId,jdbcType=INTEGER}, + company_id = #{companyId,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + + + + insert into online_rate + (id, online, count, per, platformType, time, userName, project_id, company_id) + values + + (#{item.id,jdbcType=INTEGER}, #{item.online,jdbcType=INTEGER}, #{item.count,jdbcType=INTEGER}, + #{item.per,jdbcType=DOUBLE}, #{item.platformtype,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, + #{item.username,jdbcType=VARCHAR}, #{item.projectId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER} + ) + + + + + insert into online_rate ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.online,jdbcType=INTEGER} + + + #{item.count,jdbcType=INTEGER} + + + #{item.per,jdbcType=DOUBLE} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.username,jdbcType=VARCHAR} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java new file mode 100644 index 0000000..52459e0 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.OnlineRateView; +import com.topsail.influxdb.pojo.OnlineRateViewExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface OnlineRateViewMapper { + long countByExample(OnlineRateViewExample example); + + int deleteByExample(OnlineRateViewExample example); + + int insert(OnlineRateView record); + + int insertSelective(OnlineRateView record); + + List selectByExample(OnlineRateViewExample example); + + int updateByExampleSelective(@Param("record") OnlineRateView record, @Param("example") OnlineRateViewExample example); + + int updateByExample(@Param("record") OnlineRateView record, @Param("example") OnlineRateViewExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") OnlineRateView.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml new file mode 100644 index 0000000..ed0ac62 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + project_id, time, num + + + + delete from online_rate_view + + + + + + insert into online_rate_view (project_id, time, num + ) + values (#{projectId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP}, #{num,jdbcType=BIGINT} + ) + + + insert into online_rate_view + + + project_id, + + + time, + + + num, + + + + + #{projectId,jdbcType=INTEGER}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{num,jdbcType=BIGINT}, + + + + + + update online_rate_view + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + num = #{record.num,jdbcType=BIGINT}, + + + + + + + + update online_rate_view + set project_id = #{record.projectId,jdbcType=INTEGER}, + time = #{record.time,jdbcType=TIMESTAMP}, + num = #{record.num,jdbcType=BIGINT} + + + + + + + insert into online_rate_view + (project_id, time, num) + values + + (#{item.projectId,jdbcType=INTEGER}, #{item.time,jdbcType=TIMESTAMP}, #{item.num,jdbcType=BIGINT} + ) + + + + + insert into online_rate_view ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.num,jdbcType=BIGINT} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java b/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java new file mode 100644 index 0000000..93ac450 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.Project; +import com.topsail.influxdb.pojo.ProjectExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProjectMapper { + long countByExample(ProjectExample example); + + int deleteByExample(ProjectExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(Project record); + + int insertSelective(Project record); + + List selectByExample(ProjectExample example); + + Project selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") Project record, @Param("example") ProjectExample example); + + int updateByExample(@Param("record") Project record, @Param("example") ProjectExample example); + + int updateByPrimaryKeySelective(Project record); + + int updateByPrimaryKey(Project record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") Project.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml new file mode 100644 index 0000000..9340fc7 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml @@ -0,0 +1,355 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, name, platformType, descr, ip, port, protocol, order_id, company_id, time + + + + + delete from project + where id = #{id,jdbcType=INTEGER} + + + delete from project + + + + + + insert into project (id, name, platformType, + descr, ip, port, protocol, + order_id, company_id, time + ) + values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, + #{descr,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}, + #{orderId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP} + ) + + + insert into project + + + id, + + + name, + + + platformType, + + + descr, + + + ip, + + + port, + + + protocol, + + + order_id, + + + company_id, + + + time, + + + + + #{id,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{platformtype,jdbcType=VARCHAR}, + + + #{descr,jdbcType=VARCHAR}, + + + #{ip,jdbcType=VARCHAR}, + + + #{port,jdbcType=VARCHAR}, + + + #{protocol,jdbcType=VARCHAR}, + + + #{orderId,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + #{time,jdbcType=TIMESTAMP}, + + + + + + update project + + + id = #{record.id,jdbcType=INTEGER}, + + + name = #{record.name,jdbcType=VARCHAR}, + + + platformType = #{record.platformtype,jdbcType=VARCHAR}, + + + descr = #{record.descr,jdbcType=VARCHAR}, + + + ip = #{record.ip,jdbcType=VARCHAR}, + + + port = #{record.port,jdbcType=VARCHAR}, + + + protocol = #{record.protocol,jdbcType=VARCHAR}, + + + order_id = #{record.orderId,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + + + + + + update project + set id = #{record.id,jdbcType=INTEGER}, + name = #{record.name,jdbcType=VARCHAR}, + platformType = #{record.platformtype,jdbcType=VARCHAR}, + descr = #{record.descr,jdbcType=VARCHAR}, + ip = #{record.ip,jdbcType=VARCHAR}, + port = #{record.port,jdbcType=VARCHAR}, + protocol = #{record.protocol,jdbcType=VARCHAR}, + order_id = #{record.orderId,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER}, + time = #{record.time,jdbcType=TIMESTAMP} + + + + + + update project + + + name = #{name,jdbcType=VARCHAR}, + + + platformType = #{platformtype,jdbcType=VARCHAR}, + + + descr = #{descr,jdbcType=VARCHAR}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + port = #{port,jdbcType=VARCHAR}, + + + protocol = #{protocol,jdbcType=VARCHAR}, + + + order_id = #{orderId,jdbcType=INTEGER}, + + + company_id = #{companyId,jdbcType=INTEGER}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update project + set name = #{name,jdbcType=VARCHAR}, + platformType = #{platformtype,jdbcType=VARCHAR}, + descr = #{descr,jdbcType=VARCHAR}, + ip = #{ip,jdbcType=VARCHAR}, + port = #{port,jdbcType=VARCHAR}, + protocol = #{protocol,jdbcType=VARCHAR}, + order_id = #{orderId,jdbcType=INTEGER}, + company_id = #{companyId,jdbcType=INTEGER}, + time = #{time,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + + + insert into project + (id, name, platformType, descr, ip, port, protocol, order_id, company_id, time) + values + + (#{item.id,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, + #{item.descr,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, + #{item.protocol,jdbcType=VARCHAR}, #{item.orderId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, + #{item.time,jdbcType=TIMESTAMP}) + + + + + insert into project ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.name,jdbcType=VARCHAR} + + + #{item.platformtype,jdbcType=VARCHAR} + + + #{item.descr,jdbcType=VARCHAR} + + + #{item.ip,jdbcType=VARCHAR} + + + #{item.port,jdbcType=VARCHAR} + + + #{item.protocol,jdbcType=VARCHAR} + + + #{item.orderId,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.time,jdbcType=TIMESTAMP} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java b/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java new file mode 100644 index 0000000..1790acc --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.ProjectTransmit; +import com.topsail.influxdb.pojo.ProjectTransmitExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface ProjectTransmitMapper { + long countByExample(ProjectTransmitExample example); + + int deleteByExample(ProjectTransmitExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(ProjectTransmit record); + + int insertSelective(ProjectTransmit record); + + List selectByExample(ProjectTransmitExample example); + + ProjectTransmit selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") ProjectTransmit record, @Param("example") ProjectTransmitExample example); + + int updateByExample(@Param("record") ProjectTransmit record, @Param("example") ProjectTransmitExample example); + + int updateByPrimaryKeySelective(ProjectTransmit record); + + int updateByPrimaryKey(ProjectTransmit record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") ProjectTransmit.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml new file mode 100644 index 0000000..e7a1a96 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml @@ -0,0 +1,432 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, company_id, project_id, protocol, ip, port, time, type, status, update_time, + total, suc, err, params + + + + + delete from project_transmit + where id = #{id,jdbcType=INTEGER} + + + delete from project_transmit + + + + + + insert into project_transmit (id, company_id, project_id, + protocol, ip, port, + time, type, status, + update_time, total, suc, + err, params) + values (#{id,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, + #{protocol,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, + #{time,jdbcType=TIMESTAMP}, #{type,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, + #{updateTime,jdbcType=TIMESTAMP}, #{total,jdbcType=INTEGER}, #{suc,jdbcType=INTEGER}, + #{err,jdbcType=INTEGER}, #{params,jdbcType=VARCHAR}) + + + insert into project_transmit + + + id, + + + company_id, + + + project_id, + + + protocol, + + + ip, + + + port, + + + time, + + + type, + + + status, + + + update_time, + + + total, + + + suc, + + + err, + + + params, + + + + + #{id,jdbcType=INTEGER}, + + + #{companyId,jdbcType=INTEGER}, + + + #{projectId,jdbcType=INTEGER}, + + + #{protocol,jdbcType=VARCHAR}, + + + #{ip,jdbcType=VARCHAR}, + + + #{port,jdbcType=VARCHAR}, + + + #{time,jdbcType=TIMESTAMP}, + + + #{type,jdbcType=VARCHAR}, + + + #{status,jdbcType=INTEGER}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{total,jdbcType=INTEGER}, + + + #{suc,jdbcType=INTEGER}, + + + #{err,jdbcType=INTEGER}, + + + #{params,jdbcType=VARCHAR}, + + + + + + update project_transmit + + + id = #{record.id,jdbcType=INTEGER}, + + + company_id = #{record.companyId,jdbcType=INTEGER}, + + + project_id = #{record.projectId,jdbcType=INTEGER}, + + + protocol = #{record.protocol,jdbcType=VARCHAR}, + + + ip = #{record.ip,jdbcType=VARCHAR}, + + + port = #{record.port,jdbcType=VARCHAR}, + + + time = #{record.time,jdbcType=TIMESTAMP}, + + + type = #{record.type,jdbcType=VARCHAR}, + + + status = #{record.status,jdbcType=INTEGER}, + + + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + + + total = #{record.total,jdbcType=INTEGER}, + + + suc = #{record.suc,jdbcType=INTEGER}, + + + err = #{record.err,jdbcType=INTEGER}, + + + params = #{record.params,jdbcType=VARCHAR}, + + + + + + + + update project_transmit + set id = #{record.id,jdbcType=INTEGER}, + company_id = #{record.companyId,jdbcType=INTEGER}, + project_id = #{record.projectId,jdbcType=INTEGER}, + protocol = #{record.protocol,jdbcType=VARCHAR}, + ip = #{record.ip,jdbcType=VARCHAR}, + port = #{record.port,jdbcType=VARCHAR}, + time = #{record.time,jdbcType=TIMESTAMP}, + type = #{record.type,jdbcType=VARCHAR}, + status = #{record.status,jdbcType=INTEGER}, + update_time = #{record.updateTime,jdbcType=TIMESTAMP}, + total = #{record.total,jdbcType=INTEGER}, + suc = #{record.suc,jdbcType=INTEGER}, + err = #{record.err,jdbcType=INTEGER}, + params = #{record.params,jdbcType=VARCHAR} + + + + + + update project_transmit + + + company_id = #{companyId,jdbcType=INTEGER}, + + + project_id = #{projectId,jdbcType=INTEGER}, + + + protocol = #{protocol,jdbcType=VARCHAR}, + + + ip = #{ip,jdbcType=VARCHAR}, + + + port = #{port,jdbcType=VARCHAR}, + + + time = #{time,jdbcType=TIMESTAMP}, + + + type = #{type,jdbcType=VARCHAR}, + + + status = #{status,jdbcType=INTEGER}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + total = #{total,jdbcType=INTEGER}, + + + suc = #{suc,jdbcType=INTEGER}, + + + err = #{err,jdbcType=INTEGER}, + + + params = #{params,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update project_transmit + set company_id = #{companyId,jdbcType=INTEGER}, + project_id = #{projectId,jdbcType=INTEGER}, + protocol = #{protocol,jdbcType=VARCHAR}, + ip = #{ip,jdbcType=VARCHAR}, + port = #{port,jdbcType=VARCHAR}, + time = #{time,jdbcType=TIMESTAMP}, + type = #{type,jdbcType=VARCHAR}, + status = #{status,jdbcType=INTEGER}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + total = #{total,jdbcType=INTEGER}, + suc = #{suc,jdbcType=INTEGER}, + err = #{err,jdbcType=INTEGER}, + params = #{params,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + + + insert into project_transmit + (id, company_id, project_id, protocol, ip, port, time, type, status, update_time, + total, suc, err, params) + values + + (#{item.id,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, + #{item.protocol,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, + #{item.time,jdbcType=TIMESTAMP}, #{item.type,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, + #{item.updateTime,jdbcType=TIMESTAMP}, #{item.total,jdbcType=INTEGER}, #{item.suc,jdbcType=INTEGER}, + #{item.err,jdbcType=INTEGER}, #{item.params,jdbcType=VARCHAR}) + + + + + insert into project_transmit ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.companyId,jdbcType=INTEGER} + + + #{item.projectId,jdbcType=INTEGER} + + + #{item.protocol,jdbcType=VARCHAR} + + + #{item.ip,jdbcType=VARCHAR} + + + #{item.port,jdbcType=VARCHAR} + + + #{item.time,jdbcType=TIMESTAMP} + + + #{item.type,jdbcType=VARCHAR} + + + #{item.status,jdbcType=INTEGER} + + + #{item.updateTime,jdbcType=TIMESTAMP} + + + #{item.total,jdbcType=INTEGER} + + + #{item.suc,jdbcType=INTEGER} + + + #{item.err,jdbcType=INTEGER} + + + #{item.params,jdbcType=VARCHAR} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java b/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java new file mode 100644 index 0000000..cfd3944 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java @@ -0,0 +1,48 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.TransmitType; +import com.topsail.influxdb.pojo.TransmitTypeExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface TransmitTypeMapper { + long countByExample(TransmitTypeExample example); + + int deleteByExample(TransmitTypeExample example); + + int deleteByPrimaryKey(Integer id); + + int insert(TransmitType record); + + int insertSelective(TransmitType record); + + List selectByExample(TransmitTypeExample example); + + TransmitType selectByPrimaryKey(Integer id); + + int updateByExampleSelective(@Param("record") TransmitType record, @Param("example") TransmitTypeExample example); + + int updateByExample(@Param("record") TransmitType record, @Param("example") TransmitTypeExample example); + + int updateByPrimaryKeySelective(TransmitType record); + + int updateByPrimaryKey(TransmitType record); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") TransmitType.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml b/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml new file mode 100644 index 0000000..bef12bd --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml @@ -0,0 +1,223 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, transmit_id, datatype + + + + + delete from transmit_type + where id = #{id,jdbcType=INTEGER} + + + delete from transmit_type + + + + + + insert into transmit_type (id, transmit_id, datatype + ) + values (#{id,jdbcType=INTEGER}, #{transmitId,jdbcType=INTEGER}, #{datatype,jdbcType=INTEGER} + ) + + + insert into transmit_type + + + id, + + + transmit_id, + + + datatype, + + + + + #{id,jdbcType=INTEGER}, + + + #{transmitId,jdbcType=INTEGER}, + + + #{datatype,jdbcType=INTEGER}, + + + + + + update transmit_type + + + id = #{record.id,jdbcType=INTEGER}, + + + transmit_id = #{record.transmitId,jdbcType=INTEGER}, + + + datatype = #{record.datatype,jdbcType=INTEGER}, + + + + + + + + update transmit_type + set id = #{record.id,jdbcType=INTEGER}, + transmit_id = #{record.transmitId,jdbcType=INTEGER}, + datatype = #{record.datatype,jdbcType=INTEGER} + + + + + + update transmit_type + + + transmit_id = #{transmitId,jdbcType=INTEGER}, + + + datatype = #{datatype,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + update transmit_type + set transmit_id = #{transmitId,jdbcType=INTEGER}, + datatype = #{datatype,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + + + + insert into transmit_type + (id, transmit_id, datatype) + values + + (#{item.id,jdbcType=INTEGER}, #{item.transmitId,jdbcType=INTEGER}, #{item.datatype,jdbcType=INTEGER} + ) + + + + + insert into transmit_type ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.id,jdbcType=INTEGER} + + + #{item.transmitId,jdbcType=INTEGER} + + + #{item.datatype,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java b/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java new file mode 100644 index 0000000..c07ca37 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java @@ -0,0 +1,40 @@ +package com.topsail.influxdb.mapper; + +import com.topsail.influxdb.pojo.UpdateMsgView; +import com.topsail.influxdb.pojo.UpdateMsgViewExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface UpdateMsgViewMapper { + long countByExample(UpdateMsgViewExample example); + + int deleteByExample(UpdateMsgViewExample example); + + int insert(UpdateMsgView record); + + int insertSelective(UpdateMsgView record); + + List selectByExample(UpdateMsgViewExample example); + + int updateByExampleSelective(@Param("record") UpdateMsgView record, @Param("example") UpdateMsgViewExample example); + + int updateByExample(@Param("record") UpdateMsgView record, @Param("example") UpdateMsgViewExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsert(@Param("list") List list); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + int batchInsertSelective(@Param("list") List list, @Param("selective") UpdateMsgView.Column ... selective); +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml b/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml new file mode 100644 index 0000000..dee2785 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml @@ -0,0 +1,195 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + imei, period, dperiod + + + + delete from update_msg_view + + + + + + insert into update_msg_view (imei, period, dperiod + ) + values (#{imei,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER} + ) + + + insert into update_msg_view + + + imei, + + + period, + + + dperiod, + + + + + #{imei,jdbcType=VARCHAR}, + + + #{period,jdbcType=VARCHAR}, + + + #{dperiod,jdbcType=INTEGER}, + + + + + + update update_msg_view + + + imei = #{record.imei,jdbcType=VARCHAR}, + + + period = #{record.period,jdbcType=VARCHAR}, + + + dperiod = #{record.dperiod,jdbcType=INTEGER}, + + + + + + + + update update_msg_view + set imei = #{record.imei,jdbcType=VARCHAR}, + period = #{record.period,jdbcType=VARCHAR}, + dperiod = #{record.dperiod,jdbcType=INTEGER} + + + + + + + insert into update_msg_view + (imei, period, dperiod) + values + + (#{item.imei,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER} + ) + + + + + insert into update_msg_view ( + + ${column.escapedColumnName} + + ) + values + + ( + + + #{item.imei,jdbcType=VARCHAR} + + + #{item.period,jdbcType=VARCHAR} + + + #{item.dperiod,jdbcType=INTEGER} + + + ) + + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/model/AepModel.java b/src/main/java/com/topsail/influxdb/model/AepModel.java new file mode 100644 index 0000000..65c7349 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/AepModel.java @@ -0,0 +1,114 @@ +package com.topsail.influxdb.model; + +import com.alibaba.fastjson.JSONObject; + +public class AepModel { + private String deviceType; + private String productId; + private String IMEI; + private String deviceId; + private String protocol; + private String messageType; + private JSONObject payload; + private String tenantId; + private String IMSI; + private String topic; + private int serviceId; + private long timestamp; + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public String getProductId() { + return productId; + } + + public void setProductId(String productId) { + this.productId = productId; + } + + public String getIMEI() { + return IMEI; + } + + public void setIMEI(String IMEI) { + this.IMEI = IMEI; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getMessageType() { + return messageType; + } + + public void setMessageType(String messageType) { + this.messageType = messageType; + } + + public JSONObject getPayload() { + return payload; + } + + public void setPayload(JSONObject payload) { + this.payload = payload; + } + + public String getTenantId() { + return tenantId; + } + + public void setTenantId(String tenantId) { + this.tenantId = tenantId; + } + + public String getIMSI() { + return IMSI; + } + + public void setIMSI(String IMSI) { + this.IMSI = IMSI; + } + + public String getTopic() { + return topic; + } + + public void setTopic(String topic) { + this.topic = topic; + } + + public int getServiceId() { + return serviceId; + } + + public void setServiceId(int serviceId) { + this.serviceId = serviceId; + } + + public long getTimestamp() { + return timestamp; + } + + public void setTimestamp(long timestamp) { + this.timestamp = timestamp; + } +} diff --git a/src/main/java/com/topsail/influxdb/model/InfluxData.java b/src/main/java/com/topsail/influxdb/model/InfluxData.java new file mode 100644 index 0000000..39a530b --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/InfluxData.java @@ -0,0 +1,34 @@ +package com.topsail.influxdb.model; + +import com.influxdb.annotations.Column; +import com.influxdb.annotations.Measurement; + +import java.time.Instant; + +@Measurement(name = "history") +public class InfluxData { + @Column(tag = true) + public String imei; + @Column + public double value1; + @Column + public double value2; + @Column + public double value3; + @Column + public double value4; + @Column + public Integer battery; + @Column + public Integer sigal; + @Column + public String values; + @Column + public String unit; + @Column + public String alarmtype; + @Column + public String jsondata; + @Column(timestamp = true) + public Instant time; +} diff --git a/src/main/java/com/topsail/influxdb/model/NewtopData.java b/src/main/java/com/topsail/influxdb/model/NewtopData.java new file mode 100644 index 0000000..fafc34e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/NewtopData.java @@ -0,0 +1,133 @@ +package com.topsail.influxdb.model; + +public class NewtopData { + private int type; + private int length; + private int device_type; + private String imei; + private String sendtime; + private int battery_level; + private int signal_strength; + private String sampledata; + private String crc; + + public String convertHexToString(String hex){ + + StringBuilder sb = new StringBuilder(); + StringBuilder temp = new StringBuilder(); + + //49204c6f7665204a617661 split into two characters 49, 20, 4c... + for( int i=0; i14){ + if(body.substring(0,8).equals("7470736C")&&body.substring(slength-6,slength).equals("696F74")){ + int type = Integer.parseInt(body.substring(8,10),16); + return type; + } + } + return -1; + } + + public void parsebody(String body){ + int slength=body.length(); + if(slength>80){ + if(body.substring(0,8).equals("7470736C")&&body.substring(slength-6,slength).equals("696F74")){ + type = Integer.parseInt(body.substring(8,10),16); + length =Integer.parseInt(body.substring(10,14),16); + device_type = Integer.parseInt(body.substring(14,16),16); + imei = convertHexToString(body.substring(16,46)); + sendtime = body.substring(48,60); + battery_level = Integer.parseInt(body.substring(60,62),16); + signal_strength = Integer.parseInt(body.substring(62,64),16); + sampledata = body.substring(64,slength-10); + } + } + } + + public int getType() { + return type; + } + + public void setType(int type) { + this.type = type; + } + + public int getLength() { + return length; + } + + public void setLength(int length) { + this.length = length; + } + + public int getDevice_type() { + return device_type; + } + + public void setDevice_type(int device_type) { + this.device_type = device_type; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei; + } + + public String getSendtime() { + return sendtime; + } + + public void setSendtime(String sendtime) { + this.sendtime = sendtime; + } + + public int getBattery_level() { + return battery_level; + } + + public void setBattery_level(int battery_level) { + this.battery_level = battery_level; + } + + public int getSignal_strength() { + return signal_strength; + } + + public void setSignal_strength(int signal_strength) { + this.signal_strength = signal_strength; + } + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata; + } + + public String getCrc() { + return crc; + } + + public void setCrc(String crc) { + this.crc = crc; + } +} diff --git a/src/main/java/com/topsail/influxdb/model/NewtopParam.java b/src/main/java/com/topsail/influxdb/model/NewtopParam.java new file mode 100644 index 0000000..c0fc100 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/NewtopParam.java @@ -0,0 +1,112 @@ +package com.topsail.influxdb.model; + +import java.util.ArrayList; +import java.util.List; + +public class NewtopParam { + private int type; + private int length; + private int device_type; + private String imei; + private String crc; + private List paramUnitList; + + public String convertHexToString(String hex){ + + StringBuilder sb = new StringBuilder(); + StringBuilder temp = new StringBuilder(); + + //49204c6f7665204a617661 split into two characters 49, 20, 4c... + for( int i=0; i46){ + if(body.substring(0,8).equals("7470736C")&&body.substring(slength-6,slength).equals("696F74")){ + type = Integer.parseInt(body.substring(8,10),16); + length =Integer.parseInt(body.substring(10,14),16); + device_type = Integer.parseInt(body.substring(14,16),16); + imei = convertHexToString(body.substring(16,46)); + int startindex=48; + paramUnitList=new ArrayList<>(); + while(startindex23){ + paramUnit.setValue(String.valueOf(Integer.parseInt(body.substring(startindex+4,startindex+4+len*2),16))); + //startindex+=12; + }else if(ptype==3||ptype==4||ptype==5||ptype==12||ptype==13){ + paramUnit.setValue(convertHexToString(body.substring(startindex+4,startindex+4+len*2))); + } + startindex=startindex+4+len*2; + paramUnitList.add(paramUnit); + //paramUnit.setValue(); + } + } + } + } + + public int getType() { + return type; + } + + public void setType(int type) { + this.type = type; + } + + public int getLength() { + return length; + } + + public void setLength(int length) { + this.length = length; + } + + public int getDevice_type() { + return device_type; + } + + public void setDevice_type(int device_type) { + this.device_type = device_type; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei; + } + + public String getCrc() { + return crc; + } + + public void setCrc(String crc) { + this.crc = crc; + } + + public List getParamUnitList() { + return paramUnitList; + } + + public void setParamUnitList(List paramUnitList) { + this.paramUnitList = paramUnitList; + } +} diff --git a/src/main/java/com/topsail/influxdb/model/ParamUnit.java b/src/main/java/com/topsail/influxdb/model/ParamUnit.java new file mode 100644 index 0000000..59b77cd --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/ParamUnit.java @@ -0,0 +1,31 @@ +package com.topsail.influxdb.model; + +public class ParamUnit { + private int type; + private int len; + private String value; + + public int getType() { + return type; + } + + public void setType(int type) { + this.type = type; + } + + public int getLen() { + return len; + } + + public void setLen(int len) { + this.len = len; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } +} diff --git a/src/main/java/com/topsail/influxdb/model/TransmitModel.java b/src/main/java/com/topsail/influxdb/model/TransmitModel.java new file mode 100644 index 0000000..b18715f --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/TransmitModel.java @@ -0,0 +1,94 @@ +package com.topsail.influxdb.model; + +public class TransmitModel { + private String sourcetype; + private String type; + private String protocol; + private String ip; + private String port; + private Object data; + private String params; + private int id; + private int maxretry; + private int retry; + + public int getId() { + return id; + } + + public void setId(int id) { + this.id = id; + } + + public int getMaxretry() { + return maxretry; + } + + public void setMaxretry(int maxretry) { + this.maxretry = maxretry; + } + + public int getRetry() { + return retry; + } + + public void setRetry(int retry) { + this.retry = retry; + } + + public String getParams() { + return params; + } + + public void setParams(String params) { + this.params = params; + } + + public String getSourcetype() { + return sourcetype; + } + + public void setSourcetype(String sourcetype) { + this.sourcetype = sourcetype; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public Object getData() { + return data; + } + + public void setData(Object data) { + this.data = data; + } +} diff --git a/src/main/java/com/topsail/influxdb/model/UserPlat.java b/src/main/java/com/topsail/influxdb/model/UserPlat.java new file mode 100644 index 0000000..efa44a1 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/UserPlat.java @@ -0,0 +1,44 @@ +package com.topsail.influxdb.model; + +public class UserPlat { + private String userName; + private String platform; + + @Override + public boolean equals(Object obj) + { + if(obj instanceof UserPlat){ + if (this.getUserName().equals(((UserPlat)obj).getUserName()) + &&(this.getPlatform().equals(((UserPlat)obj).getPlatform()))){ + return true; + } + } + return false; + } + + @Override + public int hashCode() { + return 0; + } + + public UserPlat(String user,String plat){ + this.userName=user; + this.platform=plat; + } + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public String getPlatform() { + return platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } +} diff --git a/src/main/java/com/topsail/influxdb/pojo/Alarm.java b/src/main/java/com/topsail/influxdb/pojo/Alarm.java new file mode 100644 index 0000000..15ca316 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/Alarm.java @@ -0,0 +1,409 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class Alarm { + + public static void main(String[] args) { + + System.out.println(Integer.parseInt("31",16)+""); + String result=""; + String[] units={"℃","O/F"}; + String[] datas={"27.12","0a"}; + int i = 0; + while (i < 2) { + if (i != 0) { + result += ","; + } + String un = units[i]; + String data = datas[i]; + String newdata = data; + if (un.trim().equals("O/F")) { + String first = data.substring(0, 1); + if (first.equals("1")&&data.length()==2) { + data = data.substring(1, data.length()); + } + /* if (data.equals("0.0000")) { + newdata = "0"; + } else if (data.equals("0a")) { + newdata = "10"; + } else if (data.equals("a")) { + newdata = "10"; + } else { + newdata = String.valueOf((int) Double.parseDouble(data)); + }*/ + if(data.equals("0a")||data.equals("a")){ + newdata = "10"; + } else{ + newdata=Integer.parseInt(String.valueOf((int) Double.parseDouble(data)),16)+""; + } + + } + result += newdata; + i++; + } + System.out.println(result); + } + private Long id; + + private String imei; + + private String alarmtype; + + private String alarmvalue; + + private String unit; + + private Integer status; + + private Date createtime; + + private Date updatetime; + + private Date endtime; + + /** + *告警类型msg + */ + private String alarmMsg; + + /** + *地址 + */ + private String address; + /** + *经度 + */ + private Double lon; + /** + *纬度 + */ + private Double lat; + /** + *uuid + */ + private String uuid; + + /** + *描述 + */ + private String descr; + + /** + * 总告警 + */ + private Integer alarmN; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public String getAlarmtype() { + return alarmtype; + } + + public void setAlarmtype(String alarmtype) { + this.alarmtype = alarmtype == null ? null : alarmtype.trim(); + } + + public String getAlarmvalue() { + return alarmvalue; + } + + public void setAlarmvalue(String alarmvalue) { + this.alarmvalue = alarmvalue == null ? null : alarmvalue.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Date getCreatetime() { + return createtime; + } + + public void setCreatetime(Date createtime) { + this.createtime = createtime; + } + + public Date getUpdatetime() { + return updatetime; + } + + public void setUpdatetime(Date updatetime) { + this.updatetime = updatetime; + } + + public Date getEndtime() { + return endtime; + } + + public void setEndtime(Date endtime) { + this.endtime = endtime; + } + + public String getAlarmMsg() { + return alarmMsg; + } + + public void setAlarmMsg(String alarmMsg) { + this.alarmMsg = alarmMsg; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public Double getLon() { + return lon; + } + + public void setLon(Double lon) { + this.lon = lon; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getUuid() { + return uuid; + } + + public void setUuid(String uuid) { + this.uuid = uuid; + } + + public String getDescr() { + return descr; + } + + public void setDescr(String descr) { + this.descr = descr; + } + + public Integer getAlarmN() { + return alarmN; + } + + public void setAlarmN(Integer alarmN) { + this.alarmN = alarmN; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + imei("Imei", "imei", "VARCHAR", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + alarmvalue("alarmValue", "alarmvalue", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + status("status", "status", "INTEGER", false), + createtime("createtime", "createtime", "TIMESTAMP", false), + updatetime("updatetime", "updatetime", "TIMESTAMP", false), + endtime("endtime", "endtime", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table alarm + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/AlarmExample.java b/src/main/java/com/topsail/influxdb/pojo/AlarmExample.java new file mode 100644 index 0000000..0878104 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/AlarmExample.java @@ -0,0 +1,781 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class AlarmExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public AlarmExample() { + 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 andImeiIsNull() { + addCriterion("Imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("Imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("Imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("Imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("Imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("Imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("Imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("Imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("Imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("Imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("Imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("Imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("Imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("Imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNull() { + addCriterion("alarmType is null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNotNull() { + addCriterion("alarmType is not null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeEqualTo(String value) { + addCriterion("alarmType =", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotEqualTo(String value) { + addCriterion("alarmType <>", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThan(String value) { + addCriterion("alarmType >", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { + addCriterion("alarmType >=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThan(String value) { + addCriterion("alarmType <", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThanOrEqualTo(String value) { + addCriterion("alarmType <=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLike(String value) { + addCriterion("alarmType like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotLike(String value) { + addCriterion("alarmType not like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIn(List values) { + addCriterion("alarmType in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotIn(List values) { + addCriterion("alarmType not in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeBetween(String value1, String value2) { + addCriterion("alarmType between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotBetween(String value1, String value2) { + addCriterion("alarmType not between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmvalueIsNull() { + addCriterion("alarmValue is null"); + return (Criteria) this; + } + + public Criteria andAlarmvalueIsNotNull() { + addCriterion("alarmValue is not null"); + return (Criteria) this; + } + + public Criteria andAlarmvalueEqualTo(String value) { + addCriterion("alarmValue =", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueNotEqualTo(String value) { + addCriterion("alarmValue <>", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueGreaterThan(String value) { + addCriterion("alarmValue >", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueGreaterThanOrEqualTo(String value) { + addCriterion("alarmValue >=", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueLessThan(String value) { + addCriterion("alarmValue <", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueLessThanOrEqualTo(String value) { + addCriterion("alarmValue <=", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueLike(String value) { + addCriterion("alarmValue like", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueNotLike(String value) { + addCriterion("alarmValue not like", value, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueIn(List values) { + addCriterion("alarmValue in", values, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueNotIn(List values) { + addCriterion("alarmValue not in", values, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueBetween(String value1, String value2) { + addCriterion("alarmValue between", value1, value2, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andAlarmvalueNotBetween(String value1, String value2) { + addCriterion("alarmValue not between", value1, value2, "alarmvalue"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("status not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNull() { + addCriterion("createtime is null"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNotNull() { + addCriterion("createtime is not null"); + return (Criteria) this; + } + + public Criteria andCreatetimeEqualTo(Date value) { + addCriterion("createtime =", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotEqualTo(Date value) { + addCriterion("createtime <>", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThan(Date value) { + addCriterion("createtime >", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("createtime >=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThan(Date value) { + addCriterion("createtime <", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThanOrEqualTo(Date value) { + addCriterion("createtime <=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeIn(List values) { + addCriterion("createtime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List values) { + addCriterion("createtime not in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeBetween(Date value1, Date value2) { + addCriterion("createtime between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotBetween(Date value1, Date value2) { + addCriterion("createtime not between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNull() { + addCriterion("updatetime is null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNotNull() { + addCriterion("updatetime is not null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeEqualTo(Date value) { + addCriterion("updatetime =", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotEqualTo(Date value) { + addCriterion("updatetime <>", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThan(Date value) { + addCriterion("updatetime >", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("updatetime >=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThan(Date value) { + addCriterion("updatetime <", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThanOrEqualTo(Date value) { + addCriterion("updatetime <=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIn(List values) { + addCriterion("updatetime in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotIn(List values) { + addCriterion("updatetime not in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeBetween(Date value1, Date value2) { + addCriterion("updatetime between", value1, value2, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotBetween(Date value1, Date value2) { + addCriterion("updatetime not between", value1, value2, "updatetime"); + return (Criteria) this; + } + + public Criteria andEndtimeIsNull() { + addCriterion("endtime is null"); + return (Criteria) this; + } + + public Criteria andEndtimeIsNotNull() { + addCriterion("endtime is not null"); + return (Criteria) this; + } + + public Criteria andEndtimeEqualTo(Date value) { + addCriterion("endtime =", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotEqualTo(Date value) { + addCriterion("endtime <>", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeGreaterThan(Date value) { + addCriterion("endtime >", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeGreaterThanOrEqualTo(Date value) { + addCriterion("endtime >=", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLessThan(Date value) { + addCriterion("endtime <", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLessThanOrEqualTo(Date value) { + addCriterion("endtime <=", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeIn(List values) { + addCriterion("endtime in", values, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotIn(List values) { + addCriterion("endtime not in", values, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeBetween(Date value1, Date value2) { + addCriterion("endtime between", value1, value2, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotBetween(Date value1, Date value2) { + addCriterion("endtime not between", value1, value2, "endtime"); + 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/src/main/java/com/topsail/influxdb/pojo/Company.java b/src/main/java/com/topsail/influxdb/pojo/Company.java new file mode 100644 index 0000000..471a750 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/Company.java @@ -0,0 +1,280 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class Company { + private Integer id; + + private String companyName; + + private String companyFullName; + + private String platformtype; + + private Integer dmpId; + + private Date createtime; + + private String creator; + + private Integer areaId; + + private String period; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName == null ? null : companyName.trim(); + } + + public String getCompanyFullName() { + return companyFullName; + } + + public void setCompanyFullName(String companyFullName) { + this.companyFullName = companyFullName == null ? null : companyFullName.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public Integer getDmpId() { + return dmpId; + } + + public void setDmpId(Integer dmpId) { + this.dmpId = dmpId; + } + + public Date getCreatetime() { + return createtime; + } + + public void setCreatetime(Date createtime) { + this.createtime = createtime; + } + + public String getCreator() { + return creator; + } + + public void setCreator(String creator) { + this.creator = creator == null ? null : creator.trim(); + } + + public Integer getAreaId() { + return areaId; + } + + public void setAreaId(Integer areaId) { + this.areaId = areaId; + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period == null ? null : period.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + companyName("company_name", "companyName", "VARCHAR", false), + companyFullName("company_full_name", "companyFullName", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + dmpId("dmp_id", "dmpId", "INTEGER", false), + createtime("createtime", "createtime", "TIMESTAMP", false), + creator("creator", "creator", "VARCHAR", false), + areaId("area_id", "areaId", "INTEGER", false), + period("period", "period", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/CompanyExample.java b/src/main/java/com/topsail/influxdb/pojo/CompanyExample.java new file mode 100644 index 0000000..5dc2f3c --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/CompanyExample.java @@ -0,0 +1,791 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class CompanyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public CompanyExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCompanyNameIsNull() { + addCriterion("company_name is null"); + return (Criteria) this; + } + + public Criteria andCompanyNameIsNotNull() { + addCriterion("company_name is not null"); + return (Criteria) this; + } + + public Criteria andCompanyNameEqualTo(String value) { + addCriterion("company_name =", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotEqualTo(String value) { + addCriterion("company_name <>", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameGreaterThan(String value) { + addCriterion("company_name >", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameGreaterThanOrEqualTo(String value) { + addCriterion("company_name >=", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLessThan(String value) { + addCriterion("company_name <", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLessThanOrEqualTo(String value) { + addCriterion("company_name <=", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLike(String value) { + addCriterion("company_name like", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotLike(String value) { + addCriterion("company_name not like", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameIn(List values) { + addCriterion("company_name in", values, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotIn(List values) { + addCriterion("company_name not in", values, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameBetween(String value1, String value2) { + addCriterion("company_name between", value1, value2, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotBetween(String value1, String value2) { + addCriterion("company_name not between", value1, value2, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameIsNull() { + addCriterion("company_full_name is null"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameIsNotNull() { + addCriterion("company_full_name is not null"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameEqualTo(String value) { + addCriterion("company_full_name =", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameNotEqualTo(String value) { + addCriterion("company_full_name <>", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameGreaterThan(String value) { + addCriterion("company_full_name >", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameGreaterThanOrEqualTo(String value) { + addCriterion("company_full_name >=", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameLessThan(String value) { + addCriterion("company_full_name <", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameLessThanOrEqualTo(String value) { + addCriterion("company_full_name <=", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameLike(String value) { + addCriterion("company_full_name like", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameNotLike(String value) { + addCriterion("company_full_name not like", value, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameIn(List values) { + addCriterion("company_full_name in", values, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameNotIn(List values) { + addCriterion("company_full_name not in", values, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameBetween(String value1, String value2) { + addCriterion("company_full_name between", value1, value2, "companyFullName"); + return (Criteria) this; + } + + public Criteria andCompanyFullNameNotBetween(String value1, String value2) { + addCriterion("company_full_name not between", value1, value2, "companyFullName"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andDmpIdIsNull() { + addCriterion("dmp_id is null"); + return (Criteria) this; + } + + public Criteria andDmpIdIsNotNull() { + addCriterion("dmp_id is not null"); + return (Criteria) this; + } + + public Criteria andDmpIdEqualTo(Integer value) { + addCriterion("dmp_id =", value, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdNotEqualTo(Integer value) { + addCriterion("dmp_id <>", value, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdGreaterThan(Integer value) { + addCriterion("dmp_id >", value, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdGreaterThanOrEqualTo(Integer value) { + addCriterion("dmp_id >=", value, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdLessThan(Integer value) { + addCriterion("dmp_id <", value, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdLessThanOrEqualTo(Integer value) { + addCriterion("dmp_id <=", value, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdIn(List values) { + addCriterion("dmp_id in", values, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdNotIn(List values) { + addCriterion("dmp_id not in", values, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdBetween(Integer value1, Integer value2) { + addCriterion("dmp_id between", value1, value2, "dmpId"); + return (Criteria) this; + } + + public Criteria andDmpIdNotBetween(Integer value1, Integer value2) { + addCriterion("dmp_id not between", value1, value2, "dmpId"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNull() { + addCriterion("createtime is null"); + return (Criteria) this; + } + + public Criteria andCreatetimeIsNotNull() { + addCriterion("createtime is not null"); + return (Criteria) this; + } + + public Criteria andCreatetimeEqualTo(Date value) { + addCriterion("createtime =", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotEqualTo(Date value) { + addCriterion("createtime <>", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThan(Date value) { + addCriterion("createtime >", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("createtime >=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThan(Date value) { + addCriterion("createtime <", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeLessThanOrEqualTo(Date value) { + addCriterion("createtime <=", value, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeIn(List values) { + addCriterion("createtime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List values) { + addCriterion("createtime not in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeBetween(Date value1, Date value2) { + addCriterion("createtime between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotBetween(Date value1, Date value2) { + addCriterion("createtime not between", value1, value2, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatorIsNull() { + addCriterion("creator is null"); + return (Criteria) this; + } + + public Criteria andCreatorIsNotNull() { + addCriterion("creator is not null"); + return (Criteria) this; + } + + public Criteria andCreatorEqualTo(String value) { + addCriterion("creator =", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorNotEqualTo(String value) { + addCriterion("creator <>", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorGreaterThan(String value) { + addCriterion("creator >", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorGreaterThanOrEqualTo(String value) { + addCriterion("creator >=", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorLessThan(String value) { + addCriterion("creator <", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorLessThanOrEqualTo(String value) { + addCriterion("creator <=", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorLike(String value) { + addCriterion("creator like", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorNotLike(String value) { + addCriterion("creator not like", value, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorIn(List values) { + addCriterion("creator in", values, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorNotIn(List values) { + addCriterion("creator not in", values, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorBetween(String value1, String value2) { + addCriterion("creator between", value1, value2, "creator"); + return (Criteria) this; + } + + public Criteria andCreatorNotBetween(String value1, String value2) { + addCriterion("creator not between", value1, value2, "creator"); + return (Criteria) this; + } + + public Criteria andAreaIdIsNull() { + addCriterion("area_id is null"); + return (Criteria) this; + } + + public Criteria andAreaIdIsNotNull() { + addCriterion("area_id is not null"); + return (Criteria) this; + } + + public Criteria andAreaIdEqualTo(Integer value) { + addCriterion("area_id =", value, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdNotEqualTo(Integer value) { + addCriterion("area_id <>", value, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdGreaterThan(Integer value) { + addCriterion("area_id >", value, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdGreaterThanOrEqualTo(Integer value) { + addCriterion("area_id >=", value, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdLessThan(Integer value) { + addCriterion("area_id <", value, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdLessThanOrEqualTo(Integer value) { + addCriterion("area_id <=", value, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdIn(List values) { + addCriterion("area_id in", values, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdNotIn(List values) { + addCriterion("area_id not in", values, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdBetween(Integer value1, Integer value2) { + addCriterion("area_id between", value1, value2, "areaId"); + return (Criteria) this; + } + + public Criteria andAreaIdNotBetween(Integer value1, Integer value2) { + addCriterion("area_id not between", value1, value2, "areaId"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(String value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(String value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(String value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(String value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(String value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(String value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLike(String value) { + addCriterion("period like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotLike(String value) { + addCriterion("period not like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(String value1, String value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(String value1, String value2) { + addCriterion("period not between", value1, value2, "period"); + 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/src/main/java/com/topsail/influxdb/pojo/Config.java b/src/main/java/com/topsail/influxdb/pojo/Config.java new file mode 100644 index 0000000..1807249 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/Config.java @@ -0,0 +1,244 @@ +package com.topsail.influxdb.pojo; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class Config { + private String imei; + + private Date updatetime; + + private String config; + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Date getUpdatetime() { + return updatetime; + } + + public void setUpdatetime(Date updatetime) { + this.updatetime = updatetime; + } + + public String getConfig() { + return config; + } + + public void setConfig(String config) { + this.config = config == null ? null : config.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + imei("imei", "imei", "VARCHAR", false), + updatetime("updatetime", "updatetime", "TIMESTAMP", false), + config("config", "config", "LONGVARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } + + + public static void main(String[] args) { + + + String a="{ \"alarmType\" : \"1\",\n" + + "\"batteryLevel\" : 100,\n" + + "\"batteryState\" : 64,\n" + + "\"deviceType\" : 7,\n" + + "\"id\" : 0,\n" + + "\"imei\" : \"X68474045658406\",\n" + + "\"passNum\" : 0,\n" + + "\"platformType\" : \"ONENET\",\n" + + "\"platformjson\" : \"{\\\"msg\\\":{\\\"at\\\":1658088209904,\\\"type\\\":1,\\\"ds_id\\\":\\\"ds_test\\\",\\\"value\\\":\\\"7470736C01601B07583638343734303435363538343036002207180403306437014047453E40696F74\\\",\\\"dev_id\\\":578629796},\\\"msg_signature\\\":\\\"4FjC3LWZ39mxem3N2zncYw==\\\",\\\"nonce\\\":\\\"XyO-7??Z\\\"}\",\n" + + "\"singalStrength\" : 55,\n" + + "\"sourcetype\" : \"new_top\" } "; + + JSONObject jsonObject= JSON.parseObject(a); + int sendingGap=0; + if(jsonObject.get("sendinggap")!=null){ + jsonObject.put("sendingGap",jsonObject.get("sendinggap")); + } + sendingGap = jsonObject.getInteger("sendingGap"); + System.out.println(sendingGap); + + } + +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ConfigExample.java b/src/main/java/com/topsail/influxdb/pojo/ConfigExample.java new file mode 100644 index 0000000..5659edf --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/ConfigExample.java @@ -0,0 +1,331 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ConfigExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ConfigExample() { + 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 andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNull() { + addCriterion("updatetime is null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNotNull() { + addCriterion("updatetime is not null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeEqualTo(Date value) { + addCriterion("updatetime =", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotEqualTo(Date value) { + addCriterion("updatetime <>", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThan(Date value) { + addCriterion("updatetime >", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("updatetime >=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThan(Date value) { + addCriterion("updatetime <", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThanOrEqualTo(Date value) { + addCriterion("updatetime <=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIn(List values) { + addCriterion("updatetime in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotIn(List values) { + addCriterion("updatetime not in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeBetween(Date value1, Date value2) { + addCriterion("updatetime between", value1, value2, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotBetween(Date value1, Date value2) { + addCriterion("updatetime not between", value1, value2, "updatetime"); + 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/src/main/java/com/topsail/influxdb/pojo/DataFilter.java b/src/main/java/com/topsail/influxdb/pojo/DataFilter.java new file mode 100644 index 0000000..971fda3 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DataFilter.java @@ -0,0 +1,246 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class DataFilter { + private Integer id; + + private Integer deviceType; + + private String deviceModel; + + private String unit; + + private Float low; + + private Float high; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getDeviceType() { + return deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + public String getDeviceModel() { + return deviceModel; + } + + public void setDeviceModel(String deviceModel) { + this.deviceModel = deviceModel == null ? null : deviceModel.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public Float getLow() { + return low; + } + + public void setLow(Float low) { + this.low = low; + } + + public Float getHigh() { + return high; + } + + public void setHigh(Float high) { + this.high = high; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + deviceType("device_type", "deviceType", "INTEGER", false), + deviceModel("device_model", "deviceModel", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + low("low", "low", "REAL", false), + high("high", "high", "REAL", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table data_filter + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DataFilterExample.java b/src/main/java/com/topsail/influxdb/pojo/DataFilterExample.java new file mode 100644 index 0000000..056fdf1 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DataFilterExample.java @@ -0,0 +1,580 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class DataFilterExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DataFilterExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIsNull() { + addCriterion("device_type is null"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIsNotNull() { + addCriterion("device_type is not null"); + return (Criteria) this; + } + + public Criteria andDeviceTypeEqualTo(Integer value) { + addCriterion("device_type =", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotEqualTo(Integer value) { + addCriterion("device_type <>", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeGreaterThan(Integer value) { + addCriterion("device_type >", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("device_type >=", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeLessThan(Integer value) { + addCriterion("device_type <", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeLessThanOrEqualTo(Integer value) { + addCriterion("device_type <=", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIn(List values) { + addCriterion("device_type in", values, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotIn(List values) { + addCriterion("device_type not in", values, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeBetween(Integer value1, Integer value2) { + addCriterion("device_type between", value1, value2, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("device_type not between", value1, value2, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceModelIsNull() { + addCriterion("device_model is null"); + return (Criteria) this; + } + + public Criteria andDeviceModelIsNotNull() { + addCriterion("device_model is not null"); + return (Criteria) this; + } + + public Criteria andDeviceModelEqualTo(String value) { + addCriterion("device_model =", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelNotEqualTo(String value) { + addCriterion("device_model <>", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelGreaterThan(String value) { + addCriterion("device_model >", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelGreaterThanOrEqualTo(String value) { + addCriterion("device_model >=", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelLessThan(String value) { + addCriterion("device_model <", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelLessThanOrEqualTo(String value) { + addCriterion("device_model <=", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelLike(String value) { + addCriterion("device_model like", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelNotLike(String value) { + addCriterion("device_model not like", value, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelIn(List values) { + addCriterion("device_model in", values, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelNotIn(List values) { + addCriterion("device_model not in", values, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelBetween(String value1, String value2) { + addCriterion("device_model between", value1, value2, "deviceModel"); + return (Criteria) this; + } + + public Criteria andDeviceModelNotBetween(String value1, String value2) { + addCriterion("device_model not between", value1, value2, "deviceModel"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andLowIsNull() { + addCriterion("low is null"); + return (Criteria) this; + } + + public Criteria andLowIsNotNull() { + addCriterion("low is not null"); + return (Criteria) this; + } + + public Criteria andLowEqualTo(Float value) { + addCriterion("low =", value, "low"); + return (Criteria) this; + } + + public Criteria andLowNotEqualTo(Float value) { + addCriterion("low <>", value, "low"); + return (Criteria) this; + } + + public Criteria andLowGreaterThan(Float value) { + addCriterion("low >", value, "low"); + return (Criteria) this; + } + + public Criteria andLowGreaterThanOrEqualTo(Float value) { + addCriterion("low >=", value, "low"); + return (Criteria) this; + } + + public Criteria andLowLessThan(Float value) { + addCriterion("low <", value, "low"); + return (Criteria) this; + } + + public Criteria andLowLessThanOrEqualTo(Float value) { + addCriterion("low <=", value, "low"); + return (Criteria) this; + } + + public Criteria andLowIn(List values) { + addCriterion("low in", values, "low"); + return (Criteria) this; + } + + public Criteria andLowNotIn(List values) { + addCriterion("low not in", values, "low"); + return (Criteria) this; + } + + public Criteria andLowBetween(Float value1, Float value2) { + addCriterion("low between", value1, value2, "low"); + return (Criteria) this; + } + + public Criteria andLowNotBetween(Float value1, Float value2) { + addCriterion("low not between", value1, value2, "low"); + return (Criteria) this; + } + + public Criteria andHighIsNull() { + addCriterion("high is null"); + return (Criteria) this; + } + + public Criteria andHighIsNotNull() { + addCriterion("high is not null"); + return (Criteria) this; + } + + public Criteria andHighEqualTo(Float value) { + addCriterion("high =", value, "high"); + return (Criteria) this; + } + + public Criteria andHighNotEqualTo(Float value) { + addCriterion("high <>", value, "high"); + return (Criteria) this; + } + + public Criteria andHighGreaterThan(Float value) { + addCriterion("high >", value, "high"); + return (Criteria) this; + } + + public Criteria andHighGreaterThanOrEqualTo(Float value) { + addCriterion("high >=", value, "high"); + return (Criteria) this; + } + + public Criteria andHighLessThan(Float value) { + addCriterion("high <", value, "high"); + return (Criteria) this; + } + + public Criteria andHighLessThanOrEqualTo(Float value) { + addCriterion("high <=", value, "high"); + return (Criteria) this; + } + + public Criteria andHighIn(List values) { + addCriterion("high in", values, "high"); + return (Criteria) this; + } + + public Criteria andHighNotIn(List values) { + addCriterion("high not in", values, "high"); + return (Criteria) this; + } + + public Criteria andHighBetween(Float value1, Float value2) { + addCriterion("high between", value1, value2, "high"); + return (Criteria) this; + } + + public Criteria andHighNotBetween(Float value1, Float value2) { + addCriterion("high not between", value1, value2, "high"); + 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/src/main/java/com/topsail/influxdb/pojo/Device.java b/src/main/java/com/topsail/influxdb/pojo/Device.java new file mode 100644 index 0000000..a852961 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/Device.java @@ -0,0 +1,498 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class Device { + private String imei; + + private Integer devicetype; + + private Integer batterylevel; + + private Integer singalstrength; + + private String sampledata; + + private Integer passnum; + + private Integer batterystate; + + private String alarmtype; + + private String platformtype; + + private String username; + + private String unit; + + private String sendtime; + + private Date time; + + private Date offlinetime; + + private String value; + + private String imsi; + + private String iccid; + + private Date senddate; + + // 4.24 数据协议 + private String protocol; + + private Double lon; + + private Double lat; + + private Integer devModel; + + + // 4.22 应为网关关系新增下面字段 + // 父imei + private String parentImei; + // 父设备id + private String deviceid; + // 数据采集时间 + private String sampTime; + + // 告警类型中文 + private String alarmMsg; + + + + public Integer getDevModel() { + return devModel; + } + + public void setDevModel(Integer devModel) { + this.devModel = devModel; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public String getSampTime() { + return sampTime; + } + + public void setSampTime(String sampTime) { + this.sampTime = sampTime; + } + + public String getParentImei() { + return parentImei; + } + + public void setParentImei(String parentImei) { + this.parentImei = parentImei; + } + + public String getDeviceid() { + return deviceid; + } + + public void setDeviceid(String deviceid) { + this.deviceid = deviceid; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public Integer getBatterylevel() { + return batterylevel; + } + + public void setBatterylevel(Integer batterylevel) { + this.batterylevel = batterylevel; + } + + public Integer getSingalstrength() { + return singalstrength; + } + + public void setSingalstrength(Integer singalstrength) { + this.singalstrength = singalstrength; + } + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata == null ? null : sampledata.trim(); + } + + public Integer getPassnum() { + return passnum; + } + + public void setPassnum(Integer passnum) { + this.passnum = passnum; + } + + public Integer getBatterystate() { + return batterystate; + } + + public void setBatterystate(Integer batterystate) { + this.batterystate = batterystate; + } + + public String getAlarmtype() { + return alarmtype; + } + + public void setAlarmtype(String alarmtype) { + this.alarmtype = alarmtype == null ? null : alarmtype.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public String getSendtime() { + return sendtime; + } + + public void setSendtime(String sendtime) { + this.sendtime = sendtime == null ? null : sendtime.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public Date getOfflinetime() { + return offlinetime; + } + + public void setOfflinetime(Date offlinetime) { + this.offlinetime = offlinetime; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value == null ? null : value.trim(); + } + + public Date getSenddate() { + return senddate; + } + + public void setSenddate(Date senddate) { + this.senddate = senddate; + } + + public String getImsi() { + return imsi; + } + + public void setImsi(String imsi) { + this.imsi = imsi; + } + + public String getIccid() { + return iccid; + } + + public void setIccid(String iccid) { + this.iccid = iccid; + } + + public Double getLon() { + return lon; + } + + public void setLon(Double lon) { + this.lon = lon; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getAlarmMsg() { + return alarmMsg; + } + + public void setAlarmMsg(String alarmMsg) { + this.alarmMsg = alarmMsg; + } + + @Override + public String toString() { + return "Device{" + + "imei='" + imei + '\'' + + ", devicetype=" + devicetype + + ", batterylevel=" + batterylevel + + ", singalstrength=" + singalstrength + + ", sampledata='" + sampledata + '\'' + + ", passnum=" + passnum + + ", batterystate=" + batterystate + + ", alarmtype='" + alarmtype + '\'' + + ", platformtype='" + platformtype + '\'' + + ", username='" + username + '\'' + + ", unit='" + unit + '\'' + + ", sendtime='" + sendtime + '\'' + + ", time=" + time + + ", offlinetime=" + offlinetime + + ", value='" + value + '\'' + + ", imsi='" + imsi + '\'' + + ", iccid='" + iccid + '\'' + + ", senddate=" + senddate + + ", protocol='" + protocol + '\'' + + ", lon=" + lon + + ", lat=" + lat + + ", parentImei='" + parentImei + '\'' + + ", deviceid='" + deviceid + '\'' + + ", sampTime='" + sampTime + '\'' + + ", alarmMsg='" + alarmMsg + '\'' + + ", devModel=" + devModel + + '}'; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + imei("Imei", "imei", "VARCHAR", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + batterylevel("batteryLevel", "batterylevel", "INTEGER", false), + singalstrength("singalStrength", "singalstrength", "INTEGER", false), + sampledata("sampleData", "sampledata", "VARCHAR", false), + passnum("passNum", "passnum", "INTEGER", false), + batterystate("batteryState", "batterystate", "INTEGER", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + sendtime("sendTime", "sendtime", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + offlinetime("offlineTime", "offlinetime", "TIMESTAMP", false), + value("value", "value", "VARCHAR", false), + senddate("sendDate", "senddate", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } + + +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceDetail.java b/src/main/java/com/topsail/influxdb/pojo/DeviceDetail.java new file mode 100644 index 0000000..0a11d05 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceDetail.java @@ -0,0 +1,434 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class DeviceDetail { + private String imei; + + private Integer id; + + private Integer deviceType; + + private Integer orderId; + + private Integer projectId; + + private String name; + + private Double lon; + + private Double lat; + + private Date buyDate; + + private Float buyLong; + + private Date time; + + private String imsi; + + private String iccid; + + private String address; + + private Integer delivered; + + private String platform; + + private String deviceid; + + private Integer companyId; + + private Integer period; + + private Integer belong; + + private String handleResult; + + private Integer registerInfoId; + + private Date updatetime; + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getDeviceType() { + return deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + public Integer getOrderId() { + return orderId; + } + + public void setOrderId(Integer orderId) { + this.orderId = orderId; + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Double getLon() { + return lon; + } + + public void setLon(Double lon) { + this.lon = lon; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public Date getBuyDate() { + return buyDate; + } + + public void setBuyDate(Date buyDate) { + this.buyDate = buyDate; + } + + public Float getBuyLong() { + return buyLong; + } + + public void setBuyLong(Float buyLong) { + this.buyLong = buyLong; + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getImsi() { + return imsi; + } + + public void setImsi(String imsi) { + this.imsi = imsi == null ? null : imsi.trim(); + } + + public String getIccid() { + return iccid; + } + + public void setIccid(String iccid) { + this.iccid = iccid == null ? null : iccid.trim(); + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + public Integer getDelivered() { + return delivered; + } + + public void setDelivered(Integer delivered) { + this.delivered = delivered; + } + + public String getPlatform() { + return platform; + } + + public void setPlatform(String platform) { + this.platform = platform == null ? null : platform.trim(); + } + + public String getDeviceid() { + return deviceid; + } + + public void setDeviceid(String deviceid) { + this.deviceid = deviceid == null ? null : deviceid.trim(); + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public Integer getPeriod() { + return period; + } + + public void setPeriod(Integer period) { + this.period = period; + } + + public Integer getBelong() { + return belong; + } + + public void setBelong(Integer belong) { + this.belong = belong; + } + + public String getHandleResult() { + return handleResult; + } + + public void setHandleResult(String handleResult) { + this.handleResult = handleResult == null ? null : handleResult.trim(); + } + + public Integer getRegisterInfoId() { + return registerInfoId; + } + + public void setRegisterInfoId(Integer registerInfoId) { + this.registerInfoId = registerInfoId; + } + + public Date getUpdatetime() { + return updatetime; + } + + public void setUpdatetime(Date updatetime) { + this.updatetime = updatetime; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + imei("imei", "imei", "VARCHAR", false), + id("id", "id", "INTEGER", false), + deviceType("device_type", "deviceType", "INTEGER", false), + orderId("order_id", "orderId", "INTEGER", false), + projectId("project_id", "projectId", "INTEGER", false), + name("name", "name", "VARCHAR", false), + lon("lon", "lon", "DOUBLE", false), + lat("lat", "lat", "DOUBLE", false), + buyDate("buy_date", "buyDate", "TIMESTAMP", false), + buyLong("buy_long", "buyLong", "REAL", false), + time("time", "time", "TIMESTAMP", false), + imsi("imsi", "imsi", "VARCHAR", false), + iccid("iccid", "iccid", "VARCHAR", false), + address("address", "address", "VARCHAR", false), + delivered("delivered", "delivered", "INTEGER", false), + platform("platform", "platform", "VARCHAR", false), + deviceid("deviceId", "deviceid", "VARCHAR", false), + companyId("company_id", "companyId", "INTEGER", false), + period("period", "period", "INTEGER", false), + belong("belong", "belong", "INTEGER", false), + handleResult("handle_result", "handleResult", "VARCHAR", false), + registerInfoId("register_info_id", "registerInfoId", "INTEGER", false), + updatetime("updatetime", "updatetime", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_detail + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceDetailExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceDetailExample.java new file mode 100644 index 0000000..64d0bd8 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceDetailExample.java @@ -0,0 +1,1661 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DeviceDetailExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceDetailExample() { + 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 andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIsNull() { + addCriterion("device_type is null"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIsNotNull() { + addCriterion("device_type is not null"); + return (Criteria) this; + } + + public Criteria andDeviceTypeEqualTo(Integer value) { + addCriterion("device_type =", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotEqualTo(Integer value) { + addCriterion("device_type <>", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeGreaterThan(Integer value) { + addCriterion("device_type >", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("device_type >=", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeLessThan(Integer value) { + addCriterion("device_type <", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeLessThanOrEqualTo(Integer value) { + addCriterion("device_type <=", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIn(List values) { + addCriterion("device_type in", values, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotIn(List values) { + addCriterion("device_type not in", values, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeBetween(Integer value1, Integer value2) { + addCriterion("device_type between", value1, value2, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("device_type not between", value1, value2, "deviceType"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Integer value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Integer value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Integer value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Integer value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Integer value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Integer value1, Integer value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andLonIsNull() { + addCriterion("lon is null"); + return (Criteria) this; + } + + public Criteria andLonIsNotNull() { + addCriterion("lon is not null"); + return (Criteria) this; + } + + public Criteria andLonEqualTo(Double value) { + addCriterion("lon =", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonNotEqualTo(Double value) { + addCriterion("lon <>", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonGreaterThan(Double value) { + addCriterion("lon >", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonGreaterThanOrEqualTo(Double value) { + addCriterion("lon >=", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonLessThan(Double value) { + addCriterion("lon <", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonLessThanOrEqualTo(Double value) { + addCriterion("lon <=", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonIn(List values) { + addCriterion("lon in", values, "lon"); + return (Criteria) this; + } + + public Criteria andLonNotIn(List values) { + addCriterion("lon not in", values, "lon"); + return (Criteria) this; + } + + public Criteria andLonBetween(Double value1, Double value2) { + addCriterion("lon between", value1, value2, "lon"); + return (Criteria) this; + } + + public Criteria andLonNotBetween(Double value1, Double value2) { + addCriterion("lon not between", value1, value2, "lon"); + return (Criteria) this; + } + + public Criteria andLatIsNull() { + addCriterion("lat is null"); + return (Criteria) this; + } + + public Criteria andLatIsNotNull() { + addCriterion("lat is not null"); + return (Criteria) this; + } + + public Criteria andLatEqualTo(Double value) { + addCriterion("lat =", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatNotEqualTo(Double value) { + addCriterion("lat <>", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatGreaterThan(Double value) { + addCriterion("lat >", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatGreaterThanOrEqualTo(Double value) { + addCriterion("lat >=", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatLessThan(Double value) { + addCriterion("lat <", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatLessThanOrEqualTo(Double value) { + addCriterion("lat <=", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatIn(List values) { + addCriterion("lat in", values, "lat"); + return (Criteria) this; + } + + public Criteria andLatNotIn(List values) { + addCriterion("lat not in", values, "lat"); + return (Criteria) this; + } + + public Criteria andLatBetween(Double value1, Double value2) { + addCriterion("lat between", value1, value2, "lat"); + return (Criteria) this; + } + + public Criteria andLatNotBetween(Double value1, Double value2) { + addCriterion("lat not between", value1, value2, "lat"); + return (Criteria) this; + } + + public Criteria andBuyDateIsNull() { + addCriterion("buy_date is null"); + return (Criteria) this; + } + + public Criteria andBuyDateIsNotNull() { + addCriterion("buy_date is not null"); + return (Criteria) this; + } + + public Criteria andBuyDateEqualTo(Date value) { + addCriterion("buy_date =", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateNotEqualTo(Date value) { + addCriterion("buy_date <>", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateGreaterThan(Date value) { + addCriterion("buy_date >", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateGreaterThanOrEqualTo(Date value) { + addCriterion("buy_date >=", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateLessThan(Date value) { + addCriterion("buy_date <", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateLessThanOrEqualTo(Date value) { + addCriterion("buy_date <=", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateIn(List values) { + addCriterion("buy_date in", values, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateNotIn(List values) { + addCriterion("buy_date not in", values, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateBetween(Date value1, Date value2) { + addCriterion("buy_date between", value1, value2, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateNotBetween(Date value1, Date value2) { + addCriterion("buy_date not between", value1, value2, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyLongIsNull() { + addCriterion("buy_long is null"); + return (Criteria) this; + } + + public Criteria andBuyLongIsNotNull() { + addCriterion("buy_long is not null"); + return (Criteria) this; + } + + public Criteria andBuyLongEqualTo(Float value) { + addCriterion("buy_long =", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongNotEqualTo(Float value) { + addCriterion("buy_long <>", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongGreaterThan(Float value) { + addCriterion("buy_long >", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongGreaterThanOrEqualTo(Float value) { + addCriterion("buy_long >=", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongLessThan(Float value) { + addCriterion("buy_long <", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongLessThanOrEqualTo(Float value) { + addCriterion("buy_long <=", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongIn(List values) { + addCriterion("buy_long in", values, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongNotIn(List values) { + addCriterion("buy_long not in", values, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongBetween(Float value1, Float value2) { + addCriterion("buy_long between", value1, value2, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongNotBetween(Float value1, Float value2) { + addCriterion("buy_long not between", value1, value2, "buyLong"); + 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 andImsiIsNull() { + addCriterion("imsi is null"); + return (Criteria) this; + } + + public Criteria andImsiIsNotNull() { + addCriterion("imsi is not null"); + return (Criteria) this; + } + + public Criteria andImsiEqualTo(String value) { + addCriterion("imsi =", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotEqualTo(String value) { + addCriterion("imsi <>", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiGreaterThan(String value) { + addCriterion("imsi >", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiGreaterThanOrEqualTo(String value) { + addCriterion("imsi >=", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLessThan(String value) { + addCriterion("imsi <", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLessThanOrEqualTo(String value) { + addCriterion("imsi <=", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLike(String value) { + addCriterion("imsi like", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotLike(String value) { + addCriterion("imsi not like", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiIn(List values) { + addCriterion("imsi in", values, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotIn(List values) { + addCriterion("imsi not in", values, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiBetween(String value1, String value2) { + addCriterion("imsi between", value1, value2, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotBetween(String value1, String value2) { + addCriterion("imsi not between", value1, value2, "imsi"); + return (Criteria) this; + } + + public Criteria andIccidIsNull() { + addCriterion("iccid is null"); + return (Criteria) this; + } + + public Criteria andIccidIsNotNull() { + addCriterion("iccid is not null"); + return (Criteria) this; + } + + public Criteria andIccidEqualTo(String value) { + addCriterion("iccid =", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidNotEqualTo(String value) { + addCriterion("iccid <>", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidGreaterThan(String value) { + addCriterion("iccid >", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidGreaterThanOrEqualTo(String value) { + addCriterion("iccid >=", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidLessThan(String value) { + addCriterion("iccid <", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidLessThanOrEqualTo(String value) { + addCriterion("iccid <=", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidLike(String value) { + addCriterion("iccid like", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidNotLike(String value) { + addCriterion("iccid not like", value, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidIn(List values) { + addCriterion("iccid in", values, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidNotIn(List values) { + addCriterion("iccid not in", values, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidBetween(String value1, String value2) { + addCriterion("iccid between", value1, value2, "iccid"); + return (Criteria) this; + } + + public Criteria andIccidNotBetween(String value1, String value2) { + addCriterion("iccid not between", value1, value2, "iccid"); + return (Criteria) this; + } + + public Criteria andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andDeliveredIsNull() { + addCriterion("delivered is null"); + return (Criteria) this; + } + + public Criteria andDeliveredIsNotNull() { + addCriterion("delivered is not null"); + return (Criteria) this; + } + + public Criteria andDeliveredEqualTo(Integer value) { + addCriterion("delivered =", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredNotEqualTo(Integer value) { + addCriterion("delivered <>", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredGreaterThan(Integer value) { + addCriterion("delivered >", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredGreaterThanOrEqualTo(Integer value) { + addCriterion("delivered >=", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredLessThan(Integer value) { + addCriterion("delivered <", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredLessThanOrEqualTo(Integer value) { + addCriterion("delivered <=", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredIn(List values) { + addCriterion("delivered in", values, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredNotIn(List values) { + addCriterion("delivered not in", values, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredBetween(Integer value1, Integer value2) { + addCriterion("delivered between", value1, value2, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredNotBetween(Integer value1, Integer value2) { + addCriterion("delivered not between", value1, value2, "delivered"); + return (Criteria) this; + } + + public Criteria andPlatformIsNull() { + addCriterion("platform is null"); + return (Criteria) this; + } + + public Criteria andPlatformIsNotNull() { + addCriterion("platform is not null"); + return (Criteria) this; + } + + public Criteria andPlatformEqualTo(String value) { + addCriterion("platform =", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotEqualTo(String value) { + addCriterion("platform <>", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformGreaterThan(String value) { + addCriterion("platform >", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformGreaterThanOrEqualTo(String value) { + addCriterion("platform >=", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformLessThan(String value) { + addCriterion("platform <", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformLessThanOrEqualTo(String value) { + addCriterion("platform <=", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformLike(String value) { + addCriterion("platform like", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotLike(String value) { + addCriterion("platform not like", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformIn(List values) { + addCriterion("platform in", values, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotIn(List values) { + addCriterion("platform not in", values, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformBetween(String value1, String value2) { + addCriterion("platform between", value1, value2, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotBetween(String value1, String value2) { + addCriterion("platform not between", value1, value2, "platform"); + return (Criteria) this; + } + + public Criteria andDeviceidIsNull() { + addCriterion("deviceId is null"); + return (Criteria) this; + } + + public Criteria andDeviceidIsNotNull() { + addCriterion("deviceId is not null"); + return (Criteria) this; + } + + public Criteria andDeviceidEqualTo(String value) { + addCriterion("deviceId =", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotEqualTo(String value) { + addCriterion("deviceId <>", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidGreaterThan(String value) { + addCriterion("deviceId >", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidGreaterThanOrEqualTo(String value) { + addCriterion("deviceId >=", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidLessThan(String value) { + addCriterion("deviceId <", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidLessThanOrEqualTo(String value) { + addCriterion("deviceId <=", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidLike(String value) { + addCriterion("deviceId like", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotLike(String value) { + addCriterion("deviceId not like", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidIn(List values) { + addCriterion("deviceId in", values, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotIn(List values) { + addCriterion("deviceId not in", values, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidBetween(String value1, String value2) { + addCriterion("deviceId between", value1, value2, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotBetween(String value1, String value2) { + addCriterion("deviceId not between", value1, value2, "deviceid"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(Integer value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(Integer value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(Integer value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(Integer value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(Integer value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(Integer value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(Integer value1, Integer value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(Integer value1, Integer value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andBelongIsNull() { + addCriterion("belong is null"); + return (Criteria) this; + } + + public Criteria andBelongIsNotNull() { + addCriterion("belong is not null"); + return (Criteria) this; + } + + public Criteria andBelongEqualTo(Integer value) { + addCriterion("belong =", value, "belong"); + return (Criteria) this; + } + + public Criteria andBelongNotEqualTo(Integer value) { + addCriterion("belong <>", value, "belong"); + return (Criteria) this; + } + + public Criteria andBelongGreaterThan(Integer value) { + addCriterion("belong >", value, "belong"); + return (Criteria) this; + } + + public Criteria andBelongGreaterThanOrEqualTo(Integer value) { + addCriterion("belong >=", value, "belong"); + return (Criteria) this; + } + + public Criteria andBelongLessThan(Integer value) { + addCriterion("belong <", value, "belong"); + return (Criteria) this; + } + + public Criteria andBelongLessThanOrEqualTo(Integer value) { + addCriterion("belong <=", value, "belong"); + return (Criteria) this; + } + + public Criteria andBelongIn(List values) { + addCriterion("belong in", values, "belong"); + return (Criteria) this; + } + + public Criteria andBelongNotIn(List values) { + addCriterion("belong not in", values, "belong"); + return (Criteria) this; + } + + public Criteria andBelongBetween(Integer value1, Integer value2) { + addCriterion("belong between", value1, value2, "belong"); + return (Criteria) this; + } + + public Criteria andBelongNotBetween(Integer value1, Integer value2) { + addCriterion("belong not between", value1, value2, "belong"); + return (Criteria) this; + } + + public Criteria andHandleResultIsNull() { + addCriterion("handle_result is null"); + return (Criteria) this; + } + + public Criteria andHandleResultIsNotNull() { + addCriterion("handle_result is not null"); + return (Criteria) this; + } + + public Criteria andHandleResultEqualTo(String value) { + addCriterion("handle_result =", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultNotEqualTo(String value) { + addCriterion("handle_result <>", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultGreaterThan(String value) { + addCriterion("handle_result >", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultGreaterThanOrEqualTo(String value) { + addCriterion("handle_result >=", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultLessThan(String value) { + addCriterion("handle_result <", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultLessThanOrEqualTo(String value) { + addCriterion("handle_result <=", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultLike(String value) { + addCriterion("handle_result like", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultNotLike(String value) { + addCriterion("handle_result not like", value, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultIn(List values) { + addCriterion("handle_result in", values, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultNotIn(List values) { + addCriterion("handle_result not in", values, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultBetween(String value1, String value2) { + addCriterion("handle_result between", value1, value2, "handleResult"); + return (Criteria) this; + } + + public Criteria andHandleResultNotBetween(String value1, String value2) { + addCriterion("handle_result not between", value1, value2, "handleResult"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdIsNull() { + addCriterion("register_info_id is null"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdIsNotNull() { + addCriterion("register_info_id is not null"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdEqualTo(Integer value) { + addCriterion("register_info_id =", value, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdNotEqualTo(Integer value) { + addCriterion("register_info_id <>", value, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdGreaterThan(Integer value) { + addCriterion("register_info_id >", value, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdGreaterThanOrEqualTo(Integer value) { + addCriterion("register_info_id >=", value, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdLessThan(Integer value) { + addCriterion("register_info_id <", value, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdLessThanOrEqualTo(Integer value) { + addCriterion("register_info_id <=", value, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdIn(List values) { + addCriterion("register_info_id in", values, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdNotIn(List values) { + addCriterion("register_info_id not in", values, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdBetween(Integer value1, Integer value2) { + addCriterion("register_info_id between", value1, value2, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andRegisterInfoIdNotBetween(Integer value1, Integer value2) { + addCriterion("register_info_id not between", value1, value2, "registerInfoId"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNull() { + addCriterion("updatetime is null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNotNull() { + addCriterion("updatetime is not null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeEqualTo(Date value) { + addCriterion("updatetime =", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotEqualTo(Date value) { + addCriterion("updatetime <>", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThan(Date value) { + addCriterion("updatetime >", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("updatetime >=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThan(Date value) { + addCriterion("updatetime <", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThanOrEqualTo(Date value) { + addCriterion("updatetime <=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIn(List values) { + addCriterion("updatetime in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotIn(List values) { + addCriterion("updatetime not in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeBetween(Date value1, Date value2) { + addCriterion("updatetime between", value1, value2, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotBetween(Date value1, Date value2) { + addCriterion("updatetime not between", value1, value2, "updatetime"); + 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/src/main/java/com/topsail/influxdb/pojo/DeviceDetails.java b/src/main/java/com/topsail/influxdb/pojo/DeviceDetails.java new file mode 100644 index 0000000..b7e44b5 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceDetails.java @@ -0,0 +1,379 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class DeviceDetails { + private Integer id; + + private String imei; + + private Integer deviceType; + + private Date buyDate; + + private Float buyLong; + + private Integer delivered; + + private Integer companyId; + + private String companyName; + + private String companyperiod; + + private Integer projectId; + + private String platform; + + private String projectName; + + private Integer orderId; + + private String orderNo; + + private Integer buyNumber; + + private String productStatus; + + private Integer period; + + private Integer status; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getDeviceType() { + return deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + public Date getBuyDate() { + return buyDate; + } + + public void setBuyDate(Date buyDate) { + this.buyDate = buyDate; + } + + public Float getBuyLong() { + return buyLong; + } + + public void setBuyLong(Float buyLong) { + this.buyLong = buyLong; + } + + public Integer getDelivered() { + return delivered; + } + + public void setDelivered(Integer delivered) { + this.delivered = delivered; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public String getCompanyName() { + return companyName; + } + + public void setCompanyName(String companyName) { + this.companyName = companyName == null ? null : companyName.trim(); + } + + public String getCompanyperiod() { + return companyperiod; + } + + public void setCompanyperiod(String companyperiod) { + this.companyperiod = companyperiod == null ? null : companyperiod.trim(); + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public String getPlatform() { + return platform; + } + + public void setPlatform(String platform) { + this.platform = platform == null ? null : platform.trim(); + } + + public String getProjectName() { + return projectName; + } + + public void setProjectName(String projectName) { + this.projectName = projectName == null ? null : projectName.trim(); + } + + public Integer getOrderId() { + return orderId; + } + + public void setOrderId(Integer orderId) { + this.orderId = orderId; + } + + public String getOrderNo() { + return orderNo; + } + + public void setOrderNo(String orderNo) { + this.orderNo = orderNo == null ? null : orderNo.trim(); + } + + public Integer getBuyNumber() { + return buyNumber; + } + + public void setBuyNumber(Integer buyNumber) { + this.buyNumber = buyNumber; + } + + public String getProductStatus() { + return productStatus; + } + + public void setProductStatus(String productStatus) { + this.productStatus = productStatus == null ? null : productStatus.trim(); + } + + public Integer getPeriod() { + return period; + } + + public void setPeriod(Integer period) { + this.period = period; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + imei("imei", "imei", "VARCHAR", false), + deviceType("device_type", "deviceType", "INTEGER", false), + buyDate("buy_date", "buyDate", "TIMESTAMP", false), + buyLong("buy_long", "buyLong", "REAL", false), + delivered("delivered", "delivered", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false), + companyName("company_name", "companyName", "VARCHAR", false), + companyperiod("companyperiod", "companyperiod", "VARCHAR", false), + projectId("project_id", "projectId", "INTEGER", false), + platform("platform", "platform", "VARCHAR", false), + projectName("project_name", "projectName", "VARCHAR", false), + orderId("order_id", "orderId", "INTEGER", false), + orderNo("order_no", "orderNo", "VARCHAR", false), + buyNumber("buy_number", "buyNumber", "INTEGER", false), + productStatus("product_status", "productStatus", "VARCHAR", false), + period("period", "period", "INTEGER", false), + status("status", "status", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_details + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceDetailsExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceDetailsExample.java new file mode 100644 index 0000000..3b0aec0 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceDetailsExample.java @@ -0,0 +1,1351 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DeviceDetailsExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceDetailsExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIsNull() { + addCriterion("device_type is null"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIsNotNull() { + addCriterion("device_type is not null"); + return (Criteria) this; + } + + public Criteria andDeviceTypeEqualTo(Integer value) { + addCriterion("device_type =", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotEqualTo(Integer value) { + addCriterion("device_type <>", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeGreaterThan(Integer value) { + addCriterion("device_type >", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeGreaterThanOrEqualTo(Integer value) { + addCriterion("device_type >=", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeLessThan(Integer value) { + addCriterion("device_type <", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeLessThanOrEqualTo(Integer value) { + addCriterion("device_type <=", value, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeIn(List values) { + addCriterion("device_type in", values, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotIn(List values) { + addCriterion("device_type not in", values, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeBetween(Integer value1, Integer value2) { + addCriterion("device_type between", value1, value2, "deviceType"); + return (Criteria) this; + } + + public Criteria andDeviceTypeNotBetween(Integer value1, Integer value2) { + addCriterion("device_type not between", value1, value2, "deviceType"); + return (Criteria) this; + } + + public Criteria andBuyDateIsNull() { + addCriterion("buy_date is null"); + return (Criteria) this; + } + + public Criteria andBuyDateIsNotNull() { + addCriterion("buy_date is not null"); + return (Criteria) this; + } + + public Criteria andBuyDateEqualTo(Date value) { + addCriterion("buy_date =", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateNotEqualTo(Date value) { + addCriterion("buy_date <>", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateGreaterThan(Date value) { + addCriterion("buy_date >", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateGreaterThanOrEqualTo(Date value) { + addCriterion("buy_date >=", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateLessThan(Date value) { + addCriterion("buy_date <", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateLessThanOrEqualTo(Date value) { + addCriterion("buy_date <=", value, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateIn(List values) { + addCriterion("buy_date in", values, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateNotIn(List values) { + addCriterion("buy_date not in", values, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateBetween(Date value1, Date value2) { + addCriterion("buy_date between", value1, value2, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyDateNotBetween(Date value1, Date value2) { + addCriterion("buy_date not between", value1, value2, "buyDate"); + return (Criteria) this; + } + + public Criteria andBuyLongIsNull() { + addCriterion("buy_long is null"); + return (Criteria) this; + } + + public Criteria andBuyLongIsNotNull() { + addCriterion("buy_long is not null"); + return (Criteria) this; + } + + public Criteria andBuyLongEqualTo(Float value) { + addCriterion("buy_long =", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongNotEqualTo(Float value) { + addCriterion("buy_long <>", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongGreaterThan(Float value) { + addCriterion("buy_long >", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongGreaterThanOrEqualTo(Float value) { + addCriterion("buy_long >=", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongLessThan(Float value) { + addCriterion("buy_long <", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongLessThanOrEqualTo(Float value) { + addCriterion("buy_long <=", value, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongIn(List values) { + addCriterion("buy_long in", values, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongNotIn(List values) { + addCriterion("buy_long not in", values, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongBetween(Float value1, Float value2) { + addCriterion("buy_long between", value1, value2, "buyLong"); + return (Criteria) this; + } + + public Criteria andBuyLongNotBetween(Float value1, Float value2) { + addCriterion("buy_long not between", value1, value2, "buyLong"); + return (Criteria) this; + } + + public Criteria andDeliveredIsNull() { + addCriterion("delivered is null"); + return (Criteria) this; + } + + public Criteria andDeliveredIsNotNull() { + addCriterion("delivered is not null"); + return (Criteria) this; + } + + public Criteria andDeliveredEqualTo(Integer value) { + addCriterion("delivered =", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredNotEqualTo(Integer value) { + addCriterion("delivered <>", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredGreaterThan(Integer value) { + addCriterion("delivered >", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredGreaterThanOrEqualTo(Integer value) { + addCriterion("delivered >=", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredLessThan(Integer value) { + addCriterion("delivered <", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredLessThanOrEqualTo(Integer value) { + addCriterion("delivered <=", value, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredIn(List values) { + addCriterion("delivered in", values, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredNotIn(List values) { + addCriterion("delivered not in", values, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredBetween(Integer value1, Integer value2) { + addCriterion("delivered between", value1, value2, "delivered"); + return (Criteria) this; + } + + public Criteria andDeliveredNotBetween(Integer value1, Integer value2) { + addCriterion("delivered not between", value1, value2, "delivered"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyNameIsNull() { + addCriterion("company_name is null"); + return (Criteria) this; + } + + public Criteria andCompanyNameIsNotNull() { + addCriterion("company_name is not null"); + return (Criteria) this; + } + + public Criteria andCompanyNameEqualTo(String value) { + addCriterion("company_name =", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotEqualTo(String value) { + addCriterion("company_name <>", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameGreaterThan(String value) { + addCriterion("company_name >", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameGreaterThanOrEqualTo(String value) { + addCriterion("company_name >=", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLessThan(String value) { + addCriterion("company_name <", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLessThanOrEqualTo(String value) { + addCriterion("company_name <=", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameLike(String value) { + addCriterion("company_name like", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotLike(String value) { + addCriterion("company_name not like", value, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameIn(List values) { + addCriterion("company_name in", values, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotIn(List values) { + addCriterion("company_name not in", values, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameBetween(String value1, String value2) { + addCriterion("company_name between", value1, value2, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyNameNotBetween(String value1, String value2) { + addCriterion("company_name not between", value1, value2, "companyName"); + return (Criteria) this; + } + + public Criteria andCompanyperiodIsNull() { + addCriterion("companyperiod is null"); + return (Criteria) this; + } + + public Criteria andCompanyperiodIsNotNull() { + addCriterion("companyperiod is not null"); + return (Criteria) this; + } + + public Criteria andCompanyperiodEqualTo(String value) { + addCriterion("companyperiod =", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodNotEqualTo(String value) { + addCriterion("companyperiod <>", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodGreaterThan(String value) { + addCriterion("companyperiod >", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodGreaterThanOrEqualTo(String value) { + addCriterion("companyperiod >=", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodLessThan(String value) { + addCriterion("companyperiod <", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodLessThanOrEqualTo(String value) { + addCriterion("companyperiod <=", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodLike(String value) { + addCriterion("companyperiod like", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodNotLike(String value) { + addCriterion("companyperiod not like", value, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodIn(List values) { + addCriterion("companyperiod in", values, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodNotIn(List values) { + addCriterion("companyperiod not in", values, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodBetween(String value1, String value2) { + addCriterion("companyperiod between", value1, value2, "companyperiod"); + return (Criteria) this; + } + + public Criteria andCompanyperiodNotBetween(String value1, String value2) { + addCriterion("companyperiod not between", value1, value2, "companyperiod"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andPlatformIsNull() { + addCriterion("platform is null"); + return (Criteria) this; + } + + public Criteria andPlatformIsNotNull() { + addCriterion("platform is not null"); + return (Criteria) this; + } + + public Criteria andPlatformEqualTo(String value) { + addCriterion("platform =", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotEqualTo(String value) { + addCriterion("platform <>", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformGreaterThan(String value) { + addCriterion("platform >", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformGreaterThanOrEqualTo(String value) { + addCriterion("platform >=", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformLessThan(String value) { + addCriterion("platform <", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformLessThanOrEqualTo(String value) { + addCriterion("platform <=", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformLike(String value) { + addCriterion("platform like", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotLike(String value) { + addCriterion("platform not like", value, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformIn(List values) { + addCriterion("platform in", values, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotIn(List values) { + addCriterion("platform not in", values, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformBetween(String value1, String value2) { + addCriterion("platform between", value1, value2, "platform"); + return (Criteria) this; + } + + public Criteria andPlatformNotBetween(String value1, String value2) { + addCriterion("platform not between", value1, value2, "platform"); + return (Criteria) this; + } + + public Criteria andProjectNameIsNull() { + addCriterion("project_name is null"); + return (Criteria) this; + } + + public Criteria andProjectNameIsNotNull() { + addCriterion("project_name is not null"); + return (Criteria) this; + } + + public Criteria andProjectNameEqualTo(String value) { + addCriterion("project_name =", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameNotEqualTo(String value) { + addCriterion("project_name <>", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameGreaterThan(String value) { + addCriterion("project_name >", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameGreaterThanOrEqualTo(String value) { + addCriterion("project_name >=", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameLessThan(String value) { + addCriterion("project_name <", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameLessThanOrEqualTo(String value) { + addCriterion("project_name <=", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameLike(String value) { + addCriterion("project_name like", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameNotLike(String value) { + addCriterion("project_name not like", value, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameIn(List values) { + addCriterion("project_name in", values, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameNotIn(List values) { + addCriterion("project_name not in", values, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameBetween(String value1, String value2) { + addCriterion("project_name between", value1, value2, "projectName"); + return (Criteria) this; + } + + public Criteria andProjectNameNotBetween(String value1, String value2) { + addCriterion("project_name not between", value1, value2, "projectName"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Integer value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Integer value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Integer value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Integer value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Integer value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Integer value1, Integer value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNull() { + addCriterion("order_no is null"); + return (Criteria) this; + } + + public Criteria andOrderNoIsNotNull() { + addCriterion("order_no is not null"); + return (Criteria) this; + } + + public Criteria andOrderNoEqualTo(String value) { + addCriterion("order_no =", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotEqualTo(String value) { + addCriterion("order_no <>", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThan(String value) { + addCriterion("order_no >", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoGreaterThanOrEqualTo(String value) { + addCriterion("order_no >=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThan(String value) { + addCriterion("order_no <", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLessThanOrEqualTo(String value) { + addCriterion("order_no <=", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoLike(String value) { + addCriterion("order_no like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotLike(String value) { + addCriterion("order_no not like", value, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoIn(List values) { + addCriterion("order_no in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotIn(List values) { + addCriterion("order_no not in", values, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoBetween(String value1, String value2) { + addCriterion("order_no between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andOrderNoNotBetween(String value1, String value2) { + addCriterion("order_no not between", value1, value2, "orderNo"); + return (Criteria) this; + } + + public Criteria andBuyNumberIsNull() { + addCriterion("buy_number is null"); + return (Criteria) this; + } + + public Criteria andBuyNumberIsNotNull() { + addCriterion("buy_number is not null"); + return (Criteria) this; + } + + public Criteria andBuyNumberEqualTo(Integer value) { + addCriterion("buy_number =", value, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberNotEqualTo(Integer value) { + addCriterion("buy_number <>", value, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberGreaterThan(Integer value) { + addCriterion("buy_number >", value, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberGreaterThanOrEqualTo(Integer value) { + addCriterion("buy_number >=", value, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberLessThan(Integer value) { + addCriterion("buy_number <", value, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberLessThanOrEqualTo(Integer value) { + addCriterion("buy_number <=", value, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberIn(List values) { + addCriterion("buy_number in", values, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberNotIn(List values) { + addCriterion("buy_number not in", values, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberBetween(Integer value1, Integer value2) { + addCriterion("buy_number between", value1, value2, "buyNumber"); + return (Criteria) this; + } + + public Criteria andBuyNumberNotBetween(Integer value1, Integer value2) { + addCriterion("buy_number not between", value1, value2, "buyNumber"); + return (Criteria) this; + } + + public Criteria andProductStatusIsNull() { + addCriterion("product_status is null"); + return (Criteria) this; + } + + public Criteria andProductStatusIsNotNull() { + addCriterion("product_status is not null"); + return (Criteria) this; + } + + public Criteria andProductStatusEqualTo(String value) { + addCriterion("product_status =", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusNotEqualTo(String value) { + addCriterion("product_status <>", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusGreaterThan(String value) { + addCriterion("product_status >", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusGreaterThanOrEqualTo(String value) { + addCriterion("product_status >=", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusLessThan(String value) { + addCriterion("product_status <", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusLessThanOrEqualTo(String value) { + addCriterion("product_status <=", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusLike(String value) { + addCriterion("product_status like", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusNotLike(String value) { + addCriterion("product_status not like", value, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusIn(List values) { + addCriterion("product_status in", values, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusNotIn(List values) { + addCriterion("product_status not in", values, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusBetween(String value1, String value2) { + addCriterion("product_status between", value1, value2, "productStatus"); + return (Criteria) this; + } + + public Criteria andProductStatusNotBetween(String value1, String value2) { + addCriterion("product_status not between", value1, value2, "productStatus"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(Integer value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(Integer value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(Integer value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(Integer value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(Integer value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(Integer value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(Integer value1, Integer value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(Integer value1, Integer value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("status not between", value1, value2, "status"); + 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/src/main/java/com/topsail/influxdb/pojo/DeviceExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceExample.java new file mode 100644 index 0000000..9a8b206 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceExample.java @@ -0,0 +1,1241 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DeviceExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceExample() { + 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 andImeiIsNull() { + addCriterion("Imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("Imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("Imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("Imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("Imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("Imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("Imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("Imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("Imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("Imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("Imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("Imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("Imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("Imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNull() { + addCriterion("batteryLevel is null"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNotNull() { + addCriterion("batteryLevel is not null"); + return (Criteria) this; + } + + public Criteria andBatterylevelEqualTo(Integer value) { + addCriterion("batteryLevel =", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotEqualTo(Integer value) { + addCriterion("batteryLevel <>", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThan(Integer value) { + addCriterion("batteryLevel >", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryLevel >=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThan(Integer value) { + addCriterion("batteryLevel <", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { + addCriterion("batteryLevel <=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelIn(List values) { + addCriterion("batteryLevel in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotIn(List values) { + addCriterion("batteryLevel not in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel not between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNull() { + addCriterion("singalStrength is null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNotNull() { + addCriterion("singalStrength is not null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthEqualTo(Integer value) { + addCriterion("singalStrength =", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotEqualTo(Integer value) { + addCriterion("singalStrength <>", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThan(Integer value) { + addCriterion("singalStrength >", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { + addCriterion("singalStrength >=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThan(Integer value) { + addCriterion("singalStrength <", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { + addCriterion("singalStrength <=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIn(List values) { + addCriterion("singalStrength in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotIn(List values) { + addCriterion("singalStrength not in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { + addCriterion("singalStrength between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { + addCriterion("singalStrength not between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSampledataIsNull() { + addCriterion("sampleData is null"); + return (Criteria) this; + } + + public Criteria andSampledataIsNotNull() { + addCriterion("sampleData is not null"); + return (Criteria) this; + } + + public Criteria andSampledataEqualTo(String value) { + addCriterion("sampleData =", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotEqualTo(String value) { + addCriterion("sampleData <>", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThan(String value) { + addCriterion("sampleData >", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThanOrEqualTo(String value) { + addCriterion("sampleData >=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThan(String value) { + addCriterion("sampleData <", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThanOrEqualTo(String value) { + addCriterion("sampleData <=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLike(String value) { + addCriterion("sampleData like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotLike(String value) { + addCriterion("sampleData not like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataIn(List values) { + addCriterion("sampleData in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotIn(List values) { + addCriterion("sampleData not in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataBetween(String value1, String value2) { + addCriterion("sampleData between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotBetween(String value1, String value2) { + addCriterion("sampleData not between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andPassnumIsNull() { + addCriterion("passNum is null"); + return (Criteria) this; + } + + public Criteria andPassnumIsNotNull() { + addCriterion("passNum is not null"); + return (Criteria) this; + } + + public Criteria andPassnumEqualTo(Integer value) { + addCriterion("passNum =", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotEqualTo(Integer value) { + addCriterion("passNum <>", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThan(Integer value) { + addCriterion("passNum >", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { + addCriterion("passNum >=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThan(Integer value) { + addCriterion("passNum <", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThanOrEqualTo(Integer value) { + addCriterion("passNum <=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumIn(List values) { + addCriterion("passNum in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotIn(List values) { + addCriterion("passNum not in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumBetween(Integer value1, Integer value2) { + addCriterion("passNum between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotBetween(Integer value1, Integer value2) { + addCriterion("passNum not between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNull() { + addCriterion("batteryState is null"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNotNull() { + addCriterion("batteryState is not null"); + return (Criteria) this; + } + + public Criteria andBatterystateEqualTo(Integer value) { + addCriterion("batteryState =", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotEqualTo(Integer value) { + addCriterion("batteryState <>", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThan(Integer value) { + addCriterion("batteryState >", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryState >=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThan(Integer value) { + addCriterion("batteryState <", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThanOrEqualTo(Integer value) { + addCriterion("batteryState <=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateIn(List values) { + addCriterion("batteryState in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotIn(List values) { + addCriterion("batteryState not in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateBetween(Integer value1, Integer value2) { + addCriterion("batteryState between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { + addCriterion("batteryState not between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNull() { + addCriterion("alarmType is null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNotNull() { + addCriterion("alarmType is not null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeEqualTo(String value) { + addCriterion("alarmType =", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotEqualTo(String value) { + addCriterion("alarmType <>", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThan(String value) { + addCriterion("alarmType >", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { + addCriterion("alarmType >=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThan(String value) { + addCriterion("alarmType <", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThanOrEqualTo(String value) { + addCriterion("alarmType <=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLike(String value) { + addCriterion("alarmType like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotLike(String value) { + addCriterion("alarmType not like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIn(List values) { + addCriterion("alarmType in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotIn(List values) { + addCriterion("alarmType not in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeBetween(String value1, String value2) { + addCriterion("alarmType between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotBetween(String value1, String value2) { + addCriterion("alarmType not between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNull() { + addCriterion("sendTime is null"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNotNull() { + addCriterion("sendTime is not null"); + return (Criteria) this; + } + + public Criteria andSendtimeEqualTo(String value) { + addCriterion("sendTime =", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotEqualTo(String value) { + addCriterion("sendTime <>", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThan(String value) { + addCriterion("sendTime >", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThanOrEqualTo(String value) { + addCriterion("sendTime >=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThan(String value) { + addCriterion("sendTime <", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThanOrEqualTo(String value) { + addCriterion("sendTime <=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLike(String value) { + addCriterion("sendTime like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotLike(String value) { + addCriterion("sendTime not like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeIn(List values) { + addCriterion("sendTime in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotIn(List values) { + addCriterion("sendTime not in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeBetween(String value1, String value2) { + addCriterion("sendTime between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotBetween(String value1, String value2) { + addCriterion("sendTime not between", value1, value2, "sendtime"); + 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 andOfflinetimeIsNull() { + addCriterion("offlineTime is null"); + return (Criteria) this; + } + + public Criteria andOfflinetimeIsNotNull() { + addCriterion("offlineTime is not null"); + return (Criteria) this; + } + + public Criteria andOfflinetimeEqualTo(Date value) { + addCriterion("offlineTime =", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeNotEqualTo(Date value) { + addCriterion("offlineTime <>", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeGreaterThan(Date value) { + addCriterion("offlineTime >", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeGreaterThanOrEqualTo(Date value) { + addCriterion("offlineTime >=", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeLessThan(Date value) { + addCriterion("offlineTime <", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeLessThanOrEqualTo(Date value) { + addCriterion("offlineTime <=", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeIn(List values) { + addCriterion("offlineTime in", values, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeNotIn(List values) { + addCriterion("offlineTime not in", values, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeBetween(Date value1, Date value2) { + addCriterion("offlineTime between", value1, value2, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeNotBetween(Date value1, Date value2) { + addCriterion("offlineTime not between", value1, value2, "offlinetime"); + 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 andSenddateIsNull() { + addCriterion("sendDate is null"); + return (Criteria) this; + } + + public Criteria andSenddateIsNotNull() { + addCriterion("sendDate is not null"); + return (Criteria) this; + } + + public Criteria andSenddateEqualTo(Date value) { + addCriterion("sendDate =", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotEqualTo(Date value) { + addCriterion("sendDate <>", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThan(Date value) { + addCriterion("sendDate >", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThanOrEqualTo(Date value) { + addCriterion("sendDate >=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThan(Date value) { + addCriterion("sendDate <", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThanOrEqualTo(Date value) { + addCriterion("sendDate <=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateIn(List values) { + addCriterion("sendDate in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotIn(List values) { + addCriterion("sendDate not in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateBetween(Date value1, Date value2) { + addCriterion("sendDate between", value1, value2, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotBetween(Date value1, Date value2) { + addCriterion("sendDate not between", value1, value2, "senddate"); + 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/src/main/java/com/topsail/influxdb/pojo/DeviceInfo.java b/src/main/java/com/topsail/influxdb/pojo/DeviceInfo.java new file mode 100644 index 0000000..77edc31 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceInfo.java @@ -0,0 +1,279 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class DeviceInfo { + private Integer id; + + private String verifycode; + + private String devicetype; + + private String username; + + private String latitude; + + private String longitude; + + private String version; + + private Integer fkPid; + + private String deviceid; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getVerifycode() { + return verifycode; + } + + public void setVerifycode(String verifycode) { + this.verifycode = verifycode == null ? null : verifycode.trim(); + } + + public String getDevicetype() { + return devicetype; + } + + public void setDevicetype(String devicetype) { + this.devicetype = devicetype == null ? null : devicetype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude == null ? null : latitude.trim(); + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude == null ? null : longitude.trim(); + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version == null ? null : version.trim(); + } + + public Integer getFkPid() { + return fkPid; + } + + public void setFkPid(Integer fkPid) { + this.fkPid = fkPid; + } + + public String getDeviceid() { + return deviceid; + } + + public void setDeviceid(String deviceid) { + this.deviceid = deviceid == null ? null : deviceid.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + verifycode("verifyCode", "verifycode", "VARCHAR", false), + devicetype("deviceType", "devicetype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + latitude("latitude", "latitude", "VARCHAR", false), + longitude("longitude", "longitude", "VARCHAR", false), + version("version", "version", "VARCHAR", false), + fkPid("fk_pid", "fkPid", "INTEGER", false), + deviceid("deviceId", "deviceid", "LONGVARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_info + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceInfoExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceInfoExample.java new file mode 100644 index 0000000..01ddffb --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceInfoExample.java @@ -0,0 +1,740 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class DeviceInfoExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceInfoExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andVerifycodeIsNull() { + addCriterion("verifyCode is null"); + return (Criteria) this; + } + + public Criteria andVerifycodeIsNotNull() { + addCriterion("verifyCode is not null"); + return (Criteria) this; + } + + public Criteria andVerifycodeEqualTo(String value) { + addCriterion("verifyCode =", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotEqualTo(String value) { + addCriterion("verifyCode <>", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeGreaterThan(String value) { + addCriterion("verifyCode >", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeGreaterThanOrEqualTo(String value) { + addCriterion("verifyCode >=", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLessThan(String value) { + addCriterion("verifyCode <", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLessThanOrEqualTo(String value) { + addCriterion("verifyCode <=", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLike(String value) { + addCriterion("verifyCode like", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotLike(String value) { + addCriterion("verifyCode not like", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeIn(List values) { + addCriterion("verifyCode in", values, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotIn(List values) { + addCriterion("verifyCode not in", values, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeBetween(String value1, String value2) { + addCriterion("verifyCode between", value1, value2, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotBetween(String value1, String value2) { + addCriterion("verifyCode not between", value1, value2, "verifycode"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(String value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(String value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(String value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(String value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(String value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(String value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLike(String value) { + addCriterion("deviceType like", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotLike(String value) { + addCriterion("deviceType not like", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(String value1, String value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(String value1, String value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andLatitudeIsNull() { + addCriterion("latitude is null"); + return (Criteria) this; + } + + public Criteria andLatitudeIsNotNull() { + addCriterion("latitude is not null"); + return (Criteria) this; + } + + public Criteria andLatitudeEqualTo(String value) { + addCriterion("latitude =", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotEqualTo(String value) { + addCriterion("latitude <>", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeGreaterThan(String value) { + addCriterion("latitude >", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeGreaterThanOrEqualTo(String value) { + addCriterion("latitude >=", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLessThan(String value) { + addCriterion("latitude <", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLessThanOrEqualTo(String value) { + addCriterion("latitude <=", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLike(String value) { + addCriterion("latitude like", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotLike(String value) { + addCriterion("latitude not like", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeIn(List values) { + addCriterion("latitude in", values, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotIn(List values) { + addCriterion("latitude not in", values, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeBetween(String value1, String value2) { + addCriterion("latitude between", value1, value2, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotBetween(String value1, String value2) { + addCriterion("latitude not between", value1, value2, "latitude"); + return (Criteria) this; + } + + public Criteria andLongitudeIsNull() { + addCriterion("longitude is null"); + return (Criteria) this; + } + + public Criteria andLongitudeIsNotNull() { + addCriterion("longitude is not null"); + return (Criteria) this; + } + + public Criteria andLongitudeEqualTo(String value) { + addCriterion("longitude =", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotEqualTo(String value) { + addCriterion("longitude <>", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeGreaterThan(String value) { + addCriterion("longitude >", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeGreaterThanOrEqualTo(String value) { + addCriterion("longitude >=", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLessThan(String value) { + addCriterion("longitude <", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLessThanOrEqualTo(String value) { + addCriterion("longitude <=", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLike(String value) { + addCriterion("longitude like", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotLike(String value) { + addCriterion("longitude not like", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeIn(List values) { + addCriterion("longitude in", values, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotIn(List values) { + addCriterion("longitude not in", values, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeBetween(String value1, String value2) { + addCriterion("longitude between", value1, value2, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotBetween(String value1, String value2) { + addCriterion("longitude not between", value1, value2, "longitude"); + return (Criteria) this; + } + + public Criteria andVersionIsNull() { + addCriterion("version is null"); + return (Criteria) this; + } + + public Criteria andVersionIsNotNull() { + addCriterion("version is not null"); + return (Criteria) this; + } + + public Criteria andVersionEqualTo(String value) { + addCriterion("version =", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotEqualTo(String value) { + addCriterion("version <>", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThan(String value) { + addCriterion("version >", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThanOrEqualTo(String value) { + addCriterion("version >=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThan(String value) { + addCriterion("version <", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThanOrEqualTo(String value) { + addCriterion("version <=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLike(String value) { + addCriterion("version like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotLike(String value) { + addCriterion("version not like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionIn(List values) { + addCriterion("version in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotIn(List values) { + addCriterion("version not in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionBetween(String value1, String value2) { + addCriterion("version between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotBetween(String value1, String value2) { + addCriterion("version not between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andFkPidIsNull() { + addCriterion("fk_pid is null"); + return (Criteria) this; + } + + public Criteria andFkPidIsNotNull() { + addCriterion("fk_pid is not null"); + return (Criteria) this; + } + + public Criteria andFkPidEqualTo(Integer value) { + addCriterion("fk_pid =", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidNotEqualTo(Integer value) { + addCriterion("fk_pid <>", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidGreaterThan(Integer value) { + addCriterion("fk_pid >", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidGreaterThanOrEqualTo(Integer value) { + addCriterion("fk_pid >=", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidLessThan(Integer value) { + addCriterion("fk_pid <", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidLessThanOrEqualTo(Integer value) { + addCriterion("fk_pid <=", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidIn(List values) { + addCriterion("fk_pid in", values, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidNotIn(List values) { + addCriterion("fk_pid not in", values, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidBetween(Integer value1, Integer value2) { + addCriterion("fk_pid between", value1, value2, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidNotBetween(Integer value1, Integer value2) { + addCriterion("fk_pid not between", value1, value2, "fkPid"); + 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/src/main/java/com/topsail/influxdb/pojo/DeviceLog.java b/src/main/java/com/topsail/influxdb/pojo/DeviceLog.java new file mode 100644 index 0000000..09ec703 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceLog.java @@ -0,0 +1,236 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class DeviceLog { + private Integer id; + + private String imei; + + private String operation; + + private String params; + + private Date updatetime; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public String getOperation() { + return operation; + } + + public void setOperation(String operation) { + this.operation = operation == null ? null : operation.trim(); + } + + public String getParams() { + return params; + } + + public void setParams(String params) { + this.params = params == null ? null : params.trim(); + } + + public Date getUpdatetime() { + return updatetime; + } + + public void setUpdatetime(Date updatetime) { + this.updatetime = updatetime; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + imei("imei", "imei", "VARCHAR", false), + operation("operation", "operation", "VARCHAR", false), + params("params", "params", "VARCHAR", false), + updatetime("updatetime", "updatetime", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_log + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceLogExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceLogExample.java new file mode 100644 index 0000000..c880b49 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceLogExample.java @@ -0,0 +1,531 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DeviceLogExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceLogExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andOperationIsNull() { + addCriterion("operation is null"); + return (Criteria) this; + } + + public Criteria andOperationIsNotNull() { + addCriterion("operation is not null"); + return (Criteria) this; + } + + public Criteria andOperationEqualTo(String value) { + addCriterion("operation =", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationNotEqualTo(String value) { + addCriterion("operation <>", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationGreaterThan(String value) { + addCriterion("operation >", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationGreaterThanOrEqualTo(String value) { + addCriterion("operation >=", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationLessThan(String value) { + addCriterion("operation <", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationLessThanOrEqualTo(String value) { + addCriterion("operation <=", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationLike(String value) { + addCriterion("operation like", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationNotLike(String value) { + addCriterion("operation not like", value, "operation"); + return (Criteria) this; + } + + public Criteria andOperationIn(List values) { + addCriterion("operation in", values, "operation"); + return (Criteria) this; + } + + public Criteria andOperationNotIn(List values) { + addCriterion("operation not in", values, "operation"); + return (Criteria) this; + } + + public Criteria andOperationBetween(String value1, String value2) { + addCriterion("operation between", value1, value2, "operation"); + return (Criteria) this; + } + + public Criteria andOperationNotBetween(String value1, String value2) { + addCriterion("operation not between", value1, value2, "operation"); + return (Criteria) this; + } + + public Criteria andParamsIsNull() { + addCriterion("params is null"); + return (Criteria) this; + } + + public Criteria andParamsIsNotNull() { + addCriterion("params is not null"); + return (Criteria) this; + } + + public Criteria andParamsEqualTo(String value) { + addCriterion("params =", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotEqualTo(String value) { + addCriterion("params <>", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsGreaterThan(String value) { + addCriterion("params >", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsGreaterThanOrEqualTo(String value) { + addCriterion("params >=", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsLessThan(String value) { + addCriterion("params <", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsLessThanOrEqualTo(String value) { + addCriterion("params <=", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsLike(String value) { + addCriterion("params like", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotLike(String value) { + addCriterion("params not like", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsIn(List values) { + addCriterion("params in", values, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotIn(List values) { + addCriterion("params not in", values, "params"); + return (Criteria) this; + } + + public Criteria andParamsBetween(String value1, String value2) { + addCriterion("params between", value1, value2, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotBetween(String value1, String value2) { + addCriterion("params not between", value1, value2, "params"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNull() { + addCriterion("updatetime is null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIsNotNull() { + addCriterion("updatetime is not null"); + return (Criteria) this; + } + + public Criteria andUpdatetimeEqualTo(Date value) { + addCriterion("updatetime =", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotEqualTo(Date value) { + addCriterion("updatetime <>", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThan(Date value) { + addCriterion("updatetime >", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) { + addCriterion("updatetime >=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThan(Date value) { + addCriterion("updatetime <", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeLessThanOrEqualTo(Date value) { + addCriterion("updatetime <=", value, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeIn(List values) { + addCriterion("updatetime in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotIn(List values) { + addCriterion("updatetime not in", values, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeBetween(Date value1, Date value2) { + addCriterion("updatetime between", value1, value2, "updatetime"); + return (Criteria) this; + } + + public Criteria andUpdatetimeNotBetween(Date value1, Date value2) { + addCriterion("updatetime not between", value1, value2, "updatetime"); + 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/src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java b/src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java new file mode 100644 index 0000000..3e76dc1 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java @@ -0,0 +1,246 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class DeviceProjectView { + private String imei; + + private Integer devicetype; + + private String username; + + private Integer companyId; + + private Integer projectId; + + private String imei2; + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public String getImei2() { + return imei2; + } + + public void setImei2(String imei2) { + this.imei2 = imei2 == null ? null : imei2.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + imei("imei", "imei", "VARCHAR", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + username("userName", "username", "VARCHAR", false), + companyId("company_id", "companyId", "INTEGER", false), + projectId("project_id", "projectId", "INTEGER", false), + imei2("imei2", "imei2", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_project_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java new file mode 100644 index 0000000..8028820 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java @@ -0,0 +1,590 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class DeviceProjectViewExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceProjectViewExample() { + 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 andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andImei2IsNull() { + addCriterion("imei2 is null"); + return (Criteria) this; + } + + public Criteria andImei2IsNotNull() { + addCriterion("imei2 is not null"); + return (Criteria) this; + } + + public Criteria andImei2EqualTo(String value) { + addCriterion("imei2 =", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2NotEqualTo(String value) { + addCriterion("imei2 <>", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2GreaterThan(String value) { + addCriterion("imei2 >", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2GreaterThanOrEqualTo(String value) { + addCriterion("imei2 >=", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2LessThan(String value) { + addCriterion("imei2 <", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2LessThanOrEqualTo(String value) { + addCriterion("imei2 <=", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2Like(String value) { + addCriterion("imei2 like", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2NotLike(String value) { + addCriterion("imei2 not like", value, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2In(List values) { + addCriterion("imei2 in", values, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2NotIn(List values) { + addCriterion("imei2 not in", values, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2Between(String value1, String value2) { + addCriterion("imei2 between", value1, value2, "imei2"); + return (Criteria) this; + } + + public Criteria andImei2NotBetween(String value1, String value2) { + addCriterion("imei2 not between", value1, value2, "imei2"); + 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/src/main/java/com/topsail/influxdb/pojo/DeviceUser.java b/src/main/java/com/topsail/influxdb/pojo/DeviceUser.java new file mode 100644 index 0000000..32f8cb6 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceUser.java @@ -0,0 +1,423 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class DeviceUser { + private String imei; + + private Integer devicetype; + + private Integer batterylevel; + + private Integer singalstrength; + + private String sampledata; + + private Integer passnum; + + private Integer batterystate; + + private String alarmtype; + + private String platformtype; + + private String username; + + private String unit; + + private String sendtime; + + private Date time; + + private Date offlinetime; + + private String address; + + private Double lon; + + private Double lat; + + private String value; + + private String name; + + private Integer projectId; + + private Integer userId; + + private String status; + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public Integer getBatterylevel() { + return batterylevel; + } + + public void setBatterylevel(Integer batterylevel) { + this.batterylevel = batterylevel; + } + + public Integer getSingalstrength() { + return singalstrength; + } + + public void setSingalstrength(Integer singalstrength) { + this.singalstrength = singalstrength; + } + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata == null ? null : sampledata.trim(); + } + + public Integer getPassnum() { + return passnum; + } + + public void setPassnum(Integer passnum) { + this.passnum = passnum; + } + + public Integer getBatterystate() { + return batterystate; + } + + public void setBatterystate(Integer batterystate) { + this.batterystate = batterystate; + } + + public String getAlarmtype() { + return alarmtype; + } + + public void setAlarmtype(String alarmtype) { + this.alarmtype = alarmtype == null ? null : alarmtype.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public String getSendtime() { + return sendtime; + } + + public void setSendtime(String sendtime) { + this.sendtime = sendtime == null ? null : sendtime.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public Date getOfflinetime() { + return offlinetime; + } + + public void setOfflinetime(Date offlinetime) { + this.offlinetime = offlinetime; + } + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address == null ? null : address.trim(); + } + + public Double getLon() { + return lon; + } + + public void setLon(Double lon) { + this.lon = lon; + } + + public Double getLat() { + return lat; + } + + public void setLat(Double lat) { + this.lat = lat; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value == null ? null : value.trim(); + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public Integer getUserId() { + return userId; + } + + public void setUserId(Integer userId) { + this.userId = userId; + } + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status == null ? null : status.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + imei("Imei", "imei", "VARCHAR", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + batterylevel("batteryLevel", "batterylevel", "INTEGER", false), + singalstrength("singalStrength", "singalstrength", "INTEGER", false), + sampledata("sampleData", "sampledata", "VARCHAR", false), + passnum("passNum", "passnum", "INTEGER", false), + batterystate("batteryState", "batterystate", "INTEGER", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + sendtime("sendTime", "sendtime", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + offlinetime("offlineTime", "offlinetime", "TIMESTAMP", false), + address("address", "address", "VARCHAR", false), + lon("lon", "lon", "DOUBLE", false), + lat("lat", "lat", "DOUBLE", false), + value("value", "value", "VARCHAR", false), + name("name", "name", "VARCHAR", false), + projectId("project_id", "projectId", "INTEGER", false), + userId("user_id", "userId", "INTEGER", false), + status("STATUS", "status", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table device_user + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java new file mode 100644 index 0000000..78ee4de --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java @@ -0,0 +1,1631 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class DeviceUserExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public DeviceUserExample() { + 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 andImeiIsNull() { + addCriterion("Imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("Imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("Imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("Imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("Imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("Imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("Imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("Imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("Imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("Imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("Imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("Imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("Imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("Imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNull() { + addCriterion("batteryLevel is null"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNotNull() { + addCriterion("batteryLevel is not null"); + return (Criteria) this; + } + + public Criteria andBatterylevelEqualTo(Integer value) { + addCriterion("batteryLevel =", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotEqualTo(Integer value) { + addCriterion("batteryLevel <>", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThan(Integer value) { + addCriterion("batteryLevel >", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryLevel >=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThan(Integer value) { + addCriterion("batteryLevel <", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { + addCriterion("batteryLevel <=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelIn(List values) { + addCriterion("batteryLevel in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotIn(List values) { + addCriterion("batteryLevel not in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel not between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNull() { + addCriterion("singalStrength is null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNotNull() { + addCriterion("singalStrength is not null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthEqualTo(Integer value) { + addCriterion("singalStrength =", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotEqualTo(Integer value) { + addCriterion("singalStrength <>", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThan(Integer value) { + addCriterion("singalStrength >", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { + addCriterion("singalStrength >=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThan(Integer value) { + addCriterion("singalStrength <", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { + addCriterion("singalStrength <=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIn(List values) { + addCriterion("singalStrength in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotIn(List values) { + addCriterion("singalStrength not in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { + addCriterion("singalStrength between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { + addCriterion("singalStrength not between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSampledataIsNull() { + addCriterion("sampleData is null"); + return (Criteria) this; + } + + public Criteria andSampledataIsNotNull() { + addCriterion("sampleData is not null"); + return (Criteria) this; + } + + public Criteria andSampledataEqualTo(String value) { + addCriterion("sampleData =", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotEqualTo(String value) { + addCriterion("sampleData <>", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThan(String value) { + addCriterion("sampleData >", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThanOrEqualTo(String value) { + addCriterion("sampleData >=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThan(String value) { + addCriterion("sampleData <", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThanOrEqualTo(String value) { + addCriterion("sampleData <=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLike(String value) { + addCriterion("sampleData like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotLike(String value) { + addCriterion("sampleData not like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataIn(List values) { + addCriterion("sampleData in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotIn(List values) { + addCriterion("sampleData not in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataBetween(String value1, String value2) { + addCriterion("sampleData between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotBetween(String value1, String value2) { + addCriterion("sampleData not between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andPassnumIsNull() { + addCriterion("passNum is null"); + return (Criteria) this; + } + + public Criteria andPassnumIsNotNull() { + addCriterion("passNum is not null"); + return (Criteria) this; + } + + public Criteria andPassnumEqualTo(Integer value) { + addCriterion("passNum =", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotEqualTo(Integer value) { + addCriterion("passNum <>", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThan(Integer value) { + addCriterion("passNum >", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { + addCriterion("passNum >=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThan(Integer value) { + addCriterion("passNum <", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThanOrEqualTo(Integer value) { + addCriterion("passNum <=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumIn(List values) { + addCriterion("passNum in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotIn(List values) { + addCriterion("passNum not in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumBetween(Integer value1, Integer value2) { + addCriterion("passNum between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotBetween(Integer value1, Integer value2) { + addCriterion("passNum not between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNull() { + addCriterion("batteryState is null"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNotNull() { + addCriterion("batteryState is not null"); + return (Criteria) this; + } + + public Criteria andBatterystateEqualTo(Integer value) { + addCriterion("batteryState =", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotEqualTo(Integer value) { + addCriterion("batteryState <>", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThan(Integer value) { + addCriterion("batteryState >", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryState >=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThan(Integer value) { + addCriterion("batteryState <", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThanOrEqualTo(Integer value) { + addCriterion("batteryState <=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateIn(List values) { + addCriterion("batteryState in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotIn(List values) { + addCriterion("batteryState not in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateBetween(Integer value1, Integer value2) { + addCriterion("batteryState between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { + addCriterion("batteryState not between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNull() { + addCriterion("alarmType is null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNotNull() { + addCriterion("alarmType is not null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeEqualTo(String value) { + addCriterion("alarmType =", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotEqualTo(String value) { + addCriterion("alarmType <>", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThan(String value) { + addCriterion("alarmType >", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { + addCriterion("alarmType >=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThan(String value) { + addCriterion("alarmType <", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThanOrEqualTo(String value) { + addCriterion("alarmType <=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLike(String value) { + addCriterion("alarmType like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotLike(String value) { + addCriterion("alarmType not like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIn(List values) { + addCriterion("alarmType in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotIn(List values) { + addCriterion("alarmType not in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeBetween(String value1, String value2) { + addCriterion("alarmType between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotBetween(String value1, String value2) { + addCriterion("alarmType not between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNull() { + addCriterion("sendTime is null"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNotNull() { + addCriterion("sendTime is not null"); + return (Criteria) this; + } + + public Criteria andSendtimeEqualTo(String value) { + addCriterion("sendTime =", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotEqualTo(String value) { + addCriterion("sendTime <>", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThan(String value) { + addCriterion("sendTime >", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThanOrEqualTo(String value) { + addCriterion("sendTime >=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThan(String value) { + addCriterion("sendTime <", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThanOrEqualTo(String value) { + addCriterion("sendTime <=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLike(String value) { + addCriterion("sendTime like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotLike(String value) { + addCriterion("sendTime not like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeIn(List values) { + addCriterion("sendTime in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotIn(List values) { + addCriterion("sendTime not in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeBetween(String value1, String value2) { + addCriterion("sendTime between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotBetween(String value1, String value2) { + addCriterion("sendTime not between", value1, value2, "sendtime"); + 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 andOfflinetimeIsNull() { + addCriterion("offlineTime is null"); + return (Criteria) this; + } + + public Criteria andOfflinetimeIsNotNull() { + addCriterion("offlineTime is not null"); + return (Criteria) this; + } + + public Criteria andOfflinetimeEqualTo(Date value) { + addCriterion("offlineTime =", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeNotEqualTo(Date value) { + addCriterion("offlineTime <>", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeGreaterThan(Date value) { + addCriterion("offlineTime >", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeGreaterThanOrEqualTo(Date value) { + addCriterion("offlineTime >=", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeLessThan(Date value) { + addCriterion("offlineTime <", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeLessThanOrEqualTo(Date value) { + addCriterion("offlineTime <=", value, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeIn(List values) { + addCriterion("offlineTime in", values, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeNotIn(List values) { + addCriterion("offlineTime not in", values, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeBetween(Date value1, Date value2) { + addCriterion("offlineTime between", value1, value2, "offlinetime"); + return (Criteria) this; + } + + public Criteria andOfflinetimeNotBetween(Date value1, Date value2) { + addCriterion("offlineTime not between", value1, value2, "offlinetime"); + return (Criteria) this; + } + + public Criteria andAddressIsNull() { + addCriterion("address is null"); + return (Criteria) this; + } + + public Criteria andAddressIsNotNull() { + addCriterion("address is not null"); + return (Criteria) this; + } + + public Criteria andAddressEqualTo(String value) { + addCriterion("address =", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotEqualTo(String value) { + addCriterion("address <>", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThan(String value) { + addCriterion("address >", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressGreaterThanOrEqualTo(String value) { + addCriterion("address >=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThan(String value) { + addCriterion("address <", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLessThanOrEqualTo(String value) { + addCriterion("address <=", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressLike(String value) { + addCriterion("address like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotLike(String value) { + addCriterion("address not like", value, "address"); + return (Criteria) this; + } + + public Criteria andAddressIn(List values) { + addCriterion("address in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotIn(List values) { + addCriterion("address not in", values, "address"); + return (Criteria) this; + } + + public Criteria andAddressBetween(String value1, String value2) { + addCriterion("address between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andAddressNotBetween(String value1, String value2) { + addCriterion("address not between", value1, value2, "address"); + return (Criteria) this; + } + + public Criteria andLonIsNull() { + addCriterion("lon is null"); + return (Criteria) this; + } + + public Criteria andLonIsNotNull() { + addCriterion("lon is not null"); + return (Criteria) this; + } + + public Criteria andLonEqualTo(Double value) { + addCriterion("lon =", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonNotEqualTo(Double value) { + addCriterion("lon <>", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonGreaterThan(Double value) { + addCriterion("lon >", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonGreaterThanOrEqualTo(Double value) { + addCriterion("lon >=", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonLessThan(Double value) { + addCriterion("lon <", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonLessThanOrEqualTo(Double value) { + addCriterion("lon <=", value, "lon"); + return (Criteria) this; + } + + public Criteria andLonIn(List values) { + addCriterion("lon in", values, "lon"); + return (Criteria) this; + } + + public Criteria andLonNotIn(List values) { + addCriterion("lon not in", values, "lon"); + return (Criteria) this; + } + + public Criteria andLonBetween(Double value1, Double value2) { + addCriterion("lon between", value1, value2, "lon"); + return (Criteria) this; + } + + public Criteria andLonNotBetween(Double value1, Double value2) { + addCriterion("lon not between", value1, value2, "lon"); + return (Criteria) this; + } + + public Criteria andLatIsNull() { + addCriterion("lat is null"); + return (Criteria) this; + } + + public Criteria andLatIsNotNull() { + addCriterion("lat is not null"); + return (Criteria) this; + } + + public Criteria andLatEqualTo(Double value) { + addCriterion("lat =", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatNotEqualTo(Double value) { + addCriterion("lat <>", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatGreaterThan(Double value) { + addCriterion("lat >", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatGreaterThanOrEqualTo(Double value) { + addCriterion("lat >=", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatLessThan(Double value) { + addCriterion("lat <", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatLessThanOrEqualTo(Double value) { + addCriterion("lat <=", value, "lat"); + return (Criteria) this; + } + + public Criteria andLatIn(List values) { + addCriterion("lat in", values, "lat"); + return (Criteria) this; + } + + public Criteria andLatNotIn(List values) { + addCriterion("lat not in", values, "lat"); + return (Criteria) this; + } + + public Criteria andLatBetween(Double value1, Double value2) { + addCriterion("lat between", value1, value2, "lat"); + return (Criteria) this; + } + + public Criteria andLatNotBetween(Double value1, Double value2) { + addCriterion("lat not between", value1, value2, "lat"); + 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 andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andUserIdIsNull() { + addCriterion("user_id is null"); + return (Criteria) this; + } + + public Criteria andUserIdIsNotNull() { + addCriterion("user_id is not null"); + return (Criteria) this; + } + + public Criteria andUserIdEqualTo(Integer value) { + addCriterion("user_id =", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotEqualTo(Integer value) { + addCriterion("user_id <>", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThan(Integer value) { + addCriterion("user_id >", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { + addCriterion("user_id >=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThan(Integer value) { + addCriterion("user_id <", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdLessThanOrEqualTo(Integer value) { + addCriterion("user_id <=", value, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdIn(List values) { + addCriterion("user_id in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotIn(List values) { + addCriterion("user_id not in", values, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdBetween(Integer value1, Integer value2) { + addCriterion("user_id between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andUserIdNotBetween(Integer value1, Integer value2) { + addCriterion("user_id not between", value1, value2, "userId"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("STATUS is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("STATUS is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(String value) { + addCriterion("STATUS =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(String value) { + addCriterion("STATUS <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(String value) { + addCriterion("STATUS >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(String value) { + addCriterion("STATUS >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(String value) { + addCriterion("STATUS <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(String value) { + addCriterion("STATUS <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLike(String value) { + addCriterion("STATUS like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotLike(String value) { + addCriterion("STATUS not like", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("STATUS in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("STATUS not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(String value1, String value2) { + addCriterion("STATUS between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(String value1, String value2) { + addCriterion("STATUS not between", value1, value2, "status"); + 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/src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java b/src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java new file mode 100644 index 0000000..37f7dd8 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java @@ -0,0 +1,125 @@ +package com.topsail.influxdb.pojo; + +import java.util.Date; + +/** + * @ClassName GatewayDevice + * @Deacription TODO + * @Author Administrator + * @Date 2022/4/22 14:45 + * @Version 1.0 + **/ + +public class GatewayDevice { + /** + * id + */ + private Integer id; + /** + * imei + */ + private String imei; + /** + * 父imei + */ + private String parentImei; + /** + * 父设备id + */ + private String deviceId; + /** + * 平台类型 + */ + private String platformType; + + /** + * 绑定状态(0 废除 1 启用 ) + */ + private Integer bindStatus = 1; + /** + * 修改时间 + */ + private Date updateTime; + /** + * 创建时间 + */ + private Date createTime; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei; + } + + public String getParentImei() { + return parentImei; + } + + public void setParentImei(String parentImei) { + this.parentImei = parentImei; + } + + public String getDeviceId() { + return deviceId; + } + + public void setDeviceId(String deviceId) { + this.deviceId = deviceId; + } + + public String getPlatformType() { + return platformType; + } + + public void setPlatformType(String platformType) { + this.platformType = platformType; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Integer getBindStatus() { + return bindStatus; + } + + public void setBindStatus(Integer bindStatus) { + this.bindStatus = bindStatus; + } + + @Override + public String toString() { + return "GatewayDevice{" + + "id=" + id + + ", imei='" + imei + '\'' + + ", parentImei='" + parentImei + '\'' + + ", deviceId='" + deviceId + '\'' + + ", platformType='" + platformType + '\'' + + ", bindStatus=" + bindStatus + + ", updateTime=" + updateTime + + ", createTime=" + createTime + + '}'; + } +} diff --git a/src/main/java/com/topsail/influxdb/pojo/History.java b/src/main/java/com/topsail/influxdb/pojo/History.java new file mode 100644 index 0000000..f7be486 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/History.java @@ -0,0 +1,382 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class History { + private Long id; + + private Integer devicetype; + + private String imei; + + private Integer batterylevel; + + private Integer singalstrength; + + private String sampledata; + + private Integer passnum; + + private Integer batterystate; + + private String alarmtype; + + private String platformtype; + + private String username; + + private String unit; + + private String sendtime; + + private Date time; + + private String value; + + private Date senddate; + + private String databody; + + private Integer devModel; + + public Integer getDevModel() { + return devModel; + } + + public void setDevModel(Integer devModel) { + this.devModel = devModel; + } + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getBatterylevel() { + return batterylevel; + } + + public void setBatterylevel(Integer batterylevel) { + this.batterylevel = batterylevel; + } + + public Integer getSingalstrength() { + return singalstrength; + } + + public void setSingalstrength(Integer singalstrength) { + this.singalstrength = singalstrength; + } + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata == null ? null : sampledata.trim(); + } + + public Integer getPassnum() { + return passnum; + } + + public void setPassnum(Integer passnum) { + this.passnum = passnum; + } + + public Integer getBatterystate() { + return batterystate; + } + + public void setBatterystate(Integer batterystate) { + this.batterystate = batterystate; + } + + public String getAlarmtype() { + return alarmtype; + } + + public void setAlarmtype(String alarmtype) { + this.alarmtype = alarmtype == null ? null : alarmtype.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public String getSendtime() { + return sendtime; + } + + public void setSendtime(String sendtime) { + this.sendtime = sendtime == null ? null : sendtime.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value == null ? null : value.trim(); + } + + public Date getSenddate() { + return senddate; + } + + public void setSenddate(Date senddate) { + this.senddate = senddate; + } + + public String getDatabody() { + return databody; + } + + public void setDatabody(String databody) { + this.databody = databody == null ? null : databody.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + imei("Imei", "imei", "VARCHAR", false), + batterylevel("batteryLevel", "batterylevel", "INTEGER", false), + singalstrength("singalStrength", "singalstrength", "INTEGER", false), + sampledata("sampleData", "sampledata", "VARCHAR", false), + passnum("passNum", "passnum", "INTEGER", false), + batterystate("batteryState", "batterystate", "INTEGER", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + sendtime("sendTime", "sendtime", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + value("value", "value", "VARCHAR", false), + senddate("sendDate", "senddate", "TIMESTAMP", false), + databody("dataBody", "databody", "LONGVARCHAR", false), + devModel("devModel", "devModel", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } + + + +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryAll.java b/src/main/java/com/topsail/influxdb/pojo/HistoryAll.java new file mode 100644 index 0000000..2237b1a --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/HistoryAll.java @@ -0,0 +1,368 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class HistoryAll { + private Long id; + + private Integer devicetype; + + private String imei; + + private Integer batterylevel; + + private Integer singalstrength; + + private String sampledata; + + private Integer passnum; + + private Integer batterystate; + + private String alarmtype; + + private String platformtype; + + private String username; + + private String unit; + + private String sendtime; + + private String databody; + + private Date time; + + private String value; + + private Date senddate; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getBatterylevel() { + return batterylevel; + } + + public void setBatterylevel(Integer batterylevel) { + this.batterylevel = batterylevel; + } + + public Integer getSingalstrength() { + return singalstrength; + } + + public void setSingalstrength(Integer singalstrength) { + this.singalstrength = singalstrength; + } + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata == null ? null : sampledata.trim(); + } + + public Integer getPassnum() { + return passnum; + } + + public void setPassnum(Integer passnum) { + this.passnum = passnum; + } + + public Integer getBatterystate() { + return batterystate; + } + + public void setBatterystate(Integer batterystate) { + this.batterystate = batterystate; + } + + public String getAlarmtype() { + return alarmtype; + } + + public void setAlarmtype(String alarmtype) { + this.alarmtype = alarmtype == null ? null : alarmtype.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public String getSendtime() { + return sendtime; + } + + public void setSendtime(String sendtime) { + this.sendtime = sendtime == null ? null : sendtime.trim(); + } + + public String getDatabody() { + return databody; + } + + public void setDatabody(String databody) { + this.databody = databody == null ? null : databody.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value == null ? null : value.trim(); + } + + public Date getSenddate() { + return senddate; + } + + public void setSenddate(Date senddate) { + this.senddate = senddate; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + imei("Imei", "imei", "VARCHAR", false), + batterylevel("batteryLevel", "batterylevel", "INTEGER", false), + singalstrength("singalStrength", "singalstrength", "INTEGER", false), + sampledata("sampleData", "sampledata", "VARCHAR", false), + passnum("passNum", "passnum", "INTEGER", false), + batterystate("batteryState", "batterystate", "INTEGER", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + sendtime("sendTime", "sendtime", "VARCHAR", false), + databody("dataBody", "databody", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + value("value", "value", "VARCHAR", false), + senddate("sendDate", "senddate", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_all + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java b/src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java new file mode 100644 index 0000000..4c1575a --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java @@ -0,0 +1,1311 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HistoryAllExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public HistoryAllExample() { + 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 andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("Imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("Imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("Imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("Imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("Imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("Imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("Imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("Imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("Imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("Imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("Imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("Imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("Imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("Imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNull() { + addCriterion("batteryLevel is null"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNotNull() { + addCriterion("batteryLevel is not null"); + return (Criteria) this; + } + + public Criteria andBatterylevelEqualTo(Integer value) { + addCriterion("batteryLevel =", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotEqualTo(Integer value) { + addCriterion("batteryLevel <>", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThan(Integer value) { + addCriterion("batteryLevel >", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryLevel >=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThan(Integer value) { + addCriterion("batteryLevel <", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { + addCriterion("batteryLevel <=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelIn(List values) { + addCriterion("batteryLevel in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotIn(List values) { + addCriterion("batteryLevel not in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel not between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNull() { + addCriterion("singalStrength is null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNotNull() { + addCriterion("singalStrength is not null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthEqualTo(Integer value) { + addCriterion("singalStrength =", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotEqualTo(Integer value) { + addCriterion("singalStrength <>", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThan(Integer value) { + addCriterion("singalStrength >", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { + addCriterion("singalStrength >=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThan(Integer value) { + addCriterion("singalStrength <", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { + addCriterion("singalStrength <=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIn(List values) { + addCriterion("singalStrength in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotIn(List values) { + addCriterion("singalStrength not in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { + addCriterion("singalStrength between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { + addCriterion("singalStrength not between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSampledataIsNull() { + addCriterion("sampleData is null"); + return (Criteria) this; + } + + public Criteria andSampledataIsNotNull() { + addCriterion("sampleData is not null"); + return (Criteria) this; + } + + public Criteria andSampledataEqualTo(String value) { + addCriterion("sampleData =", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotEqualTo(String value) { + addCriterion("sampleData <>", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThan(String value) { + addCriterion("sampleData >", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThanOrEqualTo(String value) { + addCriterion("sampleData >=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThan(String value) { + addCriterion("sampleData <", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThanOrEqualTo(String value) { + addCriterion("sampleData <=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLike(String value) { + addCriterion("sampleData like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotLike(String value) { + addCriterion("sampleData not like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataIn(List values) { + addCriterion("sampleData in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotIn(List values) { + addCriterion("sampleData not in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataBetween(String value1, String value2) { + addCriterion("sampleData between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotBetween(String value1, String value2) { + addCriterion("sampleData not between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andPassnumIsNull() { + addCriterion("passNum is null"); + return (Criteria) this; + } + + public Criteria andPassnumIsNotNull() { + addCriterion("passNum is not null"); + return (Criteria) this; + } + + public Criteria andPassnumEqualTo(Integer value) { + addCriterion("passNum =", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotEqualTo(Integer value) { + addCriterion("passNum <>", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThan(Integer value) { + addCriterion("passNum >", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { + addCriterion("passNum >=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThan(Integer value) { + addCriterion("passNum <", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThanOrEqualTo(Integer value) { + addCriterion("passNum <=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumIn(List values) { + addCriterion("passNum in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotIn(List values) { + addCriterion("passNum not in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumBetween(Integer value1, Integer value2) { + addCriterion("passNum between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotBetween(Integer value1, Integer value2) { + addCriterion("passNum not between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNull() { + addCriterion("batteryState is null"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNotNull() { + addCriterion("batteryState is not null"); + return (Criteria) this; + } + + public Criteria andBatterystateEqualTo(Integer value) { + addCriterion("batteryState =", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotEqualTo(Integer value) { + addCriterion("batteryState <>", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThan(Integer value) { + addCriterion("batteryState >", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryState >=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThan(Integer value) { + addCriterion("batteryState <", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThanOrEqualTo(Integer value) { + addCriterion("batteryState <=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateIn(List values) { + addCriterion("batteryState in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotIn(List values) { + addCriterion("batteryState not in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateBetween(Integer value1, Integer value2) { + addCriterion("batteryState between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { + addCriterion("batteryState not between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNull() { + addCriterion("alarmType is null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNotNull() { + addCriterion("alarmType is not null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeEqualTo(String value) { + addCriterion("alarmType =", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotEqualTo(String value) { + addCriterion("alarmType <>", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThan(String value) { + addCriterion("alarmType >", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { + addCriterion("alarmType >=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThan(String value) { + addCriterion("alarmType <", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThanOrEqualTo(String value) { + addCriterion("alarmType <=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLike(String value) { + addCriterion("alarmType like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotLike(String value) { + addCriterion("alarmType not like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIn(List values) { + addCriterion("alarmType in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotIn(List values) { + addCriterion("alarmType not in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeBetween(String value1, String value2) { + addCriterion("alarmType between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotBetween(String value1, String value2) { + addCriterion("alarmType not between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNull() { + addCriterion("sendTime is null"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNotNull() { + addCriterion("sendTime is not null"); + return (Criteria) this; + } + + public Criteria andSendtimeEqualTo(String value) { + addCriterion("sendTime =", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotEqualTo(String value) { + addCriterion("sendTime <>", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThan(String value) { + addCriterion("sendTime >", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThanOrEqualTo(String value) { + addCriterion("sendTime >=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThan(String value) { + addCriterion("sendTime <", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThanOrEqualTo(String value) { + addCriterion("sendTime <=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLike(String value) { + addCriterion("sendTime like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotLike(String value) { + addCriterion("sendTime not like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeIn(List values) { + addCriterion("sendTime in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotIn(List values) { + addCriterion("sendTime not in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeBetween(String value1, String value2) { + addCriterion("sendTime between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotBetween(String value1, String value2) { + addCriterion("sendTime not between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andDatabodyIsNull() { + addCriterion("dataBody is null"); + return (Criteria) this; + } + + public Criteria andDatabodyIsNotNull() { + addCriterion("dataBody is not null"); + return (Criteria) this; + } + + public Criteria andDatabodyEqualTo(String value) { + addCriterion("dataBody =", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotEqualTo(String value) { + addCriterion("dataBody <>", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyGreaterThan(String value) { + addCriterion("dataBody >", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyGreaterThanOrEqualTo(String value) { + addCriterion("dataBody >=", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyLessThan(String value) { + addCriterion("dataBody <", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyLessThanOrEqualTo(String value) { + addCriterion("dataBody <=", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyLike(String value) { + addCriterion("dataBody like", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotLike(String value) { + addCriterion("dataBody not like", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyIn(List values) { + addCriterion("dataBody in", values, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotIn(List values) { + addCriterion("dataBody not in", values, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyBetween(String value1, String value2) { + addCriterion("dataBody between", value1, value2, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotBetween(String value1, String value2) { + addCriterion("dataBody not between", value1, value2, "databody"); + 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 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 andSenddateIsNull() { + addCriterion("sendDate is null"); + return (Criteria) this; + } + + public Criteria andSenddateIsNotNull() { + addCriterion("sendDate is not null"); + return (Criteria) this; + } + + public Criteria andSenddateEqualTo(Date value) { + addCriterion("sendDate =", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotEqualTo(Date value) { + addCriterion("sendDate <>", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThan(Date value) { + addCriterion("sendDate >", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThanOrEqualTo(Date value) { + addCriterion("sendDate >=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThan(Date value) { + addCriterion("sendDate <", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThanOrEqualTo(Date value) { + addCriterion("sendDate <=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateIn(List values) { + addCriterion("sendDate in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotIn(List values) { + addCriterion("sendDate not in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateBetween(Date value1, Date value2) { + addCriterion("sendDate between", value1, value2, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotBetween(Date value1, Date value2) { + addCriterion("sendDate not between", value1, value2, "senddate"); + 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/src/main/java/com/topsail/influxdb/pojo/HistoryErr.java b/src/main/java/com/topsail/influxdb/pojo/HistoryErr.java new file mode 100644 index 0000000..e4783d8 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/HistoryErr.java @@ -0,0 +1,368 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class HistoryErr { + private Long id; + + private Integer devicetype; + + private String imei; + + private Integer batterylevel; + + private Integer singalstrength; + + private String sampledata; + + private Integer passnum; + + private Integer batterystate; + + private String alarmtype; + + private String platformtype; + + private String username; + + private String unit; + + private String sendtime; + + private String databody; + + private Date time; + + private String value; + + private Date senddate; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getBatterylevel() { + return batterylevel; + } + + public void setBatterylevel(Integer batterylevel) { + this.batterylevel = batterylevel; + } + + public Integer getSingalstrength() { + return singalstrength; + } + + public void setSingalstrength(Integer singalstrength) { + this.singalstrength = singalstrength; + } + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata == null ? null : sampledata.trim(); + } + + public Integer getPassnum() { + return passnum; + } + + public void setPassnum(Integer passnum) { + this.passnum = passnum; + } + + public Integer getBatterystate() { + return batterystate; + } + + public void setBatterystate(Integer batterystate) { + this.batterystate = batterystate; + } + + public String getAlarmtype() { + return alarmtype; + } + + public void setAlarmtype(String alarmtype) { + this.alarmtype = alarmtype == null ? null : alarmtype.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUnit() { + return unit; + } + + public void setUnit(String unit) { + this.unit = unit == null ? null : unit.trim(); + } + + public String getSendtime() { + return sendtime; + } + + public void setSendtime(String sendtime) { + this.sendtime = sendtime == null ? null : sendtime.trim(); + } + + public String getDatabody() { + return databody; + } + + public void setDatabody(String databody) { + this.databody = databody == null ? null : databody.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value == null ? null : value.trim(); + } + + public Date getSenddate() { + return senddate; + } + + public void setSenddate(Date senddate) { + this.senddate = senddate; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + imei("Imei", "imei", "VARCHAR", false), + batterylevel("batteryLevel", "batterylevel", "INTEGER", false), + singalstrength("singalStrength", "singalstrength", "INTEGER", false), + sampledata("sampleData", "sampledata", "VARCHAR", false), + passnum("passNum", "passnum", "INTEGER", false), + batterystate("batteryState", "batterystate", "INTEGER", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + sendtime("sendTime", "sendtime", "VARCHAR", false), + databody("dataBody", "databody", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + value("value", "value", "VARCHAR", false), + senddate("sendDate", "senddate", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history_err + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java b/src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java new file mode 100644 index 0000000..fddab54 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java @@ -0,0 +1,1311 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HistoryErrExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public HistoryErrExample() { + 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 andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("Imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("Imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("Imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("Imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("Imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("Imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("Imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("Imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("Imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("Imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("Imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("Imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("Imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("Imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNull() { + addCriterion("batteryLevel is null"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNotNull() { + addCriterion("batteryLevel is not null"); + return (Criteria) this; + } + + public Criteria andBatterylevelEqualTo(Integer value) { + addCriterion("batteryLevel =", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotEqualTo(Integer value) { + addCriterion("batteryLevel <>", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThan(Integer value) { + addCriterion("batteryLevel >", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryLevel >=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThan(Integer value) { + addCriterion("batteryLevel <", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { + addCriterion("batteryLevel <=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelIn(List values) { + addCriterion("batteryLevel in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotIn(List values) { + addCriterion("batteryLevel not in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel not between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNull() { + addCriterion("singalStrength is null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNotNull() { + addCriterion("singalStrength is not null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthEqualTo(Integer value) { + addCriterion("singalStrength =", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotEqualTo(Integer value) { + addCriterion("singalStrength <>", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThan(Integer value) { + addCriterion("singalStrength >", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { + addCriterion("singalStrength >=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThan(Integer value) { + addCriterion("singalStrength <", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { + addCriterion("singalStrength <=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIn(List values) { + addCriterion("singalStrength in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotIn(List values) { + addCriterion("singalStrength not in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { + addCriterion("singalStrength between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { + addCriterion("singalStrength not between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSampledataIsNull() { + addCriterion("sampleData is null"); + return (Criteria) this; + } + + public Criteria andSampledataIsNotNull() { + addCriterion("sampleData is not null"); + return (Criteria) this; + } + + public Criteria andSampledataEqualTo(String value) { + addCriterion("sampleData =", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotEqualTo(String value) { + addCriterion("sampleData <>", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThan(String value) { + addCriterion("sampleData >", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThanOrEqualTo(String value) { + addCriterion("sampleData >=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThan(String value) { + addCriterion("sampleData <", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThanOrEqualTo(String value) { + addCriterion("sampleData <=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLike(String value) { + addCriterion("sampleData like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotLike(String value) { + addCriterion("sampleData not like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataIn(List values) { + addCriterion("sampleData in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotIn(List values) { + addCriterion("sampleData not in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataBetween(String value1, String value2) { + addCriterion("sampleData between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotBetween(String value1, String value2) { + addCriterion("sampleData not between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andPassnumIsNull() { + addCriterion("passNum is null"); + return (Criteria) this; + } + + public Criteria andPassnumIsNotNull() { + addCriterion("passNum is not null"); + return (Criteria) this; + } + + public Criteria andPassnumEqualTo(Integer value) { + addCriterion("passNum =", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotEqualTo(Integer value) { + addCriterion("passNum <>", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThan(Integer value) { + addCriterion("passNum >", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { + addCriterion("passNum >=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThan(Integer value) { + addCriterion("passNum <", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThanOrEqualTo(Integer value) { + addCriterion("passNum <=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumIn(List values) { + addCriterion("passNum in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotIn(List values) { + addCriterion("passNum not in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumBetween(Integer value1, Integer value2) { + addCriterion("passNum between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotBetween(Integer value1, Integer value2) { + addCriterion("passNum not between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNull() { + addCriterion("batteryState is null"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNotNull() { + addCriterion("batteryState is not null"); + return (Criteria) this; + } + + public Criteria andBatterystateEqualTo(Integer value) { + addCriterion("batteryState =", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotEqualTo(Integer value) { + addCriterion("batteryState <>", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThan(Integer value) { + addCriterion("batteryState >", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryState >=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThan(Integer value) { + addCriterion("batteryState <", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThanOrEqualTo(Integer value) { + addCriterion("batteryState <=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateIn(List values) { + addCriterion("batteryState in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotIn(List values) { + addCriterion("batteryState not in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateBetween(Integer value1, Integer value2) { + addCriterion("batteryState between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { + addCriterion("batteryState not between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNull() { + addCriterion("alarmType is null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNotNull() { + addCriterion("alarmType is not null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeEqualTo(String value) { + addCriterion("alarmType =", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotEqualTo(String value) { + addCriterion("alarmType <>", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThan(String value) { + addCriterion("alarmType >", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { + addCriterion("alarmType >=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThan(String value) { + addCriterion("alarmType <", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThanOrEqualTo(String value) { + addCriterion("alarmType <=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLike(String value) { + addCriterion("alarmType like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotLike(String value) { + addCriterion("alarmType not like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIn(List values) { + addCriterion("alarmType in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotIn(List values) { + addCriterion("alarmType not in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeBetween(String value1, String value2) { + addCriterion("alarmType between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotBetween(String value1, String value2) { + addCriterion("alarmType not between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNull() { + addCriterion("sendTime is null"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNotNull() { + addCriterion("sendTime is not null"); + return (Criteria) this; + } + + public Criteria andSendtimeEqualTo(String value) { + addCriterion("sendTime =", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotEqualTo(String value) { + addCriterion("sendTime <>", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThan(String value) { + addCriterion("sendTime >", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThanOrEqualTo(String value) { + addCriterion("sendTime >=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThan(String value) { + addCriterion("sendTime <", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThanOrEqualTo(String value) { + addCriterion("sendTime <=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLike(String value) { + addCriterion("sendTime like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotLike(String value) { + addCriterion("sendTime not like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeIn(List values) { + addCriterion("sendTime in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotIn(List values) { + addCriterion("sendTime not in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeBetween(String value1, String value2) { + addCriterion("sendTime between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotBetween(String value1, String value2) { + addCriterion("sendTime not between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andDatabodyIsNull() { + addCriterion("dataBody is null"); + return (Criteria) this; + } + + public Criteria andDatabodyIsNotNull() { + addCriterion("dataBody is not null"); + return (Criteria) this; + } + + public Criteria andDatabodyEqualTo(String value) { + addCriterion("dataBody =", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotEqualTo(String value) { + addCriterion("dataBody <>", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyGreaterThan(String value) { + addCriterion("dataBody >", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyGreaterThanOrEqualTo(String value) { + addCriterion("dataBody >=", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyLessThan(String value) { + addCriterion("dataBody <", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyLessThanOrEqualTo(String value) { + addCriterion("dataBody <=", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyLike(String value) { + addCriterion("dataBody like", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotLike(String value) { + addCriterion("dataBody not like", value, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyIn(List values) { + addCriterion("dataBody in", values, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotIn(List values) { + addCriterion("dataBody not in", values, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyBetween(String value1, String value2) { + addCriterion("dataBody between", value1, value2, "databody"); + return (Criteria) this; + } + + public Criteria andDatabodyNotBetween(String value1, String value2) { + addCriterion("dataBody not between", value1, value2, "databody"); + 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 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 andSenddateIsNull() { + addCriterion("sendDate is null"); + return (Criteria) this; + } + + public Criteria andSenddateIsNotNull() { + addCriterion("sendDate is not null"); + return (Criteria) this; + } + + public Criteria andSenddateEqualTo(Date value) { + addCriterion("sendDate =", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotEqualTo(Date value) { + addCriterion("sendDate <>", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThan(Date value) { + addCriterion("sendDate >", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThanOrEqualTo(Date value) { + addCriterion("sendDate >=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThan(Date value) { + addCriterion("sendDate <", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThanOrEqualTo(Date value) { + addCriterion("sendDate <=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateIn(List values) { + addCriterion("sendDate in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotIn(List values) { + addCriterion("sendDate not in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateBetween(Date value1, Date value2) { + addCriterion("sendDate between", value1, value2, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotBetween(Date value1, Date value2) { + addCriterion("sendDate not between", value1, value2, "senddate"); + 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/src/main/java/com/topsail/influxdb/pojo/HistoryExample.java b/src/main/java/com/topsail/influxdb/pojo/HistoryExample.java new file mode 100644 index 0000000..ca0455e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/HistoryExample.java @@ -0,0 +1,1241 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class HistoryExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public HistoryExample() { + 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 andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("Imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("Imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("Imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("Imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("Imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("Imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("Imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("Imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("Imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("Imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("Imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("Imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("Imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("Imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNull() { + addCriterion("batteryLevel is null"); + return (Criteria) this; + } + + public Criteria andBatterylevelIsNotNull() { + addCriterion("batteryLevel is not null"); + return (Criteria) this; + } + + public Criteria andBatterylevelEqualTo(Integer value) { + addCriterion("batteryLevel =", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotEqualTo(Integer value) { + addCriterion("batteryLevel <>", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThan(Integer value) { + addCriterion("batteryLevel >", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryLevel >=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThan(Integer value) { + addCriterion("batteryLevel <", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { + addCriterion("batteryLevel <=", value, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelIn(List values) { + addCriterion("batteryLevel in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotIn(List values) { + addCriterion("batteryLevel not in", values, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { + addCriterion("batteryLevel not between", value1, value2, "batterylevel"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNull() { + addCriterion("singalStrength is null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIsNotNull() { + addCriterion("singalStrength is not null"); + return (Criteria) this; + } + + public Criteria andSingalstrengthEqualTo(Integer value) { + addCriterion("singalStrength =", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotEqualTo(Integer value) { + addCriterion("singalStrength <>", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThan(Integer value) { + addCriterion("singalStrength >", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { + addCriterion("singalStrength >=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThan(Integer value) { + addCriterion("singalStrength <", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { + addCriterion("singalStrength <=", value, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthIn(List values) { + addCriterion("singalStrength in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotIn(List values) { + addCriterion("singalStrength not in", values, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { + addCriterion("singalStrength between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { + addCriterion("singalStrength not between", value1, value2, "singalstrength"); + return (Criteria) this; + } + + public Criteria andSampledataIsNull() { + addCriterion("sampleData is null"); + return (Criteria) this; + } + + public Criteria andSampledataIsNotNull() { + addCriterion("sampleData is not null"); + return (Criteria) this; + } + + public Criteria andSampledataEqualTo(String value) { + addCriterion("sampleData =", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotEqualTo(String value) { + addCriterion("sampleData <>", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThan(String value) { + addCriterion("sampleData >", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataGreaterThanOrEqualTo(String value) { + addCriterion("sampleData >=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThan(String value) { + addCriterion("sampleData <", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLessThanOrEqualTo(String value) { + addCriterion("sampleData <=", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataLike(String value) { + addCriterion("sampleData like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotLike(String value) { + addCriterion("sampleData not like", value, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataIn(List values) { + addCriterion("sampleData in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotIn(List values) { + addCriterion("sampleData not in", values, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataBetween(String value1, String value2) { + addCriterion("sampleData between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andSampledataNotBetween(String value1, String value2) { + addCriterion("sampleData not between", value1, value2, "sampledata"); + return (Criteria) this; + } + + public Criteria andPassnumIsNull() { + addCriterion("passNum is null"); + return (Criteria) this; + } + + public Criteria andPassnumIsNotNull() { + addCriterion("passNum is not null"); + return (Criteria) this; + } + + public Criteria andPassnumEqualTo(Integer value) { + addCriterion("passNum =", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotEqualTo(Integer value) { + addCriterion("passNum <>", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThan(Integer value) { + addCriterion("passNum >", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { + addCriterion("passNum >=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThan(Integer value) { + addCriterion("passNum <", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumLessThanOrEqualTo(Integer value) { + addCriterion("passNum <=", value, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumIn(List values) { + addCriterion("passNum in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotIn(List values) { + addCriterion("passNum not in", values, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumBetween(Integer value1, Integer value2) { + addCriterion("passNum between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andPassnumNotBetween(Integer value1, Integer value2) { + addCriterion("passNum not between", value1, value2, "passnum"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNull() { + addCriterion("batteryState is null"); + return (Criteria) this; + } + + public Criteria andBatterystateIsNotNull() { + addCriterion("batteryState is not null"); + return (Criteria) this; + } + + public Criteria andBatterystateEqualTo(Integer value) { + addCriterion("batteryState =", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotEqualTo(Integer value) { + addCriterion("batteryState <>", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThan(Integer value) { + addCriterion("batteryState >", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { + addCriterion("batteryState >=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThan(Integer value) { + addCriterion("batteryState <", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateLessThanOrEqualTo(Integer value) { + addCriterion("batteryState <=", value, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateIn(List values) { + addCriterion("batteryState in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotIn(List values) { + addCriterion("batteryState not in", values, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateBetween(Integer value1, Integer value2) { + addCriterion("batteryState between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { + addCriterion("batteryState not between", value1, value2, "batterystate"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNull() { + addCriterion("alarmType is null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIsNotNull() { + addCriterion("alarmType is not null"); + return (Criteria) this; + } + + public Criteria andAlarmtypeEqualTo(String value) { + addCriterion("alarmType =", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotEqualTo(String value) { + addCriterion("alarmType <>", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThan(String value) { + addCriterion("alarmType >", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { + addCriterion("alarmType >=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThan(String value) { + addCriterion("alarmType <", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLessThanOrEqualTo(String value) { + addCriterion("alarmType <=", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeLike(String value) { + addCriterion("alarmType like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotLike(String value) { + addCriterion("alarmType not like", value, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeIn(List values) { + addCriterion("alarmType in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotIn(List values) { + addCriterion("alarmType not in", values, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeBetween(String value1, String value2) { + addCriterion("alarmType between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andAlarmtypeNotBetween(String value1, String value2) { + addCriterion("alarmType not between", value1, value2, "alarmtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUnitIsNull() { + addCriterion("unit is null"); + return (Criteria) this; + } + + public Criteria andUnitIsNotNull() { + addCriterion("unit is not null"); + return (Criteria) this; + } + + public Criteria andUnitEqualTo(String value) { + addCriterion("unit =", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotEqualTo(String value) { + addCriterion("unit <>", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThan(String value) { + addCriterion("unit >", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitGreaterThanOrEqualTo(String value) { + addCriterion("unit >=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThan(String value) { + addCriterion("unit <", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLessThanOrEqualTo(String value) { + addCriterion("unit <=", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitLike(String value) { + addCriterion("unit like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotLike(String value) { + addCriterion("unit not like", value, "unit"); + return (Criteria) this; + } + + public Criteria andUnitIn(List values) { + addCriterion("unit in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotIn(List values) { + addCriterion("unit not in", values, "unit"); + return (Criteria) this; + } + + public Criteria andUnitBetween(String value1, String value2) { + addCriterion("unit between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andUnitNotBetween(String value1, String value2) { + addCriterion("unit not between", value1, value2, "unit"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNull() { + addCriterion("sendTime is null"); + return (Criteria) this; + } + + public Criteria andSendtimeIsNotNull() { + addCriterion("sendTime is not null"); + return (Criteria) this; + } + + public Criteria andSendtimeEqualTo(String value) { + addCriterion("sendTime =", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotEqualTo(String value) { + addCriterion("sendTime <>", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThan(String value) { + addCriterion("sendTime >", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeGreaterThanOrEqualTo(String value) { + addCriterion("sendTime >=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThan(String value) { + addCriterion("sendTime <", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLessThanOrEqualTo(String value) { + addCriterion("sendTime <=", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeLike(String value) { + addCriterion("sendTime like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotLike(String value) { + addCriterion("sendTime not like", value, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeIn(List values) { + addCriterion("sendTime in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotIn(List values) { + addCriterion("sendTime not in", values, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeBetween(String value1, String value2) { + addCriterion("sendTime between", value1, value2, "sendtime"); + return (Criteria) this; + } + + public Criteria andSendtimeNotBetween(String value1, String value2) { + addCriterion("sendTime not between", value1, value2, "sendtime"); + 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 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 andSenddateIsNull() { + addCriterion("sendDate is null"); + return (Criteria) this; + } + + public Criteria andSenddateIsNotNull() { + addCriterion("sendDate is not null"); + return (Criteria) this; + } + + public Criteria andSenddateEqualTo(Date value) { + addCriterion("sendDate =", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotEqualTo(Date value) { + addCriterion("sendDate <>", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThan(Date value) { + addCriterion("sendDate >", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateGreaterThanOrEqualTo(Date value) { + addCriterion("sendDate >=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThan(Date value) { + addCriterion("sendDate <", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateLessThanOrEqualTo(Date value) { + addCriterion("sendDate <=", value, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateIn(List values) { + addCriterion("sendDate in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotIn(List values) { + addCriterion("sendDate not in", values, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateBetween(Date value1, Date value2) { + addCriterion("sendDate between", value1, value2, "senddate"); + return (Criteria) this; + } + + public Criteria andSenddateNotBetween(Date value1, Date value2) { + addCriterion("sendDate not between", value1, value2, "senddate"); + 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/src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java b/src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java new file mode 100644 index 0000000..5dd0796 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java @@ -0,0 +1,215 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class HistoryWithBLOBs extends History { + private String sampledata; + + private String databody; + + public String getSampledata() { + return sampledata; + } + + public void setSampledata(String sampledata) { + this.sampledata = sampledata == null ? null : sampledata.trim(); + } + + public String getDatabody() { + return databody; + } + + public void setDatabody(String databody) { + this.databody = databody == null ? null : databody.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + imei("Imei", "imei", "VARCHAR", false), + batterylevel("batteryLevel", "batterylevel", "INTEGER", false), + singalstrength("singalStrength", "singalstrength", "INTEGER", false), + passnum("passNum", "passnum", "INTEGER", false), + batterystate("batteryState", "batterystate", "INTEGER", false), + alarmtype("alarmType", "alarmtype", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + unit("unit", "unit", "VARCHAR", false), + sendtime("sendTime", "sendtime", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + sampledata("sampleData", "sampledata", "LONGVARCHAR", false), + databody("dataBody", "databody", "LONGVARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table history + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ImsiImei.java b/src/main/java/com/topsail/influxdb/pojo/ImsiImei.java new file mode 100644 index 0000000..bd28198 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/ImsiImei.java @@ -0,0 +1,75 @@ +package com.topsail.influxdb.pojo; + +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.util.Date; + + +/** + * + * imsi和imei关系表实体 + * + * @version + * +
+ * Author	Version		Date		Changes
+ * Administrator 	1.0  2021年05月31日 Created
+ *
+ * 
+ * @since 1. + */ +public class ImsiImei implements Serializable { + private static final long serialVersionUID = 197866838149659L; + + /** + * + */ + private String imsi; + /** + *imei + */ + private String imei; + /** + *创建时间 + */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date createTime; + /** + *修改时间 + */ + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + private Date updateTime; + + public String getImsi() { + return imsi; + } + + public void setImsi(String imsi) { + this.imsi = imsi; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei; + } + + public Date getCreateTime() { + return createTime; + } + + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java b/src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java new file mode 100644 index 0000000..c87c814 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java @@ -0,0 +1,566 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class NbiotConfig { + private Long id; + + private String imei; + + private String typename; + + private Integer devicetype; + + private Integer collectiongap; + + private Integer sendinggap; + + private String urladdress; + + private String port; + + private Integer unipaththresholdlimit; + + private Integer unipaththresholdupper; + + private Integer unipathchangethreshold; + + private Integer multiplethresholdlimit; + + private Integer multiplethresholdupper; + + private Integer multiplechangethreshold; + + private Integer controlvalvestate; + + private String starttime; + + private String endtime; + + private Integer numdays; + + private Integer switchingvalue; + + private Integer stopreporting; + + private String softwareversions; + + private String hardwareversions; + + private String imsi; + + private String apn; + + private Date time; + + private String autocontrolpolicy; + + private String autocontroltime; + + private String selfchecktime; + + private Integer collide; + + private Integer lean; + + private Integer loraFrequency; + + private Integer loraBandwidth; + + private Integer loraSpreading; + + private Integer loraEncodingRate; + + private Integer nettype; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public String getTypename() { + return typename; + } + + public void setTypename(String typename) { + this.typename = typename == null ? null : typename.trim(); + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public Integer getCollectiongap() { + return collectiongap; + } + + public void setCollectiongap(Integer collectiongap) { + this.collectiongap = collectiongap; + } + + public Integer getSendinggap() { + return sendinggap; + } + + public void setSendinggap(Integer sendinggap) { + this.sendinggap = sendinggap; + } + + public String getUrladdress() { + return urladdress; + } + + public void setUrladdress(String urladdress) { + this.urladdress = urladdress == null ? null : urladdress.trim(); + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port == null ? null : port.trim(); + } + + public Integer getUnipaththresholdlimit() { + return unipaththresholdlimit; + } + + public void setUnipaththresholdlimit(Integer unipaththresholdlimit) { + this.unipaththresholdlimit = unipaththresholdlimit; + } + + public Integer getUnipaththresholdupper() { + return unipaththresholdupper; + } + + public void setUnipaththresholdupper(Integer unipaththresholdupper) { + this.unipaththresholdupper = unipaththresholdupper; + } + + public Integer getUnipathchangethreshold() { + return unipathchangethreshold; + } + + public void setUnipathchangethreshold(Integer unipathchangethreshold) { + this.unipathchangethreshold = unipathchangethreshold; + } + + public Integer getMultiplethresholdlimit() { + return multiplethresholdlimit; + } + + public void setMultiplethresholdlimit(Integer multiplethresholdlimit) { + this.multiplethresholdlimit = multiplethresholdlimit; + } + + public Integer getMultiplethresholdupper() { + return multiplethresholdupper; + } + + public void setMultiplethresholdupper(Integer multiplethresholdupper) { + this.multiplethresholdupper = multiplethresholdupper; + } + + public Integer getMultiplechangethreshold() { + return multiplechangethreshold; + } + + public void setMultiplechangethreshold(Integer multiplechangethreshold) { + this.multiplechangethreshold = multiplechangethreshold; + } + + public Integer getControlvalvestate() { + return controlvalvestate; + } + + public void setControlvalvestate(Integer controlvalvestate) { + this.controlvalvestate = controlvalvestate; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime == null ? null : starttime.trim(); + } + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime == null ? null : endtime.trim(); + } + + public Integer getNumdays() { + return numdays; + } + + public void setNumdays(Integer numdays) { + this.numdays = numdays; + } + + public Integer getSwitchingvalue() { + return switchingvalue; + } + + public void setSwitchingvalue(Integer switchingvalue) { + this.switchingvalue = switchingvalue; + } + + public Integer getStopreporting() { + return stopreporting; + } + + public void setStopreporting(Integer stopreporting) { + this.stopreporting = stopreporting; + } + + public String getSoftwareversions() { + return softwareversions; + } + + public void setSoftwareversions(String softwareversions) { + this.softwareversions = softwareversions == null ? null : softwareversions.trim(); + } + + public String getHardwareversions() { + return hardwareversions; + } + + public void setHardwareversions(String hardwareversions) { + this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim(); + } + + public String getImsi() { + return imsi; + } + + public void setImsi(String imsi) { + this.imsi = imsi == null ? null : imsi.trim(); + } + + public String getApn() { + return apn; + } + + public void setApn(String apn) { + this.apn = apn == null ? null : apn.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getAutocontrolpolicy() { + return autocontrolpolicy; + } + + public void setAutocontrolpolicy(String autocontrolpolicy) { + this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim(); + } + + public String getAutocontroltime() { + return autocontroltime; + } + + public void setAutocontroltime(String autocontroltime) { + this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim(); + } + + public String getSelfchecktime() { + return selfchecktime; + } + + public void setSelfchecktime(String selfchecktime) { + this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim(); + } + + public Integer getCollide() { + return collide; + } + + public void setCollide(Integer collide) { + this.collide = collide; + } + + public Integer getLean() { + return lean; + } + + public void setLean(Integer lean) { + this.lean = lean; + } + + public Integer getLoraFrequency() { + return loraFrequency; + } + + public void setLoraFrequency(Integer loraFrequency) { + this.loraFrequency = loraFrequency; + } + + public Integer getLoraBandwidth() { + return loraBandwidth; + } + + public void setLoraBandwidth(Integer loraBandwidth) { + this.loraBandwidth = loraBandwidth; + } + + public Integer getLoraSpreading() { + return loraSpreading; + } + + public void setLoraSpreading(Integer loraSpreading) { + this.loraSpreading = loraSpreading; + } + + public Integer getLoraEncodingRate() { + return loraEncodingRate; + } + + public void setLoraEncodingRate(Integer loraEncodingRate) { + this.loraEncodingRate = loraEncodingRate; + } + + public Integer getNettype() { + return nettype; + } + + public void setNettype(Integer nettype) { + this.nettype = nettype; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + imei("imei", "imei", "VARCHAR", false), + typename("typeName", "typename", "VARCHAR", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + collectiongap("collectionGap", "collectiongap", "INTEGER", false), + sendinggap("sendingGap", "sendinggap", "INTEGER", false), + urladdress("urlAddress", "urladdress", "VARCHAR", false), + port("port", "port", "VARCHAR", false), + unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false), + unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false), + unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false), + multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false), + multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false), + multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false), + controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false), + starttime("startTime", "starttime", "VARCHAR", false), + endtime("endTime", "endtime", "VARCHAR", false), + numdays("numDays", "numdays", "INTEGER", false), + switchingvalue("switchingValue", "switchingvalue", "INTEGER", false), + stopreporting("stopReporting", "stopreporting", "INTEGER", false), + softwareversions("softwareVersions", "softwareversions", "VARCHAR", false), + hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false), + imsi("IMSI", "imsi", "VARCHAR", false), + apn("APN", "apn", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false), + autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false), + selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false), + collide("collide", "collide", "INTEGER", false), + lean("lean", "lean", "INTEGER", false), + loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false), + loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false), + loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false), + loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false), + nettype("netType", "nettype", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table nbiot_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java b/src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java new file mode 100644 index 0000000..7b651fc --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java @@ -0,0 +1,2431 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class NbiotConfigExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public NbiotConfigExample() { + 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 andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andTypenameIsNull() { + addCriterion("typeName is null"); + return (Criteria) this; + } + + public Criteria andTypenameIsNotNull() { + addCriterion("typeName is not null"); + return (Criteria) this; + } + + public Criteria andTypenameEqualTo(String value) { + addCriterion("typeName =", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotEqualTo(String value) { + addCriterion("typeName <>", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameGreaterThan(String value) { + addCriterion("typeName >", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameGreaterThanOrEqualTo(String value) { + addCriterion("typeName >=", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameLessThan(String value) { + addCriterion("typeName <", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameLessThanOrEqualTo(String value) { + addCriterion("typeName <=", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameLike(String value) { + addCriterion("typeName like", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotLike(String value) { + addCriterion("typeName not like", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameIn(List values) { + addCriterion("typeName in", values, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotIn(List values) { + addCriterion("typeName not in", values, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameBetween(String value1, String value2) { + addCriterion("typeName between", value1, value2, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotBetween(String value1, String value2) { + addCriterion("typeName not between", value1, value2, "typename"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andCollectiongapIsNull() { + addCriterion("collectionGap is null"); + return (Criteria) this; + } + + public Criteria andCollectiongapIsNotNull() { + addCriterion("collectionGap is not null"); + return (Criteria) this; + } + + public Criteria andCollectiongapEqualTo(Integer value) { + addCriterion("collectionGap =", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapNotEqualTo(Integer value) { + addCriterion("collectionGap <>", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapGreaterThan(Integer value) { + addCriterion("collectionGap >", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapGreaterThanOrEqualTo(Integer value) { + addCriterion("collectionGap >=", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapLessThan(Integer value) { + addCriterion("collectionGap <", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapLessThanOrEqualTo(Integer value) { + addCriterion("collectionGap <=", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapIn(List values) { + addCriterion("collectionGap in", values, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapNotIn(List values) { + addCriterion("collectionGap not in", values, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapBetween(Integer value1, Integer value2) { + addCriterion("collectionGap between", value1, value2, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapNotBetween(Integer value1, Integer value2) { + addCriterion("collectionGap not between", value1, value2, "collectiongap"); + return (Criteria) this; + } + + public Criteria andSendinggapIsNull() { + addCriterion("sendingGap is null"); + return (Criteria) this; + } + + public Criteria andSendinggapIsNotNull() { + addCriterion("sendingGap is not null"); + return (Criteria) this; + } + + public Criteria andSendinggapEqualTo(Integer value) { + addCriterion("sendingGap =", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapNotEqualTo(Integer value) { + addCriterion("sendingGap <>", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapGreaterThan(Integer value) { + addCriterion("sendingGap >", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapGreaterThanOrEqualTo(Integer value) { + addCriterion("sendingGap >=", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapLessThan(Integer value) { + addCriterion("sendingGap <", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapLessThanOrEqualTo(Integer value) { + addCriterion("sendingGap <=", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapIn(List values) { + addCriterion("sendingGap in", values, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapNotIn(List values) { + addCriterion("sendingGap not in", values, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapBetween(Integer value1, Integer value2) { + addCriterion("sendingGap between", value1, value2, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapNotBetween(Integer value1, Integer value2) { + addCriterion("sendingGap not between", value1, value2, "sendinggap"); + return (Criteria) this; + } + + public Criteria andUrladdressIsNull() { + addCriterion("urlAddress is null"); + return (Criteria) this; + } + + public Criteria andUrladdressIsNotNull() { + addCriterion("urlAddress is not null"); + return (Criteria) this; + } + + public Criteria andUrladdressEqualTo(String value) { + addCriterion("urlAddress =", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotEqualTo(String value) { + addCriterion("urlAddress <>", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressGreaterThan(String value) { + addCriterion("urlAddress >", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressGreaterThanOrEqualTo(String value) { + addCriterion("urlAddress >=", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressLessThan(String value) { + addCriterion("urlAddress <", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressLessThanOrEqualTo(String value) { + addCriterion("urlAddress <=", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressLike(String value) { + addCriterion("urlAddress like", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotLike(String value) { + addCriterion("urlAddress not like", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressIn(List values) { + addCriterion("urlAddress in", values, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotIn(List values) { + addCriterion("urlAddress not in", values, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressBetween(String value1, String value2) { + addCriterion("urlAddress between", value1, value2, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotBetween(String value1, String value2) { + addCriterion("urlAddress not between", value1, value2, "urladdress"); + return (Criteria) this; + } + + public Criteria andPortIsNull() { + addCriterion("port is null"); + return (Criteria) this; + } + + public Criteria andPortIsNotNull() { + addCriterion("port is not null"); + return (Criteria) this; + } + + public Criteria andPortEqualTo(String value) { + addCriterion("port =", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotEqualTo(String value) { + addCriterion("port <>", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThan(String value) { + addCriterion("port >", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThanOrEqualTo(String value) { + addCriterion("port >=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThan(String value) { + addCriterion("port <", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThanOrEqualTo(String value) { + addCriterion("port <=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLike(String value) { + addCriterion("port like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotLike(String value) { + addCriterion("port not like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortIn(List values) { + addCriterion("port in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortNotIn(List values) { + addCriterion("port not in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortBetween(String value1, String value2) { + addCriterion("port between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andPortNotBetween(String value1, String value2) { + addCriterion("port not between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitIsNull() { + addCriterion("unipathThresholdLimit is null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitIsNotNull() { + addCriterion("unipathThresholdLimit is not null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitEqualTo(Integer value) { + addCriterion("unipathThresholdLimit =", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitNotEqualTo(Integer value) { + addCriterion("unipathThresholdLimit <>", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitGreaterThan(Integer value) { + addCriterion("unipathThresholdLimit >", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitGreaterThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdLimit >=", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitLessThan(Integer value) { + addCriterion("unipathThresholdLimit <", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitLessThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdLimit <=", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitIn(List values) { + addCriterion("unipathThresholdLimit in", values, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitNotIn(List values) { + addCriterion("unipathThresholdLimit not in", values, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdLimit between", value1, value2, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitNotBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdLimit not between", value1, value2, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperIsNull() { + addCriterion("unipathThresholdUpper is null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperIsNotNull() { + addCriterion("unipathThresholdUpper is not null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperEqualTo(Integer value) { + addCriterion("unipathThresholdUpper =", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperNotEqualTo(Integer value) { + addCriterion("unipathThresholdUpper <>", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperGreaterThan(Integer value) { + addCriterion("unipathThresholdUpper >", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperGreaterThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdUpper >=", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperLessThan(Integer value) { + addCriterion("unipathThresholdUpper <", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperLessThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdUpper <=", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperIn(List values) { + addCriterion("unipathThresholdUpper in", values, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperNotIn(List values) { + addCriterion("unipathThresholdUpper not in", values, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdUpper between", value1, value2, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperNotBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdUpper not between", value1, value2, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdIsNull() { + addCriterion("unipathChangeThreshold is null"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdIsNotNull() { + addCriterion("unipathChangeThreshold is not null"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdEqualTo(Integer value) { + addCriterion("unipathChangeThreshold =", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdNotEqualTo(Integer value) { + addCriterion("unipathChangeThreshold <>", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdGreaterThan(Integer value) { + addCriterion("unipathChangeThreshold >", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdGreaterThanOrEqualTo(Integer value) { + addCriterion("unipathChangeThreshold >=", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdLessThan(Integer value) { + addCriterion("unipathChangeThreshold <", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdLessThanOrEqualTo(Integer value) { + addCriterion("unipathChangeThreshold <=", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdIn(List values) { + addCriterion("unipathChangeThreshold in", values, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdNotIn(List values) { + addCriterion("unipathChangeThreshold not in", values, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdBetween(Integer value1, Integer value2) { + addCriterion("unipathChangeThreshold between", value1, value2, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdNotBetween(Integer value1, Integer value2) { + addCriterion("unipathChangeThreshold not between", value1, value2, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitIsNull() { + addCriterion("multipleThresholdLimit is null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitIsNotNull() { + addCriterion("multipleThresholdLimit is not null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitEqualTo(Integer value) { + addCriterion("multipleThresholdLimit =", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitNotEqualTo(Integer value) { + addCriterion("multipleThresholdLimit <>", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitGreaterThan(Integer value) { + addCriterion("multipleThresholdLimit >", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitGreaterThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdLimit >=", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitLessThan(Integer value) { + addCriterion("multipleThresholdLimit <", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitLessThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdLimit <=", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitIn(List values) { + addCriterion("multipleThresholdLimit in", values, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitNotIn(List values) { + addCriterion("multipleThresholdLimit not in", values, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdLimit between", value1, value2, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitNotBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdLimit not between", value1, value2, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperIsNull() { + addCriterion("multipleThresholdUpper is null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperIsNotNull() { + addCriterion("multipleThresholdUpper is not null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperEqualTo(Integer value) { + addCriterion("multipleThresholdUpper =", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperNotEqualTo(Integer value) { + addCriterion("multipleThresholdUpper <>", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperGreaterThan(Integer value) { + addCriterion("multipleThresholdUpper >", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperGreaterThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdUpper >=", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperLessThan(Integer value) { + addCriterion("multipleThresholdUpper <", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperLessThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdUpper <=", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperIn(List values) { + addCriterion("multipleThresholdUpper in", values, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperNotIn(List values) { + addCriterion("multipleThresholdUpper not in", values, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdUpper between", value1, value2, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperNotBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdUpper not between", value1, value2, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdIsNull() { + addCriterion("multipleChangeThreshold is null"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdIsNotNull() { + addCriterion("multipleChangeThreshold is not null"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdEqualTo(Integer value) { + addCriterion("multipleChangeThreshold =", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdNotEqualTo(Integer value) { + addCriterion("multipleChangeThreshold <>", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdGreaterThan(Integer value) { + addCriterion("multipleChangeThreshold >", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdGreaterThanOrEqualTo(Integer value) { + addCriterion("multipleChangeThreshold >=", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdLessThan(Integer value) { + addCriterion("multipleChangeThreshold <", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdLessThanOrEqualTo(Integer value) { + addCriterion("multipleChangeThreshold <=", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdIn(List values) { + addCriterion("multipleChangeThreshold in", values, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdNotIn(List values) { + addCriterion("multipleChangeThreshold not in", values, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdBetween(Integer value1, Integer value2) { + addCriterion("multipleChangeThreshold between", value1, value2, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdNotBetween(Integer value1, Integer value2) { + addCriterion("multipleChangeThreshold not between", value1, value2, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andControlvalvestateIsNull() { + addCriterion("controlValveState is null"); + return (Criteria) this; + } + + public Criteria andControlvalvestateIsNotNull() { + addCriterion("controlValveState is not null"); + return (Criteria) this; + } + + public Criteria andControlvalvestateEqualTo(Integer value) { + addCriterion("controlValveState =", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateNotEqualTo(Integer value) { + addCriterion("controlValveState <>", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateGreaterThan(Integer value) { + addCriterion("controlValveState >", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateGreaterThanOrEqualTo(Integer value) { + addCriterion("controlValveState >=", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateLessThan(Integer value) { + addCriterion("controlValveState <", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateLessThanOrEqualTo(Integer value) { + addCriterion("controlValveState <=", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateIn(List values) { + addCriterion("controlValveState in", values, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateNotIn(List values) { + addCriterion("controlValveState not in", values, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateBetween(Integer value1, Integer value2) { + addCriterion("controlValveState between", value1, value2, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateNotBetween(Integer value1, Integer value2) { + addCriterion("controlValveState not between", value1, value2, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andStarttimeIsNull() { + addCriterion("startTime is null"); + return (Criteria) this; + } + + public Criteria andStarttimeIsNotNull() { + addCriterion("startTime is not null"); + return (Criteria) this; + } + + public Criteria andStarttimeEqualTo(String value) { + addCriterion("startTime =", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotEqualTo(String value) { + addCriterion("startTime <>", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeGreaterThan(String value) { + addCriterion("startTime >", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeGreaterThanOrEqualTo(String value) { + addCriterion("startTime >=", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeLessThan(String value) { + addCriterion("startTime <", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeLessThanOrEqualTo(String value) { + addCriterion("startTime <=", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeLike(String value) { + addCriterion("startTime like", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotLike(String value) { + addCriterion("startTime not like", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeIn(List values) { + addCriterion("startTime in", values, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotIn(List values) { + addCriterion("startTime not in", values, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeBetween(String value1, String value2) { + addCriterion("startTime between", value1, value2, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotBetween(String value1, String value2) { + addCriterion("startTime not between", value1, value2, "starttime"); + return (Criteria) this; + } + + public Criteria andEndtimeIsNull() { + addCriterion("endTime is null"); + return (Criteria) this; + } + + public Criteria andEndtimeIsNotNull() { + addCriterion("endTime is not null"); + return (Criteria) this; + } + + public Criteria andEndtimeEqualTo(String value) { + addCriterion("endTime =", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotEqualTo(String value) { + addCriterion("endTime <>", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeGreaterThan(String value) { + addCriterion("endTime >", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeGreaterThanOrEqualTo(String value) { + addCriterion("endTime >=", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLessThan(String value) { + addCriterion("endTime <", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLessThanOrEqualTo(String value) { + addCriterion("endTime <=", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLike(String value) { + addCriterion("endTime like", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotLike(String value) { + addCriterion("endTime not like", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeIn(List values) { + addCriterion("endTime in", values, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotIn(List values) { + addCriterion("endTime not in", values, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeBetween(String value1, String value2) { + addCriterion("endTime between", value1, value2, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotBetween(String value1, String value2) { + addCriterion("endTime not between", value1, value2, "endtime"); + return (Criteria) this; + } + + public Criteria andNumdaysIsNull() { + addCriterion("numDays is null"); + return (Criteria) this; + } + + public Criteria andNumdaysIsNotNull() { + addCriterion("numDays is not null"); + return (Criteria) this; + } + + public Criteria andNumdaysEqualTo(Integer value) { + addCriterion("numDays =", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysNotEqualTo(Integer value) { + addCriterion("numDays <>", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysGreaterThan(Integer value) { + addCriterion("numDays >", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysGreaterThanOrEqualTo(Integer value) { + addCriterion("numDays >=", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysLessThan(Integer value) { + addCriterion("numDays <", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysLessThanOrEqualTo(Integer value) { + addCriterion("numDays <=", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysIn(List values) { + addCriterion("numDays in", values, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysNotIn(List values) { + addCriterion("numDays not in", values, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysBetween(Integer value1, Integer value2) { + addCriterion("numDays between", value1, value2, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysNotBetween(Integer value1, Integer value2) { + addCriterion("numDays not between", value1, value2, "numdays"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueIsNull() { + addCriterion("switchingValue is null"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueIsNotNull() { + addCriterion("switchingValue is not null"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueEqualTo(Integer value) { + addCriterion("switchingValue =", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueNotEqualTo(Integer value) { + addCriterion("switchingValue <>", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueGreaterThan(Integer value) { + addCriterion("switchingValue >", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueGreaterThanOrEqualTo(Integer value) { + addCriterion("switchingValue >=", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueLessThan(Integer value) { + addCriterion("switchingValue <", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueLessThanOrEqualTo(Integer value) { + addCriterion("switchingValue <=", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueIn(List values) { + addCriterion("switchingValue in", values, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueNotIn(List values) { + addCriterion("switchingValue not in", values, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueBetween(Integer value1, Integer value2) { + addCriterion("switchingValue between", value1, value2, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueNotBetween(Integer value1, Integer value2) { + addCriterion("switchingValue not between", value1, value2, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andStopreportingIsNull() { + addCriterion("stopReporting is null"); + return (Criteria) this; + } + + public Criteria andStopreportingIsNotNull() { + addCriterion("stopReporting is not null"); + return (Criteria) this; + } + + public Criteria andStopreportingEqualTo(Integer value) { + addCriterion("stopReporting =", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingNotEqualTo(Integer value) { + addCriterion("stopReporting <>", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingGreaterThan(Integer value) { + addCriterion("stopReporting >", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingGreaterThanOrEqualTo(Integer value) { + addCriterion("stopReporting >=", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingLessThan(Integer value) { + addCriterion("stopReporting <", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingLessThanOrEqualTo(Integer value) { + addCriterion("stopReporting <=", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingIn(List values) { + addCriterion("stopReporting in", values, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingNotIn(List values) { + addCriterion("stopReporting not in", values, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingBetween(Integer value1, Integer value2) { + addCriterion("stopReporting between", value1, value2, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingNotBetween(Integer value1, Integer value2) { + addCriterion("stopReporting not between", value1, value2, "stopreporting"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsIsNull() { + addCriterion("softwareVersions is null"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsIsNotNull() { + addCriterion("softwareVersions is not null"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsEqualTo(String value) { + addCriterion("softwareVersions =", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotEqualTo(String value) { + addCriterion("softwareVersions <>", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsGreaterThan(String value) { + addCriterion("softwareVersions >", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsGreaterThanOrEqualTo(String value) { + addCriterion("softwareVersions >=", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsLessThan(String value) { + addCriterion("softwareVersions <", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsLessThanOrEqualTo(String value) { + addCriterion("softwareVersions <=", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsLike(String value) { + addCriterion("softwareVersions like", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotLike(String value) { + addCriterion("softwareVersions not like", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsIn(List values) { + addCriterion("softwareVersions in", values, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotIn(List values) { + addCriterion("softwareVersions not in", values, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsBetween(String value1, String value2) { + addCriterion("softwareVersions between", value1, value2, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotBetween(String value1, String value2) { + addCriterion("softwareVersions not between", value1, value2, "softwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsIsNull() { + addCriterion("hardwareVersions is null"); + return (Criteria) this; + } + + public Criteria andHardwareversionsIsNotNull() { + addCriterion("hardwareVersions is not null"); + return (Criteria) this; + } + + public Criteria andHardwareversionsEqualTo(String value) { + addCriterion("hardwareVersions =", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotEqualTo(String value) { + addCriterion("hardwareVersions <>", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsGreaterThan(String value) { + addCriterion("hardwareVersions >", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsGreaterThanOrEqualTo(String value) { + addCriterion("hardwareVersions >=", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsLessThan(String value) { + addCriterion("hardwareVersions <", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsLessThanOrEqualTo(String value) { + addCriterion("hardwareVersions <=", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsLike(String value) { + addCriterion("hardwareVersions like", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotLike(String value) { + addCriterion("hardwareVersions not like", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsIn(List values) { + addCriterion("hardwareVersions in", values, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotIn(List values) { + addCriterion("hardwareVersions not in", values, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsBetween(String value1, String value2) { + addCriterion("hardwareVersions between", value1, value2, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotBetween(String value1, String value2) { + addCriterion("hardwareVersions not between", value1, value2, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andImsiIsNull() { + addCriterion("IMSI is null"); + return (Criteria) this; + } + + public Criteria andImsiIsNotNull() { + addCriterion("IMSI is not null"); + return (Criteria) this; + } + + public Criteria andImsiEqualTo(String value) { + addCriterion("IMSI =", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotEqualTo(String value) { + addCriterion("IMSI <>", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiGreaterThan(String value) { + addCriterion("IMSI >", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiGreaterThanOrEqualTo(String value) { + addCriterion("IMSI >=", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLessThan(String value) { + addCriterion("IMSI <", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLessThanOrEqualTo(String value) { + addCriterion("IMSI <=", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLike(String value) { + addCriterion("IMSI like", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotLike(String value) { + addCriterion("IMSI not like", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiIn(List values) { + addCriterion("IMSI in", values, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotIn(List values) { + addCriterion("IMSI not in", values, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiBetween(String value1, String value2) { + addCriterion("IMSI between", value1, value2, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotBetween(String value1, String value2) { + addCriterion("IMSI not between", value1, value2, "imsi"); + return (Criteria) this; + } + + public Criteria andApnIsNull() { + addCriterion("APN is null"); + return (Criteria) this; + } + + public Criteria andApnIsNotNull() { + addCriterion("APN is not null"); + return (Criteria) this; + } + + public Criteria andApnEqualTo(String value) { + addCriterion("APN =", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotEqualTo(String value) { + addCriterion("APN <>", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnGreaterThan(String value) { + addCriterion("APN >", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnGreaterThanOrEqualTo(String value) { + addCriterion("APN >=", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnLessThan(String value) { + addCriterion("APN <", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnLessThanOrEqualTo(String value) { + addCriterion("APN <=", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnLike(String value) { + addCriterion("APN like", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotLike(String value) { + addCriterion("APN not like", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnIn(List values) { + addCriterion("APN in", values, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotIn(List values) { + addCriterion("APN not in", values, "apn"); + return (Criteria) this; + } + + public Criteria andApnBetween(String value1, String value2) { + addCriterion("APN between", value1, value2, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotBetween(String value1, String value2) { + addCriterion("APN not between", value1, value2, "apn"); + 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 andAutocontrolpolicyIsNull() { + addCriterion("autoControlPolicy is null"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyIsNotNull() { + addCriterion("autoControlPolicy is not null"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyEqualTo(String value) { + addCriterion("autoControlPolicy =", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotEqualTo(String value) { + addCriterion("autoControlPolicy <>", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyGreaterThan(String value) { + addCriterion("autoControlPolicy >", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyGreaterThanOrEqualTo(String value) { + addCriterion("autoControlPolicy >=", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyLessThan(String value) { + addCriterion("autoControlPolicy <", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyLessThanOrEqualTo(String value) { + addCriterion("autoControlPolicy <=", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyLike(String value) { + addCriterion("autoControlPolicy like", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotLike(String value) { + addCriterion("autoControlPolicy not like", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyIn(List values) { + addCriterion("autoControlPolicy in", values, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotIn(List values) { + addCriterion("autoControlPolicy not in", values, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyBetween(String value1, String value2) { + addCriterion("autoControlPolicy between", value1, value2, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotBetween(String value1, String value2) { + addCriterion("autoControlPolicy not between", value1, value2, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeIsNull() { + addCriterion("autoControlTime is null"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeIsNotNull() { + addCriterion("autoControlTime is not null"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeEqualTo(String value) { + addCriterion("autoControlTime =", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotEqualTo(String value) { + addCriterion("autoControlTime <>", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeGreaterThan(String value) { + addCriterion("autoControlTime >", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeGreaterThanOrEqualTo(String value) { + addCriterion("autoControlTime >=", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeLessThan(String value) { + addCriterion("autoControlTime <", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeLessThanOrEqualTo(String value) { + addCriterion("autoControlTime <=", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeLike(String value) { + addCriterion("autoControlTime like", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotLike(String value) { + addCriterion("autoControlTime not like", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeIn(List values) { + addCriterion("autoControlTime in", values, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotIn(List values) { + addCriterion("autoControlTime not in", values, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeBetween(String value1, String value2) { + addCriterion("autoControlTime between", value1, value2, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotBetween(String value1, String value2) { + addCriterion("autoControlTime not between", value1, value2, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeIsNull() { + addCriterion("selfCheckTime is null"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeIsNotNull() { + addCriterion("selfCheckTime is not null"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeEqualTo(String value) { + addCriterion("selfCheckTime =", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotEqualTo(String value) { + addCriterion("selfCheckTime <>", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeGreaterThan(String value) { + addCriterion("selfCheckTime >", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeGreaterThanOrEqualTo(String value) { + addCriterion("selfCheckTime >=", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeLessThan(String value) { + addCriterion("selfCheckTime <", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeLessThanOrEqualTo(String value) { + addCriterion("selfCheckTime <=", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeLike(String value) { + addCriterion("selfCheckTime like", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotLike(String value) { + addCriterion("selfCheckTime not like", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeIn(List values) { + addCriterion("selfCheckTime in", values, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotIn(List values) { + addCriterion("selfCheckTime not in", values, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeBetween(String value1, String value2) { + addCriterion("selfCheckTime between", value1, value2, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotBetween(String value1, String value2) { + addCriterion("selfCheckTime not between", value1, value2, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andCollideIsNull() { + addCriterion("collide is null"); + return (Criteria) this; + } + + public Criteria andCollideIsNotNull() { + addCriterion("collide is not null"); + return (Criteria) this; + } + + public Criteria andCollideEqualTo(Integer value) { + addCriterion("collide =", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideNotEqualTo(Integer value) { + addCriterion("collide <>", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideGreaterThan(Integer value) { + addCriterion("collide >", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideGreaterThanOrEqualTo(Integer value) { + addCriterion("collide >=", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideLessThan(Integer value) { + addCriterion("collide <", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideLessThanOrEqualTo(Integer value) { + addCriterion("collide <=", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideIn(List values) { + addCriterion("collide in", values, "collide"); + return (Criteria) this; + } + + public Criteria andCollideNotIn(List values) { + addCriterion("collide not in", values, "collide"); + return (Criteria) this; + } + + public Criteria andCollideBetween(Integer value1, Integer value2) { + addCriterion("collide between", value1, value2, "collide"); + return (Criteria) this; + } + + public Criteria andCollideNotBetween(Integer value1, Integer value2) { + addCriterion("collide not between", value1, value2, "collide"); + return (Criteria) this; + } + + public Criteria andLeanIsNull() { + addCriterion("lean is null"); + return (Criteria) this; + } + + public Criteria andLeanIsNotNull() { + addCriterion("lean is not null"); + return (Criteria) this; + } + + public Criteria andLeanEqualTo(Integer value) { + addCriterion("lean =", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanNotEqualTo(Integer value) { + addCriterion("lean <>", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanGreaterThan(Integer value) { + addCriterion("lean >", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanGreaterThanOrEqualTo(Integer value) { + addCriterion("lean >=", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanLessThan(Integer value) { + addCriterion("lean <", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanLessThanOrEqualTo(Integer value) { + addCriterion("lean <=", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanIn(List values) { + addCriterion("lean in", values, "lean"); + return (Criteria) this; + } + + public Criteria andLeanNotIn(List values) { + addCriterion("lean not in", values, "lean"); + return (Criteria) this; + } + + public Criteria andLeanBetween(Integer value1, Integer value2) { + addCriterion("lean between", value1, value2, "lean"); + return (Criteria) this; + } + + public Criteria andLeanNotBetween(Integer value1, Integer value2) { + addCriterion("lean not between", value1, value2, "lean"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyIsNull() { + addCriterion("lora_frequency is null"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyIsNotNull() { + addCriterion("lora_frequency is not null"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyEqualTo(Integer value) { + addCriterion("lora_frequency =", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyNotEqualTo(Integer value) { + addCriterion("lora_frequency <>", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyGreaterThan(Integer value) { + addCriterion("lora_frequency >", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_frequency >=", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyLessThan(Integer value) { + addCriterion("lora_frequency <", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyLessThanOrEqualTo(Integer value) { + addCriterion("lora_frequency <=", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyIn(List values) { + addCriterion("lora_frequency in", values, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyNotIn(List values) { + addCriterion("lora_frequency not in", values, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyBetween(Integer value1, Integer value2) { + addCriterion("lora_frequency between", value1, value2, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyNotBetween(Integer value1, Integer value2) { + addCriterion("lora_frequency not between", value1, value2, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthIsNull() { + addCriterion("lora_bandwidth is null"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthIsNotNull() { + addCriterion("lora_bandwidth is not null"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthEqualTo(Integer value) { + addCriterion("lora_bandwidth =", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthNotEqualTo(Integer value) { + addCriterion("lora_bandwidth <>", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthGreaterThan(Integer value) { + addCriterion("lora_bandwidth >", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_bandwidth >=", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthLessThan(Integer value) { + addCriterion("lora_bandwidth <", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthLessThanOrEqualTo(Integer value) { + addCriterion("lora_bandwidth <=", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthIn(List values) { + addCriterion("lora_bandwidth in", values, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthNotIn(List values) { + addCriterion("lora_bandwidth not in", values, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthBetween(Integer value1, Integer value2) { + addCriterion("lora_bandwidth between", value1, value2, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthNotBetween(Integer value1, Integer value2) { + addCriterion("lora_bandwidth not between", value1, value2, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingIsNull() { + addCriterion("lora_spreading is null"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingIsNotNull() { + addCriterion("lora_spreading is not null"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingEqualTo(Integer value) { + addCriterion("lora_spreading =", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingNotEqualTo(Integer value) { + addCriterion("lora_spreading <>", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingGreaterThan(Integer value) { + addCriterion("lora_spreading >", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_spreading >=", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingLessThan(Integer value) { + addCriterion("lora_spreading <", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingLessThanOrEqualTo(Integer value) { + addCriterion("lora_spreading <=", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingIn(List values) { + addCriterion("lora_spreading in", values, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingNotIn(List values) { + addCriterion("lora_spreading not in", values, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingBetween(Integer value1, Integer value2) { + addCriterion("lora_spreading between", value1, value2, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingNotBetween(Integer value1, Integer value2) { + addCriterion("lora_spreading not between", value1, value2, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateIsNull() { + addCriterion("lora_encoding_rate is null"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateIsNotNull() { + addCriterion("lora_encoding_rate is not null"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateEqualTo(Integer value) { + addCriterion("lora_encoding_rate =", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateNotEqualTo(Integer value) { + addCriterion("lora_encoding_rate <>", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateGreaterThan(Integer value) { + addCriterion("lora_encoding_rate >", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_encoding_rate >=", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateLessThan(Integer value) { + addCriterion("lora_encoding_rate <", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateLessThanOrEqualTo(Integer value) { + addCriterion("lora_encoding_rate <=", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateIn(List values) { + addCriterion("lora_encoding_rate in", values, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateNotIn(List values) { + addCriterion("lora_encoding_rate not in", values, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateBetween(Integer value1, Integer value2) { + addCriterion("lora_encoding_rate between", value1, value2, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateNotBetween(Integer value1, Integer value2) { + addCriterion("lora_encoding_rate not between", value1, value2, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andNettypeIsNull() { + addCriterion("netType is null"); + return (Criteria) this; + } + + public Criteria andNettypeIsNotNull() { + addCriterion("netType is not null"); + return (Criteria) this; + } + + public Criteria andNettypeEqualTo(Integer value) { + addCriterion("netType =", value, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeNotEqualTo(Integer value) { + addCriterion("netType <>", value, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeGreaterThan(Integer value) { + addCriterion("netType >", value, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeGreaterThanOrEqualTo(Integer value) { + addCriterion("netType >=", value, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeLessThan(Integer value) { + addCriterion("netType <", value, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeLessThanOrEqualTo(Integer value) { + addCriterion("netType <=", value, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeIn(List values) { + addCriterion("netType in", values, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeNotIn(List values) { + addCriterion("netType not in", values, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeBetween(Integer value1, Integer value2) { + addCriterion("netType between", value1, value2, "nettype"); + return (Criteria) this; + } + + public Criteria andNettypeNotBetween(Integer value1, Integer value2) { + addCriterion("netType not between", value1, value2, "nettype"); + 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/src/main/java/com/topsail/influxdb/pojo/OcCompany.java b/src/main/java/com/topsail/influxdb/pojo/OcCompany.java new file mode 100644 index 0000000..940e2b9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OcCompany.java @@ -0,0 +1,279 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class OcCompany { + private Integer id; + + private String username; + + private String userip; + + private Integer userport; + + private String userprot; + + private String period; + + private String phonenum; + + private Integer cid; + + private String cperiod; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUserip() { + return userip; + } + + public void setUserip(String userip) { + this.userip = userip == null ? null : userip.trim(); + } + + public Integer getUserport() { + return userport; + } + + public void setUserport(Integer userport) { + this.userport = userport; + } + + public String getUserprot() { + return userprot; + } + + public void setUserprot(String userprot) { + this.userprot = userprot == null ? null : userprot.trim(); + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period == null ? null : period.trim(); + } + + public String getPhonenum() { + return phonenum; + } + + public void setPhonenum(String phonenum) { + this.phonenum = phonenum == null ? null : phonenum.trim(); + } + + public Integer getCid() { + return cid; + } + + public void setCid(Integer cid) { + this.cid = cid; + } + + public String getCperiod() { + return cperiod; + } + + public void setCperiod(String cperiod) { + this.cperiod = cperiod == null ? null : cperiod.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + username("username", "username", "VARCHAR", false), + userip("userip", "userip", "VARCHAR", false), + userport("userport", "userport", "INTEGER", false), + userprot("userprot", "userprot", "VARCHAR", false), + period("period", "period", "VARCHAR", false), + phonenum("phoneNum", "phonenum", "VARCHAR", false), + cid("cid", "cid", "INTEGER", false), + cperiod("cperiod", "cperiod", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java b/src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java new file mode 100644 index 0000000..98ffa23 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java @@ -0,0 +1,800 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class OcCompanyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OcCompanyExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("username is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("username is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("username =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("username <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("username >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("username >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("username <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("username <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("username like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("username not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("username in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("username not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("username between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("username not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUseripIsNull() { + addCriterion("userip is null"); + return (Criteria) this; + } + + public Criteria andUseripIsNotNull() { + addCriterion("userip is not null"); + return (Criteria) this; + } + + public Criteria andUseripEqualTo(String value) { + addCriterion("userip =", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotEqualTo(String value) { + addCriterion("userip <>", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripGreaterThan(String value) { + addCriterion("userip >", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripGreaterThanOrEqualTo(String value) { + addCriterion("userip >=", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripLessThan(String value) { + addCriterion("userip <", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripLessThanOrEqualTo(String value) { + addCriterion("userip <=", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripLike(String value) { + addCriterion("userip like", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotLike(String value) { + addCriterion("userip not like", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripIn(List values) { + addCriterion("userip in", values, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotIn(List values) { + addCriterion("userip not in", values, "userip"); + return (Criteria) this; + } + + public Criteria andUseripBetween(String value1, String value2) { + addCriterion("userip between", value1, value2, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotBetween(String value1, String value2) { + addCriterion("userip not between", value1, value2, "userip"); + return (Criteria) this; + } + + public Criteria andUserportIsNull() { + addCriterion("userport is null"); + return (Criteria) this; + } + + public Criteria andUserportIsNotNull() { + addCriterion("userport is not null"); + return (Criteria) this; + } + + public Criteria andUserportEqualTo(Integer value) { + addCriterion("userport =", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportNotEqualTo(Integer value) { + addCriterion("userport <>", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportGreaterThan(Integer value) { + addCriterion("userport >", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportGreaterThanOrEqualTo(Integer value) { + addCriterion("userport >=", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportLessThan(Integer value) { + addCriterion("userport <", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportLessThanOrEqualTo(Integer value) { + addCriterion("userport <=", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportIn(List values) { + addCriterion("userport in", values, "userport"); + return (Criteria) this; + } + + public Criteria andUserportNotIn(List values) { + addCriterion("userport not in", values, "userport"); + return (Criteria) this; + } + + public Criteria andUserportBetween(Integer value1, Integer value2) { + addCriterion("userport between", value1, value2, "userport"); + return (Criteria) this; + } + + public Criteria andUserportNotBetween(Integer value1, Integer value2) { + addCriterion("userport not between", value1, value2, "userport"); + return (Criteria) this; + } + + public Criteria andUserprotIsNull() { + addCriterion("userprot is null"); + return (Criteria) this; + } + + public Criteria andUserprotIsNotNull() { + addCriterion("userprot is not null"); + return (Criteria) this; + } + + public Criteria andUserprotEqualTo(String value) { + addCriterion("userprot =", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotEqualTo(String value) { + addCriterion("userprot <>", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotGreaterThan(String value) { + addCriterion("userprot >", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotGreaterThanOrEqualTo(String value) { + addCriterion("userprot >=", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotLessThan(String value) { + addCriterion("userprot <", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotLessThanOrEqualTo(String value) { + addCriterion("userprot <=", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotLike(String value) { + addCriterion("userprot like", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotLike(String value) { + addCriterion("userprot not like", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotIn(List values) { + addCriterion("userprot in", values, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotIn(List values) { + addCriterion("userprot not in", values, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotBetween(String value1, String value2) { + addCriterion("userprot between", value1, value2, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotBetween(String value1, String value2) { + addCriterion("userprot not between", value1, value2, "userprot"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(String value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(String value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(String value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(String value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(String value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(String value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLike(String value) { + addCriterion("period like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotLike(String value) { + addCriterion("period not like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(String value1, String value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(String value1, String value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPhonenumIsNull() { + addCriterion("phoneNum is null"); + return (Criteria) this; + } + + public Criteria andPhonenumIsNotNull() { + addCriterion("phoneNum is not null"); + return (Criteria) this; + } + + public Criteria andPhonenumEqualTo(String value) { + addCriterion("phoneNum =", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumNotEqualTo(String value) { + addCriterion("phoneNum <>", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumGreaterThan(String value) { + addCriterion("phoneNum >", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumGreaterThanOrEqualTo(String value) { + addCriterion("phoneNum >=", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumLessThan(String value) { + addCriterion("phoneNum <", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumLessThanOrEqualTo(String value) { + addCriterion("phoneNum <=", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumLike(String value) { + addCriterion("phoneNum like", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumNotLike(String value) { + addCriterion("phoneNum not like", value, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumIn(List values) { + addCriterion("phoneNum in", values, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumNotIn(List values) { + addCriterion("phoneNum not in", values, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumBetween(String value1, String value2) { + addCriterion("phoneNum between", value1, value2, "phonenum"); + return (Criteria) this; + } + + public Criteria andPhonenumNotBetween(String value1, String value2) { + addCriterion("phoneNum not between", value1, value2, "phonenum"); + return (Criteria) this; + } + + public Criteria andCidIsNull() { + addCriterion("cid is null"); + return (Criteria) this; + } + + public Criteria andCidIsNotNull() { + addCriterion("cid is not null"); + return (Criteria) this; + } + + public Criteria andCidEqualTo(Integer value) { + addCriterion("cid =", value, "cid"); + return (Criteria) this; + } + + public Criteria andCidNotEqualTo(Integer value) { + addCriterion("cid <>", value, "cid"); + return (Criteria) this; + } + + public Criteria andCidGreaterThan(Integer value) { + addCriterion("cid >", value, "cid"); + return (Criteria) this; + } + + public Criteria andCidGreaterThanOrEqualTo(Integer value) { + addCriterion("cid >=", value, "cid"); + return (Criteria) this; + } + + public Criteria andCidLessThan(Integer value) { + addCriterion("cid <", value, "cid"); + return (Criteria) this; + } + + public Criteria andCidLessThanOrEqualTo(Integer value) { + addCriterion("cid <=", value, "cid"); + return (Criteria) this; + } + + public Criteria andCidIn(List values) { + addCriterion("cid in", values, "cid"); + return (Criteria) this; + } + + public Criteria andCidNotIn(List values) { + addCriterion("cid not in", values, "cid"); + return (Criteria) this; + } + + public Criteria andCidBetween(Integer value1, Integer value2) { + addCriterion("cid between", value1, value2, "cid"); + return (Criteria) this; + } + + public Criteria andCidNotBetween(Integer value1, Integer value2) { + addCriterion("cid not between", value1, value2, "cid"); + return (Criteria) this; + } + + public Criteria andCperiodIsNull() { + addCriterion("cperiod is null"); + return (Criteria) this; + } + + public Criteria andCperiodIsNotNull() { + addCriterion("cperiod is not null"); + return (Criteria) this; + } + + public Criteria andCperiodEqualTo(String value) { + addCriterion("cperiod =", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotEqualTo(String value) { + addCriterion("cperiod <>", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodGreaterThan(String value) { + addCriterion("cperiod >", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodGreaterThanOrEqualTo(String value) { + addCriterion("cperiod >=", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodLessThan(String value) { + addCriterion("cperiod <", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodLessThanOrEqualTo(String value) { + addCriterion("cperiod <=", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodLike(String value) { + addCriterion("cperiod like", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotLike(String value) { + addCriterion("cperiod not like", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodIn(List values) { + addCriterion("cperiod in", values, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotIn(List values) { + addCriterion("cperiod not in", values, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodBetween(String value1, String value2) { + addCriterion("cperiod between", value1, value2, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotBetween(String value1, String value2) { + addCriterion("cperiod not between", value1, value2, "cperiod"); + 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/src/main/java/com/topsail/influxdb/pojo/OcConfig.java b/src/main/java/com/topsail/influxdb/pojo/OcConfig.java new file mode 100644 index 0000000..b1a3da3 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OcConfig.java @@ -0,0 +1,566 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class OcConfig { + private Long id; + + private String imei; + + private String typename; + + private Integer devicetype; + + private Integer collectiongap; + + private Integer sendinggap; + + private String urladdress; + + private String port; + + private Integer unipaththresholdlimit; + + private Integer unipaththresholdupper; + + private Integer unipathchangethreshold; + + private Integer multiplethresholdlimit; + + private Integer multiplethresholdupper; + + private Integer multiplechangethreshold; + + private Integer controlvalvestate; + + private String starttime; + + private String endtime; + + private Integer numdays; + + private Integer switchingvalue; + + private Integer stopreporting; + + private String softwareversions; + + private String hardwareversions; + + private String imsi; + + private String apn; + + private Date time; + + private String autocontrolpolicy; + + private String autocontroltime; + + private String selfchecktime; + + private Integer collide; + + private Integer lean; + + private Integer loraFrequency; + + private Integer loraBandwidth; + + private Integer loraSpreading; + + private Integer loraEncodingRate; + + private String cimei; + + public Long getId() { + return id; + } + + public void setId(Long id) { + this.id = id; + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public String getTypename() { + return typename; + } + + public void setTypename(String typename) { + this.typename = typename == null ? null : typename.trim(); + } + + public Integer getDevicetype() { + return devicetype; + } + + public void setDevicetype(Integer devicetype) { + this.devicetype = devicetype; + } + + public Integer getCollectiongap() { + return collectiongap; + } + + public void setCollectiongap(Integer collectiongap) { + this.collectiongap = collectiongap; + } + + public Integer getSendinggap() { + return sendinggap; + } + + public void setSendinggap(Integer sendinggap) { + this.sendinggap = sendinggap; + } + + public String getUrladdress() { + return urladdress; + } + + public void setUrladdress(String urladdress) { + this.urladdress = urladdress == null ? null : urladdress.trim(); + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port == null ? null : port.trim(); + } + + public Integer getUnipaththresholdlimit() { + return unipaththresholdlimit; + } + + public void setUnipaththresholdlimit(Integer unipaththresholdlimit) { + this.unipaththresholdlimit = unipaththresholdlimit; + } + + public Integer getUnipaththresholdupper() { + return unipaththresholdupper; + } + + public void setUnipaththresholdupper(Integer unipaththresholdupper) { + this.unipaththresholdupper = unipaththresholdupper; + } + + public Integer getUnipathchangethreshold() { + return unipathchangethreshold; + } + + public void setUnipathchangethreshold(Integer unipathchangethreshold) { + this.unipathchangethreshold = unipathchangethreshold; + } + + public Integer getMultiplethresholdlimit() { + return multiplethresholdlimit; + } + + public void setMultiplethresholdlimit(Integer multiplethresholdlimit) { + this.multiplethresholdlimit = multiplethresholdlimit; + } + + public Integer getMultiplethresholdupper() { + return multiplethresholdupper; + } + + public void setMultiplethresholdupper(Integer multiplethresholdupper) { + this.multiplethresholdupper = multiplethresholdupper; + } + + public Integer getMultiplechangethreshold() { + return multiplechangethreshold; + } + + public void setMultiplechangethreshold(Integer multiplechangethreshold) { + this.multiplechangethreshold = multiplechangethreshold; + } + + public Integer getControlvalvestate() { + return controlvalvestate; + } + + public void setControlvalvestate(Integer controlvalvestate) { + this.controlvalvestate = controlvalvestate; + } + + public String getStarttime() { + return starttime; + } + + public void setStarttime(String starttime) { + this.starttime = starttime == null ? null : starttime.trim(); + } + + public String getEndtime() { + return endtime; + } + + public void setEndtime(String endtime) { + this.endtime = endtime == null ? null : endtime.trim(); + } + + public Integer getNumdays() { + return numdays; + } + + public void setNumdays(Integer numdays) { + this.numdays = numdays; + } + + public Integer getSwitchingvalue() { + return switchingvalue; + } + + public void setSwitchingvalue(Integer switchingvalue) { + this.switchingvalue = switchingvalue; + } + + public Integer getStopreporting() { + return stopreporting; + } + + public void setStopreporting(Integer stopreporting) { + this.stopreporting = stopreporting; + } + + public String getSoftwareversions() { + return softwareversions; + } + + public void setSoftwareversions(String softwareversions) { + this.softwareversions = softwareversions == null ? null : softwareversions.trim(); + } + + public String getHardwareversions() { + return hardwareversions; + } + + public void setHardwareversions(String hardwareversions) { + this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim(); + } + + public String getImsi() { + return imsi; + } + + public void setImsi(String imsi) { + this.imsi = imsi == null ? null : imsi.trim(); + } + + public String getApn() { + return apn; + } + + public void setApn(String apn) { + this.apn = apn == null ? null : apn.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getAutocontrolpolicy() { + return autocontrolpolicy; + } + + public void setAutocontrolpolicy(String autocontrolpolicy) { + this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim(); + } + + public String getAutocontroltime() { + return autocontroltime; + } + + public void setAutocontroltime(String autocontroltime) { + this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim(); + } + + public String getSelfchecktime() { + return selfchecktime; + } + + public void setSelfchecktime(String selfchecktime) { + this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim(); + } + + public Integer getCollide() { + return collide; + } + + public void setCollide(Integer collide) { + this.collide = collide; + } + + public Integer getLean() { + return lean; + } + + public void setLean(Integer lean) { + this.lean = lean; + } + + public Integer getLoraFrequency() { + return loraFrequency; + } + + public void setLoraFrequency(Integer loraFrequency) { + this.loraFrequency = loraFrequency; + } + + public Integer getLoraBandwidth() { + return loraBandwidth; + } + + public void setLoraBandwidth(Integer loraBandwidth) { + this.loraBandwidth = loraBandwidth; + } + + public Integer getLoraSpreading() { + return loraSpreading; + } + + public void setLoraSpreading(Integer loraSpreading) { + this.loraSpreading = loraSpreading; + } + + public Integer getLoraEncodingRate() { + return loraEncodingRate; + } + + public void setLoraEncodingRate(Integer loraEncodingRate) { + this.loraEncodingRate = loraEncodingRate; + } + + public String getCimei() { + return cimei; + } + + public void setCimei(String cimei) { + this.cimei = cimei == null ? null : cimei.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "BIGINT", false), + imei("imei", "imei", "VARCHAR", false), + typename("typeName", "typename", "VARCHAR", false), + devicetype("deviceType", "devicetype", "INTEGER", false), + collectiongap("collectionGap", "collectiongap", "INTEGER", false), + sendinggap("sendingGap", "sendinggap", "INTEGER", false), + urladdress("urlAddress", "urladdress", "VARCHAR", false), + port("port", "port", "VARCHAR", false), + unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false), + unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false), + unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false), + multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false), + multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false), + multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false), + controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false), + starttime("startTime", "starttime", "VARCHAR", false), + endtime("endTime", "endtime", "VARCHAR", false), + numdays("numDays", "numdays", "INTEGER", false), + switchingvalue("switchingValue", "switchingvalue", "INTEGER", false), + stopreporting("stopReporting", "stopreporting", "INTEGER", false), + softwareversions("softwareVersions", "softwareversions", "VARCHAR", false), + hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false), + imsi("IMSI", "imsi", "VARCHAR", false), + apn("APN", "apn", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false), + autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false), + selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false), + collide("collide", "collide", "INTEGER", false), + lean("lean", "lean", "INTEGER", false), + loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false), + loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false), + loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false), + loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false), + cimei("cimei", "cimei", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_config + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java b/src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java new file mode 100644 index 0000000..80bcc31 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java @@ -0,0 +1,2441 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OcConfigExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OcConfigExample() { + 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 andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andTypenameIsNull() { + addCriterion("typeName is null"); + return (Criteria) this; + } + + public Criteria andTypenameIsNotNull() { + addCriterion("typeName is not null"); + return (Criteria) this; + } + + public Criteria andTypenameEqualTo(String value) { + addCriterion("typeName =", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotEqualTo(String value) { + addCriterion("typeName <>", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameGreaterThan(String value) { + addCriterion("typeName >", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameGreaterThanOrEqualTo(String value) { + addCriterion("typeName >=", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameLessThan(String value) { + addCriterion("typeName <", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameLessThanOrEqualTo(String value) { + addCriterion("typeName <=", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameLike(String value) { + addCriterion("typeName like", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotLike(String value) { + addCriterion("typeName not like", value, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameIn(List values) { + addCriterion("typeName in", values, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotIn(List values) { + addCriterion("typeName not in", values, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameBetween(String value1, String value2) { + addCriterion("typeName between", value1, value2, "typename"); + return (Criteria) this; + } + + public Criteria andTypenameNotBetween(String value1, String value2) { + addCriterion("typeName not between", value1, value2, "typename"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(Integer value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(Integer value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(Integer value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(Integer value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(Integer value1, Integer value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andCollectiongapIsNull() { + addCriterion("collectionGap is null"); + return (Criteria) this; + } + + public Criteria andCollectiongapIsNotNull() { + addCriterion("collectionGap is not null"); + return (Criteria) this; + } + + public Criteria andCollectiongapEqualTo(Integer value) { + addCriterion("collectionGap =", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapNotEqualTo(Integer value) { + addCriterion("collectionGap <>", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapGreaterThan(Integer value) { + addCriterion("collectionGap >", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapGreaterThanOrEqualTo(Integer value) { + addCriterion("collectionGap >=", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapLessThan(Integer value) { + addCriterion("collectionGap <", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapLessThanOrEqualTo(Integer value) { + addCriterion("collectionGap <=", value, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapIn(List values) { + addCriterion("collectionGap in", values, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapNotIn(List values) { + addCriterion("collectionGap not in", values, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapBetween(Integer value1, Integer value2) { + addCriterion("collectionGap between", value1, value2, "collectiongap"); + return (Criteria) this; + } + + public Criteria andCollectiongapNotBetween(Integer value1, Integer value2) { + addCriterion("collectionGap not between", value1, value2, "collectiongap"); + return (Criteria) this; + } + + public Criteria andSendinggapIsNull() { + addCriterion("sendingGap is null"); + return (Criteria) this; + } + + public Criteria andSendinggapIsNotNull() { + addCriterion("sendingGap is not null"); + return (Criteria) this; + } + + public Criteria andSendinggapEqualTo(Integer value) { + addCriterion("sendingGap =", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapNotEqualTo(Integer value) { + addCriterion("sendingGap <>", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapGreaterThan(Integer value) { + addCriterion("sendingGap >", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapGreaterThanOrEqualTo(Integer value) { + addCriterion("sendingGap >=", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapLessThan(Integer value) { + addCriterion("sendingGap <", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapLessThanOrEqualTo(Integer value) { + addCriterion("sendingGap <=", value, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapIn(List values) { + addCriterion("sendingGap in", values, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapNotIn(List values) { + addCriterion("sendingGap not in", values, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapBetween(Integer value1, Integer value2) { + addCriterion("sendingGap between", value1, value2, "sendinggap"); + return (Criteria) this; + } + + public Criteria andSendinggapNotBetween(Integer value1, Integer value2) { + addCriterion("sendingGap not between", value1, value2, "sendinggap"); + return (Criteria) this; + } + + public Criteria andUrladdressIsNull() { + addCriterion("urlAddress is null"); + return (Criteria) this; + } + + public Criteria andUrladdressIsNotNull() { + addCriterion("urlAddress is not null"); + return (Criteria) this; + } + + public Criteria andUrladdressEqualTo(String value) { + addCriterion("urlAddress =", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotEqualTo(String value) { + addCriterion("urlAddress <>", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressGreaterThan(String value) { + addCriterion("urlAddress >", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressGreaterThanOrEqualTo(String value) { + addCriterion("urlAddress >=", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressLessThan(String value) { + addCriterion("urlAddress <", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressLessThanOrEqualTo(String value) { + addCriterion("urlAddress <=", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressLike(String value) { + addCriterion("urlAddress like", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotLike(String value) { + addCriterion("urlAddress not like", value, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressIn(List values) { + addCriterion("urlAddress in", values, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotIn(List values) { + addCriterion("urlAddress not in", values, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressBetween(String value1, String value2) { + addCriterion("urlAddress between", value1, value2, "urladdress"); + return (Criteria) this; + } + + public Criteria andUrladdressNotBetween(String value1, String value2) { + addCriterion("urlAddress not between", value1, value2, "urladdress"); + return (Criteria) this; + } + + public Criteria andPortIsNull() { + addCriterion("port is null"); + return (Criteria) this; + } + + public Criteria andPortIsNotNull() { + addCriterion("port is not null"); + return (Criteria) this; + } + + public Criteria andPortEqualTo(String value) { + addCriterion("port =", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotEqualTo(String value) { + addCriterion("port <>", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThan(String value) { + addCriterion("port >", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThanOrEqualTo(String value) { + addCriterion("port >=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThan(String value) { + addCriterion("port <", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThanOrEqualTo(String value) { + addCriterion("port <=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLike(String value) { + addCriterion("port like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotLike(String value) { + addCriterion("port not like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortIn(List values) { + addCriterion("port in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortNotIn(List values) { + addCriterion("port not in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortBetween(String value1, String value2) { + addCriterion("port between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andPortNotBetween(String value1, String value2) { + addCriterion("port not between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitIsNull() { + addCriterion("unipathThresholdLimit is null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitIsNotNull() { + addCriterion("unipathThresholdLimit is not null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitEqualTo(Integer value) { + addCriterion("unipathThresholdLimit =", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitNotEqualTo(Integer value) { + addCriterion("unipathThresholdLimit <>", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitGreaterThan(Integer value) { + addCriterion("unipathThresholdLimit >", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitGreaterThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdLimit >=", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitLessThan(Integer value) { + addCriterion("unipathThresholdLimit <", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitLessThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdLimit <=", value, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitIn(List values) { + addCriterion("unipathThresholdLimit in", values, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitNotIn(List values) { + addCriterion("unipathThresholdLimit not in", values, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdLimit between", value1, value2, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdlimitNotBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdLimit not between", value1, value2, "unipaththresholdlimit"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperIsNull() { + addCriterion("unipathThresholdUpper is null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperIsNotNull() { + addCriterion("unipathThresholdUpper is not null"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperEqualTo(Integer value) { + addCriterion("unipathThresholdUpper =", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperNotEqualTo(Integer value) { + addCriterion("unipathThresholdUpper <>", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperGreaterThan(Integer value) { + addCriterion("unipathThresholdUpper >", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperGreaterThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdUpper >=", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperLessThan(Integer value) { + addCriterion("unipathThresholdUpper <", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperLessThanOrEqualTo(Integer value) { + addCriterion("unipathThresholdUpper <=", value, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperIn(List values) { + addCriterion("unipathThresholdUpper in", values, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperNotIn(List values) { + addCriterion("unipathThresholdUpper not in", values, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdUpper between", value1, value2, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipaththresholdupperNotBetween(Integer value1, Integer value2) { + addCriterion("unipathThresholdUpper not between", value1, value2, "unipaththresholdupper"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdIsNull() { + addCriterion("unipathChangeThreshold is null"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdIsNotNull() { + addCriterion("unipathChangeThreshold is not null"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdEqualTo(Integer value) { + addCriterion("unipathChangeThreshold =", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdNotEqualTo(Integer value) { + addCriterion("unipathChangeThreshold <>", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdGreaterThan(Integer value) { + addCriterion("unipathChangeThreshold >", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdGreaterThanOrEqualTo(Integer value) { + addCriterion("unipathChangeThreshold >=", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdLessThan(Integer value) { + addCriterion("unipathChangeThreshold <", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdLessThanOrEqualTo(Integer value) { + addCriterion("unipathChangeThreshold <=", value, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdIn(List values) { + addCriterion("unipathChangeThreshold in", values, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdNotIn(List values) { + addCriterion("unipathChangeThreshold not in", values, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdBetween(Integer value1, Integer value2) { + addCriterion("unipathChangeThreshold between", value1, value2, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andUnipathchangethresholdNotBetween(Integer value1, Integer value2) { + addCriterion("unipathChangeThreshold not between", value1, value2, "unipathchangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitIsNull() { + addCriterion("multipleThresholdLimit is null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitIsNotNull() { + addCriterion("multipleThresholdLimit is not null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitEqualTo(Integer value) { + addCriterion("multipleThresholdLimit =", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitNotEqualTo(Integer value) { + addCriterion("multipleThresholdLimit <>", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitGreaterThan(Integer value) { + addCriterion("multipleThresholdLimit >", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitGreaterThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdLimit >=", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitLessThan(Integer value) { + addCriterion("multipleThresholdLimit <", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitLessThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdLimit <=", value, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitIn(List values) { + addCriterion("multipleThresholdLimit in", values, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitNotIn(List values) { + addCriterion("multipleThresholdLimit not in", values, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdLimit between", value1, value2, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdlimitNotBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdLimit not between", value1, value2, "multiplethresholdlimit"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperIsNull() { + addCriterion("multipleThresholdUpper is null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperIsNotNull() { + addCriterion("multipleThresholdUpper is not null"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperEqualTo(Integer value) { + addCriterion("multipleThresholdUpper =", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperNotEqualTo(Integer value) { + addCriterion("multipleThresholdUpper <>", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperGreaterThan(Integer value) { + addCriterion("multipleThresholdUpper >", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperGreaterThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdUpper >=", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperLessThan(Integer value) { + addCriterion("multipleThresholdUpper <", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperLessThanOrEqualTo(Integer value) { + addCriterion("multipleThresholdUpper <=", value, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperIn(List values) { + addCriterion("multipleThresholdUpper in", values, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperNotIn(List values) { + addCriterion("multipleThresholdUpper not in", values, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdUpper between", value1, value2, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplethresholdupperNotBetween(Integer value1, Integer value2) { + addCriterion("multipleThresholdUpper not between", value1, value2, "multiplethresholdupper"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdIsNull() { + addCriterion("multipleChangeThreshold is null"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdIsNotNull() { + addCriterion("multipleChangeThreshold is not null"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdEqualTo(Integer value) { + addCriterion("multipleChangeThreshold =", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdNotEqualTo(Integer value) { + addCriterion("multipleChangeThreshold <>", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdGreaterThan(Integer value) { + addCriterion("multipleChangeThreshold >", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdGreaterThanOrEqualTo(Integer value) { + addCriterion("multipleChangeThreshold >=", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdLessThan(Integer value) { + addCriterion("multipleChangeThreshold <", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdLessThanOrEqualTo(Integer value) { + addCriterion("multipleChangeThreshold <=", value, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdIn(List values) { + addCriterion("multipleChangeThreshold in", values, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdNotIn(List values) { + addCriterion("multipleChangeThreshold not in", values, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdBetween(Integer value1, Integer value2) { + addCriterion("multipleChangeThreshold between", value1, value2, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andMultiplechangethresholdNotBetween(Integer value1, Integer value2) { + addCriterion("multipleChangeThreshold not between", value1, value2, "multiplechangethreshold"); + return (Criteria) this; + } + + public Criteria andControlvalvestateIsNull() { + addCriterion("controlValveState is null"); + return (Criteria) this; + } + + public Criteria andControlvalvestateIsNotNull() { + addCriterion("controlValveState is not null"); + return (Criteria) this; + } + + public Criteria andControlvalvestateEqualTo(Integer value) { + addCriterion("controlValveState =", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateNotEqualTo(Integer value) { + addCriterion("controlValveState <>", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateGreaterThan(Integer value) { + addCriterion("controlValveState >", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateGreaterThanOrEqualTo(Integer value) { + addCriterion("controlValveState >=", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateLessThan(Integer value) { + addCriterion("controlValveState <", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateLessThanOrEqualTo(Integer value) { + addCriterion("controlValveState <=", value, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateIn(List values) { + addCriterion("controlValveState in", values, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateNotIn(List values) { + addCriterion("controlValveState not in", values, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateBetween(Integer value1, Integer value2) { + addCriterion("controlValveState between", value1, value2, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andControlvalvestateNotBetween(Integer value1, Integer value2) { + addCriterion("controlValveState not between", value1, value2, "controlvalvestate"); + return (Criteria) this; + } + + public Criteria andStarttimeIsNull() { + addCriterion("startTime is null"); + return (Criteria) this; + } + + public Criteria andStarttimeIsNotNull() { + addCriterion("startTime is not null"); + return (Criteria) this; + } + + public Criteria andStarttimeEqualTo(String value) { + addCriterion("startTime =", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotEqualTo(String value) { + addCriterion("startTime <>", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeGreaterThan(String value) { + addCriterion("startTime >", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeGreaterThanOrEqualTo(String value) { + addCriterion("startTime >=", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeLessThan(String value) { + addCriterion("startTime <", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeLessThanOrEqualTo(String value) { + addCriterion("startTime <=", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeLike(String value) { + addCriterion("startTime like", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotLike(String value) { + addCriterion("startTime not like", value, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeIn(List values) { + addCriterion("startTime in", values, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotIn(List values) { + addCriterion("startTime not in", values, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeBetween(String value1, String value2) { + addCriterion("startTime between", value1, value2, "starttime"); + return (Criteria) this; + } + + public Criteria andStarttimeNotBetween(String value1, String value2) { + addCriterion("startTime not between", value1, value2, "starttime"); + return (Criteria) this; + } + + public Criteria andEndtimeIsNull() { + addCriterion("endTime is null"); + return (Criteria) this; + } + + public Criteria andEndtimeIsNotNull() { + addCriterion("endTime is not null"); + return (Criteria) this; + } + + public Criteria andEndtimeEqualTo(String value) { + addCriterion("endTime =", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotEqualTo(String value) { + addCriterion("endTime <>", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeGreaterThan(String value) { + addCriterion("endTime >", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeGreaterThanOrEqualTo(String value) { + addCriterion("endTime >=", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLessThan(String value) { + addCriterion("endTime <", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLessThanOrEqualTo(String value) { + addCriterion("endTime <=", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeLike(String value) { + addCriterion("endTime like", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotLike(String value) { + addCriterion("endTime not like", value, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeIn(List values) { + addCriterion("endTime in", values, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotIn(List values) { + addCriterion("endTime not in", values, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeBetween(String value1, String value2) { + addCriterion("endTime between", value1, value2, "endtime"); + return (Criteria) this; + } + + public Criteria andEndtimeNotBetween(String value1, String value2) { + addCriterion("endTime not between", value1, value2, "endtime"); + return (Criteria) this; + } + + public Criteria andNumdaysIsNull() { + addCriterion("numDays is null"); + return (Criteria) this; + } + + public Criteria andNumdaysIsNotNull() { + addCriterion("numDays is not null"); + return (Criteria) this; + } + + public Criteria andNumdaysEqualTo(Integer value) { + addCriterion("numDays =", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysNotEqualTo(Integer value) { + addCriterion("numDays <>", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysGreaterThan(Integer value) { + addCriterion("numDays >", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysGreaterThanOrEqualTo(Integer value) { + addCriterion("numDays >=", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysLessThan(Integer value) { + addCriterion("numDays <", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysLessThanOrEqualTo(Integer value) { + addCriterion("numDays <=", value, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysIn(List values) { + addCriterion("numDays in", values, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysNotIn(List values) { + addCriterion("numDays not in", values, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysBetween(Integer value1, Integer value2) { + addCriterion("numDays between", value1, value2, "numdays"); + return (Criteria) this; + } + + public Criteria andNumdaysNotBetween(Integer value1, Integer value2) { + addCriterion("numDays not between", value1, value2, "numdays"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueIsNull() { + addCriterion("switchingValue is null"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueIsNotNull() { + addCriterion("switchingValue is not null"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueEqualTo(Integer value) { + addCriterion("switchingValue =", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueNotEqualTo(Integer value) { + addCriterion("switchingValue <>", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueGreaterThan(Integer value) { + addCriterion("switchingValue >", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueGreaterThanOrEqualTo(Integer value) { + addCriterion("switchingValue >=", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueLessThan(Integer value) { + addCriterion("switchingValue <", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueLessThanOrEqualTo(Integer value) { + addCriterion("switchingValue <=", value, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueIn(List values) { + addCriterion("switchingValue in", values, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueNotIn(List values) { + addCriterion("switchingValue not in", values, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueBetween(Integer value1, Integer value2) { + addCriterion("switchingValue between", value1, value2, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andSwitchingvalueNotBetween(Integer value1, Integer value2) { + addCriterion("switchingValue not between", value1, value2, "switchingvalue"); + return (Criteria) this; + } + + public Criteria andStopreportingIsNull() { + addCriterion("stopReporting is null"); + return (Criteria) this; + } + + public Criteria andStopreportingIsNotNull() { + addCriterion("stopReporting is not null"); + return (Criteria) this; + } + + public Criteria andStopreportingEqualTo(Integer value) { + addCriterion("stopReporting =", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingNotEqualTo(Integer value) { + addCriterion("stopReporting <>", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingGreaterThan(Integer value) { + addCriterion("stopReporting >", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingGreaterThanOrEqualTo(Integer value) { + addCriterion("stopReporting >=", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingLessThan(Integer value) { + addCriterion("stopReporting <", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingLessThanOrEqualTo(Integer value) { + addCriterion("stopReporting <=", value, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingIn(List values) { + addCriterion("stopReporting in", values, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingNotIn(List values) { + addCriterion("stopReporting not in", values, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingBetween(Integer value1, Integer value2) { + addCriterion("stopReporting between", value1, value2, "stopreporting"); + return (Criteria) this; + } + + public Criteria andStopreportingNotBetween(Integer value1, Integer value2) { + addCriterion("stopReporting not between", value1, value2, "stopreporting"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsIsNull() { + addCriterion("softwareVersions is null"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsIsNotNull() { + addCriterion("softwareVersions is not null"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsEqualTo(String value) { + addCriterion("softwareVersions =", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotEqualTo(String value) { + addCriterion("softwareVersions <>", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsGreaterThan(String value) { + addCriterion("softwareVersions >", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsGreaterThanOrEqualTo(String value) { + addCriterion("softwareVersions >=", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsLessThan(String value) { + addCriterion("softwareVersions <", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsLessThanOrEqualTo(String value) { + addCriterion("softwareVersions <=", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsLike(String value) { + addCriterion("softwareVersions like", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotLike(String value) { + addCriterion("softwareVersions not like", value, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsIn(List values) { + addCriterion("softwareVersions in", values, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotIn(List values) { + addCriterion("softwareVersions not in", values, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsBetween(String value1, String value2) { + addCriterion("softwareVersions between", value1, value2, "softwareversions"); + return (Criteria) this; + } + + public Criteria andSoftwareversionsNotBetween(String value1, String value2) { + addCriterion("softwareVersions not between", value1, value2, "softwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsIsNull() { + addCriterion("hardwareVersions is null"); + return (Criteria) this; + } + + public Criteria andHardwareversionsIsNotNull() { + addCriterion("hardwareVersions is not null"); + return (Criteria) this; + } + + public Criteria andHardwareversionsEqualTo(String value) { + addCriterion("hardwareVersions =", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotEqualTo(String value) { + addCriterion("hardwareVersions <>", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsGreaterThan(String value) { + addCriterion("hardwareVersions >", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsGreaterThanOrEqualTo(String value) { + addCriterion("hardwareVersions >=", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsLessThan(String value) { + addCriterion("hardwareVersions <", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsLessThanOrEqualTo(String value) { + addCriterion("hardwareVersions <=", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsLike(String value) { + addCriterion("hardwareVersions like", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotLike(String value) { + addCriterion("hardwareVersions not like", value, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsIn(List values) { + addCriterion("hardwareVersions in", values, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotIn(List values) { + addCriterion("hardwareVersions not in", values, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsBetween(String value1, String value2) { + addCriterion("hardwareVersions between", value1, value2, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andHardwareversionsNotBetween(String value1, String value2) { + addCriterion("hardwareVersions not between", value1, value2, "hardwareversions"); + return (Criteria) this; + } + + public Criteria andImsiIsNull() { + addCriterion("IMSI is null"); + return (Criteria) this; + } + + public Criteria andImsiIsNotNull() { + addCriterion("IMSI is not null"); + return (Criteria) this; + } + + public Criteria andImsiEqualTo(String value) { + addCriterion("IMSI =", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotEqualTo(String value) { + addCriterion("IMSI <>", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiGreaterThan(String value) { + addCriterion("IMSI >", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiGreaterThanOrEqualTo(String value) { + addCriterion("IMSI >=", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLessThan(String value) { + addCriterion("IMSI <", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLessThanOrEqualTo(String value) { + addCriterion("IMSI <=", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiLike(String value) { + addCriterion("IMSI like", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotLike(String value) { + addCriterion("IMSI not like", value, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiIn(List values) { + addCriterion("IMSI in", values, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotIn(List values) { + addCriterion("IMSI not in", values, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiBetween(String value1, String value2) { + addCriterion("IMSI between", value1, value2, "imsi"); + return (Criteria) this; + } + + public Criteria andImsiNotBetween(String value1, String value2) { + addCriterion("IMSI not between", value1, value2, "imsi"); + return (Criteria) this; + } + + public Criteria andApnIsNull() { + addCriterion("APN is null"); + return (Criteria) this; + } + + public Criteria andApnIsNotNull() { + addCriterion("APN is not null"); + return (Criteria) this; + } + + public Criteria andApnEqualTo(String value) { + addCriterion("APN =", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotEqualTo(String value) { + addCriterion("APN <>", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnGreaterThan(String value) { + addCriterion("APN >", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnGreaterThanOrEqualTo(String value) { + addCriterion("APN >=", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnLessThan(String value) { + addCriterion("APN <", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnLessThanOrEqualTo(String value) { + addCriterion("APN <=", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnLike(String value) { + addCriterion("APN like", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotLike(String value) { + addCriterion("APN not like", value, "apn"); + return (Criteria) this; + } + + public Criteria andApnIn(List values) { + addCriterion("APN in", values, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotIn(List values) { + addCriterion("APN not in", values, "apn"); + return (Criteria) this; + } + + public Criteria andApnBetween(String value1, String value2) { + addCriterion("APN between", value1, value2, "apn"); + return (Criteria) this; + } + + public Criteria andApnNotBetween(String value1, String value2) { + addCriterion("APN not between", value1, value2, "apn"); + 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 andAutocontrolpolicyIsNull() { + addCriterion("autoControlPolicy is null"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyIsNotNull() { + addCriterion("autoControlPolicy is not null"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyEqualTo(String value) { + addCriterion("autoControlPolicy =", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotEqualTo(String value) { + addCriterion("autoControlPolicy <>", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyGreaterThan(String value) { + addCriterion("autoControlPolicy >", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyGreaterThanOrEqualTo(String value) { + addCriterion("autoControlPolicy >=", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyLessThan(String value) { + addCriterion("autoControlPolicy <", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyLessThanOrEqualTo(String value) { + addCriterion("autoControlPolicy <=", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyLike(String value) { + addCriterion("autoControlPolicy like", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotLike(String value) { + addCriterion("autoControlPolicy not like", value, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyIn(List values) { + addCriterion("autoControlPolicy in", values, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotIn(List values) { + addCriterion("autoControlPolicy not in", values, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyBetween(String value1, String value2) { + addCriterion("autoControlPolicy between", value1, value2, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontrolpolicyNotBetween(String value1, String value2) { + addCriterion("autoControlPolicy not between", value1, value2, "autocontrolpolicy"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeIsNull() { + addCriterion("autoControlTime is null"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeIsNotNull() { + addCriterion("autoControlTime is not null"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeEqualTo(String value) { + addCriterion("autoControlTime =", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotEqualTo(String value) { + addCriterion("autoControlTime <>", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeGreaterThan(String value) { + addCriterion("autoControlTime >", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeGreaterThanOrEqualTo(String value) { + addCriterion("autoControlTime >=", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeLessThan(String value) { + addCriterion("autoControlTime <", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeLessThanOrEqualTo(String value) { + addCriterion("autoControlTime <=", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeLike(String value) { + addCriterion("autoControlTime like", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotLike(String value) { + addCriterion("autoControlTime not like", value, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeIn(List values) { + addCriterion("autoControlTime in", values, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotIn(List values) { + addCriterion("autoControlTime not in", values, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeBetween(String value1, String value2) { + addCriterion("autoControlTime between", value1, value2, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andAutocontroltimeNotBetween(String value1, String value2) { + addCriterion("autoControlTime not between", value1, value2, "autocontroltime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeIsNull() { + addCriterion("selfCheckTime is null"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeIsNotNull() { + addCriterion("selfCheckTime is not null"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeEqualTo(String value) { + addCriterion("selfCheckTime =", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotEqualTo(String value) { + addCriterion("selfCheckTime <>", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeGreaterThan(String value) { + addCriterion("selfCheckTime >", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeGreaterThanOrEqualTo(String value) { + addCriterion("selfCheckTime >=", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeLessThan(String value) { + addCriterion("selfCheckTime <", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeLessThanOrEqualTo(String value) { + addCriterion("selfCheckTime <=", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeLike(String value) { + addCriterion("selfCheckTime like", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotLike(String value) { + addCriterion("selfCheckTime not like", value, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeIn(List values) { + addCriterion("selfCheckTime in", values, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotIn(List values) { + addCriterion("selfCheckTime not in", values, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeBetween(String value1, String value2) { + addCriterion("selfCheckTime between", value1, value2, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andSelfchecktimeNotBetween(String value1, String value2) { + addCriterion("selfCheckTime not between", value1, value2, "selfchecktime"); + return (Criteria) this; + } + + public Criteria andCollideIsNull() { + addCriterion("collide is null"); + return (Criteria) this; + } + + public Criteria andCollideIsNotNull() { + addCriterion("collide is not null"); + return (Criteria) this; + } + + public Criteria andCollideEqualTo(Integer value) { + addCriterion("collide =", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideNotEqualTo(Integer value) { + addCriterion("collide <>", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideGreaterThan(Integer value) { + addCriterion("collide >", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideGreaterThanOrEqualTo(Integer value) { + addCriterion("collide >=", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideLessThan(Integer value) { + addCriterion("collide <", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideLessThanOrEqualTo(Integer value) { + addCriterion("collide <=", value, "collide"); + return (Criteria) this; + } + + public Criteria andCollideIn(List values) { + addCriterion("collide in", values, "collide"); + return (Criteria) this; + } + + public Criteria andCollideNotIn(List values) { + addCriterion("collide not in", values, "collide"); + return (Criteria) this; + } + + public Criteria andCollideBetween(Integer value1, Integer value2) { + addCriterion("collide between", value1, value2, "collide"); + return (Criteria) this; + } + + public Criteria andCollideNotBetween(Integer value1, Integer value2) { + addCriterion("collide not between", value1, value2, "collide"); + return (Criteria) this; + } + + public Criteria andLeanIsNull() { + addCriterion("lean is null"); + return (Criteria) this; + } + + public Criteria andLeanIsNotNull() { + addCriterion("lean is not null"); + return (Criteria) this; + } + + public Criteria andLeanEqualTo(Integer value) { + addCriterion("lean =", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanNotEqualTo(Integer value) { + addCriterion("lean <>", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanGreaterThan(Integer value) { + addCriterion("lean >", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanGreaterThanOrEqualTo(Integer value) { + addCriterion("lean >=", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanLessThan(Integer value) { + addCriterion("lean <", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanLessThanOrEqualTo(Integer value) { + addCriterion("lean <=", value, "lean"); + return (Criteria) this; + } + + public Criteria andLeanIn(List values) { + addCriterion("lean in", values, "lean"); + return (Criteria) this; + } + + public Criteria andLeanNotIn(List values) { + addCriterion("lean not in", values, "lean"); + return (Criteria) this; + } + + public Criteria andLeanBetween(Integer value1, Integer value2) { + addCriterion("lean between", value1, value2, "lean"); + return (Criteria) this; + } + + public Criteria andLeanNotBetween(Integer value1, Integer value2) { + addCriterion("lean not between", value1, value2, "lean"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyIsNull() { + addCriterion("lora_frequency is null"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyIsNotNull() { + addCriterion("lora_frequency is not null"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyEqualTo(Integer value) { + addCriterion("lora_frequency =", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyNotEqualTo(Integer value) { + addCriterion("lora_frequency <>", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyGreaterThan(Integer value) { + addCriterion("lora_frequency >", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_frequency >=", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyLessThan(Integer value) { + addCriterion("lora_frequency <", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyLessThanOrEqualTo(Integer value) { + addCriterion("lora_frequency <=", value, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyIn(List values) { + addCriterion("lora_frequency in", values, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyNotIn(List values) { + addCriterion("lora_frequency not in", values, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyBetween(Integer value1, Integer value2) { + addCriterion("lora_frequency between", value1, value2, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraFrequencyNotBetween(Integer value1, Integer value2) { + addCriterion("lora_frequency not between", value1, value2, "loraFrequency"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthIsNull() { + addCriterion("lora_bandwidth is null"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthIsNotNull() { + addCriterion("lora_bandwidth is not null"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthEqualTo(Integer value) { + addCriterion("lora_bandwidth =", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthNotEqualTo(Integer value) { + addCriterion("lora_bandwidth <>", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthGreaterThan(Integer value) { + addCriterion("lora_bandwidth >", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_bandwidth >=", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthLessThan(Integer value) { + addCriterion("lora_bandwidth <", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthLessThanOrEqualTo(Integer value) { + addCriterion("lora_bandwidth <=", value, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthIn(List values) { + addCriterion("lora_bandwidth in", values, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthNotIn(List values) { + addCriterion("lora_bandwidth not in", values, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthBetween(Integer value1, Integer value2) { + addCriterion("lora_bandwidth between", value1, value2, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraBandwidthNotBetween(Integer value1, Integer value2) { + addCriterion("lora_bandwidth not between", value1, value2, "loraBandwidth"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingIsNull() { + addCriterion("lora_spreading is null"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingIsNotNull() { + addCriterion("lora_spreading is not null"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingEqualTo(Integer value) { + addCriterion("lora_spreading =", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingNotEqualTo(Integer value) { + addCriterion("lora_spreading <>", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingGreaterThan(Integer value) { + addCriterion("lora_spreading >", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_spreading >=", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingLessThan(Integer value) { + addCriterion("lora_spreading <", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingLessThanOrEqualTo(Integer value) { + addCriterion("lora_spreading <=", value, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingIn(List values) { + addCriterion("lora_spreading in", values, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingNotIn(List values) { + addCriterion("lora_spreading not in", values, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingBetween(Integer value1, Integer value2) { + addCriterion("lora_spreading between", value1, value2, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraSpreadingNotBetween(Integer value1, Integer value2) { + addCriterion("lora_spreading not between", value1, value2, "loraSpreading"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateIsNull() { + addCriterion("lora_encoding_rate is null"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateIsNotNull() { + addCriterion("lora_encoding_rate is not null"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateEqualTo(Integer value) { + addCriterion("lora_encoding_rate =", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateNotEqualTo(Integer value) { + addCriterion("lora_encoding_rate <>", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateGreaterThan(Integer value) { + addCriterion("lora_encoding_rate >", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateGreaterThanOrEqualTo(Integer value) { + addCriterion("lora_encoding_rate >=", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateLessThan(Integer value) { + addCriterion("lora_encoding_rate <", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateLessThanOrEqualTo(Integer value) { + addCriterion("lora_encoding_rate <=", value, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateIn(List values) { + addCriterion("lora_encoding_rate in", values, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateNotIn(List values) { + addCriterion("lora_encoding_rate not in", values, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateBetween(Integer value1, Integer value2) { + addCriterion("lora_encoding_rate between", value1, value2, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andLoraEncodingRateNotBetween(Integer value1, Integer value2) { + addCriterion("lora_encoding_rate not between", value1, value2, "loraEncodingRate"); + return (Criteria) this; + } + + public Criteria andCimeiIsNull() { + addCriterion("cimei is null"); + return (Criteria) this; + } + + public Criteria andCimeiIsNotNull() { + addCriterion("cimei is not null"); + return (Criteria) this; + } + + public Criteria andCimeiEqualTo(String value) { + addCriterion("cimei =", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiNotEqualTo(String value) { + addCriterion("cimei <>", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiGreaterThan(String value) { + addCriterion("cimei >", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiGreaterThanOrEqualTo(String value) { + addCriterion("cimei >=", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiLessThan(String value) { + addCriterion("cimei <", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiLessThanOrEqualTo(String value) { + addCriterion("cimei <=", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiLike(String value) { + addCriterion("cimei like", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiNotLike(String value) { + addCriterion("cimei not like", value, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiIn(List values) { + addCriterion("cimei in", values, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiNotIn(List values) { + addCriterion("cimei not in", values, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiBetween(String value1, String value2) { + addCriterion("cimei between", value1, value2, "cimei"); + return (Criteria) this; + } + + public Criteria andCimeiNotBetween(String value1, String value2) { + addCriterion("cimei not between", value1, value2, "cimei"); + 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/src/main/java/com/topsail/influxdb/pojo/OcDevice.java b/src/main/java/com/topsail/influxdb/pojo/OcDevice.java new file mode 100644 index 0000000..79bcfe9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OcDevice.java @@ -0,0 +1,323 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class OcDevice { + private Integer id; + + private String verifycode; + + private String devicetype; + + private String username; + + private String latitude; + + private String longitude; + + private String version; + + private Integer fkPid; + + private String period; + + private String imei; + + private Integer dperiod; + + private Integer companyId; + + private String deviceid; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getVerifycode() { + return verifycode; + } + + public void setVerifycode(String verifycode) { + this.verifycode = verifycode == null ? null : verifycode.trim(); + } + + public String getDevicetype() { + return devicetype; + } + + public void setDevicetype(String devicetype) { + this.devicetype = devicetype == null ? null : devicetype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getLatitude() { + return latitude; + } + + public void setLatitude(String latitude) { + this.latitude = latitude == null ? null : latitude.trim(); + } + + public String getLongitude() { + return longitude; + } + + public void setLongitude(String longitude) { + this.longitude = longitude == null ? null : longitude.trim(); + } + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version == null ? null : version.trim(); + } + + public Integer getFkPid() { + return fkPid; + } + + public void setFkPid(Integer fkPid) { + this.fkPid = fkPid; + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period == null ? null : period.trim(); + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getDperiod() { + return dperiod; + } + + public void setDperiod(Integer dperiod) { + this.dperiod = dperiod; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public String getDeviceid() { + return deviceid; + } + + public void setDeviceid(String deviceid) { + this.deviceid = deviceid == null ? null : deviceid.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + verifycode("verifyCode", "verifycode", "VARCHAR", false), + devicetype("deviceType", "devicetype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + latitude("latitude", "latitude", "VARCHAR", false), + longitude("longitude", "longitude", "VARCHAR", false), + version("version", "version", "VARCHAR", false), + fkPid("fk_pid", "fkPid", "INTEGER", false), + period("period", "period", "VARCHAR", false), + imei("imei", "imei", "VARCHAR", false), + dperiod("dperiod", "dperiod", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false), + deviceid("deviceId", "deviceid", "LONGVARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table oc_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java b/src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java new file mode 100644 index 0000000..75729f1 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java @@ -0,0 +1,1000 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class OcDeviceExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OcDeviceExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andVerifycodeIsNull() { + addCriterion("verifyCode is null"); + return (Criteria) this; + } + + public Criteria andVerifycodeIsNotNull() { + addCriterion("verifyCode is not null"); + return (Criteria) this; + } + + public Criteria andVerifycodeEqualTo(String value) { + addCriterion("verifyCode =", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotEqualTo(String value) { + addCriterion("verifyCode <>", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeGreaterThan(String value) { + addCriterion("verifyCode >", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeGreaterThanOrEqualTo(String value) { + addCriterion("verifyCode >=", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLessThan(String value) { + addCriterion("verifyCode <", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLessThanOrEqualTo(String value) { + addCriterion("verifyCode <=", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLike(String value) { + addCriterion("verifyCode like", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotLike(String value) { + addCriterion("verifyCode not like", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeIn(List values) { + addCriterion("verifyCode in", values, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotIn(List values) { + addCriterion("verifyCode not in", values, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeBetween(String value1, String value2) { + addCriterion("verifyCode between", value1, value2, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotBetween(String value1, String value2) { + addCriterion("verifyCode not between", value1, value2, "verifycode"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(String value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(String value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(String value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(String value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(String value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(String value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLike(String value) { + addCriterion("deviceType like", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotLike(String value) { + addCriterion("deviceType not like", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(String value1, String value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(String value1, String value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andLatitudeIsNull() { + addCriterion("latitude is null"); + return (Criteria) this; + } + + public Criteria andLatitudeIsNotNull() { + addCriterion("latitude is not null"); + return (Criteria) this; + } + + public Criteria andLatitudeEqualTo(String value) { + addCriterion("latitude =", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotEqualTo(String value) { + addCriterion("latitude <>", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeGreaterThan(String value) { + addCriterion("latitude >", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeGreaterThanOrEqualTo(String value) { + addCriterion("latitude >=", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLessThan(String value) { + addCriterion("latitude <", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLessThanOrEqualTo(String value) { + addCriterion("latitude <=", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLike(String value) { + addCriterion("latitude like", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotLike(String value) { + addCriterion("latitude not like", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeIn(List values) { + addCriterion("latitude in", values, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotIn(List values) { + addCriterion("latitude not in", values, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeBetween(String value1, String value2) { + addCriterion("latitude between", value1, value2, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotBetween(String value1, String value2) { + addCriterion("latitude not between", value1, value2, "latitude"); + return (Criteria) this; + } + + public Criteria andLongitudeIsNull() { + addCriterion("longitude is null"); + return (Criteria) this; + } + + public Criteria andLongitudeIsNotNull() { + addCriterion("longitude is not null"); + return (Criteria) this; + } + + public Criteria andLongitudeEqualTo(String value) { + addCriterion("longitude =", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotEqualTo(String value) { + addCriterion("longitude <>", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeGreaterThan(String value) { + addCriterion("longitude >", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeGreaterThanOrEqualTo(String value) { + addCriterion("longitude >=", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLessThan(String value) { + addCriterion("longitude <", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLessThanOrEqualTo(String value) { + addCriterion("longitude <=", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLike(String value) { + addCriterion("longitude like", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotLike(String value) { + addCriterion("longitude not like", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeIn(List values) { + addCriterion("longitude in", values, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotIn(List values) { + addCriterion("longitude not in", values, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeBetween(String value1, String value2) { + addCriterion("longitude between", value1, value2, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotBetween(String value1, String value2) { + addCriterion("longitude not between", value1, value2, "longitude"); + return (Criteria) this; + } + + public Criteria andVersionIsNull() { + addCriterion("version is null"); + return (Criteria) this; + } + + public Criteria andVersionIsNotNull() { + addCriterion("version is not null"); + return (Criteria) this; + } + + public Criteria andVersionEqualTo(String value) { + addCriterion("version =", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotEqualTo(String value) { + addCriterion("version <>", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThan(String value) { + addCriterion("version >", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThanOrEqualTo(String value) { + addCriterion("version >=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThan(String value) { + addCriterion("version <", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThanOrEqualTo(String value) { + addCriterion("version <=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLike(String value) { + addCriterion("version like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotLike(String value) { + addCriterion("version not like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionIn(List values) { + addCriterion("version in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotIn(List values) { + addCriterion("version not in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionBetween(String value1, String value2) { + addCriterion("version between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotBetween(String value1, String value2) { + addCriterion("version not between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andFkPidIsNull() { + addCriterion("fk_pid is null"); + return (Criteria) this; + } + + public Criteria andFkPidIsNotNull() { + addCriterion("fk_pid is not null"); + return (Criteria) this; + } + + public Criteria andFkPidEqualTo(Integer value) { + addCriterion("fk_pid =", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidNotEqualTo(Integer value) { + addCriterion("fk_pid <>", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidGreaterThan(Integer value) { + addCriterion("fk_pid >", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidGreaterThanOrEqualTo(Integer value) { + addCriterion("fk_pid >=", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidLessThan(Integer value) { + addCriterion("fk_pid <", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidLessThanOrEqualTo(Integer value) { + addCriterion("fk_pid <=", value, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidIn(List values) { + addCriterion("fk_pid in", values, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidNotIn(List values) { + addCriterion("fk_pid not in", values, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidBetween(Integer value1, Integer value2) { + addCriterion("fk_pid between", value1, value2, "fkPid"); + return (Criteria) this; + } + + public Criteria andFkPidNotBetween(Integer value1, Integer value2) { + addCriterion("fk_pid not between", value1, value2, "fkPid"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(String value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(String value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(String value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(String value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(String value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(String value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLike(String value) { + addCriterion("period like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotLike(String value) { + addCriterion("period not like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(String value1, String value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(String value1, String value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andDperiodIsNull() { + addCriterion("dperiod is null"); + return (Criteria) this; + } + + public Criteria andDperiodIsNotNull() { + addCriterion("dperiod is not null"); + return (Criteria) this; + } + + public Criteria andDperiodEqualTo(Integer value) { + addCriterion("dperiod =", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotEqualTo(Integer value) { + addCriterion("dperiod <>", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodGreaterThan(Integer value) { + addCriterion("dperiod >", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { + addCriterion("dperiod >=", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodLessThan(Integer value) { + addCriterion("dperiod <", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodLessThanOrEqualTo(Integer value) { + addCriterion("dperiod <=", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodIn(List values) { + addCriterion("dperiod in", values, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotIn(List values) { + addCriterion("dperiod not in", values, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodBetween(Integer value1, Integer value2) { + addCriterion("dperiod between", value1, value2, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotBetween(Integer value1, Integer value2) { + addCriterion("dperiod not between", value1, value2, "dperiod"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + 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/src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java b/src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java new file mode 100644 index 0000000..79ef88a --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java @@ -0,0 +1,257 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class OnenetCompany { + private Integer id; + + private String username; + + private String userip; + + private Integer userport; + + private String userprot; + + private String period; + + private String cperiod; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public String getUserip() { + return userip; + } + + public void setUserip(String userip) { + this.userip = userip == null ? null : userip.trim(); + } + + public Integer getUserport() { + return userport; + } + + public void setUserport(Integer userport) { + this.userport = userport; + } + + public String getUserprot() { + return userprot; + } + + public void setUserprot(String userprot) { + this.userprot = userprot == null ? null : userprot.trim(); + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period == null ? null : period.trim(); + } + + public String getCperiod() { + return cperiod; + } + + public void setCperiod(String cperiod) { + this.cperiod = cperiod == null ? null : cperiod.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + username("username", "username", "VARCHAR", false), + userip("userip", "userip", "VARCHAR", false), + userport("userport", "userport", "INTEGER", false), + userprot("userprot", "userprot", "VARCHAR", false), + period("period", "period", "VARCHAR", false), + cperiod("cperiod", "cperiod", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_company + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java b/src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java new file mode 100644 index 0000000..ca4aa66 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java @@ -0,0 +1,670 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class OnenetCompanyExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OnenetCompanyExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("username is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("username is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("username =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("username <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("username >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("username >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("username <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("username <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("username like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("username not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("username in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("username not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("username between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("username not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUseripIsNull() { + addCriterion("userip is null"); + return (Criteria) this; + } + + public Criteria andUseripIsNotNull() { + addCriterion("userip is not null"); + return (Criteria) this; + } + + public Criteria andUseripEqualTo(String value) { + addCriterion("userip =", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotEqualTo(String value) { + addCriterion("userip <>", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripGreaterThan(String value) { + addCriterion("userip >", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripGreaterThanOrEqualTo(String value) { + addCriterion("userip >=", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripLessThan(String value) { + addCriterion("userip <", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripLessThanOrEqualTo(String value) { + addCriterion("userip <=", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripLike(String value) { + addCriterion("userip like", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotLike(String value) { + addCriterion("userip not like", value, "userip"); + return (Criteria) this; + } + + public Criteria andUseripIn(List values) { + addCriterion("userip in", values, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotIn(List values) { + addCriterion("userip not in", values, "userip"); + return (Criteria) this; + } + + public Criteria andUseripBetween(String value1, String value2) { + addCriterion("userip between", value1, value2, "userip"); + return (Criteria) this; + } + + public Criteria andUseripNotBetween(String value1, String value2) { + addCriterion("userip not between", value1, value2, "userip"); + return (Criteria) this; + } + + public Criteria andUserportIsNull() { + addCriterion("userport is null"); + return (Criteria) this; + } + + public Criteria andUserportIsNotNull() { + addCriterion("userport is not null"); + return (Criteria) this; + } + + public Criteria andUserportEqualTo(Integer value) { + addCriterion("userport =", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportNotEqualTo(Integer value) { + addCriterion("userport <>", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportGreaterThan(Integer value) { + addCriterion("userport >", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportGreaterThanOrEqualTo(Integer value) { + addCriterion("userport >=", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportLessThan(Integer value) { + addCriterion("userport <", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportLessThanOrEqualTo(Integer value) { + addCriterion("userport <=", value, "userport"); + return (Criteria) this; + } + + public Criteria andUserportIn(List values) { + addCriterion("userport in", values, "userport"); + return (Criteria) this; + } + + public Criteria andUserportNotIn(List values) { + addCriterion("userport not in", values, "userport"); + return (Criteria) this; + } + + public Criteria andUserportBetween(Integer value1, Integer value2) { + addCriterion("userport between", value1, value2, "userport"); + return (Criteria) this; + } + + public Criteria andUserportNotBetween(Integer value1, Integer value2) { + addCriterion("userport not between", value1, value2, "userport"); + return (Criteria) this; + } + + public Criteria andUserprotIsNull() { + addCriterion("userprot is null"); + return (Criteria) this; + } + + public Criteria andUserprotIsNotNull() { + addCriterion("userprot is not null"); + return (Criteria) this; + } + + public Criteria andUserprotEqualTo(String value) { + addCriterion("userprot =", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotEqualTo(String value) { + addCriterion("userprot <>", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotGreaterThan(String value) { + addCriterion("userprot >", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotGreaterThanOrEqualTo(String value) { + addCriterion("userprot >=", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotLessThan(String value) { + addCriterion("userprot <", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotLessThanOrEqualTo(String value) { + addCriterion("userprot <=", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotLike(String value) { + addCriterion("userprot like", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotLike(String value) { + addCriterion("userprot not like", value, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotIn(List values) { + addCriterion("userprot in", values, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotIn(List values) { + addCriterion("userprot not in", values, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotBetween(String value1, String value2) { + addCriterion("userprot between", value1, value2, "userprot"); + return (Criteria) this; + } + + public Criteria andUserprotNotBetween(String value1, String value2) { + addCriterion("userprot not between", value1, value2, "userprot"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(String value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(String value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(String value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(String value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(String value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(String value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLike(String value) { + addCriterion("period like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotLike(String value) { + addCriterion("period not like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(String value1, String value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(String value1, String value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andCperiodIsNull() { + addCriterion("cperiod is null"); + return (Criteria) this; + } + + public Criteria andCperiodIsNotNull() { + addCriterion("cperiod is not null"); + return (Criteria) this; + } + + public Criteria andCperiodEqualTo(String value) { + addCriterion("cperiod =", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotEqualTo(String value) { + addCriterion("cperiod <>", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodGreaterThan(String value) { + addCriterion("cperiod >", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodGreaterThanOrEqualTo(String value) { + addCriterion("cperiod >=", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodLessThan(String value) { + addCriterion("cperiod <", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodLessThanOrEqualTo(String value) { + addCriterion("cperiod <=", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodLike(String value) { + addCriterion("cperiod like", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotLike(String value) { + addCriterion("cperiod not like", value, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodIn(List values) { + addCriterion("cperiod in", values, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotIn(List values) { + addCriterion("cperiod not in", values, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodBetween(String value1, String value2) { + addCriterion("cperiod between", value1, value2, "cperiod"); + return (Criteria) this; + } + + public Criteria andCperiodNotBetween(String value1, String value2) { + addCriterion("cperiod not between", value1, value2, "cperiod"); + 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/src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java b/src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java new file mode 100644 index 0000000..72c5cb4 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java @@ -0,0 +1,312 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class OnenetDevice { + private Integer id; + + private String verifycode; + + private String deviceid; + + private String devicetype; + + private String username; + + private Double latitude; + + private Double longitude; + + private String type; + + private String period; + + private String imei; + + private Integer dperiod; + + private Integer companyId; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getVerifycode() { + return verifycode; + } + + public void setVerifycode(String verifycode) { + this.verifycode = verifycode == null ? null : verifycode.trim(); + } + + public String getDeviceid() { + return deviceid; + } + + public void setDeviceid(String deviceid) { + this.deviceid = deviceid == null ? null : deviceid.trim(); + } + + public String getDevicetype() { + return devicetype; + } + + public void setDevicetype(String devicetype) { + this.devicetype = devicetype == null ? null : devicetype.trim(); + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type == null ? null : type.trim(); + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period == null ? null : period.trim(); + } + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public Integer getDperiod() { + return dperiod; + } + + public void setDperiod(Integer dperiod) { + this.dperiod = dperiod; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + verifycode("verifyCode", "verifycode", "VARCHAR", false), + deviceid("deviceId", "deviceid", "VARCHAR", false), + devicetype("deviceType", "devicetype", "VARCHAR", false), + username("userName", "username", "VARCHAR", false), + latitude("latitude", "latitude", "DOUBLE", false), + longitude("longitude", "longitude", "DOUBLE", false), + type("type", "type", "VARCHAR", false), + period("period", "period", "VARCHAR", false), + imei("imei", "imei", "VARCHAR", false), + dperiod("dperiod", "dperiod", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table onenet_device + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java b/src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java new file mode 100644 index 0000000..1b5e63f --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java @@ -0,0 +1,990 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class OnenetDeviceExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OnenetDeviceExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andVerifycodeIsNull() { + addCriterion("verifyCode is null"); + return (Criteria) this; + } + + public Criteria andVerifycodeIsNotNull() { + addCriterion("verifyCode is not null"); + return (Criteria) this; + } + + public Criteria andVerifycodeEqualTo(String value) { + addCriterion("verifyCode =", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotEqualTo(String value) { + addCriterion("verifyCode <>", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeGreaterThan(String value) { + addCriterion("verifyCode >", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeGreaterThanOrEqualTo(String value) { + addCriterion("verifyCode >=", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLessThan(String value) { + addCriterion("verifyCode <", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLessThanOrEqualTo(String value) { + addCriterion("verifyCode <=", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeLike(String value) { + addCriterion("verifyCode like", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotLike(String value) { + addCriterion("verifyCode not like", value, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeIn(List values) { + addCriterion("verifyCode in", values, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotIn(List values) { + addCriterion("verifyCode not in", values, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeBetween(String value1, String value2) { + addCriterion("verifyCode between", value1, value2, "verifycode"); + return (Criteria) this; + } + + public Criteria andVerifycodeNotBetween(String value1, String value2) { + addCriterion("verifyCode not between", value1, value2, "verifycode"); + return (Criteria) this; + } + + public Criteria andDeviceidIsNull() { + addCriterion("deviceId is null"); + return (Criteria) this; + } + + public Criteria andDeviceidIsNotNull() { + addCriterion("deviceId is not null"); + return (Criteria) this; + } + + public Criteria andDeviceidEqualTo(String value) { + addCriterion("deviceId =", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotEqualTo(String value) { + addCriterion("deviceId <>", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidGreaterThan(String value) { + addCriterion("deviceId >", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidGreaterThanOrEqualTo(String value) { + addCriterion("deviceId >=", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidLessThan(String value) { + addCriterion("deviceId <", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidLessThanOrEqualTo(String value) { + addCriterion("deviceId <=", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidLike(String value) { + addCriterion("deviceId like", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotLike(String value) { + addCriterion("deviceId not like", value, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidIn(List values) { + addCriterion("deviceId in", values, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotIn(List values) { + addCriterion("deviceId not in", values, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidBetween(String value1, String value2) { + addCriterion("deviceId between", value1, value2, "deviceid"); + return (Criteria) this; + } + + public Criteria andDeviceidNotBetween(String value1, String value2) { + addCriterion("deviceId not between", value1, value2, "deviceid"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNull() { + addCriterion("deviceType is null"); + return (Criteria) this; + } + + public Criteria andDevicetypeIsNotNull() { + addCriterion("deviceType is not null"); + return (Criteria) this; + } + + public Criteria andDevicetypeEqualTo(String value) { + addCriterion("deviceType =", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotEqualTo(String value) { + addCriterion("deviceType <>", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThan(String value) { + addCriterion("deviceType >", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeGreaterThanOrEqualTo(String value) { + addCriterion("deviceType >=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThan(String value) { + addCriterion("deviceType <", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLessThanOrEqualTo(String value) { + addCriterion("deviceType <=", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeLike(String value) { + addCriterion("deviceType like", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotLike(String value) { + addCriterion("deviceType not like", value, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeIn(List values) { + addCriterion("deviceType in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotIn(List values) { + addCriterion("deviceType not in", values, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeBetween(String value1, String value2) { + addCriterion("deviceType between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andDevicetypeNotBetween(String value1, String value2) { + addCriterion("deviceType not between", value1, value2, "devicetype"); + return (Criteria) this; + } + + public Criteria andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andLatitudeIsNull() { + addCriterion("latitude is null"); + return (Criteria) this; + } + + public Criteria andLatitudeIsNotNull() { + addCriterion("latitude is not null"); + return (Criteria) this; + } + + public Criteria andLatitudeEqualTo(Double value) { + addCriterion("latitude =", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotEqualTo(Double value) { + addCriterion("latitude <>", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeGreaterThan(Double value) { + addCriterion("latitude >", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeGreaterThanOrEqualTo(Double value) { + addCriterion("latitude >=", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLessThan(Double value) { + addCriterion("latitude <", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeLessThanOrEqualTo(Double value) { + addCriterion("latitude <=", value, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeIn(List values) { + addCriterion("latitude in", values, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotIn(List values) { + addCriterion("latitude not in", values, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeBetween(Double value1, Double value2) { + addCriterion("latitude between", value1, value2, "latitude"); + return (Criteria) this; + } + + public Criteria andLatitudeNotBetween(Double value1, Double value2) { + addCriterion("latitude not between", value1, value2, "latitude"); + return (Criteria) this; + } + + public Criteria andLongitudeIsNull() { + addCriterion("longitude is null"); + return (Criteria) this; + } + + public Criteria andLongitudeIsNotNull() { + addCriterion("longitude is not null"); + return (Criteria) this; + } + + public Criteria andLongitudeEqualTo(Double value) { + addCriterion("longitude =", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotEqualTo(Double value) { + addCriterion("longitude <>", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeGreaterThan(Double value) { + addCriterion("longitude >", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeGreaterThanOrEqualTo(Double value) { + addCriterion("longitude >=", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLessThan(Double value) { + addCriterion("longitude <", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeLessThanOrEqualTo(Double value) { + addCriterion("longitude <=", value, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeIn(List values) { + addCriterion("longitude in", values, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotIn(List values) { + addCriterion("longitude not in", values, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeBetween(Double value1, Double value2) { + addCriterion("longitude between", value1, value2, "longitude"); + return (Criteria) this; + } + + public Criteria andLongitudeNotBetween(Double value1, Double value2) { + addCriterion("longitude not between", value1, value2, "longitude"); + 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(String value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", 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(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(String value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(String value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(String value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(String value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(String value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(String value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLike(String value) { + addCriterion("period like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotLike(String value) { + addCriterion("period not like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(String value1, String value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(String value1, String value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andDperiodIsNull() { + addCriterion("dperiod is null"); + return (Criteria) this; + } + + public Criteria andDperiodIsNotNull() { + addCriterion("dperiod is not null"); + return (Criteria) this; + } + + public Criteria andDperiodEqualTo(Integer value) { + addCriterion("dperiod =", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotEqualTo(Integer value) { + addCriterion("dperiod <>", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodGreaterThan(Integer value) { + addCriterion("dperiod >", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { + addCriterion("dperiod >=", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodLessThan(Integer value) { + addCriterion("dperiod <", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodLessThanOrEqualTo(Integer value) { + addCriterion("dperiod <=", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodIn(List values) { + addCriterion("dperiod in", values, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotIn(List values) { + addCriterion("dperiod not in", values, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodBetween(Integer value1, Integer value2) { + addCriterion("dperiod between", value1, value2, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotBetween(Integer value1, Integer value2) { + addCriterion("dperiod not between", value1, value2, "dperiod"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + 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/src/main/java/com/topsail/influxdb/pojo/OnlineProject.java b/src/main/java/com/topsail/influxdb/pojo/OnlineProject.java new file mode 100644 index 0000000..ef50167 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnlineProject.java @@ -0,0 +1,224 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class OnlineProject { + private Long num; + + private Integer projectId; + + private Integer companyId; + + private Integer status; + + public Long getNum() { + return num; + } + + public void setNum(Long num) { + this.num = num; + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + num("num", "num", "BIGINT", false), + projectId("project_id", "projectId", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false), + status("STATUS", "status", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java b/src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java new file mode 100644 index 0000000..f574d8e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java @@ -0,0 +1,440 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class OnlineProjectExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OnlineProjectExample() { + 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 andNumIsNull() { + addCriterion("num is null"); + return (Criteria) this; + } + + public Criteria andNumIsNotNull() { + addCriterion("num is not null"); + return (Criteria) this; + } + + public Criteria andNumEqualTo(Long value) { + addCriterion("num =", value, "num"); + return (Criteria) this; + } + + public Criteria andNumNotEqualTo(Long value) { + addCriterion("num <>", value, "num"); + return (Criteria) this; + } + + public Criteria andNumGreaterThan(Long value) { + addCriterion("num >", value, "num"); + return (Criteria) this; + } + + public Criteria andNumGreaterThanOrEqualTo(Long value) { + addCriterion("num >=", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLessThan(Long value) { + addCriterion("num <", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLessThanOrEqualTo(Long value) { + addCriterion("num <=", value, "num"); + return (Criteria) this; + } + + public Criteria andNumIn(List values) { + addCriterion("num in", values, "num"); + return (Criteria) this; + } + + public Criteria andNumNotIn(List values) { + addCriterion("num not in", values, "num"); + return (Criteria) this; + } + + public Criteria andNumBetween(Long value1, Long value2) { + addCriterion("num between", value1, value2, "num"); + return (Criteria) this; + } + + public Criteria andNumNotBetween(Long value1, Long value2) { + addCriterion("num not between", value1, value2, "num"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("STATUS is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("STATUS is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("STATUS =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("STATUS <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("STATUS >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("STATUS >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("STATUS <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("STATUS <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("STATUS in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("STATUS not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("STATUS between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("STATUS not between", value1, value2, "status"); + 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/src/main/java/com/topsail/influxdb/pojo/OnlineRate.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRate.java new file mode 100644 index 0000000..b5596db --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnlineRate.java @@ -0,0 +1,280 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class OnlineRate { + private Integer id; + + private Integer online; + + private Integer count; + + private Double per; + + private String platformtype; + + private Date time; + + private String username; + + private Integer projectId; + + private Integer companyId; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getOnline() { + return online; + } + + public void setOnline(Integer online) { + this.online = online; + } + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public Double getPer() { + return per; + } + + public void setPer(Double per) { + this.per = per; + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username == null ? null : username.trim(); + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + online("online", "online", "INTEGER", false), + count("count", "count", "INTEGER", false), + per("per", "per", "DOUBLE", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + username("userName", "username", "VARCHAR", false), + projectId("project_id", "projectId", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java new file mode 100644 index 0000000..8a7d3b1 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java @@ -0,0 +1,761 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OnlineRateExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OnlineRateExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andOnlineIsNull() { + addCriterion("online is null"); + return (Criteria) this; + } + + public Criteria andOnlineIsNotNull() { + addCriterion("online is not null"); + return (Criteria) this; + } + + public Criteria andOnlineEqualTo(Integer value) { + addCriterion("online =", value, "online"); + return (Criteria) this; + } + + public Criteria andOnlineNotEqualTo(Integer value) { + addCriterion("online <>", value, "online"); + return (Criteria) this; + } + + public Criteria andOnlineGreaterThan(Integer value) { + addCriterion("online >", value, "online"); + return (Criteria) this; + } + + public Criteria andOnlineGreaterThanOrEqualTo(Integer value) { + addCriterion("online >=", value, "online"); + return (Criteria) this; + } + + public Criteria andOnlineLessThan(Integer value) { + addCriterion("online <", value, "online"); + return (Criteria) this; + } + + public Criteria andOnlineLessThanOrEqualTo(Integer value) { + addCriterion("online <=", value, "online"); + return (Criteria) this; + } + + public Criteria andOnlineIn(List values) { + addCriterion("online in", values, "online"); + return (Criteria) this; + } + + public Criteria andOnlineNotIn(List values) { + addCriterion("online not in", values, "online"); + return (Criteria) this; + } + + public Criteria andOnlineBetween(Integer value1, Integer value2) { + addCriterion("online between", value1, value2, "online"); + return (Criteria) this; + } + + public Criteria andOnlineNotBetween(Integer value1, Integer value2) { + addCriterion("online not between", value1, value2, "online"); + return (Criteria) this; + } + + public Criteria andCountIsNull() { + addCriterion("count is null"); + return (Criteria) this; + } + + public Criteria andCountIsNotNull() { + addCriterion("count is not null"); + return (Criteria) this; + } + + public Criteria andCountEqualTo(Integer value) { + addCriterion("count =", value, "count"); + return (Criteria) this; + } + + public Criteria andCountNotEqualTo(Integer value) { + addCriterion("count <>", value, "count"); + return (Criteria) this; + } + + public Criteria andCountGreaterThan(Integer value) { + addCriterion("count >", value, "count"); + return (Criteria) this; + } + + public Criteria andCountGreaterThanOrEqualTo(Integer value) { + addCriterion("count >=", value, "count"); + return (Criteria) this; + } + + public Criteria andCountLessThan(Integer value) { + addCriterion("count <", value, "count"); + return (Criteria) this; + } + + public Criteria andCountLessThanOrEqualTo(Integer value) { + addCriterion("count <=", value, "count"); + return (Criteria) this; + } + + public Criteria andCountIn(List values) { + addCriterion("count in", values, "count"); + return (Criteria) this; + } + + public Criteria andCountNotIn(List values) { + addCriterion("count not in", values, "count"); + return (Criteria) this; + } + + public Criteria andCountBetween(Integer value1, Integer value2) { + addCriterion("count between", value1, value2, "count"); + return (Criteria) this; + } + + public Criteria andCountNotBetween(Integer value1, Integer value2) { + addCriterion("count not between", value1, value2, "count"); + return (Criteria) this; + } + + public Criteria andPerIsNull() { + addCriterion("per is null"); + return (Criteria) this; + } + + public Criteria andPerIsNotNull() { + addCriterion("per is not null"); + return (Criteria) this; + } + + public Criteria andPerEqualTo(Double value) { + addCriterion("per =", value, "per"); + return (Criteria) this; + } + + public Criteria andPerNotEqualTo(Double value) { + addCriterion("per <>", value, "per"); + return (Criteria) this; + } + + public Criteria andPerGreaterThan(Double value) { + addCriterion("per >", value, "per"); + return (Criteria) this; + } + + public Criteria andPerGreaterThanOrEqualTo(Double value) { + addCriterion("per >=", value, "per"); + return (Criteria) this; + } + + public Criteria andPerLessThan(Double value) { + addCriterion("per <", value, "per"); + return (Criteria) this; + } + + public Criteria andPerLessThanOrEqualTo(Double value) { + addCriterion("per <=", value, "per"); + return (Criteria) this; + } + + public Criteria andPerIn(List values) { + addCriterion("per in", values, "per"); + return (Criteria) this; + } + + public Criteria andPerNotIn(List values) { + addCriterion("per not in", values, "per"); + return (Criteria) this; + } + + public Criteria andPerBetween(Double value1, Double value2) { + addCriterion("per between", value1, value2, "per"); + return (Criteria) this; + } + + public Criteria andPerNotBetween(Double value1, Double value2) { + addCriterion("per not between", value1, value2, "per"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + 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 andUsernameIsNull() { + addCriterion("userName is null"); + return (Criteria) this; + } + + public Criteria andUsernameIsNotNull() { + addCriterion("userName is not null"); + return (Criteria) this; + } + + public Criteria andUsernameEqualTo(String value) { + addCriterion("userName =", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotEqualTo(String value) { + addCriterion("userName <>", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThan(String value) { + addCriterion("userName >", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameGreaterThanOrEqualTo(String value) { + addCriterion("userName >=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThan(String value) { + addCriterion("userName <", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLessThanOrEqualTo(String value) { + addCriterion("userName <=", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameLike(String value) { + addCriterion("userName like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotLike(String value) { + addCriterion("userName not like", value, "username"); + return (Criteria) this; + } + + public Criteria andUsernameIn(List values) { + addCriterion("userName in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List values) { + addCriterion("userName not in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameBetween(String value1, String value2) { + addCriterion("userName between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotBetween(String value1, String value2) { + addCriterion("userName not between", value1, value2, "username"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + 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/src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java new file mode 100644 index 0000000..0f1833e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java @@ -0,0 +1,214 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class OnlineRateView { + private Integer projectId; + + private Date time; + + private Long num; + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public Long getNum() { + return num; + } + + public void setNum(Long num) { + this.num = num; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + projectId("project_id", "projectId", "INTEGER", false), + time("time", "time", "TIMESTAMP", false), + num("num", "num", "BIGINT", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table online_rate_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java new file mode 100644 index 0000000..d70c588 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java @@ -0,0 +1,381 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class OnlineRateViewExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public OnlineRateViewExample() { + 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 andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + 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 andNumIsNull() { + addCriterion("num is null"); + return (Criteria) this; + } + + public Criteria andNumIsNotNull() { + addCriterion("num is not null"); + return (Criteria) this; + } + + public Criteria andNumEqualTo(Long value) { + addCriterion("num =", value, "num"); + return (Criteria) this; + } + + public Criteria andNumNotEqualTo(Long value) { + addCriterion("num <>", value, "num"); + return (Criteria) this; + } + + public Criteria andNumGreaterThan(Long value) { + addCriterion("num >", value, "num"); + return (Criteria) this; + } + + public Criteria andNumGreaterThanOrEqualTo(Long value) { + addCriterion("num >=", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLessThan(Long value) { + addCriterion("num <", value, "num"); + return (Criteria) this; + } + + public Criteria andNumLessThanOrEqualTo(Long value) { + addCriterion("num <=", value, "num"); + return (Criteria) this; + } + + public Criteria andNumIn(List values) { + addCriterion("num in", values, "num"); + return (Criteria) this; + } + + public Criteria andNumNotIn(List values) { + addCriterion("num not in", values, "num"); + return (Criteria) this; + } + + public Criteria andNumBetween(Long value1, Long value2) { + addCriterion("num between", value1, value2, "num"); + return (Criteria) this; + } + + public Criteria andNumNotBetween(Long value1, Long value2) { + addCriterion("num not between", value1, value2, "num"); + 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/src/main/java/com/topsail/influxdb/pojo/Project.java b/src/main/java/com/topsail/influxdb/pojo/Project.java new file mode 100644 index 0000000..17a71fe --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/Project.java @@ -0,0 +1,291 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class Project { + private Integer id; + + private String name; + + private String platformtype; + + private String descr; + + private String ip; + + private String port; + + private String protocol; + + private Integer orderId; + + private Integer companyId; + + private Date time; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name == null ? null : name.trim(); + } + + public String getPlatformtype() { + return platformtype; + } + + public void setPlatformtype(String platformtype) { + this.platformtype = platformtype == null ? null : platformtype.trim(); + } + + public String getDescr() { + return descr; + } + + public void setDescr(String descr) { + this.descr = descr == null ? null : descr.trim(); + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip == null ? null : ip.trim(); + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port == null ? null : port.trim(); + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol == null ? null : protocol.trim(); + } + + public Integer getOrderId() { + return orderId; + } + + public void setOrderId(Integer orderId) { + this.orderId = orderId; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + name("name", "name", "VARCHAR", false), + platformtype("platformType", "platformtype", "VARCHAR", false), + descr("descr", "descr", "VARCHAR", false), + ip("ip", "ip", "VARCHAR", false), + port("port", "port", "VARCHAR", false), + protocol("protocol", "protocol", "VARCHAR", false), + orderId("order_id", "orderId", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false), + time("time", "time", "TIMESTAMP", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ProjectExample.java b/src/main/java/com/topsail/influxdb/pojo/ProjectExample.java new file mode 100644 index 0000000..7234686 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/ProjectExample.java @@ -0,0 +1,861 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProjectExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProjectExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("name is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("name is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("name =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("name <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("name >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("name >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("name <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("name <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("name like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("name not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("name in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("name not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("name between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("name not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNull() { + addCriterion("platformType is null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIsNotNull() { + addCriterion("platformType is not null"); + return (Criteria) this; + } + + public Criteria andPlatformtypeEqualTo(String value) { + addCriterion("platformType =", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotEqualTo(String value) { + addCriterion("platformType <>", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThan(String value) { + addCriterion("platformType >", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { + addCriterion("platformType >=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThan(String value) { + addCriterion("platformType <", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLessThanOrEqualTo(String value) { + addCriterion("platformType <=", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeLike(String value) { + addCriterion("platformType like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotLike(String value) { + addCriterion("platformType not like", value, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeIn(List values) { + addCriterion("platformType in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotIn(List values) { + addCriterion("platformType not in", values, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeBetween(String value1, String value2) { + addCriterion("platformType between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andPlatformtypeNotBetween(String value1, String value2) { + addCriterion("platformType not between", value1, value2, "platformtype"); + return (Criteria) this; + } + + public Criteria andDescrIsNull() { + addCriterion("descr is null"); + return (Criteria) this; + } + + public Criteria andDescrIsNotNull() { + addCriterion("descr is not null"); + return (Criteria) this; + } + + public Criteria andDescrEqualTo(String value) { + addCriterion("descr =", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrNotEqualTo(String value) { + addCriterion("descr <>", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrGreaterThan(String value) { + addCriterion("descr >", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrGreaterThanOrEqualTo(String value) { + addCriterion("descr >=", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrLessThan(String value) { + addCriterion("descr <", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrLessThanOrEqualTo(String value) { + addCriterion("descr <=", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrLike(String value) { + addCriterion("descr like", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrNotLike(String value) { + addCriterion("descr not like", value, "descr"); + return (Criteria) this; + } + + public Criteria andDescrIn(List values) { + addCriterion("descr in", values, "descr"); + return (Criteria) this; + } + + public Criteria andDescrNotIn(List values) { + addCriterion("descr not in", values, "descr"); + return (Criteria) this; + } + + public Criteria andDescrBetween(String value1, String value2) { + addCriterion("descr between", value1, value2, "descr"); + return (Criteria) this; + } + + public Criteria andDescrNotBetween(String value1, String value2) { + addCriterion("descr not between", value1, value2, "descr"); + return (Criteria) this; + } + + public Criteria andIpIsNull() { + addCriterion("ip is null"); + return (Criteria) this; + } + + public Criteria andIpIsNotNull() { + addCriterion("ip is not null"); + return (Criteria) this; + } + + public Criteria andIpEqualTo(String value) { + addCriterion("ip =", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotEqualTo(String value) { + addCriterion("ip <>", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpGreaterThan(String value) { + addCriterion("ip >", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpGreaterThanOrEqualTo(String value) { + addCriterion("ip >=", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLessThan(String value) { + addCriterion("ip <", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLessThanOrEqualTo(String value) { + addCriterion("ip <=", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLike(String value) { + addCriterion("ip like", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotLike(String value) { + addCriterion("ip not like", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpIn(List values) { + addCriterion("ip in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotIn(List values) { + addCriterion("ip not in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpBetween(String value1, String value2) { + addCriterion("ip between", value1, value2, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotBetween(String value1, String value2) { + addCriterion("ip not between", value1, value2, "ip"); + return (Criteria) this; + } + + public Criteria andPortIsNull() { + addCriterion("port is null"); + return (Criteria) this; + } + + public Criteria andPortIsNotNull() { + addCriterion("port is not null"); + return (Criteria) this; + } + + public Criteria andPortEqualTo(String value) { + addCriterion("port =", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotEqualTo(String value) { + addCriterion("port <>", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThan(String value) { + addCriterion("port >", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThanOrEqualTo(String value) { + addCriterion("port >=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThan(String value) { + addCriterion("port <", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThanOrEqualTo(String value) { + addCriterion("port <=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLike(String value) { + addCriterion("port like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotLike(String value) { + addCriterion("port not like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortIn(List values) { + addCriterion("port in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortNotIn(List values) { + addCriterion("port not in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortBetween(String value1, String value2) { + addCriterion("port between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andPortNotBetween(String value1, String value2) { + addCriterion("port not between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andProtocolIsNull() { + addCriterion("protocol is null"); + return (Criteria) this; + } + + public Criteria andProtocolIsNotNull() { + addCriterion("protocol is not null"); + return (Criteria) this; + } + + public Criteria andProtocolEqualTo(String value) { + addCriterion("protocol =", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotEqualTo(String value) { + addCriterion("protocol <>", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolGreaterThan(String value) { + addCriterion("protocol >", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolGreaterThanOrEqualTo(String value) { + addCriterion("protocol >=", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolLessThan(String value) { + addCriterion("protocol <", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolLessThanOrEqualTo(String value) { + addCriterion("protocol <=", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolLike(String value) { + addCriterion("protocol like", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotLike(String value) { + addCriterion("protocol not like", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolIn(List values) { + addCriterion("protocol in", values, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotIn(List values) { + addCriterion("protocol not in", values, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolBetween(String value1, String value2) { + addCriterion("protocol between", value1, value2, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotBetween(String value1, String value2) { + addCriterion("protocol not between", value1, value2, "protocol"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNull() { + addCriterion("order_id is null"); + return (Criteria) this; + } + + public Criteria andOrderIdIsNotNull() { + addCriterion("order_id is not null"); + return (Criteria) this; + } + + public Criteria andOrderIdEqualTo(Integer value) { + addCriterion("order_id =", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotEqualTo(Integer value) { + addCriterion("order_id <>", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThan(Integer value) { + addCriterion("order_id >", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { + addCriterion("order_id >=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThan(Integer value) { + addCriterion("order_id <", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdLessThanOrEqualTo(Integer value) { + addCriterion("order_id <=", value, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdIn(List values) { + addCriterion("order_id in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotIn(List values) { + addCriterion("order_id not in", values, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdBetween(Integer value1, Integer value2) { + addCriterion("order_id between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { + addCriterion("order_id not between", value1, value2, "orderId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + 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 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/src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java b/src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java new file mode 100644 index 0000000..6bb4587 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java @@ -0,0 +1,335 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; +import java.util.Date; + +public class ProjectTransmit { + private Integer id; + + private Integer companyId; + + private Integer projectId; + + private String protocol; + + private String ip; + + private String port; + + private Date time; + + private String type; + + private Integer status; + + private Date updateTime; + + private Integer total; + + private Integer suc; + + private Integer err; + + private String params; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getCompanyId() { + return companyId; + } + + public void setCompanyId(Integer companyId) { + this.companyId = companyId; + } + + public Integer getProjectId() { + return projectId; + } + + public void setProjectId(Integer projectId) { + this.projectId = projectId; + } + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol == null ? null : protocol.trim(); + } + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip == null ? null : ip.trim(); + } + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port == null ? null : port.trim(); + } + + public Date getTime() { + return time; + } + + public void setTime(Date time) { + this.time = time; + } + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type == null ? null : type.trim(); + } + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public Date getUpdateTime() { + return updateTime; + } + + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public Integer getSuc() { + return suc; + } + + public void setSuc(Integer suc) { + this.suc = suc; + } + + public Integer getErr() { + return err; + } + + public void setErr(Integer err) { + this.err = err; + } + + public String getParams() { + return params; + } + + public void setParams(String params) { + this.params = params == null ? null : params.trim(); + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + companyId("company_id", "companyId", "INTEGER", false), + projectId("project_id", "projectId", "INTEGER", false), + protocol("protocol", "protocol", "VARCHAR", false), + ip("ip", "ip", "VARCHAR", false), + port("port", "port", "VARCHAR", false), + time("time", "time", "TIMESTAMP", false), + type("type", "type", "VARCHAR", false), + status("status", "status", "INTEGER", false), + updateTime("update_time", "updateTime", "TIMESTAMP", false), + total("total", "total", "INTEGER", false), + suc("suc", "suc", "INTEGER", false), + err("err", "err", "INTEGER", false), + params("params", "params", "VARCHAR", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table project_transmit + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java b/src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java new file mode 100644 index 0000000..309ed01 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java @@ -0,0 +1,1091 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class ProjectTransmitExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public ProjectTransmitExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNull() { + addCriterion("company_id is null"); + return (Criteria) this; + } + + public Criteria andCompanyIdIsNotNull() { + addCriterion("company_id is not null"); + return (Criteria) this; + } + + public Criteria andCompanyIdEqualTo(Integer value) { + addCriterion("company_id =", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotEqualTo(Integer value) { + addCriterion("company_id <>", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThan(Integer value) { + addCriterion("company_id >", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { + addCriterion("company_id >=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThan(Integer value) { + addCriterion("company_id <", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { + addCriterion("company_id <=", value, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdIn(List values) { + addCriterion("company_id in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotIn(List values) { + addCriterion("company_id not in", values, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdBetween(Integer value1, Integer value2) { + addCriterion("company_id between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { + addCriterion("company_id not between", value1, value2, "companyId"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNull() { + addCriterion("project_id is null"); + return (Criteria) this; + } + + public Criteria andProjectIdIsNotNull() { + addCriterion("project_id is not null"); + return (Criteria) this; + } + + public Criteria andProjectIdEqualTo(Integer value) { + addCriterion("project_id =", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotEqualTo(Integer value) { + addCriterion("project_id <>", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThan(Integer value) { + addCriterion("project_id >", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { + addCriterion("project_id >=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThan(Integer value) { + addCriterion("project_id <", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdLessThanOrEqualTo(Integer value) { + addCriterion("project_id <=", value, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdIn(List values) { + addCriterion("project_id in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotIn(List values) { + addCriterion("project_id not in", values, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdBetween(Integer value1, Integer value2) { + addCriterion("project_id between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { + addCriterion("project_id not between", value1, value2, "projectId"); + return (Criteria) this; + } + + public Criteria andProtocolIsNull() { + addCriterion("protocol is null"); + return (Criteria) this; + } + + public Criteria andProtocolIsNotNull() { + addCriterion("protocol is not null"); + return (Criteria) this; + } + + public Criteria andProtocolEqualTo(String value) { + addCriterion("protocol =", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotEqualTo(String value) { + addCriterion("protocol <>", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolGreaterThan(String value) { + addCriterion("protocol >", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolGreaterThanOrEqualTo(String value) { + addCriterion("protocol >=", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolLessThan(String value) { + addCriterion("protocol <", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolLessThanOrEqualTo(String value) { + addCriterion("protocol <=", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolLike(String value) { + addCriterion("protocol like", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotLike(String value) { + addCriterion("protocol not like", value, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolIn(List values) { + addCriterion("protocol in", values, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotIn(List values) { + addCriterion("protocol not in", values, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolBetween(String value1, String value2) { + addCriterion("protocol between", value1, value2, "protocol"); + return (Criteria) this; + } + + public Criteria andProtocolNotBetween(String value1, String value2) { + addCriterion("protocol not between", value1, value2, "protocol"); + return (Criteria) this; + } + + public Criteria andIpIsNull() { + addCriterion("ip is null"); + return (Criteria) this; + } + + public Criteria andIpIsNotNull() { + addCriterion("ip is not null"); + return (Criteria) this; + } + + public Criteria andIpEqualTo(String value) { + addCriterion("ip =", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotEqualTo(String value) { + addCriterion("ip <>", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpGreaterThan(String value) { + addCriterion("ip >", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpGreaterThanOrEqualTo(String value) { + addCriterion("ip >=", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLessThan(String value) { + addCriterion("ip <", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLessThanOrEqualTo(String value) { + addCriterion("ip <=", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpLike(String value) { + addCriterion("ip like", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotLike(String value) { + addCriterion("ip not like", value, "ip"); + return (Criteria) this; + } + + public Criteria andIpIn(List values) { + addCriterion("ip in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotIn(List values) { + addCriterion("ip not in", values, "ip"); + return (Criteria) this; + } + + public Criteria andIpBetween(String value1, String value2) { + addCriterion("ip between", value1, value2, "ip"); + return (Criteria) this; + } + + public Criteria andIpNotBetween(String value1, String value2) { + addCriterion("ip not between", value1, value2, "ip"); + return (Criteria) this; + } + + public Criteria andPortIsNull() { + addCriterion("port is null"); + return (Criteria) this; + } + + public Criteria andPortIsNotNull() { + addCriterion("port is not null"); + return (Criteria) this; + } + + public Criteria andPortEqualTo(String value) { + addCriterion("port =", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotEqualTo(String value) { + addCriterion("port <>", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThan(String value) { + addCriterion("port >", value, "port"); + return (Criteria) this; + } + + public Criteria andPortGreaterThanOrEqualTo(String value) { + addCriterion("port >=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThan(String value) { + addCriterion("port <", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLessThanOrEqualTo(String value) { + addCriterion("port <=", value, "port"); + return (Criteria) this; + } + + public Criteria andPortLike(String value) { + addCriterion("port like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortNotLike(String value) { + addCriterion("port not like", value, "port"); + return (Criteria) this; + } + + public Criteria andPortIn(List values) { + addCriterion("port in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortNotIn(List values) { + addCriterion("port not in", values, "port"); + return (Criteria) this; + } + + public Criteria andPortBetween(String value1, String value2) { + addCriterion("port between", value1, value2, "port"); + return (Criteria) this; + } + + public Criteria andPortNotBetween(String value1, String value2) { + addCriterion("port not between", value1, value2, "port"); + 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 andTypeIsNull() { + addCriterion("type is null"); + return (Criteria) this; + } + + public Criteria andTypeIsNotNull() { + addCriterion("type is not null"); + return (Criteria) this; + } + + public Criteria andTypeEqualTo(String value) { + addCriterion("type =", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotEqualTo(String value) { + addCriterion("type <>", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThan(String value) { + addCriterion("type >", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeGreaterThanOrEqualTo(String value) { + addCriterion("type >=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThan(String value) { + addCriterion("type <", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLessThanOrEqualTo(String value) { + addCriterion("type <=", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeLike(String value) { + addCriterion("type like", value, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotLike(String value) { + addCriterion("type not like", 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(String value1, String value2) { + addCriterion("type between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andTypeNotBetween(String value1, String value2) { + addCriterion("type not between", value1, value2, "type"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("status is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("status is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Integer value) { + addCriterion("status =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Integer value) { + addCriterion("status <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Integer value) { + addCriterion("status >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Integer value) { + addCriterion("status >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Integer value) { + addCriterion("status <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Integer value) { + addCriterion("status <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("status in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("status not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Integer value1, Integer value2) { + addCriterion("status between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Integer value1, Integer value2) { + addCriterion("status not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andTotalIsNull() { + addCriterion("total is null"); + return (Criteria) this; + } + + public Criteria andTotalIsNotNull() { + addCriterion("total is not null"); + return (Criteria) this; + } + + public Criteria andTotalEqualTo(Integer value) { + addCriterion("total =", value, "total"); + return (Criteria) this; + } + + public Criteria andTotalNotEqualTo(Integer value) { + addCriterion("total <>", value, "total"); + return (Criteria) this; + } + + public Criteria andTotalGreaterThan(Integer value) { + addCriterion("total >", value, "total"); + return (Criteria) this; + } + + public Criteria andTotalGreaterThanOrEqualTo(Integer value) { + addCriterion("total >=", value, "total"); + return (Criteria) this; + } + + public Criteria andTotalLessThan(Integer value) { + addCriterion("total <", value, "total"); + return (Criteria) this; + } + + public Criteria andTotalLessThanOrEqualTo(Integer value) { + addCriterion("total <=", value, "total"); + return (Criteria) this; + } + + public Criteria andTotalIn(List values) { + addCriterion("total in", values, "total"); + return (Criteria) this; + } + + public Criteria andTotalNotIn(List values) { + addCriterion("total not in", values, "total"); + return (Criteria) this; + } + + public Criteria andTotalBetween(Integer value1, Integer value2) { + addCriterion("total between", value1, value2, "total"); + return (Criteria) this; + } + + public Criteria andTotalNotBetween(Integer value1, Integer value2) { + addCriterion("total not between", value1, value2, "total"); + return (Criteria) this; + } + + public Criteria andSucIsNull() { + addCriterion("suc is null"); + return (Criteria) this; + } + + public Criteria andSucIsNotNull() { + addCriterion("suc is not null"); + return (Criteria) this; + } + + public Criteria andSucEqualTo(Integer value) { + addCriterion("suc =", value, "suc"); + return (Criteria) this; + } + + public Criteria andSucNotEqualTo(Integer value) { + addCriterion("suc <>", value, "suc"); + return (Criteria) this; + } + + public Criteria andSucGreaterThan(Integer value) { + addCriterion("suc >", value, "suc"); + return (Criteria) this; + } + + public Criteria andSucGreaterThanOrEqualTo(Integer value) { + addCriterion("suc >=", value, "suc"); + return (Criteria) this; + } + + public Criteria andSucLessThan(Integer value) { + addCriterion("suc <", value, "suc"); + return (Criteria) this; + } + + public Criteria andSucLessThanOrEqualTo(Integer value) { + addCriterion("suc <=", value, "suc"); + return (Criteria) this; + } + + public Criteria andSucIn(List values) { + addCriterion("suc in", values, "suc"); + return (Criteria) this; + } + + public Criteria andSucNotIn(List values) { + addCriterion("suc not in", values, "suc"); + return (Criteria) this; + } + + public Criteria andSucBetween(Integer value1, Integer value2) { + addCriterion("suc between", value1, value2, "suc"); + return (Criteria) this; + } + + public Criteria andSucNotBetween(Integer value1, Integer value2) { + addCriterion("suc not between", value1, value2, "suc"); + return (Criteria) this; + } + + public Criteria andErrIsNull() { + addCriterion("err is null"); + return (Criteria) this; + } + + public Criteria andErrIsNotNull() { + addCriterion("err is not null"); + return (Criteria) this; + } + + public Criteria andErrEqualTo(Integer value) { + addCriterion("err =", value, "err"); + return (Criteria) this; + } + + public Criteria andErrNotEqualTo(Integer value) { + addCriterion("err <>", value, "err"); + return (Criteria) this; + } + + public Criteria andErrGreaterThan(Integer value) { + addCriterion("err >", value, "err"); + return (Criteria) this; + } + + public Criteria andErrGreaterThanOrEqualTo(Integer value) { + addCriterion("err >=", value, "err"); + return (Criteria) this; + } + + public Criteria andErrLessThan(Integer value) { + addCriterion("err <", value, "err"); + return (Criteria) this; + } + + public Criteria andErrLessThanOrEqualTo(Integer value) { + addCriterion("err <=", value, "err"); + return (Criteria) this; + } + + public Criteria andErrIn(List values) { + addCriterion("err in", values, "err"); + return (Criteria) this; + } + + public Criteria andErrNotIn(List values) { + addCriterion("err not in", values, "err"); + return (Criteria) this; + } + + public Criteria andErrBetween(Integer value1, Integer value2) { + addCriterion("err between", value1, value2, "err"); + return (Criteria) this; + } + + public Criteria andErrNotBetween(Integer value1, Integer value2) { + addCriterion("err not between", value1, value2, "err"); + return (Criteria) this; + } + + public Criteria andParamsIsNull() { + addCriterion("params is null"); + return (Criteria) this; + } + + public Criteria andParamsIsNotNull() { + addCriterion("params is not null"); + return (Criteria) this; + } + + public Criteria andParamsEqualTo(String value) { + addCriterion("params =", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotEqualTo(String value) { + addCriterion("params <>", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsGreaterThan(String value) { + addCriterion("params >", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsGreaterThanOrEqualTo(String value) { + addCriterion("params >=", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsLessThan(String value) { + addCriterion("params <", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsLessThanOrEqualTo(String value) { + addCriterion("params <=", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsLike(String value) { + addCriterion("params like", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotLike(String value) { + addCriterion("params not like", value, "params"); + return (Criteria) this; + } + + public Criteria andParamsIn(List values) { + addCriterion("params in", values, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotIn(List values) { + addCriterion("params not in", values, "params"); + return (Criteria) this; + } + + public Criteria andParamsBetween(String value1, String value2) { + addCriterion("params between", value1, value2, "params"); + return (Criteria) this; + } + + public Criteria andParamsNotBetween(String value1, String value2) { + addCriterion("params not between", value1, value2, "params"); + 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/src/main/java/com/topsail/influxdb/pojo/TransmitType.java b/src/main/java/com/topsail/influxdb/pojo/TransmitType.java new file mode 100644 index 0000000..31bde93 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/TransmitType.java @@ -0,0 +1,213 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class TransmitType { + private Integer id; + + private Integer transmitId; + + private Integer datatype; + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public Integer getTransmitId() { + return transmitId; + } + + public void setTransmitId(Integer transmitId) { + this.transmitId = transmitId; + } + + public Integer getDatatype() { + return datatype; + } + + public void setDatatype(Integer datatype) { + this.datatype = datatype; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + id("id", "id", "INTEGER", false), + transmitId("transmit_id", "transmitId", "INTEGER", false), + datatype("datatype", "datatype", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table transmit_type + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java b/src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java new file mode 100644 index 0000000..771896b --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java @@ -0,0 +1,380 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class TransmitTypeExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public TransmitTypeExample() { + 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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer 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(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andTransmitIdIsNull() { + addCriterion("transmit_id is null"); + return (Criteria) this; + } + + public Criteria andTransmitIdIsNotNull() { + addCriterion("transmit_id is not null"); + return (Criteria) this; + } + + public Criteria andTransmitIdEqualTo(Integer value) { + addCriterion("transmit_id =", value, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdNotEqualTo(Integer value) { + addCriterion("transmit_id <>", value, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdGreaterThan(Integer value) { + addCriterion("transmit_id >", value, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdGreaterThanOrEqualTo(Integer value) { + addCriterion("transmit_id >=", value, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdLessThan(Integer value) { + addCriterion("transmit_id <", value, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdLessThanOrEqualTo(Integer value) { + addCriterion("transmit_id <=", value, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdIn(List values) { + addCriterion("transmit_id in", values, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdNotIn(List values) { + addCriterion("transmit_id not in", values, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdBetween(Integer value1, Integer value2) { + addCriterion("transmit_id between", value1, value2, "transmitId"); + return (Criteria) this; + } + + public Criteria andTransmitIdNotBetween(Integer value1, Integer value2) { + addCriterion("transmit_id not between", value1, value2, "transmitId"); + return (Criteria) this; + } + + public Criteria andDatatypeIsNull() { + addCriterion("datatype is null"); + return (Criteria) this; + } + + public Criteria andDatatypeIsNotNull() { + addCriterion("datatype is not null"); + return (Criteria) this; + } + + public Criteria andDatatypeEqualTo(Integer value) { + addCriterion("datatype =", value, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeNotEqualTo(Integer value) { + addCriterion("datatype <>", value, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeGreaterThan(Integer value) { + addCriterion("datatype >", value, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeGreaterThanOrEqualTo(Integer value) { + addCriterion("datatype >=", value, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeLessThan(Integer value) { + addCriterion("datatype <", value, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeLessThanOrEqualTo(Integer value) { + addCriterion("datatype <=", value, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeIn(List values) { + addCriterion("datatype in", values, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeNotIn(List values) { + addCriterion("datatype not in", values, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeBetween(Integer value1, Integer value2) { + addCriterion("datatype between", value1, value2, "datatype"); + return (Criteria) this; + } + + public Criteria andDatatypeNotBetween(Integer value1, Integer value2) { + addCriterion("datatype not between", value1, value2, "datatype"); + 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/src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java b/src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java new file mode 100644 index 0000000..c97fbc0 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java @@ -0,0 +1,213 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.Arrays; + +public class UpdateMsgView { + private String imei; + + private String period; + + private Integer dperiod; + + public String getImei() { + return imei; + } + + public void setImei(String imei) { + this.imei = imei == null ? null : imei.trim(); + } + + public String getPeriod() { + return period; + } + + public void setPeriod(String period) { + this.period = period == null ? null : period.trim(); + } + + public Integer getDperiod() { + return dperiod; + } + + public void setDperiod(Integer dperiod) { + this.dperiod = dperiod; + } + + /** + * This enum was generated by MyBatis Generator. + * This enum corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public enum Column { + imei("imei", "imei", "VARCHAR", false), + period("period", "period", "VARCHAR", false), + dperiod("dperiod", "dperiod", "INTEGER", false); + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String BEGINNING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private static final String ENDING_DELIMITER = "\""; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String column; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final boolean isColumnNameDelimited; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String javaProperty; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + private final String jdbcType; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String value() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getValue() { + return this.column; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJavaProperty() { + return this.javaProperty; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getJdbcType() { + return this.jdbcType; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { + this.column = column; + this.javaProperty = javaProperty; + this.jdbcType = jdbcType; + this.isColumnNameDelimited = isColumnNameDelimited; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String desc() { + return this.getEscapedColumnName() + " DESC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String asc() { + return this.getEscapedColumnName() + " ASC"; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public static Column[] excludes(Column ... excludes) { + ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); + if (excludes != null && excludes.length > 0) { + columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); + } + return columns.toArray(new Column[]{}); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table update_msg_view + * + * @mbg.generated + * @project https://github.com/itfsw/mybatis-generator-plugin + */ + public String getEscapedColumnName() { + if (this.isColumnNameDelimited) { + return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); + } else { + return this.column; + } + } + } +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java b/src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java new file mode 100644 index 0000000..cba6d97 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java @@ -0,0 +1,400 @@ +package com.topsail.influxdb.pojo; + +import java.util.ArrayList; +import java.util.List; + +public class UpdateMsgViewExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public UpdateMsgViewExample() { + 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 andImeiIsNull() { + addCriterion("imei is null"); + return (Criteria) this; + } + + public Criteria andImeiIsNotNull() { + addCriterion("imei is not null"); + return (Criteria) this; + } + + public Criteria andImeiEqualTo(String value) { + addCriterion("imei =", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotEqualTo(String value) { + addCriterion("imei <>", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThan(String value) { + addCriterion("imei >", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiGreaterThanOrEqualTo(String value) { + addCriterion("imei >=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThan(String value) { + addCriterion("imei <", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLessThanOrEqualTo(String value) { + addCriterion("imei <=", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiLike(String value) { + addCriterion("imei like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotLike(String value) { + addCriterion("imei not like", value, "imei"); + return (Criteria) this; + } + + public Criteria andImeiIn(List values) { + addCriterion("imei in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotIn(List values) { + addCriterion("imei not in", values, "imei"); + return (Criteria) this; + } + + public Criteria andImeiBetween(String value1, String value2) { + addCriterion("imei between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andImeiNotBetween(String value1, String value2) { + addCriterion("imei not between", value1, value2, "imei"); + return (Criteria) this; + } + + public Criteria andPeriodIsNull() { + addCriterion("period is null"); + return (Criteria) this; + } + + public Criteria andPeriodIsNotNull() { + addCriterion("period is not null"); + return (Criteria) this; + } + + public Criteria andPeriodEqualTo(String value) { + addCriterion("period =", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotEqualTo(String value) { + addCriterion("period <>", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThan(String value) { + addCriterion("period >", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodGreaterThanOrEqualTo(String value) { + addCriterion("period >=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThan(String value) { + addCriterion("period <", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLessThanOrEqualTo(String value) { + addCriterion("period <=", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodLike(String value) { + addCriterion("period like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotLike(String value) { + addCriterion("period not like", value, "period"); + return (Criteria) this; + } + + public Criteria andPeriodIn(List values) { + addCriterion("period in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotIn(List values) { + addCriterion("period not in", values, "period"); + return (Criteria) this; + } + + public Criteria andPeriodBetween(String value1, String value2) { + addCriterion("period between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andPeriodNotBetween(String value1, String value2) { + addCriterion("period not between", value1, value2, "period"); + return (Criteria) this; + } + + public Criteria andDperiodIsNull() { + addCriterion("dperiod is null"); + return (Criteria) this; + } + + public Criteria andDperiodIsNotNull() { + addCriterion("dperiod is not null"); + return (Criteria) this; + } + + public Criteria andDperiodEqualTo(Integer value) { + addCriterion("dperiod =", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotEqualTo(Integer value) { + addCriterion("dperiod <>", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodGreaterThan(Integer value) { + addCriterion("dperiod >", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { + addCriterion("dperiod >=", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodLessThan(Integer value) { + addCriterion("dperiod <", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodLessThanOrEqualTo(Integer value) { + addCriterion("dperiod <=", value, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodIn(List values) { + addCriterion("dperiod in", values, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotIn(List values) { + addCriterion("dperiod not in", values, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodBetween(Integer value1, Integer value2) { + addCriterion("dperiod between", value1, value2, "dperiod"); + return (Criteria) this; + } + + public Criteria andDperiodNotBetween(Integer value1, Integer value2) { + addCriterion("dperiod not between", value1, value2, "dperiod"); + 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/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java b/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java new file mode 100644 index 0000000..4eae2ba --- /dev/null +++ b/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java @@ -0,0 +1,51 @@ +package com.topsail.influxdb.rabbitmq; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.rabbitmq.client.Channel; +import com.topsail.influxdb.model.AepModel; +import com.topsail.influxdb.model.NewtopData; +import com.topsail.influxdb.model.NewtopParam; +import com.topsail.influxdb.pojo.History; +import com.topsail.influxdb.rabbitmq.service.AmqpService; +import com.topsail.influxdb.rabbitmq.service.IotService; +import okhttp3.*; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.amqp.rabbit.annotation.RabbitListener; +import org.springframework.amqp.support.AmqpHeaders; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.messaging.handler.annotation.Header; +import org.springframework.messaging.handler.annotation.Payload; +import org.springframework.stereotype.Component; + +import java.text.SimpleDateFormat; +import java.time.LocalDateTime; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +@Component +public class AmqpListener { + public static final Logger LOG = LoggerFactory.getLogger(AmqpListener.class); + + @Autowired + IotService iotService; + + @Autowired + AmqpService amqpService; + + @RabbitListener(queues = "savehistoryall") + public void processsavehistoryall(@Payload String message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws Exception { + JSONObject jsonObject = JSONObject.parseObject(message); + try { + History history = JSON.parseObject(message, History.class); + iotService.saveHistoryall(history); + LOG.info("savehistory OK:" + history.getImei()); + channel.basicAck(deliveryTag, false); + } catch (Exception e) { + channel.basicNack(deliveryTag, false, true); + LOG.info("savehistoryall Error:(" + e + ")-" + message); + } + } +} diff --git a/src/main/java/com/topsail/influxdb/rabbitmq/service/AmqpService.java b/src/main/java/com/topsail/influxdb/rabbitmq/service/AmqpService.java new file mode 100644 index 0000000..a076c0e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/rabbitmq/service/AmqpService.java @@ -0,0 +1,46 @@ +package com.topsail.influxdb.rabbitmq.service; + +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.amqp.core.AmqpAdmin; +import org.springframework.amqp.core.AmqpTemplate; +import org.springframework.amqp.core.Message; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +@Service +public class AmqpService { + public static final Logger LOG = LoggerFactory.getLogger(AmqpService.class); + + private final AmqpAdmin amqpAdmin; + private final AmqpTemplate amqpTemplate; + + @Autowired + public AmqpService(AmqpAdmin amqpAdmin, AmqpTemplate amqpTemplate) { + this.amqpAdmin = amqpAdmin; + this.amqpTemplate = amqpTemplate; + } + + public void SendMessage(String queue,String content){ + //LOG.info("Send ampg" + content); + this.amqpTemplate.convertAndSend(queue,content); + } + + public void SendExchange(String exchange,String content){ + this.amqpTemplate.convertAndSend(exchange,"",content); + } + + public boolean IsQueuesEmpty(String queue){ + try{ + Message msg = this.amqpTemplate.receive(queue); + if(msg!=null){ + this.amqpTemplate.send(queue,msg); + return false; + }else{ + return true; + } + }catch (Exception e){ + return true; + } + } +} diff --git a/src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java b/src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java new file mode 100644 index 0000000..bbaa07a --- /dev/null +++ b/src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java @@ -0,0 +1,258 @@ +package com.topsail.influxdb.rabbitmq.service; + +import com.alibaba.fastjson.JSON; +import com.influxdb.annotations.Column; +import com.influxdb.annotations.Measurement; +import com.influxdb.client.InfluxDBClient; +import com.influxdb.client.InfluxDBClientFactory; +import com.influxdb.client.WriteApi; +import com.influxdb.client.domain.WritePrecision; +import com.topsail.influxdb.mapper.*; +import com.topsail.influxdb.model.InfluxData; +import com.topsail.influxdb.pojo.DeviceLog; +import com.topsail.influxdb.pojo.History; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.time.Instant; +import java.util.Date; + +@Service +public class IotService { + public static final Logger LOG = LoggerFactory.getLogger(IotService.class); + + @Autowired + DeviceMapper deviceMapper; + + @Autowired + HistoryMapper historyMapper; + + @Autowired + HistoryAllMapper historyAllMapper; + + @Autowired + ConfigMapper configMapper; + + @Autowired + AlarmMapper alarmMapper; + + @Autowired + OnlineRateMapper onlineRateMapper; + + @Autowired + OnlineProjectMapper onlineProjectMapper; + + @Autowired + AmqpService amqpService; + + //@Autowired + //OnlineProjectMapper onlineProjectMapper; + + @Autowired + ProjectMapper projectMapper; + + @Autowired + DeviceDetailMapper deviceDetailMapper; + + @Autowired + DeviceLogMapper deviceLogMapper; + + @Autowired + DeviceInfoMapper deviceInfoMapper; + + @Autowired + OcDeviceMapper ocDeviceMapper; + + @Autowired + OnenetDeviceMapper onenetDeviceMapper; + + @Autowired + OcConfigMapper ocConfigMapper; + + @Autowired + OcCompanyMapper ocCompanyMapper; + + @Autowired + OnenetCompanyMapper onenetCompanyMapper; + + @Autowired + UpdateMsgViewMapper updateMsgViewMapper; + + @Autowired + DataFilterMapper dataFilterMapper; + + @Autowired + OnlineRateViewMapper onlineRateViewMapper; + + @Autowired + ProjectTransmitMapper projectTransmitMapper; + + @Autowired + TransmitTypeMapper transmitTypeMapper; + + @Autowired + ImsiImeiMapper imsiImeiMapper; + + @Autowired + GatewayDeviceMapper gatewayDeviceMapper; + @Autowired + DeviceProjectViewMapper deviceProjectViewMapper; + @Autowired + CompanyMapper companyMapper; + + private static char[] token = "bNY4wG2fmWh5SC8NirfnRIn8zR7Cg8BIbkJztI7jhOeNhbteeGGGR0ysEKNA1pi1fEMaXNkqh06nmqnag6nedA==".toCharArray(); + + //@Autowired + //@Qualifier("inInfluxdbMetricsRepository") + //private MetricsRepository metricStore; + + //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); + + @Measurement(name = "iot") + private static class Temperature { + + @Column(tag = true) + String imei; + + @Column + String value; + + @Column + Integer devicetype; + + @Column + Integer batterylevel; + + @Column + Integer singalstrength; + + @Column + Integer passnum; + + @Column + Integer batterystate; + + @Column + String alarmtype; + + @Column + String platformtype; + + @Column + String username; + + @Column + String unit; + + @Column + String sendtime; + + @Column + String sampledata; + + @Column + String databody; + + @Column(timestamp = true) + Instant time; + } + + public void saveHistoryall(History history) { + //HistoryAll historyAll=JSON.parseObject(JSON.toJSONString(history),HistoryAll.class); + //historyAllMapper.insert(historyAll); + + //historyMapper.insert(history); + + //CheckHistory(history.getImei(),history.getTime()); + if (history.getSenddate() == null) { + return; + } + + String influxvalue = "iot,imei=" + history.getImei() + " press=" + history.getSampledata() + " " + history.getTime().getTime(); + String token = "k7dtXN5boSf9gbnUC75ekSJqILCMIcJ_nxxHLgxAYKqEtFSqqIfnELc2xHxuimdRYZgtbReQFs7qq_XWh04Z2w=="; + String bucket = "iot"; + String org = "topsail"; + + InfluxDBClient client = InfluxDBClientFactory.create("http://182.92.218.150:8086", token.toCharArray()); + InfluxData mem = new InfluxData(); + mem.imei = history.getImei(); + String value = history.getValue(); + if (value != null && !value.equals("")) { + String[] values = value.split(","); + mem.value1 = 0; + mem.value2 = 0; + mem.value3 = 0; + mem.value4 = 0; + try { + if (values.length > 0) { + mem.value1 = Double.parseDouble(values[0]); + } + if (values.length > 1) { + mem.value2 = Double.parseDouble(values[1]); + } + if (values.length > 2) { + mem.value3 = Double.parseDouble(values[2]); + } + if (values.length > 3) { + mem.value4 = Double.parseDouble(values[4]); + } + } catch (Exception e) { + LOG.info(e.getMessage()); + } + /* mem.battery = history.getBatterylevel(); + mem.sigal = history.getSingalstrength(); + mem.jsondata=JSON.toJSONString(history); + mem.values=history.getValue(); + mem.unit=history.getUnit(); + mem.alarmtype=history.getAlarmtype(); + //mem.sampleData = history.getSampledata(); + //mem.time = Instant.now(); + mem.time = history.getSenddate().toInstant(); + System.out.println("写入中==========》"); + try (WriteApi writeApi = client.getWriteApi()) { + writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); + System.out.println("写入成功==========》"); + }*/ + } +//从内部移动处出来,value有没有数值都进行插入 + mem.battery = history.getBatterylevel(); + mem.sigal = history.getSingalstrength(); + mem.jsondata = JSON.toJSONString(history); + mem.values = history.getValue(); + mem.unit = history.getUnit(); + mem.alarmtype = history.getAlarmtype(); + //mem.sampleData = history.getSampledata(); + mem.time = Instant.now(); +// mem.time = history.getSenddate().toInstant(); + try (WriteApi writeApi = client.getWriteApi()) { + writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); + } + //amqpService.SendMessage("telegraf",influxvalue); +// InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); +// Point point = Point +// .measurement("topsail4") +// .addTag("imei", history.getImei()) +// .addField("batterylevel", history.getBatterylevel()) +// .time(Instant.now().toEpochMilli(), WritePrecision.MS); +// WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); +// Gson gson=new Gson(); +// history.setTime(null); +// Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); +// temperature.time=Instant.now(); +// writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); +// influxDBClient.close(); + } + + public void AddDeviceLog(String imei, String type, String params) { + DeviceLog deviceLog = new DeviceLog(); + deviceLog.setImei(imei); + deviceLog.setOperation(type); + deviceLog.setParams(params); + deviceLog.setUpdatetime(new Date()); + deviceLogMapper.insert(deviceLog); + } + + +} diff --git a/src/main/java/com/topsail/influxdb/task/CostRunner.java b/src/main/java/com/topsail/influxdb/task/CostRunner.java new file mode 100644 index 0000000..156e285 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/task/CostRunner.java @@ -0,0 +1,20 @@ +package com.topsail.influxdb.task; + +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.ApplicationArguments; +import org.springframework.boot.ApplicationRunner; +import org.springframework.stereotype.Component; +import com.topsail.influxdb.rabbitmq.service.IotService; + +@Component +public class CostRunner implements ApplicationRunner { + + @Autowired + IotService iotService; + + + @Override + public void run(ApplicationArguments var1) throws Exception { + //iotService.deleteoldhistory(); + } +} diff --git a/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java b/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java new file mode 100644 index 0000000..500ee08 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java @@ -0,0 +1,60 @@ +package com.topsail.influxdb.task; + +import com.topsail.influxdb.rabbitmq.service.IotService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.context.annotation.Configuration; +import org.springframework.core.env.Environment; +import org.springframework.scheduling.annotation.EnableScheduling; +import org.springframework.scheduling.annotation.Scheduled; +import org.springframework.stereotype.Component; + +import java.time.LocalDateTime; + +@Component +@Configuration //1.主要用于标记配置类,兼备Component的效果。 +@EnableScheduling // 2.开启定时任务 +public class OnlineScheduleTask { + + @Autowired + IotService iotService; + + @Autowired + private Environment env; + + //3.添加定时任务 + @Scheduled(cron = "0 0/30 * * * ?") + //或直接指定时间间隔,例如:5秒 + //@Scheduled(fixedRate=5000) + private void configureTasks() { + String schedule=env.getProperty("compute.schedule"); + if(schedule.equals("1")) { + + System.err.println("执行静态定时任务时间: " + LocalDateTime.now()); + +// iotService.updateonlinerate(); + } + } + + //@Scheduled(cron = "0 0/10 * * * ?") + //或直接指定时间间隔,例如:5秒 + //@Scheduled(fixedRate=5000) + private void updateimsi() { + //iotService.fillimsi(); + //syncService.updatecompanyperiod(); + + System.err.println("更新senddate: " + LocalDateTime.now()); + +// iotService.updateallsenddate(); + } + + //3.每天凌晨4点定时删除超过一个月的告警数据 + @Scheduled(cron = "0 0 4 * * ?") + //或直接指定时间间隔,例如:5秒 + //@Scheduled(fixedRate=5000) + public void deleteAlarmDataMonthTasks() { + + System.err.println("执行删除超过一个月的告警数据定时任务时间: " + LocalDateTime.now()); + +// iotService.deleteAlarmDataMonth(); + } +} diff --git a/src/main/java/com/topsail/influxdb/util/StringHandleUtil.java b/src/main/java/com/topsail/influxdb/util/StringHandleUtil.java new file mode 100644 index 0000000..97a23e9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/util/StringHandleUtil.java @@ -0,0 +1,68 @@ +package com.topsail.influxdb.util; + +public class StringHandleUtil { + /** + * 判断字符串是否头部和尾部都以两个双引号包裹 + * + * @param str 待检查的字符串 + * @return 若字符串首尾各有两个双引号则返回true,否则返回false + */ + public static boolean isWrappedWithTwoQuotes(String str) { + // 检查字符串是否为null或长度不足4(至少需要4个字符:2个前引号+2个后引号) + if (str == null || str.length() < 4) { + return false; + } + + // 检查头部两个字符是否为双引号 + boolean startsWithTwoQuotes = str.charAt(0) == '"' && str.charAt(1) == '"'; + + // 检查尾部两个字符是否为双引号 + int length = str.length(); + boolean endsWithTwoQuotes = str.charAt(length - 2) == '"' && str.charAt(length - 1) == '"'; + + // 只有两者都满足才返回true + return startsWithTwoQuotes && endsWithTwoQuotes; + } + + /** + * 处理字符串,使其前后只保留一个双引号 + * + * @param str 输入字符串 + * @return 处理后的字符串 + */ + public static String keepSingleQuotesAtBothEnds(String str) { + // 处理null情况 + if (str == null) { + return null; + } + + // 去除所有前导双引号 + String trimmedStart = str.replaceAll("^\"+", ""); + // 去除所有尾随双引号 + String trimmed = trimmedStart.replaceAll("\"+$", ""); + + // 如果原字符串没有引号,直接返回 + if (trimmed.equals(str)) { + return str; + } + + // 在处理后的字符串前后各添加一个双引号 + return "\"" + trimmed + "\""; + } + /** + * 去除字符串头部和尾部所有的双引号 + * @param str 输入字符串 + * @return 处理后的字符串(首尾无引号) + */ + public static String trimAllQuotes(String str) { + // 处理null情况 + if (str == null) { + return null; + } + + // 使用正则表达式去除开头和结尾的所有双引号 + // ^\"+ 匹配字符串开头的一个或多个双引号 + // \"+$ 匹配字符串结尾的一个或多个双引号 + return str.replaceAll("^\"+", "").replaceAll("\"+$", ""); + } +} diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties new file mode 100644 index 0000000..1bd8324 --- /dev/null +++ b/src/main/resources/application-prod.properties @@ -0,0 +1,6 @@ +spring.rabbitmq.host=182.92.218.150 +spring.rabbitmq.username=topsail +spring.rabbitmq.password=topsail +#spring.datasource.url=jdbc:mysql://localhost:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 +#spring.datasource.username=topsail +#spring.datasource.password=topsail2020 \ No newline at end of file diff --git a/src/main/resources/application-rds.properties b/src/main/resources/application-rds.properties new file mode 100644 index 0000000..92b7783 --- /dev/null +++ b/src/main/resources/application-rds.properties @@ -0,0 +1,11 @@ +spring.rabbitmq.host=182.92.218.150 +#spring.rabbitmq.host=localhost +spring.rabbitmq.username=topsail +spring.rabbitmq.password=topsail + +spring.datasource.url=jdbc:mysql://rm-2ze77qng1ddlfur9g4o.mysql.rds.aliyuncs.com/iot?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai +spring.datasource.username=topsail +spring.datasource.password=Topsail2020 +#spring.datasource.url=jdbc:mysql://localhost:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 +#spring.datasource.username=topsail +#spring.datasource.password=topsail2020 \ No newline at end of file diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties new file mode 100644 index 0000000..7cf8979 --- /dev/null +++ b/src/main/resources/application-test.properties @@ -0,0 +1,6 @@ +spring.rabbitmq.host=47.97.117.253 +#spring.rabbitmq.username=topsail +#spring.rabbitmq.password=top +#spring.datasource.url=jdbc:mysql://localhost:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 +#spring.datasource.username=topsail +#spring.datasource.password=topsail2020 \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties new file mode 100644 index 0000000..8f0c652 --- /dev/null +++ b/src/main/resources/application.properties @@ -0,0 +1,22 @@ +spring.rabbitmq.host=localhost +spring.rabbitmq.port=5672 +spring.rabbitmq.username=topsail +spring.rabbitmq.password=topsail +spring.rabbitmq.virtualHost=/ +spring.rabbitmq.listener.simple.acknowledge-mode=manual +spring.rabbitmq.listener.simple.prefetch=10 + +spring.datasource.url=jdbc:mysql://47.98.32.177:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 +spring.datasource.username=yunmei +spring.datasource.password=yunmei1234 +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver + +compute.schedule=0 +offline.gap=120 + +spring.profiles.active=rds + +#spring.influx.url=http://47.97.117.253:9999 +#spring.influx.user=topsail +#spring.influx.password=topsail +#spring.influx.database=iot \ No newline at end of file diff --git a/src/main/resources/generatorConfig.xml b/src/main/resources/generatorConfig.xml new file mode 100644 index 0000000..604d1d4 --- /dev/null +++ b/src/main/resources/generatorConfig.xml @@ -0,0 +1,60 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
\ No newline at end of file diff --git a/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java b/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java new file mode 100644 index 0000000..48bfc9f --- /dev/null +++ b/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java @@ -0,0 +1,31 @@ +package com.topsail.influxdb; + +import com.topsail.influxdb.mapper.DeviceDetailMapper; +import com.topsail.influxdb.pojo.DeviceDetail; +import com.topsail.influxdb.rabbitmq.service.IotService; +import org.junit.runner.RunWith; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.test.context.SpringBootTest; +import org.springframework.test.context.junit4.SpringRunner; + +@RunWith(SpringRunner.class) +@SpringBootTest +public class OperateInfluxdbApplicationTests { + + @Autowired + IotService iotService; + + @Autowired + DeviceDetailMapper deviceDetailMapper; + + //@Test + public void contextLoads() { + System.out.println("开始执行"); + DeviceDetail deviceDetail = new DeviceDetail(); + deviceDetail.setLon(34d); + deviceDetail.setLat(35d); + deviceDetail.setImei("865909050747787"); + deviceDetailMapper.updateDeviceDetailByImei(deviceDetail); + } + +} diff --git a/src/test/java/com/topsail/influxdb/mapper/DeviceDetailMapperTest.java b/src/test/java/com/topsail/influxdb/mapper/DeviceDetailMapperTest.java new file mode 100644 index 0000000..08bc441 --- /dev/null +++ b/src/test/java/com/topsail/influxdb/mapper/DeviceDetailMapperTest.java @@ -0,0 +1,9 @@ +package com.topsail.influxdb.mapper; + +import junit.framework.TestCase; + +public class DeviceDetailMapperTest extends TestCase { + + public void testUpdateDeviceDetailByImei() { + } +} \ No newline at end of file