Commit c83b5b3950a0a9bf91dad0fb52be000d60ce4543

Authored by Liu Haoyu
0 parents

项目创建, 集成spring-security和jwt

Showing 280 changed files with 36671 additions and 0 deletions

Too many changes.

To preserve performance only 100 of 280 files are displayed.

.mvn/wrapper/MavenWrapperDownloader.java 0 → 100644
  1 +++ a/.mvn/wrapper/MavenWrapperDownloader.java
  1 +/*
  2 +Licensed to the Apache Software Foundation (ASF) under one
  3 +or more contributor license agreements. See the NOTICE file
  4 +distributed with this work for additional information
  5 +regarding copyright ownership. The ASF licenses this file
  6 +to you under the Apache License, Version 2.0 (the
  7 +"License"); you may not use this file except in compliance
  8 +with the License. You may obtain a copy of the License at
  9 +
  10 + https://www.apache.org/licenses/LICENSE-2.0
  11 +
  12 +Unless required by applicable law or agreed to in writing,
  13 +software distributed under the License is distributed on an
  14 +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  15 +KIND, either express or implied. See the License for the
  16 +specific language governing permissions and limitations
  17 +under the License.
  18 +*/
  19 +
  20 +import java.io.File;
  21 +import java.io.FileInputStream;
  22 +import java.io.FileOutputStream;
  23 +import java.io.IOException;
  24 +import java.net.URL;
  25 +import java.nio.channels.Channels;
  26 +import java.nio.channels.ReadableByteChannel;
  27 +import java.util.Properties;
  28 +
  29 +public class MavenWrapperDownloader {
  30 +
  31 + /**
  32 + * Default URL to download the maven-wrapper.jar from, if no 'downloadUrl' is provided.
  33 + */
  34 + private static final String DEFAULT_DOWNLOAD_URL =
  35 + "https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar";
  36 +
  37 + /**
  38 + * Path to the maven-wrapper.properties file, which might contain a downloadUrl property to
  39 + * use instead of the default one.
  40 + */
  41 + private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
  42 + ".mvn/wrapper/maven-wrapper.properties";
  43 +
  44 + /**
  45 + * Path where the maven-wrapper.jar will be saved to.
  46 + */
  47 + private static final String MAVEN_WRAPPER_JAR_PATH =
  48 + ".mvn/wrapper/maven-wrapper.jar";
  49 +
  50 + /**
  51 + * Name of the property which should be used to override the default download url for the wrapper.
  52 + */
  53 + private static final String PROPERTY_NAME_WRAPPER_URL = "wrapperUrl";
  54 +
  55 + public static void main(String args[]) {
  56 + System.out.println("- Downloader started");
  57 + File baseDirectory = new File(args[0]);
  58 + System.out.println("- Using base directory: " + baseDirectory.getAbsolutePath());
  59 +
  60 + // If the maven-wrapper.properties exists, read it and check if it contains a custom
  61 + // wrapperUrl parameter.
  62 + File mavenWrapperPropertyFile = new File(baseDirectory, MAVEN_WRAPPER_PROPERTIES_PATH);
  63 + String url = DEFAULT_DOWNLOAD_URL;
  64 + if (mavenWrapperPropertyFile.exists()) {
  65 + FileInputStream mavenWrapperPropertyFileInputStream = null;
  66 + try {
  67 + mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
  68 + Properties mavenWrapperProperties = new Properties();
  69 + mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
  70 + url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL, url);
  71 + } catch (IOException e) {
  72 + System.out.println("- ERROR loading '" + MAVEN_WRAPPER_PROPERTIES_PATH + "'");
  73 + } finally {
  74 + try {
  75 + if (mavenWrapperPropertyFileInputStream != null) {
  76 + mavenWrapperPropertyFileInputStream.close();
  77 + }
  78 + } catch (IOException e) {
  79 + // Ignore ...
  80 + }
  81 + }
  82 + }
  83 + System.out.println("- Downloading from: : " + url);
  84 +
  85 + File outputFile = new File(baseDirectory.getAbsolutePath(), MAVEN_WRAPPER_JAR_PATH);
  86 + if (!outputFile.getParentFile().exists()) {
  87 + if (!outputFile.getParentFile().mkdirs()) {
  88 + System.out.println(
  89 + "- ERROR creating output direcrory '" + outputFile.getParentFile().getAbsolutePath() + "'");
  90 + }
  91 + }
  92 + System.out.println("- Downloading to: " + outputFile.getAbsolutePath());
  93 + try {
  94 + downloadFileFromURL(url, outputFile);
  95 + System.out.println("Done");
  96 + System.exit(0);
  97 + } catch (Throwable e) {
  98 + System.out.println("- Error downloading");
  99 + e.printStackTrace();
  100 + System.exit(1);
  101 + }
  102 + }
  103 +
  104 + private static void downloadFileFromURL(String urlString, File destination) throws Exception {
  105 + URL website = new URL(urlString);
  106 + ReadableByteChannel rbc;
  107 + rbc = Channels.newChannel(website.openStream());
  108 + FileOutputStream fos = new FileOutputStream(destination);
  109 + fos.getChannel().transferFrom(rbc, 0, Long.MAX_VALUE);
  110 + fos.close();
  111 + rbc.close();
  112 + }
  113 +
  114 +}
... ...
.mvn/wrapper/maven-wrapper.jar 0 → 100644
No preview for this file type
.mvn/wrapper/maven-wrapper.properties 0 → 100644
  1 +++ a/.mvn/wrapper/maven-wrapper.properties
  1 +distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.0/apache-maven-3.6.0-bin.zip
... ...
pom.xml 0 → 100644
  1 +++ a/pom.xml
  1 +<?xml version="1.0" encoding="UTF-8"?>
  2 +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  3 + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
  4 + <modelVersion>4.0.0</modelVersion>
  5 + <parent>
  6 + <groupId>org.springframework.boot</groupId>
  7 + <artifactId>spring-boot-starter-parent</artifactId>
  8 + <version>2.1.6.RELEASE</version>
  9 + <relativePath/> <!-- lookup parent from repository -->
  10 + </parent>
  11 + <groupId>com.objecteye.vehicle</groupId>
  12 + <artifactId>vehicle-simple</artifactId>
  13 + <version>0.0.1-SNAPSHOT</version>
  14 + <name>vehicle</name>
  15 + <description>Project for Spring Boot</description>
  16 +
  17 + <properties>
  18 + <java.version>1.8</java.version>
  19 + </properties>
  20 +
  21 + <dependencies>
  22 + <dependency>
  23 + <groupId>org.springframework.boot</groupId>
  24 + <artifactId>spring-boot-starter-web</artifactId>
  25 + </dependency>
  26 + <dependency>
  27 + <groupId>mysql</groupId>
  28 + <artifactId>mysql-connector-java</artifactId>
  29 + <version>8.0.15</version>
  30 + </dependency>
  31 + <dependency>
  32 + <groupId>org.springframework.boot</groupId>
  33 + <artifactId>spring-boot-starter-test</artifactId>
  34 + <scope>test</scope>
  35 + </dependency>
  36 + <dependency>
  37 + <groupId>org.springframework.boot</groupId>
  38 + <artifactId>spring-boot-starter-websocket</artifactId>
  39 + <version>1.5.6.RELEASE</version>
  40 + </dependency>
  41 + <dependency>
  42 + <groupId>org.apache.commons</groupId>
  43 + <artifactId>commons-pool2</artifactId>
  44 + <version>2.4.2</version>
  45 + </dependency>
  46 + <!--<dependency>
  47 + <groupId>org.springframework.boot</groupId>
  48 + <artifactId>spring-boot-starter-actuator</artifactId>
  49 + </dependency>
  50 + <dependency>
  51 + <groupId>org.springframework.boot</groupId>
  52 + <artifactId>spring-boot-starter-aop</artifactId>
  53 + </dependency>-->
  54 +
  55 + <dependency>
  56 + <groupId>org.springframework.boot</groupId>
  57 + <artifactId>spring-boot-starter-data-redis</artifactId>
  58 + </dependency>
  59 +
  60 +
  61 + <!--集成druid连接池-->
  62 + <dependency>
  63 + <groupId>com.alibaba</groupId>
  64 + <artifactId>druid-spring-boot-starter</artifactId>
  65 + <version>1.1.10</version>
  66 + </dependency>
  67 + <!--JWT(Json Web Token)登录支持-->
  68 + <dependency>
  69 + <groupId>io.jsonwebtoken</groupId>
  70 + <artifactId>jjwt</artifactId>
  71 + <version>0.9.0</version>
  72 + </dependency>
  73 + <dependency>
  74 + <groupId>org.springframework.boot</groupId>
  75 + <artifactId>spring-boot-starter-security</artifactId>
  76 + </dependency>
  77 + <dependency>
  78 + <groupId>org.springframework.security</groupId>
  79 + <artifactId>spring-security-jwt</artifactId>
  80 + <version>1.0.10.RELEASE</version>
  81 + </dependency>
  82 + <!--集成logstash-->
  83 + <dependency>
  84 + <groupId>net.logstash.logback</groupId>
  85 + <artifactId>logstash-logback-encoder</artifactId>
  86 + <version>4.8</version>
  87 + </dependency>
  88 + <dependency>
  89 + <groupId>io.springfox</groupId>
  90 + <artifactId>springfox-swagger2</artifactId>
  91 + <version>2.7.0</version>
  92 + </dependency>
  93 + <dependency>
  94 + <groupId>io.springfox</groupId>
  95 + <artifactId>springfox-swagger-ui</artifactId>
  96 + <version>2.7.0</version>
  97 + </dependency>
  98 + <dependency>
  99 + <groupId>cn.hutool</groupId>
  100 + <artifactId>hutool-all</artifactId>
  101 + <version>4.5.7</version>
  102 + </dependency>
  103 + <dependency>
  104 + <groupId>com.github.pagehelper</groupId>
  105 + <artifactId>pagehelper-spring-boot-autoconfigure</artifactId>
  106 + <version>1.2.9</version>
  107 + </dependency>
  108 + <dependency>
  109 + <groupId>com.github.pagehelper</groupId>
  110 + <artifactId>pagehelper</artifactId>
  111 + <version>5.0.0</version>
  112 + </dependency>
  113 + <dependency>
  114 + <groupId>org.springframework.boot</groupId>
  115 + <artifactId>spring-boot-starter-data-mongodb</artifactId>
  116 + </dependency>
  117 +
  118 + <dependency>
  119 + <groupId>org.springframework.data</groupId>
  120 + <artifactId>spring-data-commons</artifactId>
  121 + <version>2.1.5.RELEASE</version>
  122 + </dependency>
  123 + <dependency>
  124 + <groupId>org.mybatis.spring.boot</groupId>
  125 + <artifactId>mybatis-spring-boot-starter</artifactId>
  126 + <version>1.2.0</version>
  127 + </dependency>
  128 + <dependency>
  129 + <groupId>commons-net</groupId>
  130 + <artifactId>commons-net</artifactId>
  131 + <version>3.6</version>
  132 + </dependency>
  133 +
  134 + <dependency>
  135 + <groupId>org.mybatis</groupId>
  136 + <artifactId>mybatis</artifactId>
  137 + <version>3.4.6</version>
  138 + </dependency>
  139 + <dependency>
  140 + <groupId>org.apache.commons</groupId>
  141 + <artifactId>commons-lang3</artifactId>
  142 + <version>3.8.1</version>
  143 + </dependency>
  144 + <dependency>
  145 + <groupId>org.apache.poi</groupId>
  146 + <artifactId>poi-ooxml</artifactId>
  147 + <version>3.9</version>
  148 + </dependency>
  149 + <dependency>
  150 + <groupId>com.alibaba</groupId>
  151 + <artifactId>fastjson</artifactId>
  152 + <version>1.2.54</version>
  153 + </dependency>
  154 + <dependency>
  155 + <groupId>org.apache.httpcomponents</groupId>
  156 + <artifactId>httpclient</artifactId>
  157 + <version>4.5.7</version>
  158 + </dependency>
  159 + <dependency>
  160 + <groupId>org.apache.httpcomponents</groupId>
  161 + <artifactId>httpmime</artifactId>
  162 + <version>4.5.5</version>
  163 + </dependency>
  164 + <dependency>
  165 + <groupId>org.junit.jupiter</groupId>
  166 + <artifactId>junit-jupiter-api</artifactId>
  167 + <version>5.2.0</version>
  168 + <scope>compile</scope>
  169 + </dependency>
  170 + <dependency>
  171 + <groupId>org.projectlombok</groupId>
  172 + <artifactId>lombok</artifactId>
  173 + </dependency>
  174 + <dependency>
  175 + <groupId>net.sf.json-lib</groupId>
  176 + <artifactId>json-lib</artifactId>
  177 + <version>2.4</version>
  178 + <classifier>jdk15</classifier>
  179 + </dependency>
  180 + <dependency>
  181 + <groupId>org.springframework.boot</groupId>
  182 + <artifactId>spring-boot-starter-amqp</artifactId>
  183 + </dependency>
  184 + <dependency>
  185 + <groupId>net.sourceforge.owlapi</groupId>
  186 + <artifactId>benchmarks</artifactId>
  187 + <version>4.1.0-RC2</version>
  188 + <scope>test</scope>
  189 + </dependency>
  190 + </dependencies>
  191 +
  192 + <build>
  193 + <resources>
  194 + <resource>
  195 + <directory>src/main/java</directory>
  196 + <includes>
  197 + <include>**/*.xml</include>
  198 + </includes>
  199 + <filtering>true</filtering>
  200 + </resource>
  201 + <resource>
  202 + <directory>src/main/resources</directory>
  203 + <filtering>true</filtering>
  204 + </resource>
  205 + </resources>
  206 + <plugins>
  207 + <plugin>
  208 + <groupId>org.springframework.boot</groupId>
  209 + <artifactId>spring-boot-maven-plugin</artifactId>
  210 + </plugin>
  211 + </plugins>
  212 + </build>
  213 +</project>
... ...
src/main/java/com/objecteye/VehicleApplication.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/VehicleApplication.java
  1 +package com.objecteye;
  2 +
  3 +import com.objecteye.handle.Ftp2Mongo;
  4 +import com.objecteye.websocket.SelectMongoData;
  5 +import org.springframework.boot.SpringApplication;
  6 +import org.springframework.boot.autoconfigure.SpringBootApplication;
  7 +import org.springframework.context.ConfigurableApplicationContext;
  8 +import org.springframework.context.annotation.Bean;
  9 +import org.springframework.scheduling.TaskScheduler;
  10 +import org.springframework.scheduling.annotation.EnableScheduling;
  11 +import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
  12 +import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;
  13 +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
  14 +import org.springframework.transaction.annotation.EnableTransactionManagement;
  15 +
  16 +@SpringBootApplication
  17 +@EnableTransactionManagement
  18 +@EnableScheduling
  19 +@EnableWebSecurity
  20 +@EnableGlobalMethodSecurity(prePostEnabled = true)
  21 +public class VehicleApplication {
  22 +
  23 + public static void main(String[] args) {
  24 + ConfigurableApplicationContext run = SpringApplication.run(VehicleApplication.class, args);
  25 +
  26 + //存储系统开始运行时间
  27 + SelectMongoData selectMongoData = run.getBean(SelectMongoData.class);
  28 + selectMongoData.setSystemStartTime();
  29 +
  30 + Ftp2Mongo bean = run.getBean(Ftp2Mongo.class);
  31 + bean.downloadFile();
  32 +
  33 + }
  34 +
  35 + @Bean
  36 + public TaskScheduler taskScheduler() {
  37 +
  38 + ThreadPoolTaskScheduler threadPoolTaskScheduler = new ThreadPoolTaskScheduler();
  39 + threadPoolTaskScheduler.setPoolSize(3);
  40 + threadPoolTaskScheduler.initialize();
  41 + return threadPoolTaskScheduler;
  42 + }
  43 +}
... ...
src/main/java/com/objecteye/common/CommonPage.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/common/CommonPage.java
  1 +package com.objecteye.common;
  2 +
  3 +import com.github.pagehelper.PageInfo;
  4 +import org.springframework.data.domain.Page;
  5 +
  6 +import java.util.List;
  7 +
  8 +/**
  9 + * 分页数据封装类
  10 + */
  11 +public class CommonPage<T> {
  12 + private Integer pageNum;
  13 + private Integer pageSize;
  14 + private Integer totalPage;
  15 + private Long total;
  16 + private List<T> list;
  17 +
  18 + /**
  19 + * 将PageHelper分页后的list转为分页信息
  20 + */
  21 + public static <T> CommonPage<T> restPage(List<T> list) {
  22 + CommonPage<T> result = new CommonPage<T>();
  23 + PageInfo<T> pageInfo = new PageInfo<T>(list);
  24 + result.setTotalPage(pageInfo.getPages());
  25 + result.setPageNum(pageInfo.getPageNum());
  26 + result.setPageSize(pageInfo.getPageSize());
  27 + result.setTotal(pageInfo.getTotal());
  28 + result.setList(pageInfo.getList());
  29 + return result;
  30 + }
  31 +
  32 + /**
  33 + * 将SpringData分页后的list转为分页信息
  34 + */
  35 + public static <T> CommonPage<T> restPage(Page<T> pageInfo) {
  36 + CommonPage<T> result = new CommonPage<T>();
  37 + result.setTotalPage(pageInfo.getTotalPages());
  38 + result.setPageNum(pageInfo.getNumber());
  39 + result.setPageSize(pageInfo.getSize());
  40 + result.setTotal(pageInfo.getTotalElements());
  41 + result.setList(pageInfo.getContent());
  42 + return result;
  43 + }
  44 +
  45 + public Integer getPageNum() {
  46 + return pageNum;
  47 + }
  48 +
  49 + public void setPageNum(Integer pageNum) {
  50 + this.pageNum = pageNum;
  51 + }
  52 +
  53 + public Integer getPageSize() {
  54 + return pageSize;
  55 + }
  56 +
  57 + public void setPageSize(Integer pageSize) {
  58 + this.pageSize = pageSize;
  59 + }
  60 +
  61 + public Integer getTotalPage() {
  62 + return totalPage;
  63 + }
  64 +
  65 + public void setTotalPage(Integer totalPage) {
  66 + this.totalPage = totalPage;
  67 + }
  68 +
  69 + public List<T> getList() {
  70 + return list;
  71 + }
  72 +
  73 + public void setList(List<T> list) {
  74 + this.list = list;
  75 + }
  76 +
  77 + public Long getTotal() {
  78 + return total;
  79 + }
  80 +
  81 + public void setTotal(Long total) {
  82 + this.total = total;
  83 + }
  84 +}
... ...
src/main/java/com/objecteye/common/CommonResult.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/common/CommonResult.java
  1 +package com.objecteye.common;
  2 +
  3 +/**
  4 + * 通用返回对象
  5 + */
  6 +public class CommonResult<T> {
  7 + private long code;
  8 + private String message;
  9 + private T data;
  10 +
  11 +
  12 + protected CommonResult() {
  13 + }
  14 +
  15 + protected CommonResult(long code, String message, T data) {
  16 + this.code = code;
  17 + this.message = message;
  18 + this.data = data;
  19 + }
  20 +
  21 + protected CommonResult(long code, String message) {
  22 + this.code = code;
  23 + this.message = message;
  24 + }
  25 +
  26 + /**
  27 + * 成功返回结果
  28 + *
  29 + * @param data 获取的数据
  30 + */
  31 + public static <T> CommonResult<T> success(T data) {
  32 + return new CommonResult<T>(ResultCode.SUCCESS.getCode(), ResultCode.SUCCESS.getMessage(), data);
  33 + }
  34 +
  35 + /**
  36 + * 成功返回结果
  37 + *
  38 + * @param data 获取的数据
  39 + * @param message 提示信息
  40 + */
  41 + public static <T> CommonResult<T> success(T data, String message) {
  42 + return new CommonResult<T>(ResultCode.SUCCESS.getCode(), message, data);
  43 + }
  44 +
  45 + /**
  46 + * 成功返回结果
  47 + *
  48 + * @param data 获取的数据
  49 + * @param message 提示信息
  50 + */
  51 + public static <T> CommonResult<T> success(int code, String message, T data) {
  52 + return new CommonResult<T>(code, message, data);
  53 + }
  54 +
  55 + /**
  56 + * 失败返回结果
  57 + *
  58 + * @param errorCode 错误码
  59 + */
  60 + public static <T> CommonResult<T> failed(IErrorCode errorCode) {
  61 + return new CommonResult<T>(errorCode.getCode(), errorCode.getMessage(), null);
  62 + }
  63 +
  64 + /**
  65 + * 失败返回结果
  66 + *
  67 + * @param message 提示信息
  68 + */
  69 + public static <T> CommonResult<T> failed(String message) {
  70 + return new CommonResult<T>(ResultCode.FAILED.getCode(), message, null);
  71 + }
  72 +
  73 + /**
  74 + * 失败返回结果
  75 + *
  76 + * @param message 提示信息
  77 + */
  78 + public static <T> CommonResult<T> failed(T data, String message) {
  79 + return new CommonResult<T>(ResultCode.FAILED.getCode(), message, data);
  80 + }
  81 +
  82 + /**
  83 + * 失败返回结果
  84 + */
  85 + public static <T> CommonResult<T> failed() {
  86 + return failed(ResultCode.FAILED);
  87 + }
  88 +
  89 + /**
  90 + * 参数验证失败返回结果
  91 + */
  92 + public static <T> CommonResult<T> validateFailed() {
  93 + return failed(ResultCode.VALIDATE_FAILED);
  94 + }
  95 +
  96 + /**
  97 + * 参数验证失败返回结果
  98 + *
  99 + * @param message 提示信息
  100 + */
  101 + public static <T> CommonResult<T> validateFailed(String message) {
  102 + return new CommonResult<T>(ResultCode.VALIDATE_FAILED.getCode(), message, null);
  103 + }
  104 +
  105 + /**
  106 + * 未登录返回结果
  107 + */
  108 + public static <T> CommonResult<T> unauthorized(T data) {
  109 + return new CommonResult<T>(ResultCode.UNAUTHORIZED.getCode(), ResultCode.UNAUTHORIZED.getMessage(), data);
  110 + }
  111 +
  112 + /**
  113 + * 未授权返回结果
  114 + */
  115 + public static <T> CommonResult<T> forbidden(T data) {
  116 + return new CommonResult<T>(ResultCode.FORBIDDEN.getCode(), ResultCode.FORBIDDEN.getMessage(), data);
  117 + }
  118 +
  119 + public long getCode() {
  120 + return code;
  121 + }
  122 +
  123 + public void setCode(long code) {
  124 + this.code = code;
  125 + }
  126 +
  127 + public String getMessage() {
  128 + return message;
  129 + }
  130 +
  131 + public void setMessage(String message) {
  132 + this.message = message;
  133 + }
  134 +
  135 + public T getData() {
  136 + return data;
  137 + }
  138 +
  139 + public void setData(T data) {
  140 + this.data = data;
  141 + }
  142 +}
... ...
src/main/java/com/objecteye/common/IErrorCode.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/common/IErrorCode.java
  1 +package com.objecteye.common;
  2 +
  3 +/**
  4 + * 封装API的错误码
  5 + */
  6 +public interface IErrorCode {
  7 + long getCode();
  8 +
  9 + String getMessage();
  10 +}
... ...
src/main/java/com/objecteye/common/ResultCode.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/common/ResultCode.java
  1 +package com.objecteye.common;
  2 +
  3 +/**
  4 + * 枚举了一些常用API操作码
  5 + */
  6 +public enum ResultCode implements IErrorCode {
  7 + SUCCESS(200, "操作成功"),
  8 + FAILED(500, "操作失败"),
  9 + VALIDATE_FAILED(404, "参数检验失败"),
  10 + UNAUTHORIZED(401, "暂未登录或token已经过期"),
  11 + FORBIDDEN(403, "没有相关权限");
  12 + private long code;
  13 + private String message;
  14 +
  15 + private ResultCode(long code, String message) {
  16 + this.code = code;
  17 + this.message = message;
  18 + }
  19 +
  20 + @Override
  21 + public long getCode() {
  22 + return code;
  23 + }
  24 +
  25 + @Override
  26 + public String getMessage() {
  27 + return message;
  28 + }
  29 +}
... ...
src/main/java/com/objecteye/component/ParamInterceptor.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/component/ParamInterceptor.java
  1 +
  2 +package com.objecteye.component;
  3 +
  4 +/*@Component
  5 +public class ParamInterceptor implements HandlerInterceptor {
  6 +
  7 + @Autowired
  8 + private JwtTokenUtil jwtTokenUtil;
  9 + @Autowired
  10 + private UserService userService;
  11 +
  12 +
  13 + @Override
  14 + public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {
  15 +
  16 + String token = request.getHeader("token");
  17 + if (!(handler instanceof HandlerMethod)) {
  18 + return true;
  19 + }
  20 + if (token == null || token.equals("")) {
  21 + printJson(response, "");
  22 + return false;
  23 + }
  24 + String userName = jwtTokenUtil.getUserNameFromToken(token);
  25 + SyUser user = userService.getAdminByUsername(userName);
  26 + if (user == null) {
  27 + printJson(response, "");
  28 + return false;
  29 + }
  30 +
  31 + *//*String userId = user.getId();
  32 + User sqlUser = getUserService().getUserById(userId);
  33 + String enterpriseId = getUserEnterpriseService().selectEnterpriseByUser(userId);
  34 + if (enterpriseId == null) {
  35 + getRedisService().set(REDIS_USER_SESSION_KEY + ":" + token, sqlUser, SSO_SESSION_EXPIRE);
  36 + return true;
  37 + }
  38 + Enterprise sqlEnterprise = getEnterpriseService().selectEnterpriseById(enterpriseId);
  39 + getRedisService().set(REDIS_USER_SESSION_KEY + ":" + token, sqlUser, SSO_SESSION_EXPIRE);
  40 + getRedisService().set(REDIS_ENTERPRISE_SESSION_KEY + ":" + token, sqlEnterprise, SSO_SESSION_EXPIRE);*//*
  41 +
  42 + return true;
  43 + }
  44 +
  45 + @Override
  46 + public void postHandle(HttpServletRequest request, HttpServletResponse response, Object handler, ModelAndView modelAndView) throws Exception {
  47 +
  48 + }
  49 +
  50 + @Override
  51 + public void afterCompletion(HttpServletRequest request, HttpServletResponse response, Object handler, Exception ex) throws Exception {
  52 +
  53 +
  54 + }
  55 + private static void printJson(HttpServletResponse response, String code) {
  56 + printContent(response, "token过期,请重新登陆");
  57 + }
  58 +
  59 +
  60 + private static void printContent(HttpServletResponse response, String content) {
  61 + try {
  62 + response.reset();
  63 + response.setContentType("application/json");
  64 + response.setHeader("Cache-Control", "no-store");
  65 + response.setCharacterEncoding("UTF-8");
  66 + PrintWriter pw = response.getWriter();
  67 + pw.write(content);
  68 + pw.flush();
  69 + } catch (Exception e) {
  70 + e.printStackTrace();
  71 + }
  72 + }
  73 +}*/
  74 +
... ...
src/main/java/com/objecteye/config/AccessConfirmServiceImpl.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/AccessConfirmServiceImpl.java
  1 +package com.objecteye.config;
  2 +
  3 +import com.objecteye.pojo.SpecialAuthenticationUrlConfig;
  4 +import com.objecteye.pojo.UserDetailsMsg;
  5 +import com.objecteye.pojo.UserGroup;
  6 +import org.springframework.beans.factory.annotation.Autowired;
  7 +import org.springframework.data.mongodb.core.MongoTemplate;
  8 +import org.springframework.data.mongodb.core.query.Criteria;
  9 +import org.springframework.data.mongodb.core.query.Query;
  10 +import org.springframework.security.authentication.AnonymousAuthenticationToken;
  11 +import org.springframework.security.core.Authentication;
  12 +import org.springframework.security.core.userdetails.UserDetails;
  13 +import org.springframework.stereotype.Component;
  14 +import org.springframework.util.AntPathMatcher;
  15 +
  16 +import javax.servlet.http.HttpServletRequest;
  17 +import java.util.ArrayList;
  18 +import java.util.HashMap;
  19 +import java.util.List;
  20 +import java.util.Map;
  21 +
  22 +@Component("accessConfirmService")
  23 +public class AccessConfirmServiceImpl {
  24 +
  25 + @Autowired
  26 + private MongoTemplate mongoTemplate;
  27 +
  28 + private AntPathMatcher antPathMatcher = new AntPathMatcher();
  29 +
  30 + public boolean hasPermission(HttpServletRequest request, Authentication auth) {
  31 + // 匿名token不允许访问所有的接口
  32 + if (auth instanceof AnonymousAuthenticationToken) {
  33 + return false;
  34 + }
  35 +
  36 + UserDetails user = (UserDetails) auth.getPrincipal();
  37 + Map<String, Boolean> specialUrlAccessMap = queryUrlByUserName(user.getUsername());
  38 + for (Map.Entry<String, Boolean> entry : specialUrlAccessMap.entrySet()) {
  39 + if (antPathMatcher.match(entry.getKey(), request.getRequestURI())) {
  40 + return entry.getValue();
  41 + }
  42 + }
  43 + return true;
  44 + }
  45 +
  46 + /**
  47 + * 查询用户权限
  48 + *
  49 + * @param userName 用户名
  50 + * @return key: 需要权限的url; value: 是否可以访问
  51 + */
  52 + private Map<String, Boolean> queryUrlByUserName(String userName) {
  53 + List<UserDetailsMsg> userDetailsMsgList = mongoTemplate.find(Query.query(Criteria.where("userName").is(userName)), UserDetailsMsg.class);
  54 + Map<String, Boolean> specialUrlLevelMap = new HashMap<>();
  55 + if (userDetailsMsgList.size() > 0) {
  56 + List<String> levelList = new ArrayList<>();
  57 + UserDetailsMsg userDetailsMsg = userDetailsMsgList.get(0);
  58 + levelList.add(userDetailsMsg.getUserRole());
  59 + List<UserGroup> userGroups = mongoTemplate.find(Query.query(Criteria.where("grouoId").is(userDetailsMsg.getGroup())), UserGroup.class);
  60 + if (userGroups.size() > 0) {
  61 + levelList.add(userGroups.get(0).getGroupLevel());
  62 + }
  63 + // 保存的是所有的需要特殊权限才能访问的
  64 + List<SpecialAuthenticationUrlConfig> specialUrlList = mongoTemplate.find(new Query(), SpecialAuthenticationUrlConfig.class);
  65 + if (specialUrlList.size() > 0) {
  66 + for (SpecialAuthenticationUrlConfig specialUrlConfig : specialUrlList) {
  67 + String url = specialUrlConfig.getUrl();
  68 + Integer level = specialUrlConfig.getLevel();
  69 + if (specialUrlLevelMap.containsKey(url)) {
  70 + // 历史数据不允许访问, 当前数据允许访问则刷新是否可以访问的状态
  71 + if (!specialUrlLevelMap.get(url) && levelList.contains(level)) {
  72 + specialUrlLevelMap.put(url, true);
  73 + }
  74 + } else {
  75 + specialUrlLevelMap.put(url, levelList.contains(level));
  76 + }
  77 + }
  78 + }
  79 + }
  80 + return specialUrlLevelMap;
  81 + }
  82 +}
... ...
src/main/java/com/objecteye/config/AuthenticationHeadFilter.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/AuthenticationHeadFilter.java
  1 +package com.objecteye.config;
  2 +
  3 +import com.alibaba.fastjson.JSON;
  4 +import com.objecteye.pojo.TokenUser;
  5 +import org.springframework.security.core.context.SecurityContextHolder;
  6 +import org.springframework.security.jwt.Jwt;
  7 +import org.springframework.security.jwt.JwtHelper;
  8 +import org.springframework.security.jwt.crypto.sign.RsaVerifier;
  9 +import org.springframework.security.web.authentication.WebAuthenticationDetails;
  10 +import org.springframework.web.filter.OncePerRequestFilter;
  11 +
  12 +import javax.servlet.FilterChain;
  13 +import javax.servlet.ServletException;
  14 +import javax.servlet.http.HttpServletRequest;
  15 +import javax.servlet.http.HttpServletResponse;
  16 +import java.io.IOException;
  17 +
  18 +/**
  19 + * 拦截request请求做token验证
  20 + */
  21 +public class AuthenticationHeadFilter extends OncePerRequestFilter {
  22 +
  23 + private RsaVerifier rsaVerifier;
  24 +
  25 + public void setRsaVerifier(RsaVerifier rsaVerifier) {
  26 + this.rsaVerifier = rsaVerifier;
  27 + }
  28 +
  29 + @Override
  30 + protected void doFilterInternal(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, FilterChain filterChain) throws ServletException, IOException {
  31 + String token = httpServletRequest.getHeader("Authentication");
  32 + if (token == null || token.isEmpty()) {
  33 + filterChain.doFilter(httpServletRequest, httpServletResponse);
  34 + return;
  35 + }
  36 +
  37 + TokenUser user;
  38 + try {
  39 + Jwt jwt = JwtHelper.decodeAndVerify(token, rsaVerifier);
  40 + String claims = jwt.getClaims();
  41 + user = JSON.parseObject(claims, TokenUser.class);
  42 + } catch (Exception e) {
  43 + httpServletResponse.setContentType("application/json;charset=UTF-8");
  44 + httpServletResponse.getWriter().write("Useless token...");
  45 + return;
  46 + }
  47 + AuthenticationToken authenticationToken = new AuthenticationToken(user, "", user.getAuthorities());
  48 + authenticationToken.setDetails(new WebAuthenticationDetails(httpServletRequest));
  49 + SecurityContextHolder.getContext().setAuthentication(authenticationToken);
  50 + filterChain.doFilter(httpServletRequest, httpServletResponse);
  51 + }
  52 +}
... ...
src/main/java/com/objecteye/config/AuthenticationLoginFilter.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/AuthenticationLoginFilter.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.security.core.Authentication;
  4 +import org.springframework.security.core.AuthenticationException;
  5 +import org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter;
  6 +import org.springframework.security.web.authentication.WebAuthenticationDetails;
  7 +import org.springframework.security.web.util.matcher.AntPathRequestMatcher;
  8 +
  9 +import javax.servlet.ServletException;
  10 +import javax.servlet.http.HttpServletRequest;
  11 +import javax.servlet.http.HttpServletResponse;
  12 +import java.io.IOException;
  13 +
  14 +public class AuthenticationLoginFilter extends AbstractAuthenticationProcessingFilter {
  15 +
  16 + public AuthenticationLoginFilter() {
  17 + super(new AntPathRequestMatcher("/login", "POST"));
  18 + }
  19 +
  20 + @Override
  21 + public Authentication attemptAuthentication(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse) throws AuthenticationException, IOException, ServletException {
  22 + String userName = httpServletRequest.getParameter("username");
  23 + String password = httpServletRequest.getParameter("password");
  24 + AuthenticationToken authenticationToken = new AuthenticationToken(userName, password);
  25 + authenticationToken.setDetails(new WebAuthenticationDetails(httpServletRequest));
  26 + return this.getAuthenticationManager().authenticate(authenticationToken);
  27 + }
  28 +}
... ...
src/main/java/com/objecteye/config/AuthenticationProviderConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/AuthenticationProviderConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.security.authentication.*;
  4 +import org.springframework.security.core.Authentication;
  5 +import org.springframework.security.core.AuthenticationException;
  6 +import org.springframework.security.core.userdetails.UserDetails;
  7 +import org.springframework.security.core.userdetails.UserDetailsService;
  8 +import org.springframework.security.crypto.password.PasswordEncoder;
  9 +
  10 +public class AuthenticationProviderConfig implements AuthenticationProvider {
  11 +
  12 + private UserDetailsService userDetailsService;
  13 +
  14 + private PasswordEncoder passwordEncoder;
  15 +
  16 + public void setUserDetailsService(UserDetailsService userDetailsService) {
  17 + this.userDetailsService = userDetailsService;
  18 + }
  19 +
  20 + public void setPasswordEncoder(PasswordEncoder passwordEncoder) {
  21 + this.passwordEncoder = passwordEncoder;
  22 + }
  23 +
  24 + /**
  25 + * 用户默认检查,用户是否锁定过期等
  26 + */
  27 + private void defaultCheck(UserDetails user) {
  28 + if (!user.isAccountNonLocked()) {
  29 + throw new LockedException("User account is locked");
  30 + }
  31 +
  32 + if (!user.isEnabled()) {
  33 + throw new DisabledException("User is disabled");
  34 + }
  35 +
  36 + if (!user.isAccountNonExpired()) {
  37 + throw new AccountExpiredException("User account has expired");
  38 + }
  39 + }
  40 +
  41 + /**
  42 + * (附加检查项)检查密码是否正确
  43 + */
  44 + private void additionalAuthenticationChecks(UserDetails userDetails,
  45 + AuthenticationToken authenticationToken) throws AuthenticationException {
  46 + if (authenticationToken.getCredentials() == null) {
  47 + throw new BadCredentialsException("username or password is wrong!");
  48 + }
  49 + String presentedPassword = authenticationToken.getCredentials().toString();
  50 + if (!passwordEncoder.matches(presentedPassword, userDetails.getPassword())) {
  51 + throw new BadCredentialsException("username or password is wrong!");
  52 + }
  53 + }
  54 +
  55 + /**
  56 + * 创建一个认证成功的Authentication对象,传入的是一个还没有认证的Authentication对象
  57 + *
  58 + * @param authentication 未认证的
  59 + * @return
  60 + * @throws AuthenticationException
  61 + * @see AuthenticationToken#AuthenticationToken(Object, Object)
  62 + */
  63 + @Override
  64 + public Authentication authenticate(Authentication authentication) throws AuthenticationException {
  65 + String userName = authentication.getName();
  66 + UserDetails userDetails = userDetailsService.loadUserByUsername(userName);
  67 + AuthenticationToken checkToken = (AuthenticationToken) authentication;
  68 + defaultCheck(userDetails);
  69 + additionalAuthenticationChecks(userDetails, checkToken);
  70 + AuthenticationToken authenticationToken = new AuthenticationToken(userDetails, checkToken.getCredentials(), userDetails.getAuthorities());
  71 + authenticationToken.setDetails(checkToken.getDetails());
  72 + return authenticationToken;
  73 + }
  74 +
  75 + /**
  76 + * 判断token是否是该类型
  77 + *
  78 + * @param aClass
  79 + * @return
  80 + */
  81 + @Override
  82 + public boolean supports(Class<?> aClass) {
  83 + return AuthenticationToken.class.isAssignableFrom(aClass);
  84 + }
  85 +}
... ...
src/main/java/com/objecteye/config/AuthenticationToken.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/AuthenticationToken.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.security.authentication.AbstractAuthenticationToken;
  4 +import org.springframework.security.core.GrantedAuthority;
  5 +
  6 +import java.util.Collection;
  7 +
  8 +public class AuthenticationToken extends AbstractAuthenticationToken {
  9 +
  10 + private static final long serialVersionUID = 4169946299521307024L;
  11 + /**
  12 + * 用户名
  13 + */
  14 + private final Object principal;
  15 + /**
  16 + * 密码
  17 + */
  18 + private Object credentials;
  19 +
  20 + /**
  21 + * 创建一个认证成功的token
  22 + *
  23 + * @param principal
  24 + * @param credentials
  25 + * @param authorities
  26 + */
  27 + public AuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities) {
  28 + super(authorities);
  29 + this.principal = principal;
  30 + this.credentials = credentials;
  31 + super.setAuthenticated(true);
  32 + }
  33 +
  34 + /**
  35 + * 创建一个未认证的token
  36 + *
  37 + * @param principal
  38 + * @param credentials
  39 + */
  40 + public AuthenticationToken(Object principal, Object credentials) {
  41 + super(null);
  42 + this.principal = principal;
  43 + this.credentials = credentials;
  44 + super.setAuthenticated(false);
  45 + }
  46 +
  47 + @Override
  48 + public Object getCredentials() {
  49 + return this.credentials;
  50 + }
  51 +
  52 + @Override
  53 + public Object getPrincipal() {
  54 + return this.principal;
  55 + }
  56 +}
... ...
src/main/java/com/objecteye/config/ExecutorConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/ExecutorConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.context.annotation.Bean;
  4 +import org.springframework.context.annotation.Configuration;
  5 +import org.springframework.core.task.TaskExecutor;
  6 +import org.springframework.scheduling.annotation.Async;
  7 +import org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor;
  8 +
  9 +import java.util.concurrent.ThreadPoolExecutor;
  10 +
  11 +/**
  12 + * @author yumiu
  13 + */
  14 +@Configuration
  15 +@Async
  16 +public class ExecutorConfig {
  17 +
  18 + @Bean
  19 + public TaskExecutor taskExecutor() {
  20 + ThreadPoolTaskExecutor executor = new ThreadPoolTaskExecutor();
  21 + // 设置核心线程数
  22 + executor.setCorePoolSize(5);
  23 + // 设置最大线程数
  24 + executor.setMaxPoolSize(20);
  25 + // 设置队列容量
  26 + executor.setQueueCapacity(50);
  27 + // 设置线程活跃时间(秒)
  28 + executor.setKeepAliveSeconds(60);
  29 + //executor.setThreadNamePrefix("hello-");
  30 + // 设置拒绝策略
  31 + executor.setRejectedExecutionHandler(new ThreadPoolExecutor.CallerRunsPolicy());
  32 + // 等待所有任务结束后再关闭线程池
  33 + executor.setWaitForTasksToCompleteOnShutdown(true);
  34 + return executor;
  35 + }
  36 +}
... ...
src/main/java/com/objecteye/config/LoginFailureHandler.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/LoginFailureHandler.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.security.core.AuthenticationException;
  4 +import org.springframework.security.web.authentication.SimpleUrlAuthenticationFailureHandler;
  5 +
  6 +import javax.servlet.ServletException;
  7 +import javax.servlet.http.HttpServletRequest;
  8 +import javax.servlet.http.HttpServletResponse;
  9 +import java.io.IOException;
  10 +
  11 +/**
  12 + * 登录失败处理
  13 + */
  14 +public class LoginFailureHandler extends SimpleUrlAuthenticationFailureHandler {
  15 +
  16 + @Override
  17 + public void onAuthenticationFailure(HttpServletRequest request, HttpServletResponse response, AuthenticationException exception) throws IOException, ServletException {
  18 + response.setContentType("application/json;charset=UTF-8");
  19 + response.getWriter().write("登录失败");
  20 + }
  21 +}
... ...
src/main/java/com/objecteye/config/LoginSuccessHandler.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/LoginSuccessHandler.java
  1 +package com.objecteye.config;
  2 +
  3 +import com.alibaba.fastjson.JSON;
  4 +import org.springframework.security.core.Authentication;
  5 +import org.springframework.security.jwt.JwtHelper;
  6 +import org.springframework.security.jwt.crypto.sign.RsaSigner;
  7 +import org.springframework.security.web.authentication.SimpleUrlAuthenticationSuccessHandler;
  8 +
  9 +import javax.servlet.http.HttpServletRequest;
  10 +import javax.servlet.http.HttpServletResponse;
  11 +import java.io.IOException;
  12 +
  13 +/**
  14 + * 登录成功处理
  15 + */
  16 +public class LoginSuccessHandler extends SimpleUrlAuthenticationSuccessHandler {
  17 +
  18 + private RsaSigner signer;
  19 +
  20 + @Override
  21 + public void onAuthenticationSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication) throws IOException {
  22 + response.setContentType("application/json;charset=UTF-8");
  23 + String userJsonStr = JSON.toJSONString(authentication.getPrincipal());
  24 + String token = JwtHelper.encode(userJsonStr, signer).getEncoded();
  25 + //签发token
  26 + response.getWriter().write("token=" + token);
  27 + }
  28 +
  29 + public void setSigner(RsaSigner signer) {
  30 + this.signer = signer;
  31 + }
  32 +}
... ...
src/main/java/com/objecteye/config/MyBatisConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/MyBatisConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.mybatis.spring.annotation.MapperScan;
  4 +import org.springframework.context.annotation.Configuration;
  5 +
  6 +@Configuration
  7 +@MapperScan({"com.objecteye.mapper"})
  8 +public class MyBatisConfig {
  9 +
  10 +}
... ...
src/main/java/com/objecteye/config/RabbitmqConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/RabbitmqConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +
  4 +import org.springframework.amqp.core.*;
  5 +import org.springframework.beans.factory.annotation.Qualifier;
  6 +import org.springframework.context.annotation.Bean;
  7 +import org.springframework.context.annotation.Configuration;
  8 +
  9 +
  10 +@Configuration
  11 +public class RabbitmqConfig {
  12 + public static final String QUEUE_INFORM_STORE = "queue_inform_store";
  13 + public static final String QUEUE_INFORM_ALARM = "queue_inform_alarm";
  14 + public static final String QUEUE_INFORM_PERSON = "queue_inform_person";
  15 + public static final String QUEUE_INFORM_FORBIDDEN_TASK = "queue_inform_forbidden";
  16 +
  17 + public static final String EXCHANGE_TOPICS_INFORM = "exchange_topics_inform";
  18 +
  19 + /**
  20 + * 配置交换机
  21 + * ExchangeBuilder提供了fonout,direct,topic,header的交换机的配置
  22 + *
  23 + * @return
  24 + */
  25 + @Bean(EXCHANGE_TOPICS_INFORM)
  26 + public Exchange EXCHANGE_TOPICS_INFORM() {
  27 + return ExchangeBuilder.topicExchange(EXCHANGE_TOPICS_INFORM).durable(true).build();
  28 + }
  29 +
  30 + /**
  31 + * 声明队列
  32 + *
  33 + * @return
  34 + */
  35 + @Bean(QUEUE_INFORM_STORE)
  36 + public Queue QUEUE_INFORM_STORE() {
  37 + return new Queue(QUEUE_INFORM_STORE);
  38 + }
  39 +
  40 + @Bean(QUEUE_INFORM_ALARM)
  41 + public Queue QUEUE_INFORM_ALARM() {
  42 + return new Queue(QUEUE_INFORM_ALARM);
  43 + }
  44 +
  45 + @Bean(QUEUE_INFORM_PERSON)
  46 + public Queue QUEUE_INFORM_PERSON() {
  47 + return new Queue(QUEUE_INFORM_PERSON);
  48 + }
  49 +
  50 + @Bean(QUEUE_INFORM_FORBIDDEN_TASK)
  51 + public Queue QUEUE_INFORM_FORBIDDEN_TASK() {
  52 + return new Queue(QUEUE_INFORM_FORBIDDEN_TASK);
  53 + }
  54 +
  55 + /**
  56 + * 绑定队列到交换机
  57 + *
  58 + * @return
  59 + */
  60 + @Bean
  61 + public Binding BINDING_QUEUE_INFORM_ALARM(@Qualifier(QUEUE_INFORM_ALARM) Queue queue, @Qualifier(EXCHANGE_TOPICS_INFORM) Exchange exchange) {
  62 + return BindingBuilder.bind(queue).to(exchange).with("inform.#.alarm.#").noargs();
  63 + }
  64 +
  65 + //绑定队列到交换机
  66 + @Bean
  67 + public Binding BINDING_QUEUE_INFORM_STORE(@Qualifier(QUEUE_INFORM_STORE) Queue queue, @Qualifier(EXCHANGE_TOPICS_INFORM) Exchange exchange) {
  68 + return BindingBuilder.bind(queue).to(exchange).with("inform.#.store.#").noargs();
  69 + }
  70 +
  71 + @Bean
  72 + public Binding BINDING_QUEUE_INFORM_PERSON(@Qualifier(QUEUE_INFORM_PERSON) Queue queue, @Qualifier(EXCHANGE_TOPICS_INFORM) Exchange exchange) {
  73 + return BindingBuilder.bind(queue).to(exchange).with("inform.#.person.#").noargs();
  74 + }
  75 +
  76 + @Bean
  77 + public Binding BINDING_QUEUE_INFORM_FORBIDDEN_TASK(@Qualifier(QUEUE_INFORM_FORBIDDEN_TASK) Queue queue, @Qualifier(EXCHANGE_TOPICS_INFORM) Exchange exchange) {
  78 + return BindingBuilder.bind(queue).to(exchange).with("inform.#.forbidden.#").noargs();
  79 + }
  80 +}
... ...
src/main/java/com/objecteye/config/RestTemplateConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/RestTemplateConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +
  4 +import org.springframework.context.annotation.Bean;
  5 +import org.springframework.context.annotation.Configuration;
  6 +import org.springframework.http.client.ClientHttpRequestFactory;
  7 +import org.springframework.http.client.SimpleClientHttpRequestFactory;
  8 +import org.springframework.web.client.RestTemplate;
  9 +
  10 +/**
  11 + * @author yumiu
  12 + */
  13 +@Configuration
  14 +public class RestTemplateConfig {
  15 +
  16 + @Bean
  17 + public RestTemplate restTemplate(ClientHttpRequestFactory factory) {
  18 + return new RestTemplate(factory);
  19 + }
  20 +
  21 + @Bean
  22 + public ClientHttpRequestFactory simpleClientHttpRequestFactory() {
  23 + SimpleClientHttpRequestFactory factory = new SimpleClientHttpRequestFactory();
  24 + //单位为ms
  25 + factory.setReadTimeout(5000);
  26 + //单位为ms
  27 + factory.setConnectTimeout(5000);
  28 + return factory;
  29 + }
  30 +}
... ...
src/main/java/com/objecteye/config/RsaKeyConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/RsaKeyConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.context.annotation.Bean;
  4 +import org.springframework.context.annotation.Configuration;
  5 +import org.springframework.security.jwt.crypto.sign.RsaSigner;
  6 +import org.springframework.security.jwt.crypto.sign.RsaVerifier;
  7 +
  8 +@Configuration
  9 +public class RsaKeyConfig {
  10 +
  11 + /**
  12 + * RSA私钥
  13 + */
  14 + private static final String PRIVATE_KEY = "-----BEGIN RSA PRIVATE KEY-----" +
  15 + "MIICWwIBAAKBgQCM1YBbzMijYIp4/mf1+gdVBXQMJEv5KpuTDh6DiTGJAk1yrsWA" +
  16 + "RfqjpC83/t0xzpmvHa1M7WykUg5E0PmneNddyD/MTjkCDNhqBgr0AnJTZsTnEjMa" +
  17 + "PB0cXeVF1ty1p+ZBuvHKMvhJwqgNmQd7uGpl2Rq1gR1L86YTWSkYceSoNwIDAQAB" +
  18 + "AoGAcYrr+pcGp5l86oGJhWm4IZbM8cENs2vjk9LNTRT9580AbdZ0Cq/gm7ASFZ4X" +
  19 + "7UD47JMLljrQ3UX+lQK6VIf7cTUGZdR1nVArOqJaMKVvCYkwqR6bm5Gc6qx6XWAW" +
  20 + "0/PY2LcWt0cW1Q1CU65M1oM08P+ohQvE4kJI45RcoIl6VwkCQQCO0Za4bYiZWtzE" +
  21 + "UzRka+kHa//h1YjYbQVglPLb5FuOdSm62eGQThfQRpyLU1WD6sATv9yPWxUaRCEL" +
  22 + "Fh+s/YfrAkEA/HFDLl/Nl439/A5Q05HWhMKWZ8tt8k448mNNlefJUK1ApCuWdDWm" +
  23 + "kBTk8ytjRvdFlVKvVVXUV8LeSyWMXpR55QJACe/rXMnCR2lbEw33B0W64RlSpJQH" +
  24 + "AYgUZ7P1cfdhp3fff3DJkRDd90/ydH9H4/Xhh35CCnd78GftJKhVa+P4IQJABYv3" +
  25 + "je1M9yeHjSJDZGKv8/rSkzVFFS3i0nCcI88T/VHROco7ZBJJtqC+5xjs9YI5ZS6L" +
  26 + "67QXFlaRy9TnYKyigQJAHjuzdwDgKBj2orf6k05ri+Ks1nGvp5S4JxzcGCmkQB+l" +
  27 + "6KOJ8lAFma4qxWKaMeNi0ekrzkSrJNEt5yJPbw1Lmg==" +
  28 + "-----END RSA PRIVATE KEY-----";
  29 +
  30 + /**
  31 + * 使用私钥签名
  32 + */
  33 + @Bean
  34 + public RsaSigner getSigner() {
  35 + return new RsaSigner(PRIVATE_KEY);
  36 + }
  37 +
  38 + /**
  39 + * 使用公钥验签(这里是可以通过私钥生成密钥对,包含公钥)
  40 + */
  41 + @Bean
  42 + public RsaVerifier getVerifier() {
  43 + return new RsaVerifier(PRIVATE_KEY);
  44 + }
  45 +}
... ...
src/main/java/com/objecteye/config/Swagger2Config.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/Swagger2Config.java
  1 +package com.objecteye.config;
  2 +
  3 +import org.springframework.context.annotation.Bean;
  4 +import org.springframework.context.annotation.Configuration;
  5 +import springfox.documentation.builders.ApiInfoBuilder;
  6 +import springfox.documentation.builders.PathSelectors;
  7 +import springfox.documentation.builders.RequestHandlerSelectors;
  8 +import springfox.documentation.service.ApiInfo;
  9 +import springfox.documentation.service.ApiKey;
  10 +import springfox.documentation.service.AuthorizationScope;
  11 +import springfox.documentation.service.SecurityReference;
  12 +import springfox.documentation.spi.DocumentationType;
  13 +import springfox.documentation.spi.service.contexts.SecurityContext;
  14 +import springfox.documentation.spring.web.plugins.Docket;
  15 +import springfox.documentation.swagger2.annotations.EnableSwagger2;
  16 +
  17 +import java.util.ArrayList;
  18 +import java.util.List;
  19 +
  20 +/**
  21 + * Swagger2API文档的配置
  22 + */
  23 +@Configuration
  24 +@EnableSwagger2
  25 +public class Swagger2Config {
  26 + @Bean
  27 + public Docket createRestApi() {
  28 + return new Docket(DocumentationType.SWAGGER_2)
  29 + .apiInfo(apiInfo())
  30 + .select()
  31 + .apis(RequestHandlerSelectors.basePackage("com.objecteye.controller"))
  32 + .paths(PathSelectors.any())
  33 + .build()
  34 + .securitySchemes(securitySchemes())
  35 + .securityContexts(securityContexts());
  36 + }
  37 +
  38 + private ApiInfo apiInfo() {
  39 + return new ApiInfoBuilder()
  40 + .title("人像平台后台系统")
  41 + .description("人像平台后台模块")
  42 + .contact("face")
  43 + .version("1.0")
  44 + .build();
  45 + }
  46 +
  47 + private List<ApiKey> securitySchemes() {
  48 + //设置请求头信息
  49 + List<ApiKey> result = new ArrayList<>();
  50 + ApiKey apiKey = new ApiKey("Authorization", "Authorization", "header");
  51 + result.add(apiKey);
  52 + return result;
  53 + }
  54 +
  55 + private List<SecurityContext> securityContexts() {
  56 + //设置需要登录认证的路径
  57 + List<SecurityContext> result = new ArrayList<>();
  58 + result.add(getContextByPath("/alarm/.*"));
  59 + result.add(getContextByPath("/capture/.*"));
  60 + result.add(getContextByPath("/deploy/.*"));
  61 + result.add(getContextByPath("/equipment/.*"));
  62 + result.add(getContextByPath("/feature/.*"));
  63 + result.add(getContextByPath("/location/.*"));
  64 + result.add(getContextByPath("/personnel/.*"));
  65 + result.add(getContextByPath("/preview/.*"));
  66 + result.add(getContextByPath("/record/.*"));
  67 + result.add(getContextByPath("/user/.*"));
  68 + result.add(getContextByPath("/areaEquipment/.*"));
  69 + return result;
  70 + }
  71 +
  72 + private SecurityContext getContextByPath(String pathRegex) {
  73 + return SecurityContext.builder()
  74 + .securityReferences(defaultAuth())
  75 + .forPaths(PathSelectors.regex(pathRegex))
  76 + .build();
  77 + }
  78 +
  79 + private List<SecurityReference> defaultAuth() {
  80 + List<SecurityReference> result = new ArrayList<>();
  81 + AuthorizationScope authorizationScope = new AuthorizationScope("global", "accessEverything");
  82 + AuthorizationScope[] authorizationScopes = new AuthorizationScope[1];
  83 + authorizationScopes[0] = authorizationScope;
  84 + result.add(new SecurityReference("Authorization", authorizationScopes));
  85 + return result;
  86 + }
  87 +}
... ...
src/main/java/com/objecteye/config/WebSecurityConfig.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/config/WebSecurityConfig.java
  1 +package com.objecteye.config;
  2 +
  3 +import com.objecteye.common.ResultCode;
  4 +import com.objecteye.service.impl.UserDetailServiceImpl;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.context.annotation.Bean;
  7 +import org.springframework.context.annotation.Configuration;
  8 +import org.springframework.security.config.annotation.web.builders.HttpSecurity;
  9 +import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;
  10 +import org.springframework.security.config.http.SessionCreationPolicy;
  11 +import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;
  12 +import org.springframework.security.crypto.password.PasswordEncoder;
  13 +import org.springframework.security.jwt.crypto.sign.RsaSigner;
  14 +import org.springframework.security.jwt.crypto.sign.RsaVerifier;
  15 +import org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter;
  16 +
  17 +@Configuration
  18 +public class WebSecurityConfig extends WebSecurityConfigurerAdapter {
  19 +
  20 + @Autowired
  21 + private RsaVerifier verifier;
  22 +
  23 + @Autowired
  24 + private RsaSigner signer;
  25 +
  26 + @Autowired
  27 + private UserDetailServiceImpl userDetailService;
  28 +
  29 + @Override
  30 + protected void configure(HttpSecurity http) throws Exception {
  31 + AuthenticationLoginFilter authenticationLoginFilter = new AuthenticationLoginFilter();
  32 + authenticationLoginFilter.setAuthenticationManager(this.authenticationManagerBean());
  33 +
  34 + LoginSuccessHandler loginSuccessHandler = new LoginSuccessHandler();
  35 + loginSuccessHandler.setSigner(signer);
  36 + authenticationLoginFilter.setAuthenticationSuccessHandler(loginSuccessHandler);
  37 + authenticationLoginFilter.setAuthenticationFailureHandler(new LoginFailureHandler());
  38 +
  39 + AuthenticationProviderConfig provider = new AuthenticationProviderConfig();
  40 + provider.setPasswordEncoder(passwordEncoder());
  41 + provider.setUserDetailsService(userDetailService);
  42 +
  43 + AuthenticationHeadFilter headFilter = new AuthenticationHeadFilter();
  44 + headFilter.setRsaVerifier(verifier);
  45 +
  46 + http.exceptionHandling().authenticationEntryPoint((request, response, authException) -> {
  47 + response.setContentType("application/json;charset=UTF-8");
  48 + response.getWriter().write(ResultCode.UNAUTHORIZED.getMessage());
  49 + })
  50 + .accessDeniedHandler((httpServletRequest, httpServletResponse, accessDeniedException) -> {
  51 + httpServletResponse.setContentType("application/json;charset=UTF-8");
  52 + httpServletResponse.getWriter().write(ResultCode.FORBIDDEN.getMessage());
  53 + })
  54 + .and()
  55 + .authorizeRequests()
  56 + .anyRequest().access("@accessConfirmService.hasPermission(request , authentication)")
  57 + .and()
  58 + //注册授权管理器(AuthenticationManager)
  59 + .authenticationProvider(provider)
  60 + .addFilterAfter(authenticationLoginFilter, UsernamePasswordAuthenticationFilter.class)
  61 + .addFilterAfter(headFilter, AuthenticationLoginFilter.class)
  62 + //禁用session
  63 + .sessionManagement().sessionCreationPolicy(SessionCreationPolicy.STATELESS)
  64 + .and()
  65 + .csrf().disable();
  66 + }
  67 +
  68 +
  69 + @Bean
  70 + public PasswordEncoder passwordEncoder() {
  71 + return new BCryptPasswordEncoder();
  72 + }
  73 +
  74 +}
... ...
src/main/java/com/objecteye/controller/AreaEquipmentController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/AreaEquipmentController.java
  1 +package com.objecteye.controller;
  2 +
  3 +
  4 +import com.objecteye.common.CommonResult;
  5 +import com.objecteye.entity.SyAreaEquipment;
  6 +import com.objecteye.service.AreaEquipmentService;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.web.bind.annotation.*;
  11 +
  12 +import java.util.HashMap;
  13 +import java.util.List;
  14 +import java.util.Map;
  15 +
  16 +/**
  17 + * controller
  18 + *
  19 + * @author Administrator
  20 + */
  21 +@RestController
  22 +@Api(tags = "AreaEquipmentController", description = "区域设备管理")
  23 +@RequestMapping("/areaEquipment")
  24 +@CrossOrigin
  25 +public class AreaEquipmentController {
  26 +
  27 + @Autowired
  28 + private AreaEquipmentService areaEquipmentService;
  29 +
  30 + /**
  31 + * 返回全部列表
  32 + *
  33 + * @return
  34 + */
  35 + @ApiOperation("区域设备树的展示==区域可操作")
  36 + @RequestMapping(value = "/findAll", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  37 + public CommonResult findAll() {
  38 + if (areaEquipmentService.findAll() == null) {
  39 + return CommonResult.success("", "无符合条件的数据");
  40 + }
  41 + return CommonResult.success(areaEquipmentService.findAll());
  42 + }
  43 +
  44 + /**
  45 + * 返回全部列表
  46 + *
  47 + * @return
  48 + */
  49 + @ApiOperation("区域设备树的展示==区域设备可操作")
  50 + @RequestMapping(value = "/findAllEquipAndArea", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  51 + public CommonResult findAllEquipAndArea() {
  52 + if (areaEquipmentService.findAllEquipAndArea() == null) {
  53 + return CommonResult.success("", "无符合条件的数据");
  54 + }
  55 + return CommonResult.success(areaEquipmentService.findAllEquipAndArea());
  56 + }
  57 +
  58 + /**
  59 + * 增加
  60 + *
  61 + * @param areaEquipment
  62 + * @return
  63 + */
  64 + @ApiOperation("添加区域")
  65 + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  66 + public CommonResult add(@RequestBody SyAreaEquipment areaEquipment) {
  67 + Integer parentId = areaEquipment.getParentId();
  68 + if (parentId == 1) {
  69 + int count = areaEquipmentService.add(areaEquipment);
  70 + if (count > 0) {
  71 + return CommonResult.success(count);
  72 + }
  73 + }
  74 + return CommonResult.failed("该区域下只能创建设备");
  75 + }
  76 +
  77 + /**
  78 + * 修改
  79 + *
  80 + * @param areaEquipment
  81 + * @return
  82 + */
  83 + @ApiOperation("修改区域名称")
  84 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  85 + public CommonResult update(@RequestBody SyAreaEquipment areaEquipment) {
  86 + int count = areaEquipmentService.update(areaEquipment);
  87 + if (count > 0) {
  88 + return CommonResult.success(count);
  89 + }
  90 + return CommonResult.failed("节点id无效");
  91 + }
  92 +
  93 + /**
  94 + * 获取实体
  95 + *
  96 + * @return
  97 + */
  98 + /*@ApiOperation("查找区域或者设备")
  99 + @RequestMapping(value = "/findOne",method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  100 + public CommonResult findOne(@RequestBody Map<String,Integer> map){
  101 + Integer id = map.get("id");
  102 + if(areaEquipmentService.findOne(id)==null){
  103 + return CommonResult.success("","节点无效");
  104 + }
  105 + return CommonResult.success(areaEquipmentService.findOne(id));
  106 + }*/
  107 +
  108 + /**
  109 + * 删除区域
  110 + *
  111 + * @param map
  112 + * @return
  113 + */
  114 + @ApiOperation("删除区域")
  115 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  116 + public CommonResult delete(@RequestBody Map<String, int[]> map) {
  117 + try {
  118 + int[] ids = map.get("ids");
  119 + areaEquipmentService.delete(ids);
  120 + return CommonResult.success("删除成功", "删除成功");
  121 + } catch (Exception e) {
  122 + e.printStackTrace();
  123 + return CommonResult.failed(e.getMessage());
  124 + }
  125 + }
  126 +
  127 + @ApiOperation("判断该区域下是否有设备")
  128 + @RequestMapping(value = "/isHaveChild", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  129 + public CommonResult isHaveChild(@RequestBody Map<String, Integer> map) {
  130 + int id = map.get("id");
  131 + List<Integer> ids = areaEquipmentService.findCaptureById(id);
  132 + if (ids == null || ids.size() == 0) {
  133 + return CommonResult.success(ids, "是否确认删除该区域?");
  134 + }
  135 + return CommonResult.success(ids, "该区域下存在设备,且可能存在正在执行的布控任务,请确认是否删除该区域?");
  136 + }
  137 +
  138 +
  139 + @ApiOperation("根据id查找该区域下所有设备")
  140 + @RequestMapping(value = "/findCaptureById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  141 + public CommonResult findCaptureById(@RequestBody Map<String, Integer> map) {
  142 + try {
  143 + Integer id = map.get("id");
  144 + List<HashMap<String, Object>> captureMsgById = areaEquipmentService.findCaptureMsgById(id);
  145 + if (captureMsgById == null) {
  146 + return CommonResult.success("", "该区域下无设备");
  147 + }
  148 + return CommonResult.success(captureMsgById);
  149 + } catch (Exception e) {
  150 + e.printStackTrace();
  151 + return CommonResult.failed();
  152 + }
  153 + }
  154 +
  155 +}
... ...
src/main/java/com/objecteye/controller/DataSourceController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/DataSourceController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.handle.PictureHandle;
  5 +import io.swagger.annotations.Api;
  6 +import io.swagger.annotations.ApiOperation;
  7 +import org.springframework.beans.factory.annotation.Autowired;
  8 +import org.springframework.beans.factory.annotation.Value;
  9 +import org.springframework.data.redis.core.RedisTemplate;
  10 +import org.springframework.web.bind.annotation.CrossOrigin;
  11 +import org.springframework.web.bind.annotation.RequestMapping;
  12 +import org.springframework.web.bind.annotation.RequestMethod;
  13 +import org.springframework.web.bind.annotation.RestController;
  14 +
  15 +import java.io.File;
  16 +
  17 +@RestController
  18 +@Api(tags = "DataSourceController", description = "数据源上传")
  19 +@RequestMapping("/upload")
  20 +@CrossOrigin
  21 +public class DataSourceController {
  22 +
  23 + @Autowired
  24 + private RedisTemplate redisTemplate;
  25 +
  26 + @Autowired
  27 + private PictureHandle pictureHandle;
  28 +
  29 + @Value("${picture.storePath}")
  30 + private String storePath;
  31 +
  32 + /**
  33 + * 上传图片绝对路径到队列中
  34 + *
  35 + * @param path
  36 + * @return
  37 + */
  38 + @ApiOperation("根据绝对路径上传数据")
  39 + @RequestMapping(value = "/findPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  40 + public CommonResult uploadPicByPath(String path) {
  41 +
  42 + File file = new File(path);
  43 + boolean directory = file.isDirectory();
  44 + boolean exists = file.exists();
  45 + if (directory && exists) {
  46 + File[] files = file.listFiles();
  47 + if (files != null && files.length > 0) {
  48 + int length = files.length;
  49 + for (int i = 0; i < length; i++) {
  50 + File file1 = files[i];
  51 + String name = file1.getName();
  52 + String newPath = storePath + name;
  53 + File file2 = new File(newPath);
  54 + file1.renameTo(file2);
  55 + redisTemplate.opsForList().leftPush("picPath", name);
  56 + pictureHandle.handlePic();
  57 + }
  58 + }
  59 + }
  60 + return CommonResult.success("{}");
  61 + }
  62 +}
... ...
src/main/java/com/objecteye/controller/DeployController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/DeployController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.alibaba.fastjson.JSONObject;
  4 +import com.objecteye.common.CommonResult;
  5 +import com.objecteye.entity.MonitorMainTableQueryInfo;
  6 +import com.objecteye.entity.PageResult;
  7 +import com.objecteye.entity.SyDeploy;
  8 +import com.objecteye.service.DeployService;
  9 +import io.swagger.annotations.Api;
  10 +import io.swagger.annotations.ApiOperation;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.web.bind.annotation.*;
  13 +
  14 +import java.util.ArrayList;
  15 +import java.util.List;
  16 +import java.util.Map;
  17 +
  18 +/**
  19 + * controller
  20 + *
  21 + * @author Administrator
  22 + */
  23 +@RestController
  24 +@Api(tags = "DeployController", description = "布控管理")
  25 +@RequestMapping("/deploy")
  26 +@CrossOrigin
  27 +public class DeployController {
  28 +
  29 + @Autowired
  30 + private DeployService deployService;
  31 +
  32 + /**
  33 + * 布控任务- 主列表查询
  34 + *
  35 + * @return
  36 + */
  37 + @ApiOperation("布控任务- 主列表查询")
  38 + @RequestMapping(value = "/monitorMainTableByPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  39 + public CommonResult monitorMainTableByPage(@RequestBody MonitorMainTableQueryInfo info) {
  40 + PageResult pageResult = deployService.monitorMainTableByPage(info);
  41 + if (pageResult.getRow() == null || pageResult.getRow().size() == 0) {
  42 + return CommonResult.success(201, "无符合条件的数据", new PageResult<>());
  43 + }
  44 + return CommonResult.success(pageResult);
  45 + }
  46 +
  47 + /**
  48 + * 返回全部列表
  49 + *
  50 + * @return
  51 + */
  52 + @ApiOperation("查看全部的布控任务")
  53 + @RequestMapping(value = "/findAll", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  54 + public CommonResult findAll() {
  55 + List<SyDeploy> all = deployService.findAll();
  56 + if (all == null) {
  57 + return CommonResult.success(201, "暂无布控任务", new ArrayList<>());
  58 + }
  59 + return CommonResult.success(all);
  60 + }
  61 +
  62 + /**
  63 + * 查看布控任务详细信息
  64 + *
  65 + * @return
  66 + */
  67 + @ApiOperation("查看布控任务详细信息")
  68 + @RequestMapping(value = "/findOne", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  69 + public CommonResult findOne(@RequestBody Map<String, Integer> param) {
  70 + SyDeploy syDeploy = deployService.findOne(param.get("id"));
  71 + if (syDeploy == null) {
  72 + return CommonResult.success(201, "没有找到对应任务", new ArrayList<>());
  73 + }
  74 + return CommonResult.success(syDeploy);
  75 + }
  76 +
  77 + /**
  78 + * 分页返回列表
  79 + *
  80 + * @return
  81 + */
  82 + @ApiOperation("分页查看全部的布控任务")
  83 + @RequestMapping(value = "/findPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  84 + public CommonResult findPage(@RequestParam Integer currentpage, @RequestParam Integer pagevolume, @RequestParam Integer deployType) {
  85 + SyDeploy syDeploy = new SyDeploy();
  86 + syDeploy.setDeployType(deployType);
  87 + PageResult page = deployService.findPage(syDeploy, currentpage, pagevolume);
  88 + if (page == null) {
  89 + return CommonResult.success(201, "无符合条件的数据", new PageResult<>());
  90 + }
  91 + return CommonResult.success(page);
  92 + }
  93 +
  94 + /**
  95 + * 分页查看全部的布控任务内容
  96 + *
  97 + * @param pagevolume 页面容量
  98 + * @param currentpage 页码
  99 + * @param deployId 任务id
  100 + * @return 结果集
  101 + */
  102 + @ApiOperation("分页查看全部的布控任务内容")
  103 + @RequestMapping(value = "/findMonitorTaskDetail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  104 + public CommonResult findMonitorTaskDetail(@RequestParam Integer currentpage, @RequestParam Integer pagevolume, @RequestParam Integer deployId) {
  105 + PageResult page = deployService.findMonitorTaskDetail(deployId, currentpage, pagevolume);
  106 + if (page.getRow().size() == 0) {
  107 + return CommonResult.success(201, "无符合条件的数据", new PageResult<>());
  108 + }
  109 + return CommonResult.success(page);
  110 + }
  111 +
  112 + /**
  113 + * 增加
  114 + *
  115 + * @param deploy
  116 + * @return
  117 + */
  118 + @ApiOperation("添加布控任务")
  119 + @RequestMapping(value = "/addDeployTask", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  120 + public CommonResult addDeployTask(@RequestBody SyDeploy deploy) {
  121 + try {
  122 + deployService.add(deploy);
  123 + return CommonResult.success("操作成功");
  124 + } catch (Exception e) {
  125 + e.printStackTrace();
  126 + return CommonResult.failed();
  127 + }
  128 + }
  129 +
  130 + /**
  131 + * 修改
  132 + *
  133 + * @param deploy
  134 + * @return
  135 + */
  136 + @ApiOperation("修改布控任务")
  137 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  138 + public CommonResult update(@RequestBody SyDeploy deploy) {
  139 + try {
  140 + deployService.update(deploy);
  141 + return CommonResult.success("操作成功");
  142 + } catch (Exception e) {
  143 + e.printStackTrace();
  144 + return CommonResult.failed();
  145 + }
  146 + }
  147 +
  148 + /**
  149 + * 批量删除
  150 + *
  151 + * @param map
  152 + * @return
  153 + */
  154 + @ApiOperation("删除布控任务")
  155 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  156 + public CommonResult delete(@RequestBody Map<String, int[]> map) {
  157 + try {
  158 + int[] ids = map.get("ids");
  159 + deployService.delete(ids);
  160 + return CommonResult.success("操作成功");
  161 + } catch (Exception e) {
  162 + e.printStackTrace();
  163 + return CommonResult.failed();
  164 + }
  165 + }
  166 +
  167 + /**
  168 + * 撤销- 布控任务撤销
  169 + *
  170 + * @param map 请求参数
  171 + * @return 操作状态
  172 + */
  173 + @ApiOperation("撤销- 布控任务撤销")
  174 + @RequestMapping(value = "/changeTaskStatus", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  175 + public CommonResult changeTaskStatus(@RequestBody Map<String, Integer> map) {
  176 + try {
  177 + Integer status = deployService.cancelOrReNewDeployTask(map.get("deployId"));
  178 + return CommonResult.success(status);
  179 + } catch (Exception e) {
  180 + e.printStackTrace();
  181 + return CommonResult.success(201, "布控时间已过期, 请更新布控时间后再操作", null);
  182 + }
  183 + }
  184 +
  185 + /**
  186 + * 撤销- 车牌布控
  187 + *
  188 + * @param map 请求参数
  189 + * @return 操作状态
  190 + */
  191 + @ApiOperation("撤销- 车牌布控")
  192 + @RequestMapping(value = "/changeStatusPlateNum", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  193 + public CommonResult changeStatusPlateNum(@RequestBody Map<String, String> map) {
  194 + try {
  195 + Integer status = deployService.cancelOrReNewTaskByPlate(Integer.parseInt(map.get("deployId")), map.get("plateNumber"));
  196 + return CommonResult.success(status);
  197 + } catch (Exception e) {
  198 + e.printStackTrace();
  199 + return CommonResult.failed();
  200 + }
  201 + }
  202 +
  203 + /**
  204 + * 撤销- 车辆布控
  205 + *
  206 + * @param map 请求参数
  207 + * @return 操作状态
  208 + */
  209 + @ApiOperation("撤销- 车辆布控")
  210 + @RequestMapping(value = "/changeStatusVehicle", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  211 + public CommonResult changeStatusVehicle(@RequestBody Map<String, String> map) {
  212 + try {
  213 + Integer status = deployService.cancelOrReNewTaskByVehicleId(Integer.parseInt(map.get("deployId")),
  214 + Integer.parseInt(map.get("featureId")), map.get("id"));
  215 + return CommonResult.success(status);
  216 + } catch (Exception e) {
  217 + e.printStackTrace();
  218 + return CommonResult.failed();
  219 + }
  220 + }
  221 +
  222 + /**
  223 + * 撤销- 人像布控
  224 + *
  225 + * @param map 请求参数
  226 + * @return 操作状态
  227 + */
  228 + @ApiOperation("撤销- 人像布控")
  229 + @RequestMapping(value = "/changeStatusPerson", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  230 + public CommonResult changeStatusPerson(@RequestBody Map<String, String> map) {
  231 + try {
  232 + Integer status = deployService.cancelOrReNewTaskByPersonId(Integer.parseInt(map.get("deployId")),
  233 + Integer.parseInt(map.get("featureId")), Integer.parseInt(map.get("id")));
  234 + return CommonResult.success(status);
  235 + } catch (Exception e) {
  236 + e.printStackTrace();
  237 + return CommonResult.failed();
  238 + }
  239 + }
  240 +
  241 + /**
  242 + * 获取底库的相关信息
  243 + *
  244 + * @param map 请求参数
  245 + * @return 操作状态
  246 + */
  247 + @ApiOperation("获取底库的相关信息")
  248 + @RequestMapping(value = "/getLibMsgById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  249 + public JSONObject getLibMsgById(@RequestBody Map<String, String> map) {
  250 + return deployService.getLibMsgById(map.get("id"));
  251 + }
  252 +}
... ...
src/main/java/com/objecteye/controller/EquipmentController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/EquipmentController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.PageResult;
  5 +import com.objecteye.entity.SyEquipment;
  6 +import com.objecteye.service.EquipmentService;
  7 +import com.objecteye.utils.GlobalUtil;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiOperation;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.data.redis.core.RedisTemplate;
  12 +import org.springframework.transaction.annotation.Transactional;
  13 +import org.springframework.web.bind.annotation.*;
  14 +
  15 +import java.util.ArrayList;
  16 +import java.util.List;
  17 +import java.util.Map;
  18 +
  19 +/**
  20 + * controller
  21 + *
  22 + * @author Administrator
  23 + */
  24 +@RestController
  25 +@RequestMapping("/equipment")
  26 +@Api(tags = "EquipmentController", description = "设备管理")
  27 +@CrossOrigin
  28 +public class EquipmentController {
  29 +
  30 + @Autowired
  31 + private EquipmentService equipmentService;
  32 + @Autowired
  33 + private RedisTemplate redisTemplate;
  34 +
  35 + /**
  36 + * 返回全部列表
  37 + *
  38 + * @return
  39 + */
  40 + @ApiOperation("分页返回全部设备")
  41 + @RequestMapping(value = "/findPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  42 + public CommonResult findPage(@RequestParam int currentpage, @RequestParam int pagevolume) { //@RequestBody PagePara pagePara
  43 + //PageResult page1 = equipmentService.findPage(pagePara.getPage(), pagePara.getLimit());
  44 + PageResult page1 = equipmentService.findPage(currentpage, pagevolume);
  45 + if (page1 != null) {
  46 + return CommonResult.success(page1);
  47 + }
  48 + return CommonResult.success("", "无可用设备");
  49 + }
  50 +
  51 + /**
  52 + * 增加
  53 + *
  54 + * @param equipment
  55 + * @return
  56 + */
  57 + @ApiOperation("添加设备")
  58 + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  59 + public CommonResult add(@RequestBody SyEquipment equipment) {
  60 + SyEquipment byIp = equipmentService.findByIp(equipment.getEquipmentIp());
  61 + SyEquipment byName = equipmentService.findByName(equipment.getEquipmentName());
  62 + SyEquipment byPort = equipmentService.findByPort(equipment.getEquipmentPort());
  63 + if ((byIp == null) & (byName == null) & (byPort == null)) {
  64 + int count = equipmentService.add(equipment);
  65 + if (count > 0) {
  66 + return CommonResult.success(count);
  67 + }
  68 + return CommonResult.failed();
  69 + }
  70 + return CommonResult.failed("设备名称、ip、端口不能重复");
  71 + }
  72 +
  73 + /**
  74 + * 修改
  75 + *
  76 + * @param equipment
  77 + * @return
  78 + */
  79 + @ApiOperation("更新设备")
  80 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  81 + public CommonResult update(@RequestBody SyEquipment equipment) {
  82 + int update = equipmentService.update(equipment);
  83 + if (update > 0) {
  84 + return CommonResult.success(update);
  85 + }
  86 + if (update == 0) {
  87 + return CommonResult.failed("设备名称不能重复");
  88 + }
  89 + return CommonResult.failed();
  90 + }
  91 +
  92 + /**
  93 + * 获取实体
  94 + *
  95 + * @return
  96 + */
  97 + @ApiOperation("根据id查找设备")
  98 + @RequestMapping(value = "/findOne", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  99 + public CommonResult findOne(@RequestBody Map<String, Integer> map) {
  100 + Integer id = map.get("id");
  101 + SyEquipment equipment = equipmentService.findOne(id);
  102 + if (equipment != null) {
  103 + return CommonResult.success(equipment);
  104 + }
  105 + return CommonResult.failed("设备id无效");
  106 + }
  107 +
  108 + /**
  109 + * 批量删除
  110 + *
  111 + * @return
  112 + */
  113 + @ApiOperation("删除设备")
  114 + @Transactional
  115 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  116 + public CommonResult delete(@RequestBody Map<String, int[]> map) {
  117 + try {
  118 + int[] ids = map.get("ids");
  119 + equipmentService.delete(ids);
  120 + return CommonResult.success("删除成功", "操作成功");
  121 + } catch (Exception e) {
  122 + e.printStackTrace();
  123 + return CommonResult.failed(e.getMessage());
  124 + }
  125 + }
  126 +
  127 + /**
  128 + * 设备开关
  129 + *
  130 + * @param map
  131 + * @return
  132 + */
  133 + @ApiOperation("设备开关")
  134 + @RequestMapping(value = "/updateStatusById", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  135 + public CommonResult updateStatusById(@RequestBody Map<String, Integer> map) {
  136 + Integer id = map.get("id");
  137 + int i = equipmentService.updateStatusById(id);
  138 + if (i == -1) {
  139 + return CommonResult.failed("设备id无效");
  140 + }
  141 + if (i != 0) {
  142 + return CommonResult.success("设备状态更新成功");
  143 + }
  144 + return CommonResult.failed();
  145 + }
  146 +
  147 + /**
  148 + * 设备开关
  149 + *
  150 + * @param map id区域id
  151 + * @return 设备是否可以删除
  152 + */
  153 + @ApiOperation("设备是否可以删除")
  154 + @RequestMapping(value = "/checkDelete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  155 + public CommonResult checkDelete(@RequestBody Map<String, Integer> map) {
  156 + Integer id = map.get("id");
  157 + boolean canDel = true;
  158 + List<String> msgList = new ArrayList<>();
  159 + if (redisTemplate.opsForHash().hasKey(GlobalUtil.IPWITHDEPLOYLIST, id)) {
  160 + canDel = false;
  161 + msgList.add("布控预警任务");
  162 + }
  163 + if (redisTemplate.opsForHash().hasKey(GlobalUtil.FORBIDDEN_TASK, id)) {
  164 + canDel = false;
  165 + msgList.add("禁行任务");
  166 + }
  167 + if (canDel) {
  168 + return CommonResult.success(200, "不存在设备占用情况", "");
  169 + } else {
  170 + return CommonResult.success(201, "存在" + String.join(",", msgList) + "占用设备", "");
  171 + }
  172 + }
  173 +}
... ...
src/main/java/com/objecteye/controller/FeatureController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/FeatureController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.PageResult;
  5 +import com.objecteye.entity.SyFeature;
  6 +import com.objecteye.service.DeployService;
  7 +import com.objecteye.service.FeatureService;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiOperation;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +
  13 +import java.util.List;
  14 +import java.util.Map;
  15 +
  16 +/**
  17 + * controller
  18 + *
  19 + * @author YU MIU
  20 + */
  21 +@RestController
  22 +@Api(tags = "FeatureController", description = "人像库管理")
  23 +@RequestMapping("/feature")
  24 +@CrossOrigin
  25 +public class FeatureController {
  26 +
  27 + @Autowired
  28 + private FeatureService featureService;
  29 + @Autowired
  30 + private DeployService deployService;
  31 +
  32 + /**
  33 + * 人像库下拉框
  34 + *
  35 + * @return
  36 + */
  37 + @ApiOperation("人像库下拉框")
  38 + @RequestMapping(value = "/findAllName", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  39 + public CommonResult findAllName() {
  40 + List<Map<String, String>> all = featureService.findAllName();
  41 + if (all != null) {
  42 + return CommonResult.success(all);
  43 + }
  44 + return CommonResult.success("", "人像库为空");
  45 + }
  46 +
  47 + /**
  48 + * 返回全部列表
  49 + *
  50 + * @return
  51 + */
  52 + @ApiOperation("分页返回全部人像库")
  53 + @RequestMapping(value = "/findPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  54 + public CommonResult findPage(@RequestParam int currentpage, @RequestParam int pagevolume) {
  55 + PageResult page = featureService.findPage(currentpage, pagevolume);
  56 + if (page != null) {
  57 + return CommonResult.success(page);
  58 + }
  59 + return CommonResult.success("", "无符合条件的数据");
  60 + }
  61 +
  62 + /**
  63 + * 增加
  64 + *
  65 + * @param feature
  66 + * @return
  67 + */
  68 + @ApiOperation("添加人像库")
  69 + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  70 + public CommonResult add(@RequestBody SyFeature feature) {
  71 +
  72 + int count = featureService.add(feature);
  73 + if (count > 0) {
  74 + return CommonResult.success(count);
  75 + }
  76 + return CommonResult.failed();
  77 + }
  78 +
  79 + /**
  80 + * @param feature
  81 + * @return
  82 + */
  83 + @ApiOperation("更新人像库")
  84 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  85 + public CommonResult update(@RequestBody SyFeature feature) {
  86 + int count = featureService.update(feature);
  87 + if (count > 0) {
  88 + return CommonResult.success(count);
  89 + }
  90 + return CommonResult.failed();
  91 + }
  92 +
  93 + /**
  94 + * 批量删除
  95 + *
  96 + * @param
  97 + * @return
  98 + */
  99 + @ApiOperation("删除人像库")
  100 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  101 + public CommonResult delete(@RequestBody Map<String, int[]> map) {
  102 + try {
  103 + int[] ids = map.get("ids");
  104 + featureService.delete(ids);
  105 + return CommonResult.success("操作成功");
  106 + } catch (RuntimeException e) {
  107 + e.printStackTrace();
  108 + return CommonResult.failed();
  109 + } catch (Exception e) {
  110 + return CommonResult.failed();
  111 + }
  112 + }
  113 +
  114 + /**
  115 + * 判断人像库是否被使用
  116 + *
  117 + * @param map 请求参数
  118 + * @return 操作状态
  119 + */
  120 + @ApiOperation("判断人像库是否被使用")
  121 + @RequestMapping(value = "/checkDelete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  122 + public CommonResult checkDelete(@RequestBody Map<String, Integer> map) {
  123 + List<Integer> deploys = deployService.getDeployListByLibAndDeployType(map.get("id"), 2);
  124 + if (deploys != null && deploys.size() > 0) {
  125 + return CommonResult.success(201, "存在布控任务使用该人像库", "");
  126 + } else {
  127 + return CommonResult.success(200, "不存在布控任务使用该人像库", "");
  128 + }
  129 + }
  130 +}
... ...
src/main/java/com/objecteye/controller/HumanVehicleAssociationController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/HumanVehicleAssociationController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.PageResult;
  5 +import com.objecteye.pojo.FaceInfoParam;
  6 +import com.objecteye.pojo.SearchPeopleOfHphmInfo;
  7 +import com.objecteye.pojo.SearchPeopleOfHphmRequest;
  8 +import com.objecteye.pojo.SearchPeopleOfhphmResult;
  9 +import com.objecteye.service.HumanVehicleAssociationService;
  10 +import io.swagger.annotations.Api;
  11 +import io.swagger.annotations.ApiOperation;
  12 +import org.springframework.beans.factory.annotation.Autowired;
  13 +import org.springframework.web.bind.annotation.*;
  14 +import org.springframework.web.multipart.MultipartFile;
  15 +
  16 +import java.util.List;
  17 +
  18 +/**
  19 + * 人车关联类
  20 + */
  21 +@RestController
  22 +@RequestMapping("/HumanVehicle")
  23 +@Api(tags = "HumanVehicleAssociationController", description = "人车关联类")
  24 +@CrossOrigin
  25 +public class HumanVehicleAssociationController {
  26 +
  27 + @Autowired
  28 + private HumanVehicleAssociationService humanVehicleAssociationService;
  29 +
  30 + @ApiOperation("以人搜车")
  31 + @RequestMapping(value = "/hvAssociation/searchVehicleFromHuman", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  32 + public CommonResult searchVehicleFromHuman(@RequestParam Long starttime, @RequestParam Long endtime, @RequestParam Float thresholds, @RequestParam int[] customspass, @RequestParam int currentpage, @RequestParam int pagevolume, MultipartFile picfile) {
  33 + try {
  34 + PageResult pageResult = humanVehicleAssociationService.searchVehicleFromHuman(starttime, endtime, thresholds, customspass, currentpage, pagevolume, picfile);
  35 + if (pageResult == null || pageResult.getRow().size() == 0) {
  36 + return CommonResult.success(201, "没有符合要求的数据", null);
  37 + }
  38 + return CommonResult.success(pageResult, "数据查询成功!!");
  39 + } catch (Exception e) {
  40 + e.printStackTrace();
  41 + return CommonResult.failed();
  42 + }
  43 +
  44 + }
  45 +
  46 + @ApiOperation("以车牌搜人")
  47 + @RequestMapping(value = "/hvAssociation/searchPeopleFromHphm", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  48 + public CommonResult searchPeopleFromHphm(@RequestBody SearchPeopleOfHphmRequest searchPeopleOfHphmRequest) {
  49 + try {
  50 + SearchPeopleOfhphmResult searchPeopleOfhphmResult = humanVehicleAssociationService.searchPeopleFromHphm(searchPeopleOfHphmRequest.getStarttime(), searchPeopleOfHphmRequest.getEndtime(), searchPeopleOfHphmRequest.getCustomspass(), searchPeopleOfHphmRequest.getCurrentpage(),
  51 + searchPeopleOfHphmRequest.getPagevolume(), searchPeopleOfHphmRequest.getHphm());
  52 + List<SearchPeopleOfHphmInfo> row = searchPeopleOfhphmResult.getRow();
  53 + if (row == null || row.size() == 0) {
  54 + return CommonResult.success(201, "没有符合要求的数据", searchPeopleOfhphmResult);
  55 + }
  56 + return CommonResult.success(searchPeopleOfhphmResult, "数据查询成功!!");
  57 + } catch (Exception e) {
  58 + e.printStackTrace();
  59 + return CommonResult.failed();
  60 + }
  61 + }
  62 +
  63 + @ApiOperation("以车辆图片搜人")
  64 + @RequestMapping(value = "/hvAssociation/searchPeopleFromVehiclePic", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  65 + public CommonResult searchPeopleFromVehiclePic(@RequestParam int number, @RequestParam double threshold, @RequestParam int currentpage,
  66 + @RequestParam int pagevolume, @RequestParam MultipartFile picfile) {
  67 + try {
  68 + List<FaceInfoParam> faceInfoParam = humanVehicleAssociationService.searchPeopleOfVehiclePic(number, threshold, currentpage, pagevolume, picfile);
  69 + if (faceInfoParam == null || faceInfoParam.size() == 0) {
  70 + return CommonResult.success(201, "没有符合要求的数据", faceInfoParam);
  71 + }
  72 + return CommonResult.success(faceInfoParam, "数据查询成功!!");
  73 + } catch (Exception e) {
  74 + e.printStackTrace();
  75 + return CommonResult.failed();
  76 + }
  77 + }
  78 +}
... ...
src/main/java/com/objecteye/controller/LocalTestController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/LocalTestController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.service.ILocalTestService;
  4 +import org.springframework.beans.factory.annotation.Autowired;
  5 +import org.springframework.web.bind.annotation.CrossOrigin;
  6 +import org.springframework.web.bind.annotation.RequestMapping;
  7 +import org.springframework.web.bind.annotation.RequestMethod;
  8 +import org.springframework.web.bind.annotation.RestController;
  9 +
  10 +@RestController
  11 +@RequestMapping("/localTest")
  12 +@CrossOrigin
  13 +public class LocalTestController {
  14 +
  15 + @Autowired
  16 + private ILocalTestService iLocalTestService;
  17 +
  18 + @RequestMapping(value = "/mongoToRedisVehicleFeature", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  19 + public void mongoToRedisVehicleFeature() {
  20 + iLocalTestService.mongoToRedisVehicleFeature();
  21 + }
  22 +}
... ...
src/main/java/com/objecteye/controller/LocusOrbitController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/LocusOrbitController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.LocusOrbitQueryParams;
  5 +import com.objecteye.entity.LocusOrbitResultParams;
  6 +import com.objecteye.entity.PageResult;
  7 +import com.objecteye.service.ILocusOrbitService;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiOperation;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +import org.springframework.web.multipart.MultipartFile;
  13 +
  14 +import java.util.ArrayList;
  15 +import java.util.List;
  16 +
  17 +/**
  18 + * 轨迹分析
  19 + *
  20 + * @author liuhaoyu
  21 + */
  22 +@RestController
  23 +@RequestMapping("locusOrbit")
  24 +@Api(tags = "LocusOrbitController", description = "轨迹分析")
  25 +@CrossOrigin
  26 +public class LocusOrbitController {
  27 +
  28 + @Autowired
  29 + private ILocusOrbitService locusOrbitService;
  30 +
  31 + /**
  32 + * 轨迹分析接口
  33 + *
  34 + * @param locusOrbitQueryParams 请求参数模型
  35 + * @return 结果集
  36 + */
  37 + @PostMapping("locusOrbitAnalysis")
  38 + @ResponseBody
  39 + @ApiOperation("轨迹分析接口")
  40 + public CommonResult locusOrbitByPlateNumber(@RequestBody LocusOrbitQueryParams locusOrbitQueryParams) {
  41 + List<LocusOrbitResultParams> resultList = locusOrbitService.locusOrbitByPlateNumber(locusOrbitQueryParams);
  42 + if (resultList.size() > 0) {
  43 + return CommonResult.success(resultList);
  44 + } else {
  45 + return CommonResult.success(201, "没有符合要求的值", new ArrayList<>());
  46 + }
  47 + }
  48 +
  49 + /**
  50 + * 轨迹分析页面列表
  51 + *
  52 + * @param startTime 开始时间
  53 + * @param endTime 结束时间
  54 + * @param plateNumber 车牌号
  55 + * @param currentpage 页码
  56 + * @param pagevolume 页面容量
  57 + * @return 结果集
  58 + */
  59 + @PostMapping("locusOrbitTableByPlateNumber")
  60 + @ResponseBody
  61 + @ApiOperation("轨迹分析页面列表")
  62 + public CommonResult locusOrbitTableByPlateNumber(@RequestParam Integer currentpage, @RequestParam Integer pagevolume,
  63 + @RequestParam Long startTime, @RequestParam Long endTime,
  64 + @RequestParam String plateNumber) {
  65 + LocusOrbitQueryParams queryParams = new LocusOrbitQueryParams();
  66 + queryParams.setPlateNumber(plateNumber);
  67 + queryParams.setStartTime(startTime);
  68 + queryParams.setEndTime(endTime);
  69 + PageResult pageResult = locusOrbitService.locusOrbitTableByPlateNumber(queryParams, currentpage, pagevolume);
  70 + if (pageResult.getRow().size() > 0) {
  71 + return CommonResult.success(pageResult);
  72 + } else {
  73 + return CommonResult.success(201, "没有符合要求的值", new PageResult<>());
  74 + }
  75 + }
  76 +
  77 + /**
  78 + * 轨迹分析接口(图片搜索)
  79 + *
  80 + * @param gcxh 车辆序号
  81 + * @param customsPass 地区id, 设备id, 自行判断是地区的还是设备的
  82 + * @param startTime 起始时间戳
  83 + * @param endTime 结束时间戳
  84 + * @param multipartFile 文件信息
  85 + * @return 结果集
  86 + */
  87 + @PostMapping("locusOrbitAnalysisByFile")
  88 + @ResponseBody
  89 + @ApiOperation("轨迹分析接口")
  90 + public CommonResult locusOrbitByPlateNumber(int gcxh, Integer customsPass, Long startTime, Long endTime, MultipartFile multipartFile) {
  91 + LocusOrbitQueryParams queryParams = new LocusOrbitQueryParams(customsPass, startTime, endTime, null);
  92 + List<LocusOrbitResultParams> resultList = locusOrbitService.locusOrbitByPlateNumber(gcxh, queryParams, multipartFile);
  93 + return resultList.size() > 0 ? CommonResult.success(resultList) : CommonResult.success(201, "没有符合要求的值", new ArrayList<>());
  94 + }
  95 +}
... ...
src/main/java/com/objecteye/controller/PersonnelController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/PersonnelController.java
  1 +
  2 +package com.objecteye.controller;
  3 +
  4 +import com.objecteye.common.CommonResult;
  5 +import com.objecteye.entity.PageResult;
  6 +import com.objecteye.entity.SyPersonnel;
  7 +import com.objecteye.service.PersonnelService;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiOperation;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +import org.springframework.web.multipart.MultipartFile;
  13 +
  14 +import java.util.Map;
  15 +
  16 +
  17 +/**
  18 + * controller
  19 + *
  20 + * @author Administrator
  21 + */
  22 +
  23 +@RestController
  24 +@RequestMapping("/personnel")
  25 +@Api(tags = "PersonnelController", description = "人像库人像管理")
  26 +@CrossOrigin
  27 +public class PersonnelController {
  28 +
  29 + @Autowired
  30 + private PersonnelService personnelService;
  31 +
  32 + /**
  33 + * 上传图片
  34 + *
  35 + * @param uploadFiles
  36 + * @param featureId
  37 + * @return
  38 + */
  39 + @ApiOperation("人像库上传多条数据")
  40 + @RequestMapping(value = "/uploadfiles", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  41 + public CommonResult uploadfiles(MultipartFile[] uploadFiles, @RequestParam(name = "featureId") int featureId) {
  42 +
  43 + String msg = personnelService.uploadFiles(uploadFiles, featureId);
  44 + if (uploadFiles != null && uploadFiles.length > 0) {
  45 + if (null != msg) {
  46 + return CommonResult.success("操作成功", msg);
  47 + } else {
  48 + return null;
  49 + }
  50 + }
  51 + return CommonResult.failed("上传文件不能为空");
  52 + }
  53 +
  54 +
  55 + /**
  56 + * 修改
  57 + *
  58 + * @param personnel
  59 + * @return
  60 + */
  61 +
  62 + @ApiOperation("更新单条人像信息")
  63 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  64 + public CommonResult update(@RequestBody SyPersonnel personnel) {
  65 + try {
  66 + personnelService.update(personnel);
  67 + return CommonResult.success("操作成功");
  68 + } catch (Exception e) {
  69 + e.printStackTrace();
  70 + return CommonResult.failed();
  71 + }
  72 + }
  73 +
  74 +
  75 + /**
  76 + * 获取实体
  77 + *
  78 + * @return
  79 + */
  80 + @ApiOperation("查找单条人像信息")
  81 + @RequestMapping(value = "/findOne", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  82 + public CommonResult findOne(@RequestBody Map<String, Integer> map) {
  83 + Integer id = map.get("id");
  84 + SyPersonnel one = personnelService.findOne(id);
  85 + if (one != null) {
  86 + return CommonResult.success(one);
  87 + }
  88 + return CommonResult.success("", "id无效");
  89 + }
  90 +
  91 + /**
  92 + * 批量删除
  93 + *
  94 + * @param map
  95 + * @return
  96 + */
  97 + @ApiOperation("批量删除")
  98 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  99 + public CommonResult delete(@RequestBody Map<String, int[]> map) {
  100 + try {
  101 + int[] ids = map.get("ids");
  102 + personnelService.delete(ids);
  103 + return CommonResult.success("操作成功");
  104 + } catch (Exception e) {
  105 + e.printStackTrace();
  106 + return CommonResult.failed();
  107 + }
  108 + }
  109 +
  110 +
  111 + /**
  112 + * 查询+分页
  113 + *
  114 + * @param
  115 + * @return
  116 + */
  117 + @ApiOperation("根据人像库、人像名、人像创建时间进行分页查询人像底库数据")
  118 + @RequestMapping(value = "/search", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  119 + public CommonResult search(@RequestParam int currentpage, @RequestParam int pagevolume, @RequestParam int fid, @RequestParam String name) {//@RequestBody PagePara<SyPersonnel> pagePara
  120 +
  121 + PageResult page = personnelService.findPage(fid, name, currentpage, pagevolume);
  122 + /*if (page != null) {
  123 + return CommonResult.success(page);
  124 + }
  125 + return CommonResult.success("", "无符合条件的数据");*/
  126 + if (page.gettotal() == 0) {
  127 + return CommonResult.failed("无符合条件的数据");
  128 + }
  129 + return CommonResult.success(page);
  130 +
  131 + }
  132 +
  133 +}
  134 +
... ...
src/main/java/com/objecteye/controller/PreviewController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/PreviewController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.SyAreaEquipment;
  5 +import com.objecteye.entity.SyEquipment;
  6 +import com.objecteye.service.AreaEquipmentService;
  7 +import com.objecteye.service.EquipmentService;
  8 +import com.objecteye.utils.PreviewUtils;
  9 +import io.swagger.annotations.Api;
  10 +import io.swagger.annotations.ApiOperation;
  11 +import org.springframework.beans.factory.annotation.Autowired;
  12 +import org.springframework.web.bind.annotation.*;
  13 +
  14 +import java.net.InetAddress;
  15 +import java.net.UnknownHostException;
  16 +import java.util.Map;
  17 +
  18 +@Api(tags = "PreviewController", description = "实时预览")
  19 +@RestController
  20 +@RequestMapping(value = "/preview")
  21 +@CrossOrigin
  22 +public class PreviewController {
  23 +
  24 +
  25 + @Autowired
  26 + private EquipmentService equipmentService;
  27 + @Autowired
  28 + private AreaEquipmentService areaEquipmentService;
  29 +
  30 +
  31 + @ApiOperation("实时预览:获取rtmp流")
  32 + @RequestMapping(value = "/getRtmpStream", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  33 + public CommonResult getRtmpStream(@RequestBody Map<String, Integer> map) {
  34 +
  35 + try {
  36 + /*String token = map.get("token");
  37 + String userNameFromToken = jwtTokenUtil.getUserNameFromToken(token);
  38 + System.out.println("username:"+userNameFromToken);*/
  39 + String address = InetAddress.getLocalHost().toString().split("/")[1];
  40 +
  41 + //获得区域信息
  42 + int deviceId = map.get("deviceId");
  43 + SyAreaEquipment areaEquipment = areaEquipmentService.findOne(deviceId);
  44 +
  45 + if (areaEquipment != null) {
  46 + Integer isEquipment = areaEquipment.getIsEquipment();
  47 +
  48 + //为设备,进行转流
  49 + if (isEquipment == 1) {
  50 + Integer typeId = areaEquipment.getTypeId();
  51 + SyEquipment equipment = equipmentService.findOne(typeId);
  52 +
  53 + if (equipment == null) {
  54 + throw new RuntimeException("设备无效");
  55 + }
  56 + //进行转流
  57 + String rtmp = PreviewUtils.RtspToRtmp(address, equipment.getRtspUrl(), typeId, equipment.getUsername(), equipment.getPassword(), equipment.getEquipmentIp(), equipment.getIntentPort());
  58 + if (rtmp != null) {
  59 + return CommonResult.success(rtmp);
  60 + }
  61 + return CommonResult.failed("转流失败");
  62 +
  63 + } else { //选择区域,则提示信息
  64 + return CommonResult.failed("请选择具体设备");
  65 + }
  66 + }
  67 + } catch (RuntimeException e) {
  68 + //e.printStackTrace();
  69 + return CommonResult.failed(e.getMessage());
  70 + } catch (InterruptedException e) {
  71 + e.printStackTrace();
  72 + } catch (UnknownHostException e) {
  73 + e.printStackTrace();
  74 + }
  75 + return CommonResult.failed("转流失败");
  76 + }
  77 +}
... ...
src/main/java/com/objecteye/controller/RoleController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/RoleController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.alibaba.fastjson.JSONObject;
  4 +import com.objecteye.service.RoleServices;
  5 +import org.springframework.beans.factory.annotation.Autowired;
  6 +import org.springframework.web.bind.annotation.CrossOrigin;
  7 +import org.springframework.web.bind.annotation.RequestMapping;
  8 +import org.springframework.web.bind.annotation.RequestParam;
  9 +import org.springframework.web.bind.annotation.RestController;
  10 +
  11 +@CrossOrigin
  12 +@RestController
  13 +@RequestMapping("/vehicle/role")
  14 +public class RoleController {
  15 +
  16 + @Autowired
  17 + public RoleServices roleServices;
  18 +
  19 + /**
  20 + * 角色列表分页展示
  21 + *
  22 + * @param currentpage
  23 + * @param pagevolume
  24 + * @return
  25 + */
  26 + @RequestMapping("/rolePage")
  27 + public JSONObject rolePage(@RequestParam int currentpage, @RequestParam int pagevolume) {
  28 + JSONObject rolePageInfo = roleServices.rolePage(currentpage, pagevolume);
  29 +
  30 + return rolePageInfo;
  31 + }
  32 +
  33 + /**
  34 + * 角色下拉列表展示
  35 + *
  36 + * @return
  37 + */
  38 + @RequestMapping("/roleDis")
  39 + public JSONObject roleDis() {
  40 + return roleServices.roleDis();
  41 + }
  42 +
  43 +}
... ...
src/main/java/com/objecteye/controller/SpecialtyVehicleController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/SpecialtyVehicleController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.alibaba.fastjson.JSONObject;
  4 +import com.objecteye.dao.MongoTemplates;
  5 +import com.objecteye.pojo.VehicleCondition;
  6 +import com.objecteye.service.SpecialtyServices;
  7 +import com.objecteye.utils.CustomAssert;
  8 +import com.objecteye.utils.CustomParamCollections;
  9 +import com.objecteye.utils.VehicleEngine;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +import org.springframework.web.multipart.MultipartFile;
  13 +
  14 +import java.util.Map;
  15 +
  16 +@CrossOrigin
  17 +@RestController
  18 +@RequestMapping("/vehicle")
  19 +public class SpecialtyVehicleController {
  20 + @Autowired
  21 + private MongoTemplates mongoTemplates;
  22 + @Autowired
  23 + private SpecialtyServices specialtyServices;
  24 + @Autowired
  25 + private VehicleEngine vehicleEngine;
  26 +
  27 + /**
  28 + * 通过车牌(支持模糊)、多条件查询车辆信息(平铺)
  29 + *
  30 + * @param vehicleCondition
  31 + * @return
  32 + */
  33 + @RequestMapping("/slagCar/findByCondition")
  34 + public JSONObject findByCondition(@RequestBody VehicleCondition vehicleCondition) {
  35 + //渣土车查询
  36 + JSONObject by = mongoTemplates.findBy(vehicleCondition, 2);
  37 + return by;
  38 + }
  39 +
  40 +
  41 + /**
  42 + * 通过图片返回各种车的坐标
  43 + *
  44 + * @param picfile
  45 + * @return
  46 + */
  47 + @RequestMapping("/slagCar/findCoordinateByPic")
  48 + public JSONObject siteByPic(@RequestParam("picfile") MultipartFile picfile, Integer vehicle_special_type_number) {
  49 + //渣土车坐标 vehicle_special_type_number
  50 + JSONObject coordinateByPic = specialtyServices.findCoordinateByPic(picfile, vehicle_special_type_number);
  51 + return coordinateByPic;
  52 +
  53 +
  54 + }
  55 +
  56 + /**
  57 + * 通过车辆特征码、时间、地点范围进行搜索
  58 + *
  59 + * @return
  60 + */
  61 + @RequestMapping("/slagCar/findByPic")
  62 + public JSONObject findByPic(@RequestParam int number, @RequestParam double threshold, @RequestParam int currentpage,
  63 + @RequestParam int pagevolume, MultipartFile picfile, @RequestParam Long starttime,
  64 + @RequestParam Long endtime, @RequestParam int[] customspass) throws InterruptedException {
  65 + return specialtyServices.findByPic(number, threshold, currentpage, pagevolume, picfile, starttime, endtime, customspass, 2);
  66 + }
  67 +
  68 + /**
  69 + * 通过id搜索相关车辆
  70 + *
  71 + * @return
  72 + */
  73 + @RequestMapping("/slagCar/findById")
  74 + public JSONObject findById(@RequestBody Map<String, String> map) {
  75 + JSONObject byPic = specialtyServices.findById(map.get("id"));
  76 + return byPic;
  77 + }
  78 +
  79 + /**
  80 + * 通过过车序号搜索相关车辆
  81 + *
  82 + * @return
  83 + */
  84 + @RequestMapping("/slagCar/findByGcxh")
  85 + public JSONObject findByGcxh(int gcxh, MultipartFile picfile) {
  86 + JSONObject coordinateByPic = specialtyServices.findByGcxh(gcxh, picfile);
  87 + return coordinateByPic;
  88 + /*
  89 + //老接口
  90 + JSONObject byPic = specialtyServices.findByGcxh1(gcxh, picfile);
  91 + return byPic;*/
  92 + }
  93 +
  94 +
  95 + /**
  96 + * 危化品车
  97 + * 通过车牌(支持模糊)、多条件查询车辆信息(平铺)
  98 + *
  99 + * @return
  100 + */
  101 + @RequestMapping("/chemistryCar/findByCondition")
  102 + public JSONObject chemistryFindByCondition(@RequestBody VehicleCondition vehicleCondition) {
  103 + //危化品车查询
  104 + JSONObject vehicleInfoRes = mongoTemplates.findBy(vehicleCondition, 1);
  105 + return vehicleInfoRes;
  106 + }
  107 +
  108 + /**
  109 + * 危化品车
  110 + * 通通过车辆特征码、时间、地点范围进行搜索
  111 + *
  112 + * @return
  113 + */
  114 + @RequestMapping("/chemistryCar/findByPic")
  115 + public JSONObject chemistryFindByPic(@RequestParam int number, @RequestParam Double threshold, @RequestParam int currentpage,
  116 + @RequestParam int pagevolume, MultipartFile picfile, @RequestParam Long starttime,
  117 + @RequestParam Long endtime, @RequestParam int[] customspass) throws InterruptedException {
  118 + return specialtyServices.findByPic(number, threshold, currentpage, pagevolume, picfile, starttime, endtime, customspass, 1);
  119 +
  120 + }
  121 +
  122 +
  123 + /**
  124 + * 测试
  125 + *
  126 + * @return
  127 + */
  128 + @RequestMapping("/chemistryCar/test")
  129 + public JSONObject test(Integer gcxh, @RequestParam("picfile") MultipartFile picfile) {
  130 +
  131 +
  132 + JSONObject coordinateByPic = specialtyServices.findByGcxh(gcxh, picfile);
  133 + return coordinateByPic;
  134 +
  135 + }
  136 +
  137 +
  138 + /**
  139 + * 测试
  140 + *
  141 + * @return
  142 + */
  143 + @RequestMapping("/getResult")
  144 + public Object getResult(@RequestBody Map<String, Object> body) {
  145 + //CustomAssert.checkHeader(header);
  146 + CustomAssert.checkField(body, CustomParamCollections.VEHICLE_SINGLE_PARAM);
  147 + CustomAssert.checkSimpleMapParam(body, CustomParamCollections.VEHICLE_SINGLE_PARAM);
  148 + Map<String, Object> colorAndBrand = specialtyServices.getColorAndBrand(body);
  149 +
  150 + return colorAndBrand;
  151 + }
  152 +}
... ...
src/main/java/com/objecteye/controller/UserController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/UserController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.alibaba.fastjson.JSONObject;
  4 +import com.objecteye.common.CommonResult;
  5 +import com.objecteye.entity.PageResult;
  6 +import com.objecteye.service.UserServices;
  7 +import com.objecteye.utils.GlobalUtil;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +import org.springframework.web.bind.annotation.*;
  10 +
  11 +import java.util.Map;
  12 +
  13 +@CrossOrigin
  14 +@RestController
  15 +@RequestMapping("/vehicle/user")
  16 +public class UserController {
  17 +
  18 + @Autowired
  19 + public UserServices userServices;
  20 +
  21 + @RequestMapping(value = "checkUser", method = RequestMethod.POST, produces = GlobalUtil.COMMON_HEADER_CONTENT_TYPE)
  22 + public CommonResult checkUser(@RequestBody Map<String, Object> requestMap) {
  23 + return jsonObjectResultHandle(userServices.checkUser(requestMap));
  24 + }
  25 +
  26 + /**
  27 + * 用户新增
  28 + *
  29 + * @return
  30 + */
  31 + @RequestMapping(value = "/addUser", method = RequestMethod.POST, produces = GlobalUtil.COMMON_HEADER_CONTENT_TYPE)
  32 + public CommonResult addUser(@RequestBody Map<String, Object> requestMap) {
  33 + return jsonObjectResultHandle(userServices.addUser(requestMap));
  34 + }
  35 +
  36 + /**
  37 + * 用户列表分页展示
  38 + *
  39 + * @return
  40 + */
  41 + @RequestMapping(value = "/userPage", method = RequestMethod.POST, produces = GlobalUtil.COMMON_HEADER_CONTENT_TYPE)
  42 + public CommonResult userPage(@RequestBody Map<String, Object> requestMap) {
  43 + PageResult pageResult = userServices.userPage(requestMap);
  44 + if (pageResult.getRow().size() == 0) {
  45 + return CommonResult.success(201, "未找到有效数据", null);
  46 + }
  47 + return CommonResult.success(pageResult);
  48 + }
  49 +
  50 + /**
  51 + * 用户更新数据
  52 + *
  53 + * @return
  54 + */
  55 + @RequestMapping("/updateUser")
  56 + public CommonResult updateUser(@RequestBody Map<String, Object> requestMap) {
  57 + return jsonObjectResultHandle(userServices.updateUser(requestMap));
  58 + }
  59 +
  60 + /**
  61 + * 用户移除
  62 + *
  63 + * @param requestMap 请求参数
  64 + * @return
  65 + */
  66 + @RequestMapping("/deleteUser")
  67 + public CommonResult deleteUser(@RequestBody Map<String, Object> requestMap) {
  68 + return jsonObjectResultHandle(userServices.deleteUser(requestMap));
  69 + }
  70 +
  71 + /**
  72 + * 根据用户id查询用户
  73 + *
  74 + * @param requestMap 请求参数
  75 + * @return
  76 + */
  77 + @RequestMapping("/findUserById")
  78 + public CommonResult findUserById(@RequestBody Map<String, Object> requestMap) {
  79 + return jsonObjectResultHandle(userServices.findUserById(requestMap));
  80 + }
  81 +
  82 + /**
  83 + * jsonObject通用处理
  84 + *
  85 + * @param resultObj 返回参数
  86 + * @return 结果集
  87 + */
  88 + private CommonResult jsonObjectResultHandle(JSONObject resultObj) {
  89 + if (resultObj.containsKey("error")) {
  90 + return CommonResult.success(201, resultObj.getString("error"), null);
  91 + }
  92 + return CommonResult.success(resultObj);
  93 + }
  94 +
  95 +}
... ...
src/main/java/com/objecteye/controller/VehicleController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/VehicleController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.PageResult;
  5 +import com.objecteye.entity.UploadVehicleDbResult;
  6 +import com.objecteye.service.VehicleService;
  7 +import io.swagger.annotations.Api;
  8 +import io.swagger.annotations.ApiOperation;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.web.bind.annotation.*;
  11 +import org.springframework.web.multipart.MultipartFile;
  12 +
  13 +import java.util.List;
  14 +import java.util.Map;
  15 +
  16 +@RestController
  17 +@RequestMapping("/vehicle")
  18 +@Api(tags = "VehicleController", description = "车辆库车辆管理")
  19 +@CrossOrigin
  20 +public class VehicleController {
  21 +
  22 + @Autowired
  23 + private VehicleService vehicleService;
  24 +
  25 +
  26 + @ApiOperation("车辆库上传多条数据")
  27 + @RequestMapping(value = "/uploadfiles", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  28 + public CommonResult uploadfiles(MultipartFile[] uploadFiles, int vehicleId) {
  29 + if (uploadFiles != null && uploadFiles.length > 0) {
  30 + String msg = vehicleService.uploadFiles(uploadFiles, vehicleId);
  31 + if (null != msg) {
  32 + return CommonResult.success("操作成功", msg);
  33 + } else {
  34 + return null;
  35 + }
  36 + }
  37 + return CommonResult.failed("上传文件不能为空");
  38 + }
  39 +
  40 +
  41 + @ApiOperation("根据车库、车辆名进行分页查询车辆底库数据")
  42 + @RequestMapping(value = "/findPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  43 + public CommonResult findPage(@RequestParam int vehicleId, @RequestParam String picName, @RequestParam int currentpage, @RequestParam int pagevolume) {
  44 +
  45 + PageResult page = vehicleService.findPage(vehicleId, picName, currentpage, pagevolume);
  46 + if (page.gettotal() == 0) {
  47 + return CommonResult.failed("车库无数据");
  48 + }
  49 + return CommonResult.success(page);
  50 + }
  51 +
  52 + /**
  53 + * 批量删除
  54 + *
  55 + * @param map
  56 + * @return
  57 + */
  58 + @ApiOperation("批量删除")
  59 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  60 + public CommonResult delete(@RequestBody Map<String, String[]> map) {
  61 + try {
  62 + String[] ids = map.get("ids");
  63 + //int vehicleId= (int) map.get("vehicleId");
  64 + vehicleService.delete(ids);
  65 + return CommonResult.success("操作成功");
  66 + } catch (Exception e) {
  67 + e.printStackTrace();
  68 + return CommonResult.failed();
  69 + }
  70 + }
  71 +
  72 + /**
  73 + * 修改车辆名
  74 + *
  75 + * @param uploadVehicleDbResult
  76 + * @return
  77 + */
  78 + @ApiOperation("修改车辆名")
  79 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  80 + public CommonResult update(@RequestBody UploadVehicleDbResult uploadVehicleDbResult) {
  81 + try {
  82 + vehicleService.update(uploadVehicleDbResult);
  83 + return CommonResult.success("操作成功");
  84 + } catch (Exception e) {
  85 + e.printStackTrace();
  86 + return CommonResult.failed();
  87 + }
  88 + }
  89 +
  90 + /**
  91 + * 根据车名检索
  92 + *
  93 + * @param uploadVehicleDbResult
  94 + * @return
  95 + */
  96 + @ApiOperation("根据车名检索")
  97 + @RequestMapping(value = "/findByPicName", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  98 + public CommonResult findByPicName(@RequestBody UploadVehicleDbResult uploadVehicleDbResult) {
  99 + try {
  100 + List<UploadVehicleDbResult> uploadVehicleResultList = vehicleService.findByPicName(uploadVehicleDbResult);
  101 + return CommonResult.success(uploadVehicleResultList);
  102 + } catch (Exception e) {
  103 + e.printStackTrace();
  104 + return CommonResult.failed();
  105 + }
  106 + }
  107 +}
... ...
src/main/java/com/objecteye/controller/VehicleCurrencyController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/VehicleCurrencyController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.alibaba.fastjson.JSONArray;
  4 +import com.alibaba.fastjson.JSONObject;
  5 +import com.objecteye.common.CommonResult;
  6 +import com.objecteye.pojo.NameValue;
  7 +import com.objecteye.pojo.PicVehicleDataResult;
  8 +import com.objecteye.pojo.VehicleCurrencyReques;
  9 +import com.objecteye.service.VehicleCurrencyService;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +import org.springframework.web.multipart.MultipartFile;
  13 +
  14 +import java.util.List;
  15 +import java.util.Map;
  16 +
  17 +@CrossOrigin
  18 +@RestController
  19 +@RequestMapping("/vehicle")
  20 +public class VehicleCurrencyController {
  21 +
  22 + @Autowired
  23 + private VehicleCurrencyService vehicleCurrencyService;
  24 +
  25 + /**
  26 + * 通过车牌(支持模糊)、多条件查询车辆信息(平铺)
  27 + *
  28 + * @param vehicleCurrencyReques
  29 + * @return
  30 + */
  31 + @RequestMapping("/car/findByCondition")
  32 + public CommonResult<JSONObject> findByCondition(@RequestBody VehicleCurrencyReques vehicleCurrencyReques) {
  33 + JSONObject byCondition = vehicleCurrencyService.findByCondition(vehicleCurrencyReques);
  34 + JSONArray row = byCondition.getJSONArray("row");
  35 + if (row != null && row.size() > 0 && byCondition.getInteger("total") > 0) {
  36 + return CommonResult.success(byCondition);
  37 + } else if (row == null || row.size() == 0) {
  38 + return CommonResult.success(201, "没有符合要求的数据", byCondition);
  39 + } else {
  40 + return CommonResult.success(byCondition, "数据异常");
  41 + }
  42 +
  43 + }
  44 +
  45 + /**
  46 + * 通过车辆图片以及其他条件查询车辆
  47 + *
  48 + * @param number
  49 + * @param threshold
  50 + * @param currentpage
  51 + * @param pagevolume
  52 + * @param picfile
  53 + * @param starttime
  54 + * @param endtime
  55 + * @param customspass
  56 + * @return
  57 + */
  58 + @RequestMapping("/car/findByPic")
  59 + public CommonResult<PicVehicleDataResult> findByPic(@RequestParam int number, @RequestParam double threshold,
  60 + @RequestParam int currentpage, @RequestParam int pagevolume,
  61 + MultipartFile picfile, @RequestParam Long starttime,
  62 + @RequestParam Long endtime, @RequestParam int[] customspass) throws InterruptedException {
  63 + return vehicleCurrencyService.findVehicleByPic(number, threshold, currentpage, pagevolume, picfile, starttime,
  64 + endtime, customspass);
  65 + }
  66 +
  67 + /**
  68 + * 返回所有车辆类型的首字母
  69 + * List<String> selectDisplayForInitials();
  70 + *
  71 + * @return
  72 + */
  73 + @RequestMapping("/vehicleBase/getVehicleModelId")
  74 + public CommonResult<List<String>> selectDisplayForInitials() {
  75 + CommonResult<List<String>> commonResult = vehicleCurrencyService.selectDisplayForInitials();
  76 + return commonResult;
  77 + }
  78 +
  79 +
  80 + /**
  81 + * 根据首字母返回符合要求的车辆品牌
  82 + * List<String> selectDisplayForBrand();
  83 + *
  84 + * @return
  85 + */
  86 + @RequestMapping("/vehicleBase/getVehicleModelInitials")
  87 + public CommonResult<List<String>> selectDisplayForBrand(@RequestBody Map<String, String> map) {
  88 + CommonResult<List<String>> commonResult = vehicleCurrencyService.selectDisplayForBrand(map.get("vehicleModelInitials"));
  89 + return commonResult;
  90 + }
  91 +
  92 +
  93 + /**
  94 + * 根据车辆品牌返回符合要求的车辆子品牌
  95 + * List<String> selectDisplayForSubbrand();
  96 + *
  97 + * @return
  98 + */
  99 + @RequestMapping("/vehicleBase/getVehicleModelSubbrandByBrand")
  100 + public CommonResult<List<String>> selectDisplayForSubbrand(@RequestBody Map<String, String> map) {
  101 + CommonResult<List<String>> commonResult = vehicleCurrencyService.selectDisplayForSubbrand(map.get("vehicleModelBrand"));
  102 + return commonResult;
  103 + }
  104 +
  105 + /**
  106 + * 根据车辆子品牌查询生产年限
  107 + * List<String> selectDisplayForBirthday();
  108 + *
  109 + * @return
  110 + */
  111 + @RequestMapping("/vehicleBase/getVehicleModelBirthdayBySubbrand")
  112 + public CommonResult<List<String>> selectDisplayForBirthday(@RequestBody Map<String, String> map) {
  113 + CommonResult<List<String>> commonResult = vehicleCurrencyService.selectDisplayForBirthday(map.get("vehicleModelSubbrand"));
  114 + return commonResult;
  115 + }
  116 +
  117 +
  118 + /**
  119 + * 返回所有车辆类型列表
  120 + *
  121 + * @return
  122 + */
  123 + @RequestMapping("/vehicleBase/getVehicleTypeList")
  124 + public CommonResult<List<String>> displayVehicleTypeList() {
  125 + CommonResult<List<String>> commonResult = vehicleCurrencyService.displayVehicleTypeList();
  126 + return commonResult;
  127 + }
  128 +
  129 + /**
  130 + * 返回所有车辆车身颜色列表
  131 + *
  132 + * @return
  133 + */
  134 + @RequestMapping("/vehicleBase/getVehicleColorList")
  135 + public CommonResult<List<NameValue>> displayVehicleColorList() {
  136 + CommonResult<List<NameValue>> commonResult = vehicleCurrencyService.displayVehicleColorList();
  137 + return commonResult;
  138 + }
  139 +
  140 + /**
  141 + * 返回所有车辆号牌类型列表
  142 + *
  143 + * @return
  144 + */
  145 + @RequestMapping("/vehicleBase/getVehiclePlateTypeList")
  146 + public CommonResult<List<NameValue>> displayVehiclePlateTypeList() {
  147 + CommonResult<List<NameValue>> commonResult = vehicleCurrencyService.displayVehiclePlateTypeList();
  148 + return commonResult;
  149 + }
  150 +
  151 + /**
  152 + * 返回所有车辆年检标个数列表
  153 + *
  154 + * @return
  155 + */
  156 + @RequestMapping("/vehicleBase/getVehicleNjbNumberList")
  157 + public CommonResult<List<String>> displayVehicleNjbNumberList() {
  158 + CommonResult<List<String>> commonResult = vehicleCurrencyService.displayVehicleNjbNumberList();
  159 + return commonResult;
  160 + }
  161 +}
... ...
src/main/java/com/objecteye/controller/VehicleDbController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/VehicleDbController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.PageResult;
  5 +import com.objecteye.entity.SyVehicleDb;
  6 +import com.objecteye.service.DeployService;
  7 +import com.objecteye.service.VehicleDbService;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiOperation;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +
  13 +import java.util.List;
  14 +import java.util.Map;
  15 +
  16 +
  17 +/**
  18 + * controller
  19 + *
  20 + * @author Administrator
  21 + */
  22 +@RestController
  23 +@Api(tags = "VehicleDbController", description = "车辆库管理")
  24 +@RequestMapping("/vehicleDb")
  25 +@CrossOrigin
  26 +public class VehicleDbController {
  27 +
  28 + @Autowired
  29 + private VehicleDbService vehicleDbService;
  30 + @Autowired
  31 + private DeployService deployService;
  32 +
  33 + /**
  34 + * 返回全部列表
  35 + *
  36 + * @return
  37 + */
  38 + @ApiOperation("分页返回全部车库")
  39 + @RequestMapping(value = "/findPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  40 + public CommonResult findPage(@RequestParam int currentpage, @RequestParam int pagevolume) {
  41 + PageResult page = vehicleDbService.findPage(currentpage, pagevolume);
  42 + if (page.gettotal() == 0) {
  43 + return CommonResult.failed("无符合条件的数据");
  44 + }
  45 + return CommonResult.success(page);
  46 + }
  47 +
  48 + /**
  49 + * 增加
  50 + *
  51 + * @param vehicel
  52 + * @return
  53 + */
  54 + @ApiOperation("添加车库")
  55 + @RequestMapping(value = "/add", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  56 + public CommonResult add(@RequestBody SyVehicleDb vehicel) {
  57 +
  58 + int count = vehicleDbService.add(vehicel);
  59 + if (count > 0) {
  60 + return CommonResult.success(count);
  61 + }
  62 + return CommonResult.failed();
  63 + }
  64 +
  65 + /**
  66 + * @param feature
  67 + * @return
  68 + */
  69 + @ApiOperation("更新车库")
  70 + @RequestMapping(value = "/update", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  71 + public CommonResult update(@RequestBody SyVehicleDb feature) {
  72 +
  73 + int count = vehicleDbService.update(feature);
  74 + if (count > 0) {
  75 + return CommonResult.success(count);
  76 + }
  77 + return CommonResult.failed();
  78 + }
  79 +
  80 + /**
  81 + * 获取实体
  82 + *
  83 + * @param
  84 + * @return
  85 + */
  86 + @ApiOperation("查找车库")
  87 + @RequestMapping(value = "/findOne", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  88 + public CommonResult findOne(@RequestBody Map<String, Integer> map) {
  89 + Integer id = map.get("id");
  90 + SyVehicleDb feature = vehicleDbService.findOne(id);
  91 + if (feature != null) {
  92 + return CommonResult.success(feature);
  93 + }
  94 + return CommonResult.success("", "id无效");
  95 + }
  96 +
  97 + /**
  98 + * 批量删除
  99 + *
  100 + * @param
  101 + * @return
  102 + */
  103 + @ApiOperation("删除车库")
  104 + @RequestMapping(value = "/delete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  105 + public CommonResult delete(@RequestBody Map<String, int[]> map) {
  106 + try {
  107 + int[] ids = map.get("ids");
  108 + vehicleDbService.delete(ids);
  109 + return CommonResult.success("");
  110 + } catch (Exception e) {
  111 + e.printStackTrace();
  112 + return CommonResult.failed(e.getMessage());
  113 + }
  114 + }
  115 +
  116 + /**
  117 + * 判断车辆库是否被使用
  118 + *
  119 + * @param map 请求参数
  120 + * @return 操作状态
  121 + */
  122 + @ApiOperation("判断车辆库是否被使用")
  123 + @RequestMapping(value = "/checkDelete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  124 + public CommonResult checkDeleteByLibIdDeployType(@RequestBody Map<String, Integer> map) {
  125 + List<Integer> deploys = deployService.getDeployListByLibAndDeployType(map.get("id"), 1);
  126 + if (deploys != null && deploys.size() > 0) {
  127 + return CommonResult.success(201, "存在布控任务使用该车辆库", "");
  128 + } else {
  129 + return CommonResult.success(200, "不存在布控任务使用该车辆库", "");
  130 + }
  131 + }
  132 +
  133 + /**
  134 + * 人像库下拉框
  135 + *
  136 + * @return
  137 + */
  138 + @ApiOperation("车库下拉框")
  139 + @RequestMapping(value = "/findAllName", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  140 + public CommonResult findAllName() {
  141 + List<Map<String, String>> all = vehicleDbService.findAllName();
  142 + if (all != null) {
  143 + return CommonResult.success(all);
  144 + }
  145 + return CommonResult.success("", "车库为空");
  146 + }
  147 +
  148 +}
... ...
src/main/java/com/objecteye/controller/VehicleFileController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/VehicleFileController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.*;
  5 +import com.objecteye.service.IVehicleFileService;
  6 +import io.swagger.annotations.Api;
  7 +import io.swagger.annotations.ApiOperation;
  8 +import org.springframework.beans.factory.annotation.Autowired;
  9 +import org.springframework.web.bind.annotation.*;
  10 +import org.springframework.web.multipart.MultipartFile;
  11 +
  12 +import java.util.ArrayList;
  13 +import java.util.List;
  14 +
  15 +/**
  16 + * 一车一档 controller
  17 + */
  18 +@RestController
  19 +@Api(tags = "VehicleFileController", description = "一车一档")
  20 +@RequestMapping("/vehicleFiles")
  21 +@CrossOrigin
  22 +public class VehicleFileController {
  23 + @Autowired
  24 + private IVehicleFileService iVehicleFileService;
  25 +
  26 + @ApiOperation("档案浏览查询(分页)")
  27 + @RequestMapping(value = "fileQueryByPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  28 + public CommonResult fileQueryByPage(@RequestBody VehicleFileParam vehicleFileParam) {
  29 + PageResult pageResult = iVehicleFileService.fileQueryByPage(vehicleFileParam);
  30 + return pageResult.getRow().size() > 0 ? CommonResult.success(pageResult) : CommonResult.success(201, "没有符合要求的值", new PageResult<>());
  31 + }
  32 +
  33 + @ApiOperation("档案浏览查询(不分页)")
  34 + @RequestMapping(value = "fileQuery", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  35 + public CommonResult fileQuery(@RequestBody VehicleFileParam vehicleFileParam) {
  36 + List<VvehicleFileQueryResult> resultList = iVehicleFileService.fileQuery(vehicleFileParam);
  37 + return resultList.size() > 0 ? CommonResult.success(resultList) : CommonResult.success(201, "没有符合要求的值", new ArrayList<>());
  38 + }
  39 +
  40 + @ApiOperation("车牌搜档(分页)")
  41 + @RequestMapping(value = "plateNumberQueryByPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  42 + public CommonResult plateNumberQueryByPage(@RequestBody VehicleFilePlateNumParam vehicleFilePlateNumParam) {
  43 + PageResult pageResult = iVehicleFileService.plateNumberQueryByPage(vehicleFilePlateNumParam);
  44 + return pageResult.getRow().size() > 0 ? CommonResult.success(pageResult) : CommonResult.success(201, "没有符合要求的值", new PageResult<>());
  45 + }
  46 +
  47 + @ApiOperation("车牌搜档(不分页)")
  48 + @RequestMapping(value = "plateNumberQuery", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  49 + public CommonResult plateNumberQuery(@RequestBody VehicleFilePlateNumParam vehicleFilePlateNumParam) {
  50 + List<VvehicleFilePlateNumberQueryResult> resultList = iVehicleFileService.plateNumberQuery(vehicleFilePlateNumParam);
  51 + return resultList.size() > 0 ? CommonResult.success(resultList) : CommonResult.success(201, "没有符合要求的值", new ArrayList<>());
  52 + }
  53 +
  54 + @ApiOperation("以图搜档")
  55 + @RequestMapping(value = "picQuery", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  56 + public CommonResult picQuery(int gcxh, MultipartFile multipartFile) {
  57 + VvehicleFilePicQueryResult picQueryResult = iVehicleFileService.picQuery(gcxh, multipartFile);
  58 + return null == picQueryResult ? CommonResult.success(201, "没有符合要求的值", new VvehicleFilePicQueryResult()) : CommonResult.success(picQueryResult);
  59 + }
  60 +
  61 + @ApiOperation("司机信息")
  62 + @RequestMapping(value = "driverFiles", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  63 + public CommonResult driverFiles(@RequestBody VehicleFilePlateNumParam vehicleFilePlateNumParam) {
  64 + PageResult pageResult = iVehicleFileService.driverFiles(vehicleFilePlateNumParam);
  65 + return pageResult.getRow().size() > 0 ? CommonResult.success(pageResult) : CommonResult.success(201, "驾驶人信息努力获取中", new PageResult<>());
  66 + }
  67 +}
... ...
src/main/java/com/objecteye/controller/VehicleViolationsController.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/controller/VehicleViolationsController.java
  1 +package com.objecteye.controller;
  2 +
  3 +import com.objecteye.common.CommonResult;
  4 +import com.objecteye.entity.PageResult;
  5 +import com.objecteye.entity.SyVehicleForbidenTask;
  6 +import com.objecteye.entity.VehicleViolationsForbidenTaskQueryParams;
  7 +import com.objecteye.service.IVehicleViolationsService;
  8 +import io.swagger.annotations.Api;
  9 +import io.swagger.annotations.ApiOperation;
  10 +import org.springframework.beans.factory.annotation.Autowired;
  11 +import org.springframework.web.bind.annotation.*;
  12 +
  13 +import java.util.Map;
  14 +
  15 +@CrossOrigin
  16 +@RestController
  17 +@RequestMapping("vehicleViolation")
  18 +@Api(value = "/vehicleViolation", description = "车辆违规接口")
  19 +public class VehicleViolationsController {
  20 +
  21 + @Autowired
  22 + private IVehicleViolationsService vehicleViolationsService;
  23 +
  24 + /**
  25 + * 禁行任务查询接口
  26 + *
  27 + * @param pagevolume 页面容量
  28 + * @param currentpage 页码
  29 + * @param name 名称(非必填)
  30 + * @return 结果集
  31 + */
  32 + @ApiOperation("禁行任务查询接口")
  33 + @RequestMapping(value = "forbiddenTaskQueryByPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  34 + public CommonResult forbiddenTaskQueryByPage(@RequestParam("pagevolume") int pagevolume,
  35 + @RequestParam("currentpage") int currentpage,
  36 + @RequestParam(value = "name", required = false) String name) {
  37 + PageResult pageResult = vehicleViolationsService.forbiddenTaskQueryByPage(currentpage, pagevolume, name);
  38 + return pageResult.getRow().size() > 0 ? CommonResult.success(pageResult) : CommonResult.success(201, "没有符合要求的值", new PageResult<>());
  39 + }
  40 +
  41 + /**
  42 + * 禁行任务查询明细
  43 + *
  44 + * @param params 请求参数
  45 + * @return 结果集
  46 + */
  47 + @ApiOperation("禁行任务查询明细")
  48 + @RequestMapping(value = "forbiddenTaskDetail", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  49 + public CommonResult forbiddenTaskDetail(@RequestBody Map<String, String> params) {
  50 + SyVehicleForbidenTask forbiddenTask = vehicleViolationsService.forbiddenTaskDetail(params.get("id"));
  51 + return null != forbiddenTask ? CommonResult.success(forbiddenTask) : CommonResult.success(201, "未找到对应数据", null);
  52 + }
  53 +
  54 + /**
  55 + * 禁行任务维护- 新增接口
  56 + *
  57 + * @param queryParams 请求参数
  58 + * @return 结果集
  59 + */
  60 + @ApiOperation("禁行任务维护- 新增接口")
  61 + @RequestMapping(value = "forbiddenTaskAdd", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  62 + public CommonResult forbiddenTaskAdd(@RequestBody SyVehicleForbidenTask queryParams) {
  63 + int resultStatus = vehicleViolationsService.forbiddenTaskAdd(queryParams);
  64 + return resultStatus > 0 ? CommonResult.success("success") : CommonResult.success(201, "操作失败", 0);
  65 + }
  66 +
  67 + /**
  68 + * 禁行任务维护- 修改接口
  69 + *
  70 + * @param queryParams 请求参数
  71 + * @return 结果集
  72 + */
  73 + @ApiOperation("禁行任务维护- 修改接口")
  74 + @RequestMapping(value = "forbiddenTaskUpdate", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  75 + public CommonResult forbiddenTaskUpdate(@RequestBody SyVehicleForbidenTask queryParams) {
  76 + int resultStatus = vehicleViolationsService.forbiddenTaskUpdate(queryParams);
  77 + return resultStatus > 0 ? CommonResult.success("success") : CommonResult.success(201, "操作失败", 0);
  78 + }
  79 +
  80 + /**
  81 + * 禁行任务维护- 删除接口
  82 + *
  83 + * @param queryParams 请求参数
  84 + * @return 结果集
  85 + */
  86 + @ApiOperation("禁行任务维护- 删除接口")
  87 + @RequestMapping(value = "forbiddenTaskDelete", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  88 + public CommonResult forbiddenTaskDelete(@RequestBody Map<String, String[]> queryParams) {
  89 + String[] ids = queryParams.get("ids");
  90 + int resultStatus = vehicleViolationsService.forbiddenTaskDelete(ids);
  91 + return resultStatus > 0 ? CommonResult.success("success") : CommonResult.success(201, "操作失败", 0);
  92 + }
  93 +
  94 + /**
  95 + * 车辆违规查询- 涉牌违规 违规驾驶
  96 + *
  97 + * @param queryParams 请求参数
  98 + * @return 结果集
  99 + */
  100 + @ApiOperation("车辆违规查询- 涉牌违规 违规驾驶")
  101 + @RequestMapping(value = "vehicleViolationQueryByPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  102 + public CommonResult vehicleViolationQueryByPage(@RequestBody VehicleViolationsForbidenTaskQueryParams queryParams) {
  103 + PageResult pageResult = vehicleViolationsService.vehicleViolationQueryByPage(queryParams, false);
  104 + return pageResult.getRow().size() > 0 ? CommonResult.success(pageResult) : CommonResult.success(201, "没有符合要求的值", 0);
  105 + }
  106 +
  107 + /**
  108 + * 车辆违规查询- 车辆禁行
  109 + *
  110 + * @param queryParams 请求参数
  111 + * @return 结果集
  112 + */
  113 + @ApiOperation("车辆违规查询- 车辆禁行")
  114 + @RequestMapping(value = "vehicleViolationTaskQueryByPage", method = RequestMethod.POST, produces = {"application/json;charset=UTF-8"})
  115 + public CommonResult vehicleViolationTaskQueryByPage(@RequestBody VehicleViolationsForbidenTaskQueryParams queryParams) {
  116 + PageResult pageResult = vehicleViolationsService.vehicleViolationQueryByPage(queryParams, true);
  117 + return pageResult.getRow().size() > 0 ? CommonResult.success(pageResult) : CommonResult.success(201, "没有符合要求的值", 0);
  118 + }
  119 +
  120 +
  121 +}
... ...
src/main/java/com/objecteye/dao/MongoTemplates.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/dao/MongoTemplates.java
  1 +package com.objecteye.dao;
  2 +
  3 +import com.alibaba.fastjson.JSONArray;
  4 +import com.alibaba.fastjson.JSONObject;
  5 +import com.objecteye.pojo.FaceInfoParam;
  6 +import com.objecteye.pojo.RabbitMQVehicle;
  7 +import com.objecteye.pojo.VehicleCondition;
  8 +import com.objecteye.service.AreaEquipmentService;
  9 +import org.springframework.beans.factory.annotation.Autowired;
  10 +import org.springframework.data.domain.Sort;
  11 +import org.springframework.data.mongodb.core.MongoTemplate;
  12 +import org.springframework.data.mongodb.core.query.Criteria;
  13 +import org.springframework.data.mongodb.core.query.Query;
  14 +import org.springframework.stereotype.Component;
  15 +
  16 +import java.text.SimpleDateFormat;
  17 +import java.util.Date;
  18 +import java.util.HashSet;
  19 +import java.util.List;
  20 +import java.util.Set;
  21 +import java.util.regex.Pattern;
  22 +
  23 +@Component
  24 +public class MongoTemplates {
  25 + @Autowired
  26 + private MongoTemplate mongoTemplate;
  27 + @Autowired
  28 + private AreaEquipmentService areaEquipmentService;
  29 +
  30 + //mongodb插入车辆数据
  31 + public RabbitMQVehicle insertData(RabbitMQVehicle rabbitMQVehicle) {
  32 + return mongoTemplate.insert(rabbitMQVehicle);
  33 +
  34 + }
  35 +
  36 + //mongodb插入司机数据
  37 + public void insertData(FaceInfoParam faceInfoParam) {
  38 + FaceInfoParam save = mongoTemplate.insert(faceInfoParam);
  39 + System.out.println(save.getId());
  40 + }
  41 +
  42 + //mongodb查询根据id
  43 + public <T> T findById(Class<T> entityClass, String id) {
  44 + return mongoTemplate.findById(id, entityClass);
  45 + }
  46 +
  47 + //mongodb查询所有的数据信息
  48 + public <T> List<T> findAll(Class<T> entityClass) {
  49 + return mongoTemplate.findAll(entityClass);
  50 + }
  51 +
  52 + //mongodb查询根据多条件
  53 + public JSONObject findBy(VehicleCondition vehicleCondition, Integer vehicle_special_type_number) {
  54 + JSONObject jsonObject = new JSONObject();
  55 +
  56 + List<JSONObject> vehicleTable = null;
  57 + try {
  58 + Query query = new Query();
  59 + //必须条件
  60 + Criteria c = new Criteria();
  61 + //范围条件
  62 + //模糊查询号牌
  63 + int currentpage = vehicleCondition.getCurrentpage();
  64 + int pagevolume = vehicleCondition.getPagevolume();
  65 + String hphm = vehicleCondition.getHphm();
  66 + Long starttime = vehicleCondition.getStarttime();
  67 + Long endtime = vehicleCondition.getEndtime();
  68 + int[] condition = vehicleCondition.getCondition();
  69 + int[] customspass = vehicleCondition.getCustomspass();
  70 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
  71 +
  72 + //特殊品类检索
  73 + if (vehicle_special_type_number != null) {
  74 + c.and("vehicle_special_type").is(vehicle_special_type_number);
  75 + }
  76 +
  77 + //模糊号牌检索
  78 + if (hphm != null && hphm.length() > 0) {
  79 + hphm = hphm.replaceAll("\\?", ".?").replaceAll("\\*", ".*");
  80 + Pattern pattern = Pattern.compile("^.*" + hphm + ".*$", Pattern.CASE_INSENSITIVE);
  81 + c.and("vehicle_plate_hphm").regex(pattern);
  82 + }
  83 +
  84 + //时间段范围内
  85 + if (starttime != 0l && endtime != 0l) {
  86 + c.and("pictime").gte(starttime).lte(endtime);
  87 + }
  88 +
  89 + /*无号牌(nullhphm):1 污损号牌(stained):2 主驾驶安全带(driverbelt):3 副驾驶安全带(copilotbelt):4
  90 + 主驾驶打电话(drivercall):5 主驾驶吸烟(driversmoke):6 是否苫盖(cover):7*/
  91 + //条件查询
  92 + if (condition != null && condition.length > 0) {
  93 + for (int i : condition) {
  94 + switch (i) {
  95 + case 1:
  96 + //无号牌
  97 + c.and("vehicle_plate_numScore").is(0);
  98 + break;
  99 + case 2:
  100 + //污损号牌(stained)
  101 + c.and("vehicleplatedetectscore").is(-1); //当识别度为负数时认为是污损号牌
  102 + //因目前sdk不支持污损号牌检测,所以此处略
  103 + break;
  104 + case 3:
  105 + //主驾驶未系安全带(driverbelt):
  106 + c.and("vehicle_illegal_driver_person_status").is(1004);
  107 + c.and("vehicle_illegal_driver_belt_status").is(1000);
  108 + break;
  109 + case 4:
  110 + //副驾驶未系安全带(copilotbelt):4
  111 + c.and("vehicle_illegal_copilot_person_status").is(1004);
  112 + c.and("vehicle_illegal_copilot_belt_status").is(1000);
  113 + break;
  114 + case 5:
  115 + //主驾驶打电话(drivercall):
  116 + c.and("vehicle_illegal_driver_person_status").is(1004);
  117 + c.and("vehicle_illegal_driver_phone_status").is(1000);
  118 + break;
  119 + case 6:
  120 + //主驾驶吸烟(driversmoke):
  121 + c.and("vehicle_illegal_driver_person_status").is(1004);
  122 + c.and("vehicle_illegal_driver_smoke_status").is(1000);
  123 + break;
  124 + case 7:
  125 + //是否苫盖(cover):
  126 + //因目前sdk不支持苫盖,所以此处略
  127 + c.and("vehicleplatedetectscore").is(-1); //因为检测分数永远都不可能为负数
  128 + break;
  129 + }
  130 +
  131 + }
  132 + }
  133 +
  134 +
  135 + //卡口范围
  136 + if (customspass != null && customspass.length > 0) {
  137 + Set<Integer> alleqids = new HashSet<>();
  138 + for (int i = 0; i < customspass.length; i++) {
  139 + List<Integer> epids = areaEquipmentService.findCaptureById(customspass[i]);
  140 + System.out.println("设备:" + epids);
  141 + for (int j = 0; j < epids.size(); j++) {
  142 + alleqids.add(epids.get(j));
  143 + }
  144 + }
  145 +
  146 + //获取当前设备id
  147 + c.and("deviceid").in(alleqids);
  148 + }
  149 +
  150 + query.addCriteria(c);
  151 + long totalNumber = mongoTemplate.count(query, JSONObject.class, "rabbitMQVehicle");
  152 +
  153 + //按时间进行排序
  154 + query.with(new Sort(Sort.Direction.DESC, "pictime"));
  155 +
  156 +// 分页
  157 + query.skip((currentpage - 1) * pagevolume).limit(pagevolume);
  158 +
  159 + vehicleTable = mongoTemplate.find(query, JSONObject.class, "rabbitMQVehicle");
  160 +
  161 + JSONObject data = new JSONObject();
  162 + JSONArray array = new JSONArray();
  163 + int size = vehicleTable.size();
  164 + for (int i = 0; i < size; i++) {
  165 + JSONObject json = vehicleTable.get(i);
  166 + String id = json.containsKey("_id") ? json.getString("_id") : null;
  167 + String hphm_new = json.containsKey("vehicle_plate_hphm") ? json.getString("vehicle_plate_hphm") : null;
  168 + String equipmentName = json.containsKey("equipmentName") ? json.getString("equipmentName") : null;
  169 + String pictime = json.containsKey("pictime") ? new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date(json.getLong("pictime"))) : null;
  170 + String recordid = json.containsKey("recordid") ? json.getString("recordid") : null;
  171 +
  172 + json.put("site", equipmentName);
  173 + json.put("id", id);
  174 + json.put("hphm", hphm_new);
  175 + json.put("phototime", pictime);
  176 + json.put("recordid", recordid);
  177 +
  178 + //修改原有的picurl的值
  179 + String picurl = json.getString("picurl");
  180 +// JSONArray vehicle_detect_syRectParam = json.getJSONArray("vehicle_detect_syRectParam");
  181 +// String base64 =vehicleDetailsUtils.picToSnapshot(picurl, vehicle_detect_syRectParam.getInteger(1), vehicle_detect_syRectParam.getInteger(2), vehicle_detect_syRectParam.getInteger(3), vehicle_detect_syRectParam.getInteger(0));
  182 +// json.put("picurl",base64); //此处添加的是全景图的base64
  183 +// json.put("picurl",picurl); //此处添加的是全景图的url
  184 +
  185 + //添加snapshoturl的值
  186 + String snapshoturl = json.getString("snapshoturl");
  187 +// json.put("snapshoturl",snapshoturl);
  188 + json.put("picurl", snapshoturl); //此处将原来的全景图url换成了快照图绝对路径
  189 +
  190 + array.add(json);
  191 + }
  192 +
  193 + //根据总条数获取到总页数
  194 + int totalPage = (int) Math.ceil(((double) totalNumber) / pagevolume);
  195 +
  196 + data.put("total", totalPage);
  197 + data.put("row", array);
  198 + if (totalNumber > 0 && array != null && array.size() > 0) {
  199 + jsonObject.put("code", 200);
  200 + jsonObject.put("message", "success");
  201 + jsonObject.put("data", data);
  202 + } else {
  203 + jsonObject.put("code", 201);
  204 + jsonObject.put("message", "没有查询到符合要求的结果");
  205 + jsonObject.put("data", data);
  206 + }
  207 +
  208 +
  209 + } catch (Exception e) {
  210 + e.printStackTrace();
  211 + jsonObject.put("code", 202);
  212 + jsonObject.put("message", "请检查数据是否正确");
  213 + jsonObject.put("data", null);
  214 + }
  215 + return jsonObject;
  216 +
  217 + }
  218 +
  219 +
  220 + /**
  221 + * 根据车辆条件查询符合条件的车辆列表
  222 + *
  223 + * @param vehicleCondition
  224 + * @return
  225 + */
  226 + public List<RabbitMQVehicle> getVehcieListBy(VehicleCondition vehicleCondition) {
  227 + List<RabbitMQVehicle> rabbitMqVehicles = null;
  228 + try {
  229 + Query query = new Query();
  230 + //必须条件
  231 + Criteria c = new Criteria();
  232 + //范围条件
  233 + //模糊查询号牌
  234 + int currentpage = vehicleCondition.getCurrentpage();
  235 + int pagevolume = vehicleCondition.getPagevolume();
  236 + String hphm = vehicleCondition.getHphm();
  237 + Long starttime = vehicleCondition.getStarttime();
  238 + Long endtime = vehicleCondition.getEndtime();
  239 + int[] condition = vehicleCondition.getCondition();
  240 + int[] customspass = vehicleCondition.getCustomspass();
  241 +
  242 + //模糊号牌检索
  243 + if (hphm != null && hphm.length() > 0) {
  244 + hphm = hphm.replaceAll("\\?", "\\\\S").replaceAll("\\*", ".*");
  245 + Pattern pattern = Pattern.compile(hphm, Pattern.CASE_INSENSITIVE);
  246 + c.and("vehicle_plate_hphm").regex(pattern);
  247 + }
  248 +
  249 + //时间段范围内
  250 + if (starttime != 0L && endtime != 0L) {
  251 + c.and("pictime").gte(starttime).lte(endtime);
  252 + }
  253 +
  254 + if (vehicleCondition.getVehicleSpecialType() != null) {
  255 + c.and("vehicle_special_type").is(vehicleCondition.getVehicleSpecialType());
  256 + }
  257 +
  258 + if (vehicleCondition.getVehicleColorIndex() != null) {
  259 + c.and("vehicle_color_index").is(vehicleCondition.getVehicleColorIndex());
  260 + }
  261 + if (vehicleCondition.getVehicleRecgIssueYear() != null) {
  262 + c.and("vehicle_recg_issue_year").is(vehicleCondition.getVehicleRecgIssueYear());
  263 + }
  264 + if (vehicleCondition.getVehicleRecgBrand() != null) {
  265 + c.and("vehicle_recg_brand").is(vehicleCondition.getVehicleRecgBrand());
  266 + }
  267 + if (vehicleCondition.getVehicleRecgType() != null) {
  268 + c.and("vehicle_recg_type").is(vehicleCondition.getVehicleRecgType());
  269 + }
  270 + if (vehicleCondition.getVehicleRecgSubbrand() != null) {
  271 + c.and("vehicle_recg_subbrand").is(vehicleCondition.getVehicleRecgSubbrand());
  272 + }
  273 +
  274 + /*无号牌(nullhphm):1 污损号牌(stained):2 主驾驶安全带(driverbelt):3 副驾驶安全带(copilotbelt):4
  275 + 主驾驶打电话(drivercall):5 主驾驶吸烟(driversmoke):6 是否苫盖(cover):7*/
  276 + //条件查询
  277 + if (condition != null && condition.length > 0) {
  278 + for (int i : condition) {
  279 + switch (i) {
  280 + case 1:
  281 + //无号牌
  282 + c.and("vehicleplatedetectscore").lte(0.5);
  283 + break;
  284 + case 2:
  285 + //污损号牌(stained)
  286 + //因目前sdk不支持污损号牌检测,所以此处略
  287 + break;
  288 + case 3:
  289 + //主驾驶安全带(driverbelt):
  290 + c.and("vehicle_illegal_driver_belt_status").is(1000);
  291 + break;
  292 + case 4:
  293 + //副驾驶安全带(copilotbelt):4
  294 + c.and("vehicle_illegal_copilot_belt_status").is(1000);
  295 + break;
  296 + case 5:
  297 + //主驾驶打电话(drivercall):
  298 + c.and("vehicle_illegal_driver_phone_status").is(1000);
  299 + break;
  300 + case 6:
  301 + //主驾驶吸烟(driversmoke):
  302 + c.and("vehicle_illegal_driver_smoke_status").is(1000);
  303 + break;
  304 + case 7:
  305 + //是否苫盖(cover):
  306 + //因目前sdk不支持苫盖,所以此处略
  307 + break;
  308 + default:
  309 + break;
  310 + }
  311 + }
  312 + }
  313 +
  314 + //卡口范围
  315 + if (customspass != null && customspass.length > 0) {
  316 + Set<Integer> alleqids = new HashSet<>();
  317 + for (int value : customspass) {
  318 + List<Integer> epids = areaEquipmentService.findCaptureById(value);
  319 + alleqids.addAll(epids);
  320 + }
  321 + //获取当前设备id
  322 + c.and("deviceid").in(alleqids);
  323 + }
  324 + query.addCriteria(c);
  325 +
  326 + // 分页
  327 + query.skip((currentpage - 1) * pagevolume).limit(pagevolume);
  328 + query.fields().include("id");
  329 + query.fields().include("vehicle_plate_hphm");
  330 + query.fields().include("picurl");
  331 + query.fields().include("snapshoturl");
  332 + query.fields().include("recordid");
  333 + query.fields().include("equipmentName");
  334 + query.fields().include("pictime");
  335 + return mongoTemplate.find(query, RabbitMQVehicle.class);
  336 +
  337 + } catch (Exception e) {
  338 + e.printStackTrace();
  339 + }
  340 + return rabbitMqVehicles;
  341 + }
  342 +}
... ...
src/main/java/com/objecteye/dao/MongoTemplates.java.old 0 → 100644
  1 +++ a/src/main/java/com/objecteye/dao/MongoTemplates.java.old
  1 +package com.objecteye.dao;
  2 +
  3 +import org.springframework.beans.factory.annotation.Autowired;
  4 +import org.springframework.data.mongodb.core.MongoTemplate;
  5 +import org.springframework.data.mongodb.core.geo.GeoJson;
  6 +import org.springframework.data.mongodb.core.query.Criteria;
  7 +import org.springframework.stereotype.Component;
  8 +
  9 +import java.util.List;
  10 +
  11 +@Component
  12 +public class MongoTemplates {
  13 + @Autowired
  14 + private MongoTemplate mongoTemplate;
  15 +
  16 + public void save(Polygon polygon){
  17 + mongoTemplate.save(polygon);
  18 + }
  19 +
  20 + public void saveRegions(List<GisRegion> gisRegionList){
  21 + mongoTemplate.insert(gisRegionList,GisRegion.class);
  22 + }
  23 +
  24 + public <T> T findById(Class<T> entityClass, String id) {
  25 + return mongoTemplate.findById(id, entityClass);
  26 + }
  27 +
  28 + public <T> List<T> findAll(Class<T> entityClass) {
  29 + return mongoTemplate.findAll(entityClass);
  30 + }
  31 +
  32 + public <T> void remove(T entity) {
  33 + mongoTemplate.remove(entity);
  34 + }
  35 +
  36 + public <T> void add(T entity) {
  37 + mongoTemplate.insert(entity);
  38 + }
  39 +
  40 + public <T> void addAll(List<T> entity) {
  41 + mongoTemplate.insertAll(entity);
  42 + }
  43 +
  44 + public <T> void saveOrUpdate(T entity) {
  45 + mongoTemplate.save(entity);
  46 + }
  47 +
  48 + public <T> T findOne(Class<T> entityClass) {
  49 + return mongoTemplate.findOne(new Query(), entityClass);
  50 + }
  51 +
  52 + public List<Polygon> findIntersective(GeoJson geoJson){
  53 + Query query=new Query(Criteria.where("geometry").intersects(geoJson));
  54 + List<Polygon> list=mongoTemplate.find(query,Polygon.class);
  55 + return list;
  56 + }
  57 +
  58 + public boolean isExistIntersective(GeoJson geoJson){
  59 + Query query=new Query(Criteria.where("geometry").intersects(geoJson).and("_id").is(100000));
  60 + boolean res=mongoTemplate.exists(query,GisRegion.class);
  61 + return res;
  62 + }
  63 +
  64 + /*public <T> T findBy(Class<T> entityClass, String id) {
  65 +
  66 + Criteria cri = new Criteria();
  67 + // 设置条件(注意:设置查询的值类型必须和mongodb中类型一致)
  68 + cri.and("status").is("0"); // 类型为String,类似sql中 status = '0'
  69 + cri.and("boolRelation").is(0D); // 类型为Double,类似sql中 boolRelation = 0
  70 + cri.and("enforType").regex("01.*"); // 正则表达匹配,类似右模糊查询,sql中 like '01%'
  71 +
  72 + // lt gt lte gte
  73 +
  74 + return null;
  75 + }*/
  76 +
  77 + //mongodb查询根据指定条件对象
  78 + /* public <T> T findQuery(Class<T> entityClass, BasicDBObject basicDBObject) {
  79 + // 分、 排序、按时间查询
  80 +
  81 + Query query = new Query();
  82 + //必须条件
  83 + // Criteria c = Criteria.where("VINID").is(Map.get(vin));
  84 + Criteria c = new Criteria();
  85 + //范围条件
  86 + if (!StringUtils.isEmpty(start) && StringUtils.isEmpty(end)) {
  87 + c.and("TIME1").gte(GetTime1(start));
  88 + } else if (StringUtils.isEmpty(start) && !StringUtils.isEmpty(end)) {
  89 + c.and("TIME1").lte(GetTime1(end));
  90 + } else if (!StringUtils.isEmpty(start) && !StringUtils.isEmpty(end)) {
  91 + //对同一个属性加两次限制需这样操作
  92 + c.andOperator(
  93 + c.where("TIME1").gte(GetTime1(start)),
  94 + c.where("TIME1").lte(GetTime1(end))
  95 + );
  96 + }
  97 + query.addCriteria(c);
  98 + //总数
  99 + int num = (int) mongoTemplate.count(query, CarDataEx.class, "jmevTest");
  100 + System.out.println("总数:" + num);
  101 + //分页
  102 + query.skip((page - 1) * rows).limit(rows);
  103 + //排序
  104 + query.with(new Sort(Sort.Direction.DESC, "TIME1","TIME2"));
  105 + //query.with(new Sort(properties));
  106 + List<T> jmevTest = (List<T>) mongoTemplate.find(query, CarDataEx.class, "jmevTest");
  107 + }*/
  108 +
  109 +}
... ...
src/main/java/com/objecteye/entity/AreaEquipmentShow.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/AreaEquipmentShow.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import java.io.Serializable;
  5 +import java.util.List;
  6 +
  7 +public class AreaEquipmentShow implements Serializable {
  8 +
  9 + private Integer id;
  10 + private Integer parentId;
  11 + private String title;
  12 + private Integer typeId;
  13 + private Integer isEquipment;
  14 + private Integer equipmentNum;
  15 + private boolean disabled;
  16 + private List<AreaEquipmentShow> children;
  17 +
  18 + public Integer getId() {
  19 + return id;
  20 + }
  21 +
  22 + public void setId(Integer id) {
  23 + this.id = id;
  24 + }
  25 +
  26 + public Integer getParentId() {
  27 + return parentId;
  28 + }
  29 +
  30 + public void setParentId(Integer parentId) {
  31 + this.parentId = parentId;
  32 + }
  33 +
  34 + public String getTitle() {
  35 + return title;
  36 + }
  37 +
  38 + public void setTitle(String title) {
  39 + this.title = title;
  40 + }
  41 +
  42 + public Integer getTypeId() {
  43 + return typeId;
  44 + }
  45 +
  46 + public void setTypeId(Integer typeId) {
  47 + this.typeId = typeId;
  48 + }
  49 +
  50 + public Integer getIsEquipment() {
  51 + return isEquipment;
  52 + }
  53 +
  54 + public void setIsEquipment(Integer isEquipment) {
  55 + this.isEquipment = isEquipment;
  56 + }
  57 +
  58 + public Integer getEquipmentNum() {
  59 + return equipmentNum;
  60 + }
  61 +
  62 + public void setEquipmentNum(Integer equipmentNum) {
  63 + this.equipmentNum = equipmentNum;
  64 + }
  65 +
  66 + public boolean isDisabled() {
  67 + return disabled;
  68 + }
  69 +
  70 + public void setDisabled(boolean disabled) {
  71 + this.disabled = disabled;
  72 + }
  73 +
  74 + public List<AreaEquipmentShow> getChildren() {
  75 + return children;
  76 + }
  77 +
  78 + public void setChildren(List<AreaEquipmentShow> children) {
  79 + this.children = children;
  80 + }
  81 +}
... ...
src/main/java/com/objecteye/entity/CaputureMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/CaputureMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @Author: ljh
  7 + * @Date: 2019/9/18 11:53
  8 + * @Version 1.0
  9 + * @Message:
  10 + */
  11 +public class CaputureMsg implements Serializable {
  12 + private int vehicleCount;
  13 + private int vehicleCountInHours;
  14 + private int violateCount;
  15 + private String imageUrl;
  16 +
  17 + public CaputureMsg() {
  18 + super();
  19 + }
  20 +
  21 + public int getVehicleCount() {
  22 + return vehicleCount;
  23 + }
  24 +
  25 + public void setVehicleCount(int vehicleCount) {
  26 + this.vehicleCount = vehicleCount;
  27 + }
  28 +
  29 + public int getVehicleCountInHours() {
  30 + return vehicleCountInHours;
  31 + }
  32 +
  33 + public void setVehicleCountInHours(int vehicleCountInHours) {
  34 + this.vehicleCountInHours = vehicleCountInHours;
  35 + }
  36 +
  37 + public int getViolateCount() {
  38 + return violateCount;
  39 + }
  40 +
  41 + public void setViolateCount(int violateCount) {
  42 + this.violateCount = violateCount;
  43 + }
  44 +
  45 + public String getImageUrl() {
  46 + return imageUrl;
  47 + }
  48 +
  49 + public void setImageUrl(String imageUrl) {
  50 + this.imageUrl = imageUrl;
  51 + }
  52 +
  53 + public CaputureMsg(int vehicleCount, int vehicleCountInHours, int violateCount, String imageUrl) {
  54 + this.vehicleCount = vehicleCount;
  55 + this.vehicleCountInHours = vehicleCountInHours;
  56 + this.violateCount = violateCount;
  57 + this.imageUrl = imageUrl;
  58 + }
  59 +
  60 + @Override
  61 + public String toString() {
  62 + return "CaputureMsg{" +
  63 + "vehicleCount=" + vehicleCount +
  64 + ", vehicleCountInHours=" + vehicleCountInHours +
  65 + ", violateCount=" + violateCount +
  66 + ", imageUrl='" + imageUrl + '\'' +
  67 + '}';
  68 + }
  69 +}
... ...
src/main/java/com/objecteye/entity/CountMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/CountMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +/**
  6 + * @Author: ljh
  7 + * @Date: 2019/9/19 15:26
  8 + * @Version 1.0
  9 + * @Message:
  10 + */
  11 +public class CountMsg implements Serializable {
  12 + private String vehicleCount; //卡口经过车辆数
  13 + private String vehicleCountInHours; //一天的车流量
  14 + private String violateCount; //违规车辆数
  15 +
  16 + public CountMsg() {
  17 + super();
  18 + }
  19 +
  20 + public String getVehicleCount() {
  21 + return vehicleCount;
  22 + }
  23 +
  24 + public void setVehicleCount(String vehicleCount) {
  25 + this.vehicleCount = vehicleCount;
  26 + }
  27 +
  28 + public String getVehicleCountInHours() {
  29 + return vehicleCountInHours;
  30 + }
  31 +
  32 + public void setVehicleCountInHours(String vehicleCountInHours) {
  33 + this.vehicleCountInHours = vehicleCountInHours;
  34 + }
  35 +
  36 + public String getViolateCount() {
  37 + return violateCount;
  38 + }
  39 +
  40 + public void setViolateCount(String violateCount) {
  41 + this.violateCount = violateCount;
  42 + }
  43 +
  44 + public CountMsg(String vehicleCount, String vehicleCountInHours, String violateCount) {
  45 + this.vehicleCount = vehicleCount;
  46 + this.vehicleCountInHours = vehicleCountInHours;
  47 + this.violateCount = violateCount;
  48 + }
  49 +}
... ...
src/main/java/com/objecteye/entity/DeployAlarmMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/DeployAlarmMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Getter;
  5 +import lombok.NoArgsConstructor;
  6 +import lombok.Setter;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * @Author: ljh
  12 + * @Date: 2019/9/18 12:00
  13 + * @Version 1.0
  14 + * @Message:
  15 + */
  16 +
  17 +@Setter
  18 +@Getter
  19 +@AllArgsConstructor
  20 +@NoArgsConstructor
  21 +public class DeployAlarmMsg implements Serializable {
  22 +
  23 + private static final long serialVersionUID = 1210431441620400136L;
  24 + /**
  25 + * 报警时间
  26 + */
  27 + private String alarmTime;
  28 +
  29 + /**
  30 + * 报警地点
  31 + */
  32 + private String alarmPlace;
  33 +
  34 + /**
  35 + * 相似度
  36 + */
  37 + private double similarity;
  38 +
  39 + /**
  40 + * 过车图片url、抓拍人像图片url
  41 + */
  42 + private String captureUrl;
  43 +
  44 + /**
  45 + * 布控车辆图片url、布控人像图片url、布控车牌号码
  46 + */
  47 + private String deployUrl;
  48 +
  49 + /**
  50 + * 布控类型
  51 + */
  52 + private int deployType;
  53 +
  54 +}
... ...
src/main/java/com/objecteye/entity/DeployResultMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/DeployResultMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class DeployResultMsg implements Serializable {
  6 +
  7 + private int deployId;
  8 + private String deployName;
  9 + private int status;
  10 + private long alarmNum;
  11 +
  12 + public DeployResultMsg() {
  13 + }
  14 +
  15 + public DeployResultMsg(int deployId, String deployName, int status, long alarmNum) {
  16 + this.deployId = deployId;
  17 + this.deployName = deployName;
  18 + this.status = status;
  19 + this.alarmNum = alarmNum;
  20 + }
  21 +
  22 + public int getDeployId() {
  23 + return deployId;
  24 + }
  25 +
  26 + public void setDeployId(int deployId) {
  27 + this.deployId = deployId;
  28 + }
  29 +
  30 + public String getDeployName() {
  31 + return deployName;
  32 + }
  33 +
  34 + public void setDeployName(String deployName) {
  35 + this.deployName = deployName;
  36 + }
  37 +
  38 + public int getStatus() {
  39 + return status;
  40 + }
  41 +
  42 + public void setStatus(int status) {
  43 + this.status = status;
  44 + }
  45 +
  46 + public long getAlarmNum() {
  47 + return alarmNum;
  48 + }
  49 +
  50 + public void setAlarmNum(long alarmNum) {
  51 + this.alarmNum = alarmNum;
  52 + }
  53 +}
... ...
src/main/java/com/objecteye/entity/DetectParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/DetectParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +
  9 +@AllArgsConstructor
  10 +@NoArgsConstructor
  11 +@Data
  12 +public class DetectParam {
  13 + int process_min_l;
  14 + int process_max_l;
  15 + float threshold;
  16 +
  17 +}
... ...
src/main/java/com/objecteye/entity/DetectResult.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/DetectResult.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class DetectResult implements Serializable {
  6 +
  7 + private int deviceId;
  8 + private String pictureName;
  9 + private String picUrl;
  10 + private long picTime;
  11 + private int flag;
  12 + private String personId;
  13 + private double[] vehicleFeaResFea;
  14 + private Integer[] vehiclePlateDetRecgRect;
  15 + private float vehiclePlateDetRecgRectScore;
  16 + private int vehiclePlateDetRecgRectType;
  17 + private String plateNum;
  18 + private float plateNumScore;
  19 + private VehiclePlateNumParam[] plateNumParams;
  20 + private int vehicleColorRes;
  21 + private float vehicleColorScore;
  22 + private float vehicleDetectScore;
  23 + private Integer[] syRectParam;
  24 +
  25 +
  26 +}
... ...
src/main/java/com/objecteye/entity/FaceClusterParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceClusterParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class FaceClusterParam {
  12 + private float threshold; // thresld of face similarity
  13 + private int fea_size; //length of feature
  14 + private int log_config; //if open log
  15 + private String index_db_path;
  16 +}
... ...
src/main/java/com/objecteye/entity/FaceDetectInfoParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceDetectInfoParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +/**
  9 + *
  10 + */
  11 +@AllArgsConstructor
  12 +@NoArgsConstructor
  13 +@Data
  14 +public class FaceDetectInfoParam {
  15 + private SyRectParam face_position; //人脸位置
  16 + private float face_pos_score; //人脸框置信度
  17 + private SyPointParam[] syPointParams; //人脸关键点位置信息
  18 + private int quality; //质量评价
  19 + private int clarity; //清晰度 0 - 100
  20 + private int brightness; //亮度 0 - 255
  21 + private float roll; //姿态角
  22 + private float yaw; //姿态角
  23 + private float pitch; //姿态角
  24 + private float score; //人脸置信度
  25 +}
... ...
src/main/java/com/objecteye/entity/FaceDetectParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceDetectParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +/**
  9 + *
  10 + */
  11 +@AllArgsConstructor
  12 +@NoArgsConstructor
  13 +@Data
  14 +public class FaceDetectParam {
  15 + private int facial_fea_point_config; //是否启动关键点检测
  16 + private int pose_config; //是否启动姿态角
  17 + private int quality_config; //是否启动质量检测
  18 + private int score_config; //是否启动人脸置信度
  19 + private float threshold; //检测阈值 建议0.7
  20 + private int process_w; //reshape宽
  21 + private int process_h; //reshape高
  22 + private int log; //日志
  23 +}
... ...
src/main/java/com/objecteye/entity/FaceDetectResultParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceDetectResultParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +/**
  8 + *
  9 + */
  10 +@AllArgsConstructor
  11 +@NoArgsConstructor
  12 +@Data
  13 +public class FaceDetectResultParam {
  14 + private FaceDetectInfoParam[] faceDetectInfoParams; //内存由外部申请
  15 + private int count; //人脸个数
  16 +}
... ...
src/main/java/com/objecteye/entity/FaceFeatureAnalysisParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceFeatureAnalysisParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class FaceFeatureAnalysisParam {
  12 + FaceFeatureResultParam[] info;
  13 + int count;
  14 +}
... ...
src/main/java/com/objecteye/entity/FaceFeatureParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceFeatureParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +/**
  9 + *
  10 + */
  11 +@AllArgsConstructor
  12 +@NoArgsConstructor
  13 +@Data
  14 +public class FaceFeatureParam {
  15 + private static final long serialVersionUID = -5848996632992784111L;
  16 + private int log;
  17 +}
... ...
src/main/java/com/objecteye/entity/FaceFeatureResultParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceFeatureResultParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class FaceFeatureResultParam {
  12 + private FaceDetectInfoParam faceDetectInfoParam;
  13 + private float[] feature; // 特征值
  14 +}
... ...
src/main/java/com/objecteye/entity/FaceInfoParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceInfoParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class FaceInfoParam {
  12 + private FaceDetectInfoParam faceDetectInfoParam; //人脸检测值
  13 + private String mattingData;//抠图人脸base64
  14 + private float[] fea; //人脸特征值
  15 + private String retrieveKey; //1vN检索key
  16 + private String label; //聚类label标签
  17 +}
... ...
src/main/java/com/objecteye/entity/FaceRetrieveInfoParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceRetrieveInfoParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +@AllArgsConstructor
  8 +@NoArgsConstructor
  9 +@Data
  10 +public class FaceRetrieveInfoParam {
  11 + private String retrieveKey;
  12 + private float[] feature;
  13 +}
... ...
src/main/java/com/objecteye/entity/FaceRetrieveParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceRetrieveParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class FaceRetrieveParam {
  12 + int log;
  13 + int fea_size; //feature长度
  14 + String db_path; //db_path如果不存在 -> 新建一个本地数据库并同步加载到内存 若存在 则直接加载至内存
  15 +}
... ...
src/main/java/com/objecteye/entity/FaceRetrieveResultParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FaceRetrieveResultParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class FaceRetrieveResultParam {
  12 + private String retrieveKey;
  13 + float score;
  14 +}
... ...
src/main/java/com/objecteye/entity/FeatureResultMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/FeatureResultMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +public class FeatureResultMsg implements Serializable {
  7 +
  8 + private Integer id;
  9 + private String name;
  10 + private String createDate;
  11 + private Integer count;
  12 + private List<String> deplyNameList;
  13 +
  14 + public FeatureResultMsg() {
  15 + }
  16 +
  17 + public FeatureResultMsg(Integer id, String name, String createDate, Integer count, List<String> deplyNameList) {
  18 + this.id = id;
  19 + this.name = name;
  20 + this.createDate = createDate;
  21 + this.count = count;
  22 + this.deplyNameList = deplyNameList;
  23 + }
  24 +
  25 + public Integer getId() {
  26 + return id;
  27 + }
  28 +
  29 + public void setId(Integer id) {
  30 + this.id = id;
  31 + }
  32 +
  33 + public String getName() {
  34 + return name;
  35 + }
  36 +
  37 + public void setName(String name) {
  38 + this.name = name;
  39 + }
  40 +
  41 + public String getCreateDate() {
  42 + return createDate;
  43 + }
  44 +
  45 + public void setCreateDate(String createDate) {
  46 + this.createDate = createDate;
  47 + }
  48 +
  49 + public Integer getCount() {
  50 + return count;
  51 + }
  52 +
  53 + public void setCount(Integer count) {
  54 + this.count = count;
  55 + }
  56 +
  57 + public List<String> getDeplyNameList() {
  58 + return deplyNameList;
  59 + }
  60 +
  61 + public void setDeplyNameList(List<String> deplyNameList) {
  62 + this.deplyNameList = deplyNameList;
  63 + }
  64 +}
... ...
src/main/java/com/objecteye/entity/LocusOrbitQueryParams.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/LocusOrbitQueryParams.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +import java.io.Serializable;
  8 +
  9 +/**
  10 + * 轨迹分析 - 请求参数
  11 + *
  12 + * @author liuhaoyu
  13 + */
  14 +@AllArgsConstructor
  15 +@NoArgsConstructor
  16 +@Data
  17 +public class LocusOrbitQueryParams implements Serializable {
  18 + private static final long serialVersionUID = -8007831938659574791L;
  19 +
  20 + /**
  21 + * 地区id, 设备id, 自行判断是地区的还是设备的
  22 + */
  23 + private Integer customsPass;
  24 +
  25 + /**
  26 + * 时间区间- 起始时间戳
  27 + */
  28 + private Long startTime;
  29 +
  30 + /**
  31 + * 时间区间- 结束时间戳
  32 + */
  33 + private Long endTime;
  34 +
  35 + /**
  36 + * 车牌号
  37 + */
  38 + private String plateNumber;
  39 +}
... ...
src/main/java/com/objecteye/entity/LocusOrbitResultParams.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/LocusOrbitResultParams.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * 轨迹分析 返回结果数据模型
  12 + */
  13 +@AllArgsConstructor
  14 +@NoArgsConstructor
  15 +@Data
  16 +public class LocusOrbitResultParams implements Serializable {
  17 +
  18 + private static final long serialVersionUID = 6134866513785223161L;
  19 +
  20 + @ApiModelProperty("车牌号")
  21 + private String plateNumber;
  22 +
  23 + @ApiModelProperty("相似度")
  24 + private String threshold;
  25 +
  26 + @ApiModelProperty("经度")
  27 + private String longitude;
  28 +
  29 + @ApiModelProperty("纬度")
  30 + private String latitude;
  31 +
  32 + @ApiModelProperty("抓拍时间")
  33 + private String pictime;
  34 +
  35 + @ApiModelProperty("抓拍地点")
  36 + private String equipmentName;
  37 +
  38 + @ApiModelProperty("抓拍截图")
  39 + private String snapshotUrl;
  40 +
  41 + @ApiModelProperty("id")
  42 + private String id;
  43 +}
... ...
src/main/java/com/objecteye/entity/MonitorMainTableQueryInfo.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/MonitorMainTableQueryInfo.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +import lombok.ToString;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * 布控报警- 主列表查询请求参数
  12 + */
  13 +@AllArgsConstructor
  14 +@NoArgsConstructor
  15 +@ToString
  16 +@Data
  17 +public class MonitorMainTableQueryInfo implements Serializable {
  18 + private static final long serialVersionUID = 2387317754137036734L;
  19 + /**
  20 + * 开始时间
  21 + */
  22 + private Long startTime;
  23 + /**
  24 + * 结束时间
  25 + */
  26 + private Long endTime;
  27 + /**
  28 + * 布控类型0: 车牌布控; 1: 车辆布控; 2: 人像布控
  29 + */
  30 + private Integer deployType;
  31 + /**
  32 + * 页码
  33 + */
  34 + private Integer currentpage;
  35 + /**
  36 + * 页面容量
  37 + */
  38 + private Integer pagevolume;
  39 + /**
  40 + * 设备id
  41 + */
  42 + private Integer customsPass;
  43 + /**
  44 + * 车牌号
  45 + */
  46 + private String plateNumber;
  47 +}
... ...
src/main/java/com/objecteye/entity/MonitorMainTableResultInfo.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/MonitorMainTableResultInfo.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +import lombok.ToString;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * 布控报警- 主列表查询返回结果集数据模型
  12 + */
  13 +@AllArgsConstructor
  14 +@NoArgsConstructor
  15 +@Data
  16 +@ToString
  17 +public class MonitorMainTableResultInfo implements Serializable {
  18 + private static final long serialVersionUID = -7947600423993334962L;
  19 + /**
  20 + * 车牌号
  21 + */
  22 + private String plateNumber;
  23 + /**
  24 + * 抓拍时间
  25 + */
  26 + private String picTime;
  27 + /**
  28 + * 地点
  29 + */
  30 + private String address;
  31 + /**
  32 + * 相似度
  33 + */
  34 + private Double threshold;
  35 + /**
  36 + * 抓拍图片
  37 + */
  38 + private String snapshotUrl;
  39 + /**
  40 + * 布控图片
  41 + */
  42 + private String libUrl;
  43 + /**
  44 + * 主键
  45 + */
  46 + private String id;
  47 + /**
  48 + * 布控库主键
  49 + */
  50 + private String libId;
  51 +}
... ...
src/main/java/com/objecteye/entity/MonitorTaskContentResultInfo.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/MonitorTaskContentResultInfo.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +import lombok.ToString;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * 布控报警
  12 + * - 布控任务
  13 + * - 布控任务内容 数据模型
  14 + */
  15 +@AllArgsConstructor
  16 +@NoArgsConstructor
  17 +@ToString
  18 +@Data
  19 +public class MonitorTaskContentResultInfo implements Serializable {
  20 + private static final long serialVersionUID = 4851770658456303503L;
  21 + /**
  22 + * 车牌号
  23 + */
  24 + private String plateNumber;
  25 + /**
  26 + * 布控开始时间 - 布控结束时间
  27 + */
  28 + private String deployTime;
  29 + /**
  30 + * 创建时间
  31 + */
  32 + private String createDate;
  33 + /**
  34 + * 状态值
  35 + */
  36 + private String status;
  37 + /**
  38 + * 布控库中的明细项id
  39 + */
  40 + private String id;
  41 + /**
  42 + * 布控库id
  43 + */
  44 + private String featureId;
  45 +
  46 + /**
  47 + * 图片地址
  48 + */
  49 + private String url;
  50 + /**
  51 + * 布控任务id
  52 + */
  53 + private String deployId;
  54 +}
... ...
src/main/java/com/objecteye/entity/MonitorTaskResultInfo.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/MonitorTaskResultInfo.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +import lombok.ToString;
  7 +
  8 +import java.io.Serializable;
  9 +
  10 +/**
  11 + * 布控任务- 布控任务列表返回数据模型
  12 + */
  13 +@AllArgsConstructor
  14 +@NoArgsConstructor
  15 +@Data
  16 +@ToString
  17 +public class MonitorTaskResultInfo implements Serializable {
  18 + private static final long serialVersionUID = -2303276515208972965L;
  19 +
  20 + /**
  21 + * 布控任务id
  22 + */
  23 + private Integer id;
  24 + /**
  25 + * 布控任务名称
  26 + */
  27 + private String name;
  28 + /**
  29 + * 布控任务创建时间
  30 + */
  31 + private String createDate;
  32 + /**
  33 + * 布控任务状态
  34 + */
  35 + private Integer status;
  36 + /**
  37 + * 报警数
  38 + */
  39 + private Long warningNumber;
  40 +}
... ...
src/main/java/com/objecteye/entity/PagePara.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/PagePara.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class PagePara<T> implements Serializable {
  6 + private int currentpage;
  7 + private int pagevolume;
  8 + private T data;
  9 +
  10 + public PagePara() {
  11 + }
  12 +
  13 + public PagePara(int currentpage, int pagevolume, T data) {
  14 + this.currentpage = currentpage;
  15 + this.pagevolume = pagevolume;
  16 + this.data = data;
  17 + }
  18 +
  19 + public T getData() {
  20 + return data;
  21 + }
  22 +
  23 + public void setData(T data) {
  24 + this.data = data;
  25 + }
  26 +
  27 + public int getCurrentpage() {
  28 + return currentpage;
  29 + }
  30 +
  31 + public void setCurrentpage(int currentpage) {
  32 + this.currentpage = currentpage;
  33 + }
  34 +
  35 + public int getPagevolume() {
  36 + return pagevolume;
  37 + }
  38 +
  39 + public void setPagevolume(int pagevolume) {
  40 + this.pagevolume = pagevolume;
  41 + }
  42 +}
... ...
src/main/java/com/objecteye/entity/PageResult.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/PageResult.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +import java.util.List;
  5 +
  6 +public class PageResult<T> implements Serializable {
  7 +
  8 + private long total;
  9 + private List<T> row;
  10 +
  11 + public PageResult() {
  12 + }
  13 +
  14 + public PageResult(long total, List<T> row) {
  15 + this.total = total;
  16 + this.row = row;
  17 + }
  18 +
  19 + public long gettotal() {
  20 + return total;
  21 + }
  22 +
  23 + public void settotal(int total) {
  24 + this.total = total;
  25 + }
  26 +
  27 + public List<T> getRow() {
  28 + return row;
  29 + }
  30 +
  31 + public void setRow(List<T> row) {
  32 + this.row = row;
  33 + }
  34 +}
... ...
src/main/java/com/objecteye/entity/PersonIdAndScore.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/PersonIdAndScore.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +@AllArgsConstructor
  8 +@NoArgsConstructor
  9 +@Data
  10 +public class PersonIdAndScore {
  11 +
  12 + private String retrieveKey;
  13 + private String score;
  14 +}
... ...
src/main/java/com/objecteye/entity/PersonMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/PersonMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.*;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +@Data
  9 +@Getter
  10 +@Setter
  11 +@NoArgsConstructor
  12 +@AllArgsConstructor
  13 +public class PersonMsg implements Serializable {
  14 + private String id;
  15 +
  16 + private int deviceId;
  17 +
  18 + private String imageUrl;
  19 +
  20 + private long captureTime;
  21 +
  22 + private String equipmentName;
  23 +
  24 + private String longitude;
  25 +
  26 + private String latitude;
  27 +
  28 + private String url;
  29 +
  30 + private String personId;
  31 +
  32 + private float[] fea;
  33 +
  34 +
  35 +}
... ...
src/main/java/com/objecteye/entity/PersonnelResultMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/PersonnelResultMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.io.Serializable;
  4 +
  5 +public class PersonnelResultMsg implements Serializable {
  6 +
  7 +
  8 + private int personId;
  9 + private String personName;
  10 + private String createTime;
  11 + private String conreason;
  12 + private int personfileNum;
  13 + private String imageUrl;
  14 + private String indentity;
  15 +
  16 + public PersonnelResultMsg() {
  17 + }
  18 +
  19 + public PersonnelResultMsg(int personId, String personName, String createTime, String conreason, int personfileNum, String imageUrl) {
  20 + this.personId = personId;
  21 + this.personName = personName;
  22 + this.createTime = createTime;
  23 + this.conreason = conreason;
  24 + this.personfileNum = personfileNum;
  25 + this.imageUrl = imageUrl;
  26 + }
  27 +
  28 +
  29 + public int getPersonId() {
  30 + return personId;
  31 + }
  32 +
  33 + public void setPersonId(int personId) {
  34 + this.personId = personId;
  35 + }
  36 +
  37 + public PersonnelResultMsg(int personId, String personName, String createTime, String conreason, int personfileNum, String imageUrl, String indentity) {
  38 + this.personId = personId;
  39 + this.personName = personName;
  40 + this.createTime = createTime;
  41 + this.conreason = conreason;
  42 + this.personfileNum = personfileNum;
  43 + this.imageUrl = imageUrl;
  44 + this.indentity = indentity;
  45 + }
  46 +
  47 + public String getPersonName() {
  48 + return personName;
  49 + }
  50 +
  51 + public void setPersonName(String personName) {
  52 + this.personName = personName;
  53 + }
  54 +
  55 + public String getCreateTime() {
  56 + return createTime;
  57 + }
  58 +
  59 + public void setCreateTime(String createTime) {
  60 + this.createTime = createTime;
  61 + }
  62 +
  63 + public String getConreason() {
  64 + return conreason;
  65 + }
  66 +
  67 + public void setConreason(String conreason) {
  68 + this.conreason = conreason;
  69 + }
  70 +
  71 + public int getPersonfileNum() {
  72 + return personfileNum;
  73 + }
  74 +
  75 + public void setPersonfileNum(int personfileNum) {
  76 + this.personfileNum = personfileNum;
  77 + }
  78 +
  79 + public String getImageUrl() {
  80 + return imageUrl;
  81 + }
  82 +
  83 + public void setImageUrl(String imageUrl) {
  84 + this.imageUrl = imageUrl;
  85 + }
  86 +
  87 + public String getIndentity() {
  88 + return indentity;
  89 + }
  90 +
  91 + public void setIndentity(String indentity) {
  92 + this.indentity = indentity;
  93 + }
  94 +}
... ...
src/main/java/com/objecteye/entity/PlateAlarmMsg.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/PlateAlarmMsg.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.*;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +@AllArgsConstructor
  8 +@NoArgsConstructor
  9 +@Setter
  10 +@Getter
  11 +@ToString
  12 +public class PlateAlarmMsg implements Serializable {
  13 +
  14 + private static final long serialVersionUID = 46749833013421068L;
  15 +
  16 + private String id;
  17 + /**
  18 + * 原始数据id
  19 + */
  20 + private String baseId;
  21 + /**
  22 + * 布控任务id
  23 + */
  24 + private Integer deployId;
  25 + /**
  26 + * 设备id
  27 + */
  28 + private int deviceId;
  29 + /**
  30 + * 设备名称
  31 + */
  32 + private String equipmentName;
  33 + /**
  34 + * 经度
  35 + */
  36 + private String longitude;
  37 + /**
  38 + * 纬度
  39 + */
  40 + private String latitude;
  41 + /**
  42 + * 布控图片
  43 + */
  44 + private String libUrl;
  45 + /**
  46 + * 布控图片id
  47 + */
  48 + private String libId;
  49 + /**
  50 + * 抓拍时间
  51 + */
  52 + private Long picTime;
  53 + /**
  54 + * 报警时间
  55 + */
  56 + private String alarmTime;
  57 + /**
  58 + * 抓拍截图
  59 + */
  60 + private String snapshotUrl;
  61 + /**
  62 + * 车牌号
  63 + */
  64 + private String plateNum;
  65 + /**
  66 + * 报警类型
  67 + */
  68 + private Integer alarmType;
  69 + /**
  70 + * 相似度
  71 + */
  72 + private double similarity;
  73 +
  74 + private PlateAlarmMsg(Builder builder) {
  75 + this.id = builder.id;
  76 + this.baseId = builder.baseId;
  77 + this.deployId = builder.deployId;
  78 + this.deviceId = builder.deviceId;
  79 + this.equipmentName = builder.equipmentName;
  80 + this.longitude = builder.longitude;
  81 + this.latitude = builder.latitude;
  82 + this.libUrl = builder.libUrl;
  83 + this.libId = builder.libId;
  84 + this.picTime = builder.picTime;
  85 + this.alarmTime = builder.alarmTime;
  86 + this.snapshotUrl = builder.snapshotUrl;
  87 + this.plateNum = builder.plateNum;
  88 + this.alarmType = builder.alarmType;
  89 + this.similarity = builder.similarity;
  90 + }
  91 +
  92 + public static Builder builder() {
  93 + return new Builder();
  94 + }
  95 +
  96 + public static class Builder {
  97 + private String id;
  98 +
  99 + private String baseId;
  100 + /**
  101 + * 布控任务id
  102 + */
  103 + private Integer deployId;
  104 + /**
  105 + * 设备id
  106 + */
  107 + private int deviceId;
  108 + /**
  109 + * 设备名称
  110 + */
  111 + private String equipmentName;
  112 + /**
  113 + * 经度
  114 + */
  115 + private String longitude;
  116 + /**
  117 + * 纬度
  118 + */
  119 + private String latitude;
  120 + /**
  121 + * 布控图片
  122 + */
  123 + private String libUrl;
  124 + /**
  125 + * 布控图片id
  126 + */
  127 + private String libId;
  128 + /**
  129 + * 抓拍时间
  130 + */
  131 + private Long picTime;
  132 + /**
  133 + * 报警时间
  134 + */
  135 + private String alarmTime;
  136 + /**
  137 + * 抓拍截图
  138 + */
  139 + private String snapshotUrl;
  140 + /**
  141 + * 车牌号
  142 + */
  143 + private String plateNum;
  144 + /**
  145 + * 报警类型
  146 + */
  147 + private Integer alarmType;
  148 + /**
  149 + * 相似度
  150 + */
  151 + private double similarity;
  152 +
  153 + public Builder id(String id) {
  154 + this.id = id;
  155 + return this;
  156 + }
  157 +
  158 + public Builder baseId(String baseId) {
  159 + this.baseId = baseId;
  160 + return this;
  161 + }
  162 +
  163 + public Builder deployId(Integer deployId) {
  164 + this.deployId = deployId;
  165 + return this;
  166 + }
  167 +
  168 + public Builder deviceId(int deviceId) {
  169 + this.deviceId = deviceId;
  170 + return this;
  171 + }
  172 +
  173 + public Builder equipmentName(String equipmentName) {
  174 + this.equipmentName = equipmentName;
  175 + return this;
  176 + }
  177 +
  178 + public Builder longitude(String longitude) {
  179 + this.longitude = longitude;
  180 + return this;
  181 + }
  182 +
  183 + public Builder latitude(String latitude) {
  184 + this.latitude = latitude;
  185 + return this;
  186 + }
  187 +
  188 + public Builder libUrl(String libUrl) {
  189 + this.libUrl = libUrl;
  190 + return this;
  191 + }
  192 +
  193 + public Builder libId(String libId) {
  194 + this.libId = libId;
  195 + return this;
  196 + }
  197 +
  198 + public Builder picTime(Long picTime) {
  199 + this.picTime = picTime;
  200 + return this;
  201 + }
  202 +
  203 + public Builder alarmTime(String alarmTime) {
  204 + this.alarmTime = alarmTime;
  205 + return this;
  206 + }
  207 +
  208 + public Builder snapshotUrl(String snapshotUrl) {
  209 + this.snapshotUrl = snapshotUrl;
  210 + return this;
  211 + }
  212 +
  213 + public Builder plateNum(String plateNum) {
  214 + this.plateNum = plateNum;
  215 + return this;
  216 + }
  217 +
  218 + public Builder alarmType(Integer alarmType) {
  219 + this.alarmType = alarmType;
  220 + return this;
  221 + }
  222 +
  223 + public Builder similarity(double similarity) {
  224 + this.similarity = similarity;
  225 + return this;
  226 + }
  227 +
  228 + public PlateAlarmMsg build() {
  229 + return new PlateAlarmMsg(this);
  230 + }
  231 + }
  232 +}
... ...
src/main/java/com/objecteye/entity/RelationMappingUtil.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/RelationMappingUtil.java
  1 +package com.objecteye.entity;
  2 +
  3 +import org.springframework.stereotype.Component;
  4 +
  5 +@Component
  6 +public class RelationMappingUtil {
  7 +
  8 + public static String getVehicleColor(int i) {
  9 + switch (i) {
  10 + case 0:
  11 + return "棕";
  12 + case 1:
  13 + return "橙";
  14 + case 2:
  15 + return "灰";
  16 + case 3:
  17 + return "白";
  18 + case 4:
  19 + return "粉";
  20 + case 5:
  21 + return "紫";
  22 + case 6:
  23 + return "红";
  24 + case 7:
  25 + return "绿";
  26 + case 8:
  27 + return "蓝";
  28 + case 9:
  29 + return "金";
  30 + case 10:
  31 + return "银";
  32 + case 11:
  33 + return "青";
  34 + case 12:
  35 + return "黄";
  36 + case 13:
  37 + return "黑";
  38 + default:
  39 + return "检测失败";
  40 + }
  41 + }
  42 +
  43 + //号牌种类
  44 + public static String getVehiclePlateType(int i) {
  45 + switch (i) {
  46 + case 0:
  47 + return "单排蓝色";
  48 + case 1:
  49 + return "单排黄色";
  50 + case 2:
  51 + return "单排白色";
  52 + case 3:
  53 + return "单排黑色";
  54 + case 4:
  55 + return "双排黄色";
  56 + case 5:
  57 + return "双排白色";
  58 + case 6:
  59 + return "新能源黄绿色";
  60 + case 7:
  61 + return "新能源白绿色";
  62 + default:
  63 + return "检测失败";
  64 + }
  65 + }
  66 +
  67 + //获取车辆属性
  68 + public String getVehiclePendantParam(int i) {
  69 + switch (i) {
  70 + case 0:
  71 + return "司机";
  72 + case 1:
  73 + return "人脸";
  74 + case 2:
  75 + return "安全带";
  76 + case 3:
  77 + return "遮阳板";
  78 + case 4:
  79 + return "年检标";
  80 + case 5:
  81 + return "挂件";
  82 + case 6:
  83 + return "纸巾盒";
  84 + case 7:
  85 + return "转经筒";
  86 + case 8:
  87 + return "手机";
  88 + case 9:
  89 + return "天窗";
  90 + case 10:
  91 + return "行李架";
  92 + case 11:
  93 + return "烟";
  94 + default:
  95 + return "检测失败";
  96 + }
  97 + }
  98 +
  99 + //获取车辆违法数据
  100 + public String getVehicleIllegalStatus(int i) {
  101 + switch (i) {
  102 + case 1000:
  103 + return "违规";
  104 + case 1001:
  105 + return "合法";
  106 + case 1002:
  107 + return "不确定";
  108 + case 1003:
  109 + return "无人";
  110 + case 1004:
  111 + return "有人";
  112 + default:
  113 + return "检测失败";
  114 + }
  115 + }
  116 +
  117 + //获取车辆类型
  118 + public static String getVehicleSpecialType(int i) {
  119 + switch (i) {
  120 + case -1:
  121 + return "其他";
  122 + case 0:
  123 + return "货车";
  124 + case 1:
  125 + return "危化品车";
  126 + case 2:
  127 + return "渣土车";
  128 + default:
  129 + return "检测失败";
  130 + }
  131 + }
  132 +
  133 +
  134 +}
... ...
src/main/java/com/objecteye/entity/ResponseParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/ResponseParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class ResponseParam<T> {
  12 + private String code; //状态码
  13 + private String msg; //提示消息
  14 + private T result; // 泛型类结果
  15 +}
... ...
src/main/java/com/objecteye/entity/RetrieveSearchDataParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/RetrieveSearchDataParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +@AllArgsConstructor
  8 +@NoArgsConstructor
  9 +@Data
  10 +public class RetrieveSearchDataParam {
  11 + private int topN;
  12 + private float threshold;
  13 + private int threadNum;
  14 + private float[] feature;
  15 +}
... ...
src/main/java/com/objecteye/entity/SyAreaEquipment.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyAreaEquipment.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyAreaEquipment implements Serializable {
  8 + @ApiModelProperty(value = "自增主键")
  9 + private Integer id;
  10 + @ApiModelProperty(value = "父id")
  11 + private Integer parentId;
  12 + @ApiModelProperty(value = "设备(区域)名称")
  13 + private String name;
  14 + @ApiModelProperty(value = "设备(区域)外键")
  15 + private Integer typeId;
  16 + @ApiModelProperty(value = "0表示区域,1表示设备")
  17 + private Integer isEquipment;
  18 +
  19 + private static final long serialVersionUID = 1L;
  20 +
  21 + public Integer getId() {
  22 + return id;
  23 + }
  24 +
  25 + public void setId(Integer id) {
  26 + this.id = id;
  27 + }
  28 +
  29 + public Integer getParentId() {
  30 + return parentId;
  31 + }
  32 +
  33 + public void setParentId(Integer parentId) {
  34 + this.parentId = parentId;
  35 + }
  36 +
  37 + public String getName() {
  38 + return name;
  39 + }
  40 +
  41 + public void setName(String name) {
  42 + this.name = name;
  43 + }
  44 +
  45 + public Integer getTypeId() {
  46 + return typeId;
  47 + }
  48 +
  49 + public void setTypeId(Integer typeId) {
  50 + this.typeId = typeId;
  51 + }
  52 +
  53 + public Integer getIsEquipment() {
  54 + return isEquipment;
  55 + }
  56 +
  57 + public void setIsEquipment(Integer isEquipment) {
  58 + this.isEquipment = isEquipment;
  59 + }
  60 +
  61 + @Override
  62 + public String toString() {
  63 + StringBuilder sb = new StringBuilder();
  64 + sb.append(getClass().getSimpleName());
  65 + sb.append(" [");
  66 + sb.append("Hash = ").append(hashCode());
  67 + sb.append(", id=").append(id);
  68 + sb.append(", parentId=").append(parentId);
  69 + sb.append(", name=").append(name);
  70 + sb.append(", typeId=").append(typeId);
  71 + sb.append(", isEquipment=").append(isEquipment);
  72 + sb.append(", serialVersionUID=").append(serialVersionUID);
  73 + sb.append("]");
  74 + return sb.toString();
  75 + }
  76 +}
0 77 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyAreaEquipmentExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyAreaEquipmentExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyAreaEquipmentExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyAreaEquipmentExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andParentIdIsNull() {
  168 + addCriterion("parent_id is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andParentIdIsNotNull() {
  173 + addCriterion("parent_id is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andParentIdEqualTo(Integer value) {
  178 + addCriterion("parent_id =", value, "parentId");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andParentIdNotEqualTo(Integer value) {
  183 + addCriterion("parent_id <>", value, "parentId");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andParentIdGreaterThan(Integer value) {
  188 + addCriterion("parent_id >", value, "parentId");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andParentIdGreaterThanOrEqualTo(Integer value) {
  193 + addCriterion("parent_id >=", value, "parentId");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andParentIdLessThan(Integer value) {
  198 + addCriterion("parent_id <", value, "parentId");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andParentIdLessThanOrEqualTo(Integer value) {
  203 + addCriterion("parent_id <=", value, "parentId");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andParentIdIn(List<Integer> values) {
  208 + addCriterion("parent_id in", values, "parentId");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andParentIdNotIn(List<Integer> values) {
  213 + addCriterion("parent_id not in", values, "parentId");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andParentIdBetween(Integer value1, Integer value2) {
  218 + addCriterion("parent_id between", value1, value2, "parentId");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andParentIdNotBetween(Integer value1, Integer value2) {
  223 + addCriterion("parent_id not between", value1, value2, "parentId");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andNameIsNull() {
  228 + addCriterion("name is null");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andNameIsNotNull() {
  233 + addCriterion("name is not null");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andNameEqualTo(String value) {
  238 + addCriterion("name =", value, "name");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andNameNotEqualTo(String value) {
  243 + addCriterion("name <>", value, "name");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andNameGreaterThan(String value) {
  248 + addCriterion("name >", value, "name");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andNameGreaterThanOrEqualTo(String value) {
  253 + addCriterion("name >=", value, "name");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andNameLessThan(String value) {
  258 + addCriterion("name <", value, "name");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andNameLessThanOrEqualTo(String value) {
  263 + addCriterion("name <=", value, "name");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andNameLike(String value) {
  268 + addCriterion("name like", value, "name");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andNameNotLike(String value) {
  273 + addCriterion("name not like", value, "name");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andNameIn(List<String> values) {
  278 + addCriterion("name in", values, "name");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andNameNotIn(List<String> values) {
  283 + addCriterion("name not in", values, "name");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andNameBetween(String value1, String value2) {
  288 + addCriterion("name between", value1, value2, "name");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andNameNotBetween(String value1, String value2) {
  293 + addCriterion("name not between", value1, value2, "name");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andTypeIdIsNull() {
  298 + addCriterion("type_id is null");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andTypeIdIsNotNull() {
  303 + addCriterion("type_id is not null");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andTypeIdEqualTo(Integer value) {
  308 + addCriterion("type_id =", value, "typeId");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andTypeIdNotEqualTo(Integer value) {
  313 + addCriterion("type_id <>", value, "typeId");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andTypeIdGreaterThan(Integer value) {
  318 + addCriterion("type_id >", value, "typeId");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andTypeIdGreaterThanOrEqualTo(Integer value) {
  323 + addCriterion("type_id >=", value, "typeId");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andTypeIdLessThan(Integer value) {
  328 + addCriterion("type_id <", value, "typeId");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andTypeIdLessThanOrEqualTo(Integer value) {
  333 + addCriterion("type_id <=", value, "typeId");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andTypeIdIn(List<Integer> values) {
  338 + addCriterion("type_id in", values, "typeId");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andTypeIdNotIn(List<Integer> values) {
  343 + addCriterion("type_id not in", values, "typeId");
  344 + return (Criteria) this;
  345 + }
  346 +
  347 + public Criteria andTypeIdBetween(Integer value1, Integer value2) {
  348 + addCriterion("type_id between", value1, value2, "typeId");
  349 + return (Criteria) this;
  350 + }
  351 +
  352 + public Criteria andTypeIdNotBetween(Integer value1, Integer value2) {
  353 + addCriterion("type_id not between", value1, value2, "typeId");
  354 + return (Criteria) this;
  355 + }
  356 +
  357 + public Criteria andIsEquipmentIsNull() {
  358 + addCriterion("is_equipment is null");
  359 + return (Criteria) this;
  360 + }
  361 +
  362 + public Criteria andIsEquipmentIsNotNull() {
  363 + addCriterion("is_equipment is not null");
  364 + return (Criteria) this;
  365 + }
  366 +
  367 + public Criteria andIsEquipmentEqualTo(Integer value) {
  368 + addCriterion("is_equipment =", value, "isEquipment");
  369 + return (Criteria) this;
  370 + }
  371 +
  372 + public Criteria andIsEquipmentNotEqualTo(Integer value) {
  373 + addCriterion("is_equipment <>", value, "isEquipment");
  374 + return (Criteria) this;
  375 + }
  376 +
  377 + public Criteria andIsEquipmentGreaterThan(Integer value) {
  378 + addCriterion("is_equipment >", value, "isEquipment");
  379 + return (Criteria) this;
  380 + }
  381 +
  382 + public Criteria andIsEquipmentGreaterThanOrEqualTo(Integer value) {
  383 + addCriterion("is_equipment >=", value, "isEquipment");
  384 + return (Criteria) this;
  385 + }
  386 +
  387 + public Criteria andIsEquipmentLessThan(Integer value) {
  388 + addCriterion("is_equipment <", value, "isEquipment");
  389 + return (Criteria) this;
  390 + }
  391 +
  392 + public Criteria andIsEquipmentLessThanOrEqualTo(Integer value) {
  393 + addCriterion("is_equipment <=", value, "isEquipment");
  394 + return (Criteria) this;
  395 + }
  396 +
  397 + public Criteria andIsEquipmentIn(List<Integer> values) {
  398 + addCriterion("is_equipment in", values, "isEquipment");
  399 + return (Criteria) this;
  400 + }
  401 +
  402 + public Criteria andIsEquipmentNotIn(List<Integer> values) {
  403 + addCriterion("is_equipment not in", values, "isEquipment");
  404 + return (Criteria) this;
  405 + }
  406 +
  407 + public Criteria andIsEquipmentBetween(Integer value1, Integer value2) {
  408 + addCriterion("is_equipment between", value1, value2, "isEquipment");
  409 + return (Criteria) this;
  410 + }
  411 +
  412 + public Criteria andIsEquipmentNotBetween(Integer value1, Integer value2) {
  413 + addCriterion("is_equipment not between", value1, value2, "isEquipment");
  414 + return (Criteria) this;
  415 + }
  416 + }
  417 +
  418 + public static class Criteria extends GeneratedCriteria {
  419 +
  420 + protected Criteria() {
  421 + super();
  422 + }
  423 + }
  424 +
  425 + public static class Criterion {
  426 + private String condition;
  427 +
  428 + private Object value;
  429 +
  430 + private Object secondValue;
  431 +
  432 + private boolean noValue;
  433 +
  434 + private boolean singleValue;
  435 +
  436 + private boolean betweenValue;
  437 +
  438 + private boolean listValue;
  439 +
  440 + private String typeHandler;
  441 +
  442 + public String getCondition() {
  443 + return condition;
  444 + }
  445 +
  446 + public Object getValue() {
  447 + return value;
  448 + }
  449 +
  450 + public Object getSecondValue() {
  451 + return secondValue;
  452 + }
  453 +
  454 + public boolean isNoValue() {
  455 + return noValue;
  456 + }
  457 +
  458 + public boolean isSingleValue() {
  459 + return singleValue;
  460 + }
  461 +
  462 + public boolean isBetweenValue() {
  463 + return betweenValue;
  464 + }
  465 +
  466 + public boolean isListValue() {
  467 + return listValue;
  468 + }
  469 +
  470 + public String getTypeHandler() {
  471 + return typeHandler;
  472 + }
  473 +
  474 + protected Criterion(String condition) {
  475 + super();
  476 + this.condition = condition;
  477 + this.typeHandler = null;
  478 + this.noValue = true;
  479 + }
  480 +
  481 + protected Criterion(String condition, Object value, String typeHandler) {
  482 + super();
  483 + this.condition = condition;
  484 + this.value = value;
  485 + this.typeHandler = typeHandler;
  486 + if (value instanceof List<?>) {
  487 + this.listValue = true;
  488 + } else {
  489 + this.singleValue = true;
  490 + }
  491 + }
  492 +
  493 + protected Criterion(String condition, Object value) {
  494 + this(condition, value, null);
  495 + }
  496 +
  497 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  498 + super();
  499 + this.condition = condition;
  500 + this.value = value;
  501 + this.secondValue = secondValue;
  502 + this.typeHandler = typeHandler;
  503 + this.betweenValue = true;
  504 + }
  505 +
  506 + protected Criterion(String condition, Object value, Object secondValue) {
  507 + this(condition, value, secondValue, null);
  508 + }
  509 + }
  510 +}
0 511 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeploy.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeploy.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyDeploy implements Serializable {
  8 + @ApiModelProperty(value = "自增主键")
  9 + private Integer id;
  10 +
  11 + @ApiModelProperty(value = "布控任务名称")
  12 + private String name;
  13 +
  14 + @ApiModelProperty(value = "布控开始时间")
  15 + private String startTime;
  16 +
  17 + @ApiModelProperty(value = "布控结束时间")
  18 + private String endTime;
  19 +
  20 + @ApiModelProperty(value = "报警阈值")
  21 + private Float thresld;
  22 +
  23 + private String description;
  24 +
  25 + @ApiModelProperty(value = "布控设备id以逗号分隔")
  26 + private String deployEquip;
  27 +
  28 + @ApiModelProperty(value = "布控库")
  29 + private String deployLib;
  30 +
  31 + @ApiModelProperty(value = "布控类型")
  32 + private Integer deployType;
  33 +
  34 + @ApiModelProperty(value = "创建时间")
  35 + private String createDate;
  36 +
  37 + @ApiModelProperty(value = "布控状态(0工作中/1已撤销)")
  38 + private Integer status;
  39 +
  40 + private Integer isDelete;
  41 +
  42 + @ApiModelProperty(value = "1表示单体布控,0表示不是")
  43 + private Integer singlemonitor;
  44 +
  45 + @ApiModelProperty(value = "人像/车辆id")
  46 + private String singleId;
  47 + /**
  48 + * 设备名称
  49 + */
  50 + private String areaName;
  51 +
  52 + private static final long serialVersionUID = 1L;
  53 +
  54 + public String getAreaName() {
  55 + return areaName;
  56 + }
  57 +
  58 + public void setAreaName(String areaName) {
  59 + this.areaName = areaName;
  60 + }
  61 +
  62 + public Integer getId() {
  63 + return id;
  64 + }
  65 +
  66 + public void setId(Integer id) {
  67 + this.id = id;
  68 + }
  69 +
  70 + public String getName() {
  71 + return name;
  72 + }
  73 +
  74 + public void setName(String name) {
  75 + this.name = name;
  76 + }
  77 +
  78 + public String getStartTime() {
  79 + return startTime;
  80 + }
  81 +
  82 + public void setStartTime(String startTime) {
  83 + this.startTime = startTime;
  84 + }
  85 +
  86 + public String getEndTime() {
  87 + return endTime;
  88 + }
  89 +
  90 + public void setEndTime(String endTime) {
  91 + this.endTime = endTime;
  92 + }
  93 +
  94 + public Float getThresld() {
  95 + return thresld;
  96 + }
  97 +
  98 + public void setThresld(Float thresld) {
  99 + this.thresld = thresld;
  100 + }
  101 +
  102 + public String getDescription() {
  103 + return description;
  104 + }
  105 +
  106 + public void setDescription(String description) {
  107 + this.description = description;
  108 + }
  109 +
  110 + public String getDeployEquip() {
  111 + return deployEquip;
  112 + }
  113 +
  114 + public void setDeployEquip(String deployEquip) {
  115 + this.deployEquip = deployEquip;
  116 + }
  117 +
  118 + public String getDeployLib() {
  119 + return deployLib;
  120 + }
  121 +
  122 + public void setDeployLib(String deployLib) {
  123 + this.deployLib = deployLib;
  124 + }
  125 +
  126 + public Integer getDeployType() {
  127 + return deployType;
  128 + }
  129 +
  130 + public void setDeployType(Integer deployType) {
  131 + this.deployType = deployType;
  132 + }
  133 +
  134 + public String getCreateDate() {
  135 + return createDate;
  136 + }
  137 +
  138 + public void setCreateDate(String createDate) {
  139 + this.createDate = createDate;
  140 + }
  141 +
  142 + public Integer getStatus() {
  143 + return status;
  144 + }
  145 +
  146 + public void setStatus(Integer status) {
  147 + this.status = status;
  148 + }
  149 +
  150 + public Integer getIsDelete() {
  151 + return isDelete;
  152 + }
  153 +
  154 + public void setIsDelete(Integer isDelete) {
  155 + this.isDelete = isDelete;
  156 + }
  157 +
  158 + public Integer getSinglemonitor() {
  159 + return singlemonitor;
  160 + }
  161 +
  162 + public void setSinglemonitor(Integer singlemonitor) {
  163 + this.singlemonitor = singlemonitor;
  164 + }
  165 +
  166 + public String getSingleId() {
  167 + return singleId;
  168 + }
  169 +
  170 + public void setSingleId(String singleId) {
  171 + this.singleId = singleId;
  172 + }
  173 +
  174 + @Override
  175 + public String toString() {
  176 + StringBuilder sb = new StringBuilder();
  177 + sb.append(getClass().getSimpleName());
  178 + sb.append(" [");
  179 + sb.append("Hash = ").append(hashCode());
  180 + sb.append(", id=").append(id);
  181 + sb.append(", name=").append(name);
  182 + sb.append(", startTime=").append(startTime);
  183 + sb.append(", endTime=").append(endTime);
  184 + sb.append(", thresld=").append(thresld);
  185 + sb.append(", description=").append(description);
  186 + sb.append(", deployEquip=").append(deployEquip);
  187 + sb.append(", deployLib=").append(deployLib);
  188 + sb.append(", deployType=").append(deployType);
  189 + sb.append(", createDate=").append(createDate);
  190 + sb.append(", status=").append(status);
  191 + sb.append(", isDelete=").append(isDelete);
  192 + sb.append(", singlemonitor=").append(singlemonitor);
  193 + sb.append(", singleId=").append(singleId);
  194 + sb.append(", serialVersionUID=").append(serialVersionUID);
  195 + sb.append("]");
  196 + return sb.toString();
  197 + }
  198 +}
0 199 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeployEquipment.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeployEquipment.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyDeployEquipment implements Serializable {
  8 + @ApiModelProperty(value = "自增主键")
  9 + private Integer id;
  10 +
  11 + @ApiModelProperty(value = "设备外键")
  12 + private Integer eid;
  13 +
  14 + @ApiModelProperty(value = "布控表外键")
  15 + private Integer did;
  16 +
  17 + @ApiModelProperty(value = "是否删除")
  18 + private Integer isDelete;
  19 +
  20 + private static final long serialVersionUID = 1L;
  21 +
  22 + public Integer getId() {
  23 + return id;
  24 + }
  25 +
  26 + public void setId(Integer id) {
  27 + this.id = id;
  28 + }
  29 +
  30 + public Integer getEid() {
  31 + return eid;
  32 + }
  33 +
  34 + public void setEid(Integer eid) {
  35 + this.eid = eid;
  36 + }
  37 +
  38 + public Integer getDid() {
  39 + return did;
  40 + }
  41 +
  42 + public void setDid(Integer did) {
  43 + this.did = did;
  44 + }
  45 +
  46 + public Integer getIsDelete() {
  47 + return isDelete;
  48 + }
  49 +
  50 + public void setIsDelete(Integer isDelete) {
  51 + this.isDelete = isDelete;
  52 + }
  53 +
  54 + @Override
  55 + public String toString() {
  56 + StringBuilder sb = new StringBuilder();
  57 + sb.append(getClass().getSimpleName());
  58 + sb.append(" [");
  59 + sb.append("Hash = ").append(hashCode());
  60 + sb.append(", id=").append(id);
  61 + sb.append(", eid=").append(eid);
  62 + sb.append(", did=").append(did);
  63 + sb.append(", isDelete=").append(isDelete);
  64 + sb.append(", serialVersionUID=").append(serialVersionUID);
  65 + sb.append("]");
  66 + return sb.toString();
  67 + }
  68 +}
0 69 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeployEquipmentExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeployEquipmentExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyDeployEquipmentExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyDeployEquipmentExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andEidIsNull() {
  168 + addCriterion("eid is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andEidIsNotNull() {
  173 + addCriterion("eid is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andEidEqualTo(Integer value) {
  178 + addCriterion("eid =", value, "eid");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andEidNotEqualTo(Integer value) {
  183 + addCriterion("eid <>", value, "eid");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andEidGreaterThan(Integer value) {
  188 + addCriterion("eid >", value, "eid");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andEidGreaterThanOrEqualTo(Integer value) {
  193 + addCriterion("eid >=", value, "eid");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andEidLessThan(Integer value) {
  198 + addCriterion("eid <", value, "eid");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andEidLessThanOrEqualTo(Integer value) {
  203 + addCriterion("eid <=", value, "eid");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andEidIn(List<Integer> values) {
  208 + addCriterion("eid in", values, "eid");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andEidNotIn(List<Integer> values) {
  213 + addCriterion("eid not in", values, "eid");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andEidBetween(Integer value1, Integer value2) {
  218 + addCriterion("eid between", value1, value2, "eid");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andEidNotBetween(Integer value1, Integer value2) {
  223 + addCriterion("eid not between", value1, value2, "eid");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andDidIsNull() {
  228 + addCriterion("did is null");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andDidIsNotNull() {
  233 + addCriterion("did is not null");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andDidEqualTo(Integer value) {
  238 + addCriterion("did =", value, "did");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andDidNotEqualTo(Integer value) {
  243 + addCriterion("did <>", value, "did");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andDidGreaterThan(Integer value) {
  248 + addCriterion("did >", value, "did");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andDidGreaterThanOrEqualTo(Integer value) {
  253 + addCriterion("did >=", value, "did");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andDidLessThan(Integer value) {
  258 + addCriterion("did <", value, "did");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andDidLessThanOrEqualTo(Integer value) {
  263 + addCriterion("did <=", value, "did");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andDidIn(List<Integer> values) {
  268 + addCriterion("did in", values, "did");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andDidNotIn(List<Integer> values) {
  273 + addCriterion("did not in", values, "did");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andDidBetween(Integer value1, Integer value2) {
  278 + addCriterion("did between", value1, value2, "did");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andDidNotBetween(Integer value1, Integer value2) {
  283 + addCriterion("did not between", value1, value2, "did");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andIsDeleteIsNull() {
  288 + addCriterion("is_delete is null");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andIsDeleteIsNotNull() {
  293 + addCriterion("is_delete is not null");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andIsDeleteEqualTo(Integer value) {
  298 + addCriterion("is_delete =", value, "isDelete");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andIsDeleteNotEqualTo(Integer value) {
  303 + addCriterion("is_delete <>", value, "isDelete");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andIsDeleteGreaterThan(Integer value) {
  308 + addCriterion("is_delete >", value, "isDelete");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
  313 + addCriterion("is_delete >=", value, "isDelete");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andIsDeleteLessThan(Integer value) {
  318 + addCriterion("is_delete <", value, "isDelete");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
  323 + addCriterion("is_delete <=", value, "isDelete");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andIsDeleteIn(List<Integer> values) {
  328 + addCriterion("is_delete in", values, "isDelete");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andIsDeleteNotIn(List<Integer> values) {
  333 + addCriterion("is_delete not in", values, "isDelete");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
  338 + addCriterion("is_delete between", value1, value2, "isDelete");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
  343 + addCriterion("is_delete not between", value1, value2, "isDelete");
  344 + return (Criteria) this;
  345 + }
  346 + }
  347 +
  348 + public static class Criteria extends GeneratedCriteria {
  349 +
  350 + protected Criteria() {
  351 + super();
  352 + }
  353 + }
  354 +
  355 + public static class Criterion {
  356 + private String condition;
  357 +
  358 + private Object value;
  359 +
  360 + private Object secondValue;
  361 +
  362 + private boolean noValue;
  363 +
  364 + private boolean singleValue;
  365 +
  366 + private boolean betweenValue;
  367 +
  368 + private boolean listValue;
  369 +
  370 + private String typeHandler;
  371 +
  372 + public String getCondition() {
  373 + return condition;
  374 + }
  375 +
  376 + public Object getValue() {
  377 + return value;
  378 + }
  379 +
  380 + public Object getSecondValue() {
  381 + return secondValue;
  382 + }
  383 +
  384 + public boolean isNoValue() {
  385 + return noValue;
  386 + }
  387 +
  388 + public boolean isSingleValue() {
  389 + return singleValue;
  390 + }
  391 +
  392 + public boolean isBetweenValue() {
  393 + return betweenValue;
  394 + }
  395 +
  396 + public boolean isListValue() {
  397 + return listValue;
  398 + }
  399 +
  400 + public String getTypeHandler() {
  401 + return typeHandler;
  402 + }
  403 +
  404 + protected Criterion(String condition) {
  405 + super();
  406 + this.condition = condition;
  407 + this.typeHandler = null;
  408 + this.noValue = true;
  409 + }
  410 +
  411 + protected Criterion(String condition, Object value, String typeHandler) {
  412 + super();
  413 + this.condition = condition;
  414 + this.value = value;
  415 + this.typeHandler = typeHandler;
  416 + if (value instanceof List<?>) {
  417 + this.listValue = true;
  418 + } else {
  419 + this.singleValue = true;
  420 + }
  421 + }
  422 +
  423 + protected Criterion(String condition, Object value) {
  424 + this(condition, value, null);
  425 + }
  426 +
  427 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  428 + super();
  429 + this.condition = condition;
  430 + this.value = value;
  431 + this.secondValue = secondValue;
  432 + this.typeHandler = typeHandler;
  433 + this.betweenValue = true;
  434 + }
  435 +
  436 + protected Criterion(String condition, Object value, Object secondValue) {
  437 + this(condition, value, secondValue, null);
  438 + }
  439 + }
  440 +}
0 441 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeployExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeployExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyDeployExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyDeployExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andNameIsNull() {
  168 + addCriterion("name is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andNameIsNotNull() {
  173 + addCriterion("name is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andNameEqualTo(String value) {
  178 + addCriterion("name =", value, "name");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andNameNotEqualTo(String value) {
  183 + addCriterion("name <>", value, "name");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andNameGreaterThan(String value) {
  188 + addCriterion("name >", value, "name");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andNameGreaterThanOrEqualTo(String value) {
  193 + addCriterion("name >=", value, "name");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andNameLessThan(String value) {
  198 + addCriterion("name <", value, "name");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andNameLessThanOrEqualTo(String value) {
  203 + addCriterion("name <=", value, "name");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andNameLike(String value) {
  208 + addCriterion("name like", value, "name");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andNameNotLike(String value) {
  213 + addCriterion("name not like", value, "name");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andNameIn(List<String> values) {
  218 + addCriterion("name in", values, "name");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andNameNotIn(List<String> values) {
  223 + addCriterion("name not in", values, "name");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andNameBetween(String value1, String value2) {
  228 + addCriterion("name between", value1, value2, "name");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andNameNotBetween(String value1, String value2) {
  233 + addCriterion("name not between", value1, value2, "name");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andStartTimeIsNull() {
  238 + addCriterion("start_time is null");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andStartTimeIsNotNull() {
  243 + addCriterion("start_time is not null");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andStartTimeEqualTo(String value) {
  248 + addCriterion("start_time =", value, "startTime");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andStartTimeNotEqualTo(String value) {
  253 + addCriterion("start_time <>", value, "startTime");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andStartTimeGreaterThan(String value) {
  258 + addCriterion("start_time >", value, "startTime");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andStartTimeGreaterThanOrEqualTo(String value) {
  263 + addCriterion("start_time >=", value, "startTime");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andStartTimeLessThan(String value) {
  268 + addCriterion("start_time <", value, "startTime");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andStartTimeLessThanOrEqualTo(String value) {
  273 + addCriterion("start_time <=", value, "startTime");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andStartTimeLike(String value) {
  278 + addCriterion("start_time like", value, "startTime");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andStartTimeNotLike(String value) {
  283 + addCriterion("start_time not like", value, "startTime");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andStartTimeIn(List<String> values) {
  288 + addCriterion("start_time in", values, "startTime");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andStartTimeNotIn(List<String> values) {
  293 + addCriterion("start_time not in", values, "startTime");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andStartTimeBetween(String value1, String value2) {
  298 + addCriterion("start_time between", value1, value2, "startTime");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andStartTimeNotBetween(String value1, String value2) {
  303 + addCriterion("start_time not between", value1, value2, "startTime");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andEndTimeIsNull() {
  308 + addCriterion("end_time is null");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andEndTimeIsNotNull() {
  313 + addCriterion("end_time is not null");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andEndTimeEqualTo(String value) {
  318 + addCriterion("end_time =", value, "endTime");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andEndTimeNotEqualTo(String value) {
  323 + addCriterion("end_time <>", value, "endTime");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andEndTimeGreaterThan(String value) {
  328 + addCriterion("end_time >", value, "endTime");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andEndTimeGreaterThanOrEqualTo(String value) {
  333 + addCriterion("end_time >=", value, "endTime");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andEndTimeLessThan(String value) {
  338 + addCriterion("end_time <", value, "endTime");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andEndTimeLessThanOrEqualTo(String value) {
  343 + addCriterion("end_time <=", value, "endTime");
  344 + return (Criteria) this;
  345 + }
  346 +
  347 + public Criteria andEndTimeLike(String value) {
  348 + addCriterion("end_time like", value, "endTime");
  349 + return (Criteria) this;
  350 + }
  351 +
  352 + public Criteria andEndTimeNotLike(String value) {
  353 + addCriterion("end_time not like", value, "endTime");
  354 + return (Criteria) this;
  355 + }
  356 +
  357 + public Criteria andEndTimeIn(List<String> values) {
  358 + addCriterion("end_time in", values, "endTime");
  359 + return (Criteria) this;
  360 + }
  361 +
  362 + public Criteria andEndTimeNotIn(List<String> values) {
  363 + addCriterion("end_time not in", values, "endTime");
  364 + return (Criteria) this;
  365 + }
  366 +
  367 + public Criteria andEndTimeBetween(String value1, String value2) {
  368 + addCriterion("end_time between", value1, value2, "endTime");
  369 + return (Criteria) this;
  370 + }
  371 +
  372 + public Criteria andEndTimeNotBetween(String value1, String value2) {
  373 + addCriterion("end_time not between", value1, value2, "endTime");
  374 + return (Criteria) this;
  375 + }
  376 +
  377 + public Criteria andThresldIsNull() {
  378 + addCriterion("thresld is null");
  379 + return (Criteria) this;
  380 + }
  381 +
  382 + public Criteria andThresldIsNotNull() {
  383 + addCriterion("thresld is not null");
  384 + return (Criteria) this;
  385 + }
  386 +
  387 + public Criteria andThresldEqualTo(Float value) {
  388 + addCriterion("thresld =", value, "thresld");
  389 + return (Criteria) this;
  390 + }
  391 +
  392 + public Criteria andThresldNotEqualTo(Float value) {
  393 + addCriterion("thresld <>", value, "thresld");
  394 + return (Criteria) this;
  395 + }
  396 +
  397 + public Criteria andThresldGreaterThan(Float value) {
  398 + addCriterion("thresld >", value, "thresld");
  399 + return (Criteria) this;
  400 + }
  401 +
  402 + public Criteria andThresldGreaterThanOrEqualTo(Float value) {
  403 + addCriterion("thresld >=", value, "thresld");
  404 + return (Criteria) this;
  405 + }
  406 +
  407 + public Criteria andThresldLessThan(Float value) {
  408 + addCriterion("thresld <", value, "thresld");
  409 + return (Criteria) this;
  410 + }
  411 +
  412 + public Criteria andThresldLessThanOrEqualTo(Float value) {
  413 + addCriterion("thresld <=", value, "thresld");
  414 + return (Criteria) this;
  415 + }
  416 +
  417 + public Criteria andThresldIn(List<Float> values) {
  418 + addCriterion("thresld in", values, "thresld");
  419 + return (Criteria) this;
  420 + }
  421 +
  422 + public Criteria andThresldNotIn(List<Float> values) {
  423 + addCriterion("thresld not in", values, "thresld");
  424 + return (Criteria) this;
  425 + }
  426 +
  427 + public Criteria andThresldBetween(Float value1, Float value2) {
  428 + addCriterion("thresld between", value1, value2, "thresld");
  429 + return (Criteria) this;
  430 + }
  431 +
  432 + public Criteria andThresldNotBetween(Float value1, Float value2) {
  433 + addCriterion("thresld not between", value1, value2, "thresld");
  434 + return (Criteria) this;
  435 + }
  436 +
  437 + public Criteria andDescriptionIsNull() {
  438 + addCriterion("description is null");
  439 + return (Criteria) this;
  440 + }
  441 +
  442 + public Criteria andDescriptionIsNotNull() {
  443 + addCriterion("description is not null");
  444 + return (Criteria) this;
  445 + }
  446 +
  447 + public Criteria andDescriptionEqualTo(String value) {
  448 + addCriterion("description =", value, "description");
  449 + return (Criteria) this;
  450 + }
  451 +
  452 + public Criteria andDescriptionNotEqualTo(String value) {
  453 + addCriterion("description <>", value, "description");
  454 + return (Criteria) this;
  455 + }
  456 +
  457 + public Criteria andDescriptionGreaterThan(String value) {
  458 + addCriterion("description >", value, "description");
  459 + return (Criteria) this;
  460 + }
  461 +
  462 + public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
  463 + addCriterion("description >=", value, "description");
  464 + return (Criteria) this;
  465 + }
  466 +
  467 + public Criteria andDescriptionLessThan(String value) {
  468 + addCriterion("description <", value, "description");
  469 + return (Criteria) this;
  470 + }
  471 +
  472 + public Criteria andDescriptionLessThanOrEqualTo(String value) {
  473 + addCriterion("description <=", value, "description");
  474 + return (Criteria) this;
  475 + }
  476 +
  477 + public Criteria andDescriptionLike(String value) {
  478 + addCriterion("description like", value, "description");
  479 + return (Criteria) this;
  480 + }
  481 +
  482 + public Criteria andDescriptionNotLike(String value) {
  483 + addCriterion("description not like", value, "description");
  484 + return (Criteria) this;
  485 + }
  486 +
  487 + public Criteria andDescriptionIn(List<String> values) {
  488 + addCriterion("description in", values, "description");
  489 + return (Criteria) this;
  490 + }
  491 +
  492 + public Criteria andDescriptionNotIn(List<String> values) {
  493 + addCriterion("description not in", values, "description");
  494 + return (Criteria) this;
  495 + }
  496 +
  497 + public Criteria andDescriptionBetween(String value1, String value2) {
  498 + addCriterion("description between", value1, value2, "description");
  499 + return (Criteria) this;
  500 + }
  501 +
  502 + public Criteria andDescriptionNotBetween(String value1, String value2) {
  503 + addCriterion("description not between", value1, value2, "description");
  504 + return (Criteria) this;
  505 + }
  506 +
  507 + public Criteria andDeployEquipIsNull() {
  508 + addCriterion("deploy_equip is null");
  509 + return (Criteria) this;
  510 + }
  511 +
  512 + public Criteria andDeployEquipIsNotNull() {
  513 + addCriterion("deploy_equip is not null");
  514 + return (Criteria) this;
  515 + }
  516 +
  517 + public Criteria andDeployEquipEqualTo(String value) {
  518 + addCriterion("deploy_equip =", value, "deployEquip");
  519 + return (Criteria) this;
  520 + }
  521 +
  522 + public Criteria andDeployEquipNotEqualTo(String value) {
  523 + addCriterion("deploy_equip <>", value, "deployEquip");
  524 + return (Criteria) this;
  525 + }
  526 +
  527 + public Criteria andDeployEquipGreaterThan(String value) {
  528 + addCriterion("deploy_equip >", value, "deployEquip");
  529 + return (Criteria) this;
  530 + }
  531 +
  532 + public Criteria andDeployEquipGreaterThanOrEqualTo(String value) {
  533 + addCriterion("deploy_equip >=", value, "deployEquip");
  534 + return (Criteria) this;
  535 + }
  536 +
  537 + public Criteria andDeployEquipLessThan(String value) {
  538 + addCriterion("deploy_equip <", value, "deployEquip");
  539 + return (Criteria) this;
  540 + }
  541 +
  542 + public Criteria andDeployEquipLessThanOrEqualTo(String value) {
  543 + addCriterion("deploy_equip <=", value, "deployEquip");
  544 + return (Criteria) this;
  545 + }
  546 +
  547 + public Criteria andDeployEquipLike(String value) {
  548 + addCriterion("deploy_equip like", value, "deployEquip");
  549 + return (Criteria) this;
  550 + }
  551 +
  552 + public Criteria andDeployEquipNotLike(String value) {
  553 + addCriterion("deploy_equip not like", value, "deployEquip");
  554 + return (Criteria) this;
  555 + }
  556 +
  557 + public Criteria andDeployEquipIn(List<String> values) {
  558 + addCriterion("deploy_equip in", values, "deployEquip");
  559 + return (Criteria) this;
  560 + }
  561 +
  562 + public Criteria andDeployEquipNotIn(List<String> values) {
  563 + addCriterion("deploy_equip not in", values, "deployEquip");
  564 + return (Criteria) this;
  565 + }
  566 +
  567 + public Criteria andDeployEquipBetween(String value1, String value2) {
  568 + addCriterion("deploy_equip between", value1, value2, "deployEquip");
  569 + return (Criteria) this;
  570 + }
  571 +
  572 + public Criteria andDeployEquipNotBetween(String value1, String value2) {
  573 + addCriterion("deploy_equip not between", value1, value2, "deployEquip");
  574 + return (Criteria) this;
  575 + }
  576 +
  577 + public Criteria andDeployLibIsNull() {
  578 + addCriterion("deploy_lib is null");
  579 + return (Criteria) this;
  580 + }
  581 +
  582 + public Criteria andDeployLibIsNotNull() {
  583 + addCriterion("deploy_lib is not null");
  584 + return (Criteria) this;
  585 + }
  586 +
  587 + public Criteria andDeployLibEqualTo(String value) {
  588 + addCriterion("deploy_lib =", value, "deployLib");
  589 + return (Criteria) this;
  590 + }
  591 +
  592 + public Criteria andDeployLibNotEqualTo(String value) {
  593 + addCriterion("deploy_lib <>", value, "deployLib");
  594 + return (Criteria) this;
  595 + }
  596 +
  597 + public Criteria andDeployLibGreaterThan(String value) {
  598 + addCriterion("deploy_lib >", value, "deployLib");
  599 + return (Criteria) this;
  600 + }
  601 +
  602 + public Criteria andDeployLibGreaterThanOrEqualTo(String value) {
  603 + addCriterion("deploy_lib >=", value, "deployLib");
  604 + return (Criteria) this;
  605 + }
  606 +
  607 + public Criteria andDeployLibLessThan(String value) {
  608 + addCriterion("deploy_lib <", value, "deployLib");
  609 + return (Criteria) this;
  610 + }
  611 +
  612 + public Criteria andDeployLibLessThanOrEqualTo(String value) {
  613 + addCriterion("deploy_lib <=", value, "deployLib");
  614 + return (Criteria) this;
  615 + }
  616 +
  617 + public Criteria andDeployLibLike(String value) {
  618 + addCriterion("deploy_lib like", value, "deployLib");
  619 + return (Criteria) this;
  620 + }
  621 +
  622 + public Criteria andDeployLibNotLike(String value) {
  623 + addCriterion("deploy_lib not like", value, "deployLib");
  624 + return (Criteria) this;
  625 + }
  626 +
  627 + public Criteria andDeployLibIn(List<String> values) {
  628 + addCriterion("deploy_lib in", values, "deployLib");
  629 + return (Criteria) this;
  630 + }
  631 +
  632 + public Criteria andDeployLibNotIn(List<String> values) {
  633 + addCriterion("deploy_lib not in", values, "deployLib");
  634 + return (Criteria) this;
  635 + }
  636 +
  637 + public Criteria andDeployLibBetween(String value1, String value2) {
  638 + addCriterion("deploy_lib between", value1, value2, "deployLib");
  639 + return (Criteria) this;
  640 + }
  641 +
  642 + public Criteria andDeployLibNotBetween(String value1, String value2) {
  643 + addCriterion("deploy_lib not between", value1, value2, "deployLib");
  644 + return (Criteria) this;
  645 + }
  646 +
  647 + public Criteria andDeployTypeIsNull() {
  648 + addCriterion("deploy_type is null");
  649 + return (Criteria) this;
  650 + }
  651 +
  652 + public Criteria andDeployTypeIsNotNull() {
  653 + addCriterion("deploy_type is not null");
  654 + return (Criteria) this;
  655 + }
  656 +
  657 + public Criteria andDeployTypeEqualTo(Integer value) {
  658 + addCriterion("deploy_type =", value, "deployType");
  659 + return (Criteria) this;
  660 + }
  661 +
  662 + public Criteria andDeployTypeNotEqualTo(Integer value) {
  663 + addCriterion("deploy_type <>", value, "deployType");
  664 + return (Criteria) this;
  665 + }
  666 +
  667 + public Criteria andDeployTypeGreaterThan(Integer value) {
  668 + addCriterion("deploy_type >", value, "deployType");
  669 + return (Criteria) this;
  670 + }
  671 +
  672 + public Criteria andDeployTypeGreaterThanOrEqualTo(Integer value) {
  673 + addCriterion("deploy_type >=", value, "deployType");
  674 + return (Criteria) this;
  675 + }
  676 +
  677 + public Criteria andDeployTypeLessThan(Integer value) {
  678 + addCriterion("deploy_type <", value, "deployType");
  679 + return (Criteria) this;
  680 + }
  681 +
  682 + public Criteria andDeployTypeLessThanOrEqualTo(Integer value) {
  683 + addCriterion("deploy_type <=", value, "deployType");
  684 + return (Criteria) this;
  685 + }
  686 +
  687 + public Criteria andDeployTypeIn(List<Integer> values) {
  688 + addCriterion("deploy_type in", values, "deployType");
  689 + return (Criteria) this;
  690 + }
  691 +
  692 + public Criteria andDeployTypeNotIn(List<Integer> values) {
  693 + addCriterion("deploy_type not in", values, "deployType");
  694 + return (Criteria) this;
  695 + }
  696 +
  697 + public Criteria andDeployTypeBetween(Integer value1, Integer value2) {
  698 + addCriterion("deploy_type between", value1, value2, "deployType");
  699 + return (Criteria) this;
  700 + }
  701 +
  702 + public Criteria andDeployTypeNotBetween(Integer value1, Integer value2) {
  703 + addCriterion("deploy_type not between", value1, value2, "deployType");
  704 + return (Criteria) this;
  705 + }
  706 +
  707 + public Criteria andCreateDateIsNull() {
  708 + addCriterion("create_date is null");
  709 + return (Criteria) this;
  710 + }
  711 +
  712 + public Criteria andCreateDateIsNotNull() {
  713 + addCriterion("create_date is not null");
  714 + return (Criteria) this;
  715 + }
  716 +
  717 + public Criteria andCreateDateEqualTo(String value) {
  718 + addCriterion("create_date =", value, "createDate");
  719 + return (Criteria) this;
  720 + }
  721 +
  722 + public Criteria andCreateDateNotEqualTo(String value) {
  723 + addCriterion("create_date <>", value, "createDate");
  724 + return (Criteria) this;
  725 + }
  726 +
  727 + public Criteria andCreateDateGreaterThan(String value) {
  728 + addCriterion("create_date >", value, "createDate");
  729 + return (Criteria) this;
  730 + }
  731 +
  732 + public Criteria andCreateDateGreaterThanOrEqualTo(String value) {
  733 + addCriterion("create_date >=", value, "createDate");
  734 + return (Criteria) this;
  735 + }
  736 +
  737 + public Criteria andCreateDateLessThan(String value) {
  738 + addCriterion("create_date <", value, "createDate");
  739 + return (Criteria) this;
  740 + }
  741 +
  742 + public Criteria andCreateDateLessThanOrEqualTo(String value) {
  743 + addCriterion("create_date <=", value, "createDate");
  744 + return (Criteria) this;
  745 + }
  746 +
  747 + public Criteria andCreateDateLike(String value) {
  748 + addCriterion("create_date like", value, "createDate");
  749 + return (Criteria) this;
  750 + }
  751 +
  752 + public Criteria andCreateDateNotLike(String value) {
  753 + addCriterion("create_date not like", value, "createDate");
  754 + return (Criteria) this;
  755 + }
  756 +
  757 + public Criteria andCreateDateIn(List<String> values) {
  758 + addCriterion("create_date in", values, "createDate");
  759 + return (Criteria) this;
  760 + }
  761 +
  762 + public Criteria andCreateDateNotIn(List<String> values) {
  763 + addCriterion("create_date not in", values, "createDate");
  764 + return (Criteria) this;
  765 + }
  766 +
  767 + public Criteria andCreateDateBetween(String value1, String value2) {
  768 + addCriterion("create_date between", value1, value2, "createDate");
  769 + return (Criteria) this;
  770 + }
  771 +
  772 + public Criteria andCreateDateNotBetween(String value1, String value2) {
  773 + addCriterion("create_date not between", value1, value2, "createDate");
  774 + return (Criteria) this;
  775 + }
  776 +
  777 + public Criteria andStatusIsNull() {
  778 + addCriterion("status is null");
  779 + return (Criteria) this;
  780 + }
  781 +
  782 + public Criteria andStatusIsNotNull() {
  783 + addCriterion("status is not null");
  784 + return (Criteria) this;
  785 + }
  786 +
  787 + public Criteria andStatusEqualTo(Integer value) {
  788 + addCriterion("status =", value, "status");
  789 + return (Criteria) this;
  790 + }
  791 +
  792 + public Criteria andStatusNotEqualTo(Integer value) {
  793 + addCriterion("status <>", value, "status");
  794 + return (Criteria) this;
  795 + }
  796 +
  797 + public Criteria andStatusGreaterThan(Integer value) {
  798 + addCriterion("status >", value, "status");
  799 + return (Criteria) this;
  800 + }
  801 +
  802 + public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
  803 + addCriterion("status >=", value, "status");
  804 + return (Criteria) this;
  805 + }
  806 +
  807 + public Criteria andStatusLessThan(Integer value) {
  808 + addCriterion("status <", value, "status");
  809 + return (Criteria) this;
  810 + }
  811 +
  812 + public Criteria andStatusLessThanOrEqualTo(Integer value) {
  813 + addCriterion("status <=", value, "status");
  814 + return (Criteria) this;
  815 + }
  816 +
  817 + public Criteria andStatusIn(List<Integer> values) {
  818 + addCriterion("status in", values, "status");
  819 + return (Criteria) this;
  820 + }
  821 +
  822 + public Criteria andStatusNotIn(List<Integer> values) {
  823 + addCriterion("status not in", values, "status");
  824 + return (Criteria) this;
  825 + }
  826 +
  827 + public Criteria andStatusBetween(Integer value1, Integer value2) {
  828 + addCriterion("status between", value1, value2, "status");
  829 + return (Criteria) this;
  830 + }
  831 +
  832 + public Criteria andStatusNotBetween(Integer value1, Integer value2) {
  833 + addCriterion("status not between", value1, value2, "status");
  834 + return (Criteria) this;
  835 + }
  836 +
  837 + public Criteria andIsDeleteIsNull() {
  838 + addCriterion("is_delete is null");
  839 + return (Criteria) this;
  840 + }
  841 +
  842 + public Criteria andIsDeleteIsNotNull() {
  843 + addCriterion("is_delete is not null");
  844 + return (Criteria) this;
  845 + }
  846 +
  847 + public Criteria andIsDeleteEqualTo(Integer value) {
  848 + addCriterion("is_delete =", value, "isDelete");
  849 + return (Criteria) this;
  850 + }
  851 +
  852 + public Criteria andIsDeleteNotEqualTo(Integer value) {
  853 + addCriterion("is_delete <>", value, "isDelete");
  854 + return (Criteria) this;
  855 + }
  856 +
  857 + public Criteria andIsDeleteGreaterThan(Integer value) {
  858 + addCriterion("is_delete >", value, "isDelete");
  859 + return (Criteria) this;
  860 + }
  861 +
  862 + public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
  863 + addCriterion("is_delete >=", value, "isDelete");
  864 + return (Criteria) this;
  865 + }
  866 +
  867 + public Criteria andIsDeleteLessThan(Integer value) {
  868 + addCriterion("is_delete <", value, "isDelete");
  869 + return (Criteria) this;
  870 + }
  871 +
  872 + public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
  873 + addCriterion("is_delete <=", value, "isDelete");
  874 + return (Criteria) this;
  875 + }
  876 +
  877 + public Criteria andIsDeleteIn(List<Integer> values) {
  878 + addCriterion("is_delete in", values, "isDelete");
  879 + return (Criteria) this;
  880 + }
  881 +
  882 + public Criteria andIsDeleteNotIn(List<Integer> values) {
  883 + addCriterion("is_delete not in", values, "isDelete");
  884 + return (Criteria) this;
  885 + }
  886 +
  887 + public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
  888 + addCriterion("is_delete between", value1, value2, "isDelete");
  889 + return (Criteria) this;
  890 + }
  891 +
  892 + public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
  893 + addCriterion("is_delete not between", value1, value2, "isDelete");
  894 + return (Criteria) this;
  895 + }
  896 +
  897 + public Criteria andSinglemonitorIsNull() {
  898 + addCriterion("singleMonitor is null");
  899 + return (Criteria) this;
  900 + }
  901 +
  902 + public Criteria andSinglemonitorIsNotNull() {
  903 + addCriterion("singleMonitor is not null");
  904 + return (Criteria) this;
  905 + }
  906 +
  907 + public Criteria andSinglemonitorEqualTo(Integer value) {
  908 + addCriterion("singleMonitor =", value, "singlemonitor");
  909 + return (Criteria) this;
  910 + }
  911 +
  912 + public Criteria andSinglemonitorNotEqualTo(Integer value) {
  913 + addCriterion("singleMonitor <>", value, "singlemonitor");
  914 + return (Criteria) this;
  915 + }
  916 +
  917 + public Criteria andSinglemonitorGreaterThan(Integer value) {
  918 + addCriterion("singleMonitor >", value, "singlemonitor");
  919 + return (Criteria) this;
  920 + }
  921 +
  922 + public Criteria andSinglemonitorGreaterThanOrEqualTo(Integer value) {
  923 + addCriterion("singleMonitor >=", value, "singlemonitor");
  924 + return (Criteria) this;
  925 + }
  926 +
  927 + public Criteria andSinglemonitorLessThan(Integer value) {
  928 + addCriterion("singleMonitor <", value, "singlemonitor");
  929 + return (Criteria) this;
  930 + }
  931 +
  932 + public Criteria andSinglemonitorLessThanOrEqualTo(Integer value) {
  933 + addCriterion("singleMonitor <=", value, "singlemonitor");
  934 + return (Criteria) this;
  935 + }
  936 +
  937 + public Criteria andSinglemonitorIn(List<Integer> values) {
  938 + addCriterion("singleMonitor in", values, "singlemonitor");
  939 + return (Criteria) this;
  940 + }
  941 +
  942 + public Criteria andSinglemonitorNotIn(List<Integer> values) {
  943 + addCriterion("singleMonitor not in", values, "singlemonitor");
  944 + return (Criteria) this;
  945 + }
  946 +
  947 + public Criteria andSinglemonitorBetween(Integer value1, Integer value2) {
  948 + addCriterion("singleMonitor between", value1, value2, "singlemonitor");
  949 + return (Criteria) this;
  950 + }
  951 +
  952 + public Criteria andSinglemonitorNotBetween(Integer value1, Integer value2) {
  953 + addCriterion("singleMonitor not between", value1, value2, "singlemonitor");
  954 + return (Criteria) this;
  955 + }
  956 +
  957 + public Criteria andSingleIdIsNull() {
  958 + addCriterion("single_id is null");
  959 + return (Criteria) this;
  960 + }
  961 +
  962 + public Criteria andSingleIdIsNotNull() {
  963 + addCriterion("single_id is not null");
  964 + return (Criteria) this;
  965 + }
  966 +
  967 + public Criteria andSingleIdEqualTo(String value) {
  968 + addCriterion("single_id =", value, "singleId");
  969 + return (Criteria) this;
  970 + }
  971 +
  972 + public Criteria andSingleIdNotEqualTo(String value) {
  973 + addCriterion("single_id <>", value, "singleId");
  974 + return (Criteria) this;
  975 + }
  976 +
  977 + public Criteria andSingleIdGreaterThan(String value) {
  978 + addCriterion("single_id >", value, "singleId");
  979 + return (Criteria) this;
  980 + }
  981 +
  982 + public Criteria andSingleIdGreaterThanOrEqualTo(String value) {
  983 + addCriterion("single_id >=", value, "singleId");
  984 + return (Criteria) this;
  985 + }
  986 +
  987 + public Criteria andSingleIdLessThan(String value) {
  988 + addCriterion("single_id <", value, "singleId");
  989 + return (Criteria) this;
  990 + }
  991 +
  992 + public Criteria andSingleIdLessThanOrEqualTo(String value) {
  993 + addCriterion("single_id <=", value, "singleId");
  994 + return (Criteria) this;
  995 + }
  996 +
  997 + public Criteria andSingleIdLike(String value) {
  998 + addCriterion("single_id like", value, "singleId");
  999 + return (Criteria) this;
  1000 + }
  1001 +
  1002 + public Criteria andSingleIdNotLike(String value) {
  1003 + addCriterion("single_id not like", value, "singleId");
  1004 + return (Criteria) this;
  1005 + }
  1006 +
  1007 + public Criteria andSingleIdIn(List<String> values) {
  1008 + addCriterion("single_id in", values, "singleId");
  1009 + return (Criteria) this;
  1010 + }
  1011 +
  1012 + public Criteria andSingleIdNotIn(List<String> values) {
  1013 + addCriterion("single_id not in", values, "singleId");
  1014 + return (Criteria) this;
  1015 + }
  1016 +
  1017 + public Criteria andSingleIdBetween(String value1, String value2) {
  1018 + addCriterion("single_id between", value1, value2, "singleId");
  1019 + return (Criteria) this;
  1020 + }
  1021 +
  1022 + public Criteria andSingleIdNotBetween(String value1, String value2) {
  1023 + addCriterion("single_id not between", value1, value2, "singleId");
  1024 + return (Criteria) this;
  1025 + }
  1026 + }
  1027 +
  1028 + public static class Criteria extends GeneratedCriteria {
  1029 +
  1030 + protected Criteria() {
  1031 + super();
  1032 + }
  1033 + }
  1034 +
  1035 + public static class Criterion {
  1036 + private String condition;
  1037 +
  1038 + private Object value;
  1039 +
  1040 + private Object secondValue;
  1041 +
  1042 + private boolean noValue;
  1043 +
  1044 + private boolean singleValue;
  1045 +
  1046 + private boolean betweenValue;
  1047 +
  1048 + private boolean listValue;
  1049 +
  1050 + private String typeHandler;
  1051 +
  1052 + public String getCondition() {
  1053 + return condition;
  1054 + }
  1055 +
  1056 + public Object getValue() {
  1057 + return value;
  1058 + }
  1059 +
  1060 + public Object getSecondValue() {
  1061 + return secondValue;
  1062 + }
  1063 +
  1064 + public boolean isNoValue() {
  1065 + return noValue;
  1066 + }
  1067 +
  1068 + public boolean isSingleValue() {
  1069 + return singleValue;
  1070 + }
  1071 +
  1072 + public boolean isBetweenValue() {
  1073 + return betweenValue;
  1074 + }
  1075 +
  1076 + public boolean isListValue() {
  1077 + return listValue;
  1078 + }
  1079 +
  1080 + public String getTypeHandler() {
  1081 + return typeHandler;
  1082 + }
  1083 +
  1084 + protected Criterion(String condition) {
  1085 + super();
  1086 + this.condition = condition;
  1087 + this.typeHandler = null;
  1088 + this.noValue = true;
  1089 + }
  1090 +
  1091 + protected Criterion(String condition, Object value, String typeHandler) {
  1092 + super();
  1093 + this.condition = condition;
  1094 + this.value = value;
  1095 + this.typeHandler = typeHandler;
  1096 + if (value instanceof List<?>) {
  1097 + this.listValue = true;
  1098 + } else {
  1099 + this.singleValue = true;
  1100 + }
  1101 + }
  1102 +
  1103 + protected Criterion(String condition, Object value) {
  1104 + this(condition, value, null);
  1105 + }
  1106 +
  1107 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  1108 + super();
  1109 + this.condition = condition;
  1110 + this.value = value;
  1111 + this.secondValue = secondValue;
  1112 + this.typeHandler = typeHandler;
  1113 + this.betweenValue = true;
  1114 + }
  1115 +
  1116 + protected Criterion(String condition, Object value, Object secondValue) {
  1117 + this(condition, value, secondValue, null);
  1118 + }
  1119 + }
  1120 +}
0 1121 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeployFeature.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeployFeature.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyDeployFeature implements Serializable {
  8 + private Integer id;
  9 +
  10 + @ApiModelProperty(value = "布控外键")
  11 + private Integer did;
  12 +
  13 + @ApiModelProperty(value = "人像库外键")
  14 + private Integer fid;
  15 +
  16 + @ApiModelProperty(value = "是否删除")
  17 + private Integer isDelete;
  18 +
  19 + private static final long serialVersionUID = 1L;
  20 +
  21 + public Integer getId() {
  22 + return id;
  23 + }
  24 +
  25 + public void setId(Integer id) {
  26 + this.id = id;
  27 + }
  28 +
  29 + public Integer getDid() {
  30 + return did;
  31 + }
  32 +
  33 + public void setDid(Integer did) {
  34 + this.did = did;
  35 + }
  36 +
  37 + public Integer getFid() {
  38 + return fid;
  39 + }
  40 +
  41 + public void setFid(Integer fid) {
  42 + this.fid = fid;
  43 + }
  44 +
  45 + public Integer getIsDelete() {
  46 + return isDelete;
  47 + }
  48 +
  49 + public void setIsDelete(Integer isDelete) {
  50 + this.isDelete = isDelete;
  51 + }
  52 +
  53 + @Override
  54 + public String toString() {
  55 + StringBuilder sb = new StringBuilder();
  56 + sb.append(getClass().getSimpleName());
  57 + sb.append(" [");
  58 + sb.append("Hash = ").append(hashCode());
  59 + sb.append(", id=").append(id);
  60 + sb.append(", did=").append(did);
  61 + sb.append(", fid=").append(fid);
  62 + sb.append(", isDelete=").append(isDelete);
  63 + sb.append(", serialVersionUID=").append(serialVersionUID);
  64 + sb.append("]");
  65 + return sb.toString();
  66 + }
  67 +}
0 68 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeployFeatureExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeployFeatureExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyDeployFeatureExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyDeployFeatureExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andDidIsNull() {
  168 + addCriterion("did is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andDidIsNotNull() {
  173 + addCriterion("did is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andDidEqualTo(Integer value) {
  178 + addCriterion("did =", value, "did");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andDidNotEqualTo(Integer value) {
  183 + addCriterion("did <>", value, "did");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andDidGreaterThan(Integer value) {
  188 + addCriterion("did >", value, "did");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andDidGreaterThanOrEqualTo(Integer value) {
  193 + addCriterion("did >=", value, "did");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andDidLessThan(Integer value) {
  198 + addCriterion("did <", value, "did");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andDidLessThanOrEqualTo(Integer value) {
  203 + addCriterion("did <=", value, "did");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andDidIn(List<Integer> values) {
  208 + addCriterion("did in", values, "did");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andDidNotIn(List<Integer> values) {
  213 + addCriterion("did not in", values, "did");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andDidBetween(Integer value1, Integer value2) {
  218 + addCriterion("did between", value1, value2, "did");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andDidNotBetween(Integer value1, Integer value2) {
  223 + addCriterion("did not between", value1, value2, "did");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andFidIsNull() {
  228 + addCriterion("fid is null");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andFidIsNotNull() {
  233 + addCriterion("fid is not null");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andFidEqualTo(Integer value) {
  238 + addCriterion("fid =", value, "fid");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andFidNotEqualTo(Integer value) {
  243 + addCriterion("fid <>", value, "fid");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andFidGreaterThan(Integer value) {
  248 + addCriterion("fid >", value, "fid");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andFidGreaterThanOrEqualTo(Integer value) {
  253 + addCriterion("fid >=", value, "fid");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andFidLessThan(Integer value) {
  258 + addCriterion("fid <", value, "fid");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andFidLessThanOrEqualTo(Integer value) {
  263 + addCriterion("fid <=", value, "fid");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andFidIn(List<Integer> values) {
  268 + addCriterion("fid in", values, "fid");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andFidNotIn(List<Integer> values) {
  273 + addCriterion("fid not in", values, "fid");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andFidBetween(Integer value1, Integer value2) {
  278 + addCriterion("fid between", value1, value2, "fid");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andFidNotBetween(Integer value1, Integer value2) {
  283 + addCriterion("fid not between", value1, value2, "fid");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andIsDeleteIsNull() {
  288 + addCriterion("is_delete is null");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andIsDeleteIsNotNull() {
  293 + addCriterion("is_delete is not null");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andIsDeleteEqualTo(Integer value) {
  298 + addCriterion("is_delete =", value, "isDelete");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andIsDeleteNotEqualTo(Integer value) {
  303 + addCriterion("is_delete <>", value, "isDelete");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andIsDeleteGreaterThan(Integer value) {
  308 + addCriterion("is_delete >", value, "isDelete");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
  313 + addCriterion("is_delete >=", value, "isDelete");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andIsDeleteLessThan(Integer value) {
  318 + addCriterion("is_delete <", value, "isDelete");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
  323 + addCriterion("is_delete <=", value, "isDelete");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andIsDeleteIn(List<Integer> values) {
  328 + addCriterion("is_delete in", values, "isDelete");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andIsDeleteNotIn(List<Integer> values) {
  333 + addCriterion("is_delete not in", values, "isDelete");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
  338 + addCriterion("is_delete between", value1, value2, "isDelete");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
  343 + addCriterion("is_delete not between", value1, value2, "isDelete");
  344 + return (Criteria) this;
  345 + }
  346 + }
  347 +
  348 + public static class Criteria extends GeneratedCriteria {
  349 +
  350 + protected Criteria() {
  351 + super();
  352 + }
  353 + }
  354 +
  355 + public static class Criterion {
  356 + private String condition;
  357 +
  358 + private Object value;
  359 +
  360 + private Object secondValue;
  361 +
  362 + private boolean noValue;
  363 +
  364 + private boolean singleValue;
  365 +
  366 + private boolean betweenValue;
  367 +
  368 + private boolean listValue;
  369 +
  370 + private String typeHandler;
  371 +
  372 + public String getCondition() {
  373 + return condition;
  374 + }
  375 +
  376 + public Object getValue() {
  377 + return value;
  378 + }
  379 +
  380 + public Object getSecondValue() {
  381 + return secondValue;
  382 + }
  383 +
  384 + public boolean isNoValue() {
  385 + return noValue;
  386 + }
  387 +
  388 + public boolean isSingleValue() {
  389 + return singleValue;
  390 + }
  391 +
  392 + public boolean isBetweenValue() {
  393 + return betweenValue;
  394 + }
  395 +
  396 + public boolean isListValue() {
  397 + return listValue;
  398 + }
  399 +
  400 + public String getTypeHandler() {
  401 + return typeHandler;
  402 + }
  403 +
  404 + protected Criterion(String condition) {
  405 + super();
  406 + this.condition = condition;
  407 + this.typeHandler = null;
  408 + this.noValue = true;
  409 + }
  410 +
  411 + protected Criterion(String condition, Object value, String typeHandler) {
  412 + super();
  413 + this.condition = condition;
  414 + this.value = value;
  415 + this.typeHandler = typeHandler;
  416 + if (value instanceof List<?>) {
  417 + this.listValue = true;
  418 + } else {
  419 + this.singleValue = true;
  420 + }
  421 + }
  422 +
  423 + protected Criterion(String condition, Object value) {
  424 + this(condition, value, null);
  425 + }
  426 +
  427 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  428 + super();
  429 + this.condition = condition;
  430 + this.value = value;
  431 + this.secondValue = secondValue;
  432 + this.typeHandler = typeHandler;
  433 + this.betweenValue = true;
  434 + }
  435 +
  436 + protected Criterion(String condition, Object value, Object secondValue) {
  437 + this(condition, value, secondValue, null);
  438 + }
  439 + }
  440 +}
0 441 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyDeployParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyDeployParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +import java.io.Serializable;
  8 +
  9 +@AllArgsConstructor
  10 +@NoArgsConstructor
  11 +@Data
  12 +public class SyDeployParam implements Serializable {
  13 +
  14 + private String[] featureIds;
  15 + private int[] equipmentIds;
  16 + private String name;
  17 + private String startTime;
  18 + private String endTime;
  19 + private float detectThresld;
  20 + private String description;
  21 + private int deployType;
  22 +
  23 +}
... ...
src/main/java/com/objecteye/entity/SyEquipment.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyEquipment.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyEquipment implements Serializable {
  8 + @ApiModelProperty(value = "自增主键")
  9 + private Integer id;
  10 +
  11 + @ApiModelProperty(value = "设备名")
  12 + private String equipmentName;
  13 +
  14 + @ApiModelProperty(value = "设备ip")
  15 + private String equipmentIp;
  16 +
  17 + @ApiModelProperty(value = "rtsp流地址")
  18 + private String rtspUrl;
  19 +
  20 + @ApiModelProperty(value = "经度")
  21 + private String longitude;
  22 +
  23 + @ApiModelProperty(value = "纬度")
  24 + private String latitude;
  25 +
  26 + @ApiModelProperty(value = "朝向")
  27 + private String orientation;
  28 +
  29 + @ApiModelProperty(value = "用户名")
  30 + private String username;
  31 +
  32 + @ApiModelProperty(value = "用户密码")
  33 + private String password;
  34 +
  35 + @ApiModelProperty(value = "设备端口")
  36 + private String equipmentPort;
  37 +
  38 + @ApiModelProperty(value = "网络端口")
  39 + private String intentPort;
  40 +
  41 + @ApiModelProperty(value = "厂商")
  42 + private String vendor;
  43 +
  44 + @ApiModelProperty(value = "描述")
  45 + private String description;
  46 +
  47 + private String createDate;
  48 +
  49 + @ApiModelProperty(value = "更新时间")
  50 + private String updateDate;
  51 +
  52 + private Integer isDelete;
  53 +
  54 + private Integer equipmentType;
  55 +
  56 + @ApiModelProperty(value = "设备状态")
  57 + private Integer status;
  58 +
  59 + @ApiModelProperty(value = "区域外键")
  60 + private Integer aid;
  61 +
  62 + @ApiModelProperty(value = "场所")
  63 + private String place;
  64 +
  65 + private static final long serialVersionUID = 1L;
  66 +
  67 + public Integer getId() {
  68 + return id;
  69 + }
  70 +
  71 + public void setId(Integer id) {
  72 + this.id = id;
  73 + }
  74 +
  75 + public String getEquipmentName() {
  76 + return equipmentName;
  77 + }
  78 +
  79 + public void setEquipmentName(String equipmentName) {
  80 + this.equipmentName = equipmentName;
  81 + }
  82 +
  83 + public String getEquipmentIp() {
  84 + return equipmentIp;
  85 + }
  86 +
  87 + public void setEquipmentIp(String equipmentIp) {
  88 + this.equipmentIp = equipmentIp;
  89 + }
  90 +
  91 + public String getRtspUrl() {
  92 + return rtspUrl;
  93 + }
  94 +
  95 + public void setRtspUrl(String rtspUrl) {
  96 + this.rtspUrl = rtspUrl;
  97 + }
  98 +
  99 + public String getLongitude() {
  100 + return longitude;
  101 + }
  102 +
  103 + public void setLongitude(String longitude) {
  104 + this.longitude = longitude;
  105 + }
  106 +
  107 + public String getLatitude() {
  108 + return latitude;
  109 + }
  110 +
  111 + public void setLatitude(String latitude) {
  112 + this.latitude = latitude;
  113 + }
  114 +
  115 + public String getOrientation() {
  116 + return orientation;
  117 + }
  118 +
  119 + public void setOrientation(String orientation) {
  120 + this.orientation = orientation;
  121 + }
  122 +
  123 + public String getUsername() {
  124 + return username;
  125 + }
  126 +
  127 + public void setUsername(String username) {
  128 + this.username = username;
  129 + }
  130 +
  131 + public String getPassword() {
  132 + return password;
  133 + }
  134 +
  135 + public void setPassword(String password) {
  136 + this.password = password;
  137 + }
  138 +
  139 + public String getEquipmentPort() {
  140 + return equipmentPort;
  141 + }
  142 +
  143 + public void setEquipmentPort(String equipmentPort) {
  144 + this.equipmentPort = equipmentPort;
  145 + }
  146 +
  147 + public String getIntentPort() {
  148 + return intentPort;
  149 + }
  150 +
  151 + public void setIntentPort(String intentPort) {
  152 + this.intentPort = intentPort;
  153 + }
  154 +
  155 + public String getVendor() {
  156 + return vendor;
  157 + }
  158 +
  159 + public void setVendor(String vendor) {
  160 + this.vendor = vendor;
  161 + }
  162 +
  163 + public String getDescription() {
  164 + return description;
  165 + }
  166 +
  167 + public void setDescription(String description) {
  168 + this.description = description;
  169 + }
  170 +
  171 + public String getCreateDate() {
  172 + return createDate;
  173 + }
  174 +
  175 + public void setCreateDate(String createDate) {
  176 + this.createDate = createDate;
  177 + }
  178 +
  179 + public String getUpdateDate() {
  180 + return updateDate;
  181 + }
  182 +
  183 + public void setUpdateDate(String updateDate) {
  184 + this.updateDate = updateDate;
  185 + }
  186 +
  187 + public Integer getIsDelete() {
  188 + return isDelete;
  189 + }
  190 +
  191 + public void setIsDelete(Integer isDelete) {
  192 + this.isDelete = isDelete;
  193 + }
  194 +
  195 + public Integer getEquipmentType() {
  196 + return equipmentType;
  197 + }
  198 +
  199 + public void setEquipmentType(Integer equipmentType) {
  200 + this.equipmentType = equipmentType;
  201 + }
  202 +
  203 + public Integer getStatus() {
  204 + return status;
  205 + }
  206 +
  207 + public void setStatus(Integer status) {
  208 + this.status = status;
  209 + }
  210 +
  211 + public Integer getAid() {
  212 + return aid;
  213 + }
  214 +
  215 + public void setAid(Integer aid) {
  216 + this.aid = aid;
  217 + }
  218 +
  219 + public String getPlace() {
  220 + return place;
  221 + }
  222 +
  223 + public void setPlace(String place) {
  224 + this.place = place;
  225 + }
  226 +
  227 + @Override
  228 + public String toString() {
  229 + StringBuilder sb = new StringBuilder();
  230 + sb.append(getClass().getSimpleName());
  231 + sb.append(" [");
  232 + sb.append("Hash = ").append(hashCode());
  233 + sb.append(", id=").append(id);
  234 + sb.append(", equipmentName=").append(equipmentName);
  235 + sb.append(", equipmentIp=").append(equipmentIp);
  236 + sb.append(", rtspUrl=").append(rtspUrl);
  237 + sb.append(", longitude=").append(longitude);
  238 + sb.append(", latitude=").append(latitude);
  239 + sb.append(", orientation=").append(orientation);
  240 + sb.append(", username=").append(username);
  241 + sb.append(", password=").append(password);
  242 + sb.append(", equipmentPort=").append(equipmentPort);
  243 + sb.append(", intentPort=").append(intentPort);
  244 + sb.append(", vendor=").append(vendor);
  245 + sb.append(", description=").append(description);
  246 + sb.append(", createDate=").append(createDate);
  247 + sb.append(", updateDate=").append(updateDate);
  248 + sb.append(", isDelete=").append(isDelete);
  249 + sb.append(", equipmentType=").append(equipmentType);
  250 + sb.append(", status=").append(status);
  251 + sb.append(", aid=").append(aid);
  252 + sb.append(", place=").append(place);
  253 + sb.append(", serialVersionUID=").append(serialVersionUID);
  254 + sb.append("]");
  255 + return sb.toString();
  256 + }
  257 +}
0 258 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyEquipmentExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyEquipmentExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyEquipmentExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyEquipmentExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andEquipmentNameIsNull() {
  168 + addCriterion("equipment_name is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andEquipmentNameIsNotNull() {
  173 + addCriterion("equipment_name is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andEquipmentNameEqualTo(String value) {
  178 + addCriterion("equipment_name =", value, "equipmentName");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andEquipmentNameNotEqualTo(String value) {
  183 + addCriterion("equipment_name <>", value, "equipmentName");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andEquipmentNameGreaterThan(String value) {
  188 + addCriterion("equipment_name >", value, "equipmentName");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andEquipmentNameGreaterThanOrEqualTo(String value) {
  193 + addCriterion("equipment_name >=", value, "equipmentName");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andEquipmentNameLessThan(String value) {
  198 + addCriterion("equipment_name <", value, "equipmentName");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andEquipmentNameLessThanOrEqualTo(String value) {
  203 + addCriterion("equipment_name <=", value, "equipmentName");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andEquipmentNameLike(String value) {
  208 + addCriterion("equipment_name like", value, "equipmentName");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andEquipmentNameNotLike(String value) {
  213 + addCriterion("equipment_name not like", value, "equipmentName");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andEquipmentNameIn(List<String> values) {
  218 + addCriterion("equipment_name in", values, "equipmentName");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andEquipmentNameNotIn(List<String> values) {
  223 + addCriterion("equipment_name not in", values, "equipmentName");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andEquipmentNameBetween(String value1, String value2) {
  228 + addCriterion("equipment_name between", value1, value2, "equipmentName");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andEquipmentNameNotBetween(String value1, String value2) {
  233 + addCriterion("equipment_name not between", value1, value2, "equipmentName");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andEquipmentIpIsNull() {
  238 + addCriterion("equipment_ip is null");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andEquipmentIpIsNotNull() {
  243 + addCriterion("equipment_ip is not null");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andEquipmentIpEqualTo(String value) {
  248 + addCriterion("equipment_ip =", value, "equipmentIp");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andEquipmentIpNotEqualTo(String value) {
  253 + addCriterion("equipment_ip <>", value, "equipmentIp");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andEquipmentIpGreaterThan(String value) {
  258 + addCriterion("equipment_ip >", value, "equipmentIp");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andEquipmentIpGreaterThanOrEqualTo(String value) {
  263 + addCriterion("equipment_ip >=", value, "equipmentIp");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andEquipmentIpLessThan(String value) {
  268 + addCriterion("equipment_ip <", value, "equipmentIp");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andEquipmentIpLessThanOrEqualTo(String value) {
  273 + addCriterion("equipment_ip <=", value, "equipmentIp");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andEquipmentIpLike(String value) {
  278 + addCriterion("equipment_ip like", value, "equipmentIp");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andEquipmentIpNotLike(String value) {
  283 + addCriterion("equipment_ip not like", value, "equipmentIp");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andEquipmentIpIn(List<String> values) {
  288 + addCriterion("equipment_ip in", values, "equipmentIp");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andEquipmentIpNotIn(List<String> values) {
  293 + addCriterion("equipment_ip not in", values, "equipmentIp");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andEquipmentIpBetween(String value1, String value2) {
  298 + addCriterion("equipment_ip between", value1, value2, "equipmentIp");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andEquipmentIpNotBetween(String value1, String value2) {
  303 + addCriterion("equipment_ip not between", value1, value2, "equipmentIp");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andRtspUrlIsNull() {
  308 + addCriterion("rtsp_url is null");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andRtspUrlIsNotNull() {
  313 + addCriterion("rtsp_url is not null");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andRtspUrlEqualTo(String value) {
  318 + addCriterion("rtsp_url =", value, "rtspUrl");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andRtspUrlNotEqualTo(String value) {
  323 + addCriterion("rtsp_url <>", value, "rtspUrl");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andRtspUrlGreaterThan(String value) {
  328 + addCriterion("rtsp_url >", value, "rtspUrl");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andRtspUrlGreaterThanOrEqualTo(String value) {
  333 + addCriterion("rtsp_url >=", value, "rtspUrl");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andRtspUrlLessThan(String value) {
  338 + addCriterion("rtsp_url <", value, "rtspUrl");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andRtspUrlLessThanOrEqualTo(String value) {
  343 + addCriterion("rtsp_url <=", value, "rtspUrl");
  344 + return (Criteria) this;
  345 + }
  346 +
  347 + public Criteria andRtspUrlLike(String value) {
  348 + addCriterion("rtsp_url like", value, "rtspUrl");
  349 + return (Criteria) this;
  350 + }
  351 +
  352 + public Criteria andRtspUrlNotLike(String value) {
  353 + addCriterion("rtsp_url not like", value, "rtspUrl");
  354 + return (Criteria) this;
  355 + }
  356 +
  357 + public Criteria andRtspUrlIn(List<String> values) {
  358 + addCriterion("rtsp_url in", values, "rtspUrl");
  359 + return (Criteria) this;
  360 + }
  361 +
  362 + public Criteria andRtspUrlNotIn(List<String> values) {
  363 + addCriterion("rtsp_url not in", values, "rtspUrl");
  364 + return (Criteria) this;
  365 + }
  366 +
  367 + public Criteria andRtspUrlBetween(String value1, String value2) {
  368 + addCriterion("rtsp_url between", value1, value2, "rtspUrl");
  369 + return (Criteria) this;
  370 + }
  371 +
  372 + public Criteria andRtspUrlNotBetween(String value1, String value2) {
  373 + addCriterion("rtsp_url not between", value1, value2, "rtspUrl");
  374 + return (Criteria) this;
  375 + }
  376 +
  377 + public Criteria andLongitudeIsNull() {
  378 + addCriterion("longitude is null");
  379 + return (Criteria) this;
  380 + }
  381 +
  382 + public Criteria andLongitudeIsNotNull() {
  383 + addCriterion("longitude is not null");
  384 + return (Criteria) this;
  385 + }
  386 +
  387 + public Criteria andLongitudeEqualTo(String value) {
  388 + addCriterion("longitude =", value, "longitude");
  389 + return (Criteria) this;
  390 + }
  391 +
  392 + public Criteria andLongitudeNotEqualTo(String value) {
  393 + addCriterion("longitude <>", value, "longitude");
  394 + return (Criteria) this;
  395 + }
  396 +
  397 + public Criteria andLongitudeGreaterThan(String value) {
  398 + addCriterion("longitude >", value, "longitude");
  399 + return (Criteria) this;
  400 + }
  401 +
  402 + public Criteria andLongitudeGreaterThanOrEqualTo(String value) {
  403 + addCriterion("longitude >=", value, "longitude");
  404 + return (Criteria) this;
  405 + }
  406 +
  407 + public Criteria andLongitudeLessThan(String value) {
  408 + addCriterion("longitude <", value, "longitude");
  409 + return (Criteria) this;
  410 + }
  411 +
  412 + public Criteria andLongitudeLessThanOrEqualTo(String value) {
  413 + addCriterion("longitude <=", value, "longitude");
  414 + return (Criteria) this;
  415 + }
  416 +
  417 + public Criteria andLongitudeLike(String value) {
  418 + addCriterion("longitude like", value, "longitude");
  419 + return (Criteria) this;
  420 + }
  421 +
  422 + public Criteria andLongitudeNotLike(String value) {
  423 + addCriterion("longitude not like", value, "longitude");
  424 + return (Criteria) this;
  425 + }
  426 +
  427 + public Criteria andLongitudeIn(List<String> values) {
  428 + addCriterion("longitude in", values, "longitude");
  429 + return (Criteria) this;
  430 + }
  431 +
  432 + public Criteria andLongitudeNotIn(List<String> values) {
  433 + addCriterion("longitude not in", values, "longitude");
  434 + return (Criteria) this;
  435 + }
  436 +
  437 + public Criteria andLongitudeBetween(String value1, String value2) {
  438 + addCriterion("longitude between", value1, value2, "longitude");
  439 + return (Criteria) this;
  440 + }
  441 +
  442 + public Criteria andLongitudeNotBetween(String value1, String value2) {
  443 + addCriterion("longitude not between", value1, value2, "longitude");
  444 + return (Criteria) this;
  445 + }
  446 +
  447 + public Criteria andLatitudeIsNull() {
  448 + addCriterion("latitude is null");
  449 + return (Criteria) this;
  450 + }
  451 +
  452 + public Criteria andLatitudeIsNotNull() {
  453 + addCriterion("latitude is not null");
  454 + return (Criteria) this;
  455 + }
  456 +
  457 + public Criteria andLatitudeEqualTo(String value) {
  458 + addCriterion("latitude =", value, "latitude");
  459 + return (Criteria) this;
  460 + }
  461 +
  462 + public Criteria andLatitudeNotEqualTo(String value) {
  463 + addCriterion("latitude <>", value, "latitude");
  464 + return (Criteria) this;
  465 + }
  466 +
  467 + public Criteria andLatitudeGreaterThan(String value) {
  468 + addCriterion("latitude >", value, "latitude");
  469 + return (Criteria) this;
  470 + }
  471 +
  472 + public Criteria andLatitudeGreaterThanOrEqualTo(String value) {
  473 + addCriterion("latitude >=", value, "latitude");
  474 + return (Criteria) this;
  475 + }
  476 +
  477 + public Criteria andLatitudeLessThan(String value) {
  478 + addCriterion("latitude <", value, "latitude");
  479 + return (Criteria) this;
  480 + }
  481 +
  482 + public Criteria andLatitudeLessThanOrEqualTo(String value) {
  483 + addCriterion("latitude <=", value, "latitude");
  484 + return (Criteria) this;
  485 + }
  486 +
  487 + public Criteria andLatitudeLike(String value) {
  488 + addCriterion("latitude like", value, "latitude");
  489 + return (Criteria) this;
  490 + }
  491 +
  492 + public Criteria andLatitudeNotLike(String value) {
  493 + addCriterion("latitude not like", value, "latitude");
  494 + return (Criteria) this;
  495 + }
  496 +
  497 + public Criteria andLatitudeIn(List<String> values) {
  498 + addCriterion("latitude in", values, "latitude");
  499 + return (Criteria) this;
  500 + }
  501 +
  502 + public Criteria andLatitudeNotIn(List<String> values) {
  503 + addCriterion("latitude not in", values, "latitude");
  504 + return (Criteria) this;
  505 + }
  506 +
  507 + public Criteria andLatitudeBetween(String value1, String value2) {
  508 + addCriterion("latitude between", value1, value2, "latitude");
  509 + return (Criteria) this;
  510 + }
  511 +
  512 + public Criteria andLatitudeNotBetween(String value1, String value2) {
  513 + addCriterion("latitude not between", value1, value2, "latitude");
  514 + return (Criteria) this;
  515 + }
  516 +
  517 + public Criteria andOrientationIsNull() {
  518 + addCriterion("orientation is null");
  519 + return (Criteria) this;
  520 + }
  521 +
  522 + public Criteria andOrientationIsNotNull() {
  523 + addCriterion("orientation is not null");
  524 + return (Criteria) this;
  525 + }
  526 +
  527 + public Criteria andOrientationEqualTo(String value) {
  528 + addCriterion("orientation =", value, "orientation");
  529 + return (Criteria) this;
  530 + }
  531 +
  532 + public Criteria andOrientationNotEqualTo(String value) {
  533 + addCriterion("orientation <>", value, "orientation");
  534 + return (Criteria) this;
  535 + }
  536 +
  537 + public Criteria andOrientationGreaterThan(String value) {
  538 + addCriterion("orientation >", value, "orientation");
  539 + return (Criteria) this;
  540 + }
  541 +
  542 + public Criteria andOrientationGreaterThanOrEqualTo(String value) {
  543 + addCriterion("orientation >=", value, "orientation");
  544 + return (Criteria) this;
  545 + }
  546 +
  547 + public Criteria andOrientationLessThan(String value) {
  548 + addCriterion("orientation <", value, "orientation");
  549 + return (Criteria) this;
  550 + }
  551 +
  552 + public Criteria andOrientationLessThanOrEqualTo(String value) {
  553 + addCriterion("orientation <=", value, "orientation");
  554 + return (Criteria) this;
  555 + }
  556 +
  557 + public Criteria andOrientationLike(String value) {
  558 + addCriterion("orientation like", value, "orientation");
  559 + return (Criteria) this;
  560 + }
  561 +
  562 + public Criteria andOrientationNotLike(String value) {
  563 + addCriterion("orientation not like", value, "orientation");
  564 + return (Criteria) this;
  565 + }
  566 +
  567 + public Criteria andOrientationIn(List<String> values) {
  568 + addCriterion("orientation in", values, "orientation");
  569 + return (Criteria) this;
  570 + }
  571 +
  572 + public Criteria andOrientationNotIn(List<String> values) {
  573 + addCriterion("orientation not in", values, "orientation");
  574 + return (Criteria) this;
  575 + }
  576 +
  577 + public Criteria andOrientationBetween(String value1, String value2) {
  578 + addCriterion("orientation between", value1, value2, "orientation");
  579 + return (Criteria) this;
  580 + }
  581 +
  582 + public Criteria andOrientationNotBetween(String value1, String value2) {
  583 + addCriterion("orientation not between", value1, value2, "orientation");
  584 + return (Criteria) this;
  585 + }
  586 +
  587 + public Criteria andUsernameIsNull() {
  588 + addCriterion("username is null");
  589 + return (Criteria) this;
  590 + }
  591 +
  592 + public Criteria andUsernameIsNotNull() {
  593 + addCriterion("username is not null");
  594 + return (Criteria) this;
  595 + }
  596 +
  597 + public Criteria andUsernameEqualTo(String value) {
  598 + addCriterion("username =", value, "username");
  599 + return (Criteria) this;
  600 + }
  601 +
  602 + public Criteria andUsernameNotEqualTo(String value) {
  603 + addCriterion("username <>", value, "username");
  604 + return (Criteria) this;
  605 + }
  606 +
  607 + public Criteria andUsernameGreaterThan(String value) {
  608 + addCriterion("username >", value, "username");
  609 + return (Criteria) this;
  610 + }
  611 +
  612 + public Criteria andUsernameGreaterThanOrEqualTo(String value) {
  613 + addCriterion("username >=", value, "username");
  614 + return (Criteria) this;
  615 + }
  616 +
  617 + public Criteria andUsernameLessThan(String value) {
  618 + addCriterion("username <", value, "username");
  619 + return (Criteria) this;
  620 + }
  621 +
  622 + public Criteria andUsernameLessThanOrEqualTo(String value) {
  623 + addCriterion("username <=", value, "username");
  624 + return (Criteria) this;
  625 + }
  626 +
  627 + public Criteria andUsernameLike(String value) {
  628 + addCriterion("username like", value, "username");
  629 + return (Criteria) this;
  630 + }
  631 +
  632 + public Criteria andUsernameNotLike(String value) {
  633 + addCriterion("username not like", value, "username");
  634 + return (Criteria) this;
  635 + }
  636 +
  637 + public Criteria andUsernameIn(List<String> values) {
  638 + addCriterion("username in", values, "username");
  639 + return (Criteria) this;
  640 + }
  641 +
  642 + public Criteria andUsernameNotIn(List<String> values) {
  643 + addCriterion("username not in", values, "username");
  644 + return (Criteria) this;
  645 + }
  646 +
  647 + public Criteria andUsernameBetween(String value1, String value2) {
  648 + addCriterion("username between", value1, value2, "username");
  649 + return (Criteria) this;
  650 + }
  651 +
  652 + public Criteria andUsernameNotBetween(String value1, String value2) {
  653 + addCriterion("username not between", value1, value2, "username");
  654 + return (Criteria) this;
  655 + }
  656 +
  657 + public Criteria andPasswordIsNull() {
  658 + addCriterion("password is null");
  659 + return (Criteria) this;
  660 + }
  661 +
  662 + public Criteria andPasswordIsNotNull() {
  663 + addCriterion("password is not null");
  664 + return (Criteria) this;
  665 + }
  666 +
  667 + public Criteria andPasswordEqualTo(String value) {
  668 + addCriterion("password =", value, "password");
  669 + return (Criteria) this;
  670 + }
  671 +
  672 + public Criteria andPasswordNotEqualTo(String value) {
  673 + addCriterion("password <>", value, "password");
  674 + return (Criteria) this;
  675 + }
  676 +
  677 + public Criteria andPasswordGreaterThan(String value) {
  678 + addCriterion("password >", value, "password");
  679 + return (Criteria) this;
  680 + }
  681 +
  682 + public Criteria andPasswordGreaterThanOrEqualTo(String value) {
  683 + addCriterion("password >=", value, "password");
  684 + return (Criteria) this;
  685 + }
  686 +
  687 + public Criteria andPasswordLessThan(String value) {
  688 + addCriterion("password <", value, "password");
  689 + return (Criteria) this;
  690 + }
  691 +
  692 + public Criteria andPasswordLessThanOrEqualTo(String value) {
  693 + addCriterion("password <=", value, "password");
  694 + return (Criteria) this;
  695 + }
  696 +
  697 + public Criteria andPasswordLike(String value) {
  698 + addCriterion("password like", value, "password");
  699 + return (Criteria) this;
  700 + }
  701 +
  702 + public Criteria andPasswordNotLike(String value) {
  703 + addCriterion("password not like", value, "password");
  704 + return (Criteria) this;
  705 + }
  706 +
  707 + public Criteria andPasswordIn(List<String> values) {
  708 + addCriterion("password in", values, "password");
  709 + return (Criteria) this;
  710 + }
  711 +
  712 + public Criteria andPasswordNotIn(List<String> values) {
  713 + addCriterion("password not in", values, "password");
  714 + return (Criteria) this;
  715 + }
  716 +
  717 + public Criteria andPasswordBetween(String value1, String value2) {
  718 + addCriterion("password between", value1, value2, "password");
  719 + return (Criteria) this;
  720 + }
  721 +
  722 + public Criteria andPasswordNotBetween(String value1, String value2) {
  723 + addCriterion("password not between", value1, value2, "password");
  724 + return (Criteria) this;
  725 + }
  726 +
  727 + public Criteria andEquipmentPortIsNull() {
  728 + addCriterion("equipment_port is null");
  729 + return (Criteria) this;
  730 + }
  731 +
  732 + public Criteria andEquipmentPortIsNotNull() {
  733 + addCriterion("equipment_port is not null");
  734 + return (Criteria) this;
  735 + }
  736 +
  737 + public Criteria andEquipmentPortEqualTo(String value) {
  738 + addCriterion("equipment_port =", value, "equipmentPort");
  739 + return (Criteria) this;
  740 + }
  741 +
  742 + public Criteria andEquipmentPortNotEqualTo(String value) {
  743 + addCriterion("equipment_port <>", value, "equipmentPort");
  744 + return (Criteria) this;
  745 + }
  746 +
  747 + public Criteria andEquipmentPortGreaterThan(String value) {
  748 + addCriterion("equipment_port >", value, "equipmentPort");
  749 + return (Criteria) this;
  750 + }
  751 +
  752 + public Criteria andEquipmentPortGreaterThanOrEqualTo(String value) {
  753 + addCriterion("equipment_port >=", value, "equipmentPort");
  754 + return (Criteria) this;
  755 + }
  756 +
  757 + public Criteria andEquipmentPortLessThan(String value) {
  758 + addCriterion("equipment_port <", value, "equipmentPort");
  759 + return (Criteria) this;
  760 + }
  761 +
  762 + public Criteria andEquipmentPortLessThanOrEqualTo(String value) {
  763 + addCriterion("equipment_port <=", value, "equipmentPort");
  764 + return (Criteria) this;
  765 + }
  766 +
  767 + public Criteria andEquipmentPortLike(String value) {
  768 + addCriterion("equipment_port like", value, "equipmentPort");
  769 + return (Criteria) this;
  770 + }
  771 +
  772 + public Criteria andEquipmentPortNotLike(String value) {
  773 + addCriterion("equipment_port not like", value, "equipmentPort");
  774 + return (Criteria) this;
  775 + }
  776 +
  777 + public Criteria andEquipmentPortIn(List<String> values) {
  778 + addCriterion("equipment_port in", values, "equipmentPort");
  779 + return (Criteria) this;
  780 + }
  781 +
  782 + public Criteria andEquipmentPortNotIn(List<String> values) {
  783 + addCriterion("equipment_port not in", values, "equipmentPort");
  784 + return (Criteria) this;
  785 + }
  786 +
  787 + public Criteria andEquipmentPortBetween(String value1, String value2) {
  788 + addCriterion("equipment_port between", value1, value2, "equipmentPort");
  789 + return (Criteria) this;
  790 + }
  791 +
  792 + public Criteria andEquipmentPortNotBetween(String value1, String value2) {
  793 + addCriterion("equipment_port not between", value1, value2, "equipmentPort");
  794 + return (Criteria) this;
  795 + }
  796 +
  797 + public Criteria andIntentPortIsNull() {
  798 + addCriterion("intent_port is null");
  799 + return (Criteria) this;
  800 + }
  801 +
  802 + public Criteria andIntentPortIsNotNull() {
  803 + addCriterion("intent_port is not null");
  804 + return (Criteria) this;
  805 + }
  806 +
  807 + public Criteria andIntentPortEqualTo(String value) {
  808 + addCriterion("intent_port =", value, "intentPort");
  809 + return (Criteria) this;
  810 + }
  811 +
  812 + public Criteria andIntentPortNotEqualTo(String value) {
  813 + addCriterion("intent_port <>", value, "intentPort");
  814 + return (Criteria) this;
  815 + }
  816 +
  817 + public Criteria andIntentPortGreaterThan(String value) {
  818 + addCriterion("intent_port >", value, "intentPort");
  819 + return (Criteria) this;
  820 + }
  821 +
  822 + public Criteria andIntentPortGreaterThanOrEqualTo(String value) {
  823 + addCriterion("intent_port >=", value, "intentPort");
  824 + return (Criteria) this;
  825 + }
  826 +
  827 + public Criteria andIntentPortLessThan(String value) {
  828 + addCriterion("intent_port <", value, "intentPort");
  829 + return (Criteria) this;
  830 + }
  831 +
  832 + public Criteria andIntentPortLessThanOrEqualTo(String value) {
  833 + addCriterion("intent_port <=", value, "intentPort");
  834 + return (Criteria) this;
  835 + }
  836 +
  837 + public Criteria andIntentPortLike(String value) {
  838 + addCriterion("intent_port like", value, "intentPort");
  839 + return (Criteria) this;
  840 + }
  841 +
  842 + public Criteria andIntentPortNotLike(String value) {
  843 + addCriterion("intent_port not like", value, "intentPort");
  844 + return (Criteria) this;
  845 + }
  846 +
  847 + public Criteria andIntentPortIn(List<String> values) {
  848 + addCriterion("intent_port in", values, "intentPort");
  849 + return (Criteria) this;
  850 + }
  851 +
  852 + public Criteria andIntentPortNotIn(List<String> values) {
  853 + addCriterion("intent_port not in", values, "intentPort");
  854 + return (Criteria) this;
  855 + }
  856 +
  857 + public Criteria andIntentPortBetween(String value1, String value2) {
  858 + addCriterion("intent_port between", value1, value2, "intentPort");
  859 + return (Criteria) this;
  860 + }
  861 +
  862 + public Criteria andIntentPortNotBetween(String value1, String value2) {
  863 + addCriterion("intent_port not between", value1, value2, "intentPort");
  864 + return (Criteria) this;
  865 + }
  866 +
  867 + public Criteria andVendorIsNull() {
  868 + addCriterion("vendor is null");
  869 + return (Criteria) this;
  870 + }
  871 +
  872 + public Criteria andVendorIsNotNull() {
  873 + addCriterion("vendor is not null");
  874 + return (Criteria) this;
  875 + }
  876 +
  877 + public Criteria andVendorEqualTo(String value) {
  878 + addCriterion("vendor =", value, "vendor");
  879 + return (Criteria) this;
  880 + }
  881 +
  882 + public Criteria andVendorNotEqualTo(String value) {
  883 + addCriterion("vendor <>", value, "vendor");
  884 + return (Criteria) this;
  885 + }
  886 +
  887 + public Criteria andVendorGreaterThan(String value) {
  888 + addCriterion("vendor >", value, "vendor");
  889 + return (Criteria) this;
  890 + }
  891 +
  892 + public Criteria andVendorGreaterThanOrEqualTo(String value) {
  893 + addCriterion("vendor >=", value, "vendor");
  894 + return (Criteria) this;
  895 + }
  896 +
  897 + public Criteria andVendorLessThan(String value) {
  898 + addCriterion("vendor <", value, "vendor");
  899 + return (Criteria) this;
  900 + }
  901 +
  902 + public Criteria andVendorLessThanOrEqualTo(String value) {
  903 + addCriterion("vendor <=", value, "vendor");
  904 + return (Criteria) this;
  905 + }
  906 +
  907 + public Criteria andVendorLike(String value) {
  908 + addCriterion("vendor like", value, "vendor");
  909 + return (Criteria) this;
  910 + }
  911 +
  912 + public Criteria andVendorNotLike(String value) {
  913 + addCriterion("vendor not like", value, "vendor");
  914 + return (Criteria) this;
  915 + }
  916 +
  917 + public Criteria andVendorIn(List<String> values) {
  918 + addCriterion("vendor in", values, "vendor");
  919 + return (Criteria) this;
  920 + }
  921 +
  922 + public Criteria andVendorNotIn(List<String> values) {
  923 + addCriterion("vendor not in", values, "vendor");
  924 + return (Criteria) this;
  925 + }
  926 +
  927 + public Criteria andVendorBetween(String value1, String value2) {
  928 + addCriterion("vendor between", value1, value2, "vendor");
  929 + return (Criteria) this;
  930 + }
  931 +
  932 + public Criteria andVendorNotBetween(String value1, String value2) {
  933 + addCriterion("vendor not between", value1, value2, "vendor");
  934 + return (Criteria) this;
  935 + }
  936 +
  937 + public Criteria andDescriptionIsNull() {
  938 + addCriterion("description is null");
  939 + return (Criteria) this;
  940 + }
  941 +
  942 + public Criteria andDescriptionIsNotNull() {
  943 + addCriterion("description is not null");
  944 + return (Criteria) this;
  945 + }
  946 +
  947 + public Criteria andDescriptionEqualTo(String value) {
  948 + addCriterion("description =", value, "description");
  949 + return (Criteria) this;
  950 + }
  951 +
  952 + public Criteria andDescriptionNotEqualTo(String value) {
  953 + addCriterion("description <>", value, "description");
  954 + return (Criteria) this;
  955 + }
  956 +
  957 + public Criteria andDescriptionGreaterThan(String value) {
  958 + addCriterion("description >", value, "description");
  959 + return (Criteria) this;
  960 + }
  961 +
  962 + public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
  963 + addCriterion("description >=", value, "description");
  964 + return (Criteria) this;
  965 + }
  966 +
  967 + public Criteria andDescriptionLessThan(String value) {
  968 + addCriterion("description <", value, "description");
  969 + return (Criteria) this;
  970 + }
  971 +
  972 + public Criteria andDescriptionLessThanOrEqualTo(String value) {
  973 + addCriterion("description <=", value, "description");
  974 + return (Criteria) this;
  975 + }
  976 +
  977 + public Criteria andDescriptionLike(String value) {
  978 + addCriterion("description like", value, "description");
  979 + return (Criteria) this;
  980 + }
  981 +
  982 + public Criteria andDescriptionNotLike(String value) {
  983 + addCriterion("description not like", value, "description");
  984 + return (Criteria) this;
  985 + }
  986 +
  987 + public Criteria andDescriptionIn(List<String> values) {
  988 + addCriterion("description in", values, "description");
  989 + return (Criteria) this;
  990 + }
  991 +
  992 + public Criteria andDescriptionNotIn(List<String> values) {
  993 + addCriterion("description not in", values, "description");
  994 + return (Criteria) this;
  995 + }
  996 +
  997 + public Criteria andDescriptionBetween(String value1, String value2) {
  998 + addCriterion("description between", value1, value2, "description");
  999 + return (Criteria) this;
  1000 + }
  1001 +
  1002 + public Criteria andDescriptionNotBetween(String value1, String value2) {
  1003 + addCriterion("description not between", value1, value2, "description");
  1004 + return (Criteria) this;
  1005 + }
  1006 +
  1007 + public Criteria andCreateDateIsNull() {
  1008 + addCriterion("create_date is null");
  1009 + return (Criteria) this;
  1010 + }
  1011 +
  1012 + public Criteria andCreateDateIsNotNull() {
  1013 + addCriterion("create_date is not null");
  1014 + return (Criteria) this;
  1015 + }
  1016 +
  1017 + public Criteria andCreateDateEqualTo(String value) {
  1018 + addCriterion("create_date =", value, "createDate");
  1019 + return (Criteria) this;
  1020 + }
  1021 +
  1022 + public Criteria andCreateDateNotEqualTo(String value) {
  1023 + addCriterion("create_date <>", value, "createDate");
  1024 + return (Criteria) this;
  1025 + }
  1026 +
  1027 + public Criteria andCreateDateGreaterThan(String value) {
  1028 + addCriterion("create_date >", value, "createDate");
  1029 + return (Criteria) this;
  1030 + }
  1031 +
  1032 + public Criteria andCreateDateGreaterThanOrEqualTo(String value) {
  1033 + addCriterion("create_date >=", value, "createDate");
  1034 + return (Criteria) this;
  1035 + }
  1036 +
  1037 + public Criteria andCreateDateLessThan(String value) {
  1038 + addCriterion("create_date <", value, "createDate");
  1039 + return (Criteria) this;
  1040 + }
  1041 +
  1042 + public Criteria andCreateDateLessThanOrEqualTo(String value) {
  1043 + addCriterion("create_date <=", value, "createDate");
  1044 + return (Criteria) this;
  1045 + }
  1046 +
  1047 + public Criteria andCreateDateLike(String value) {
  1048 + addCriterion("create_date like", value, "createDate");
  1049 + return (Criteria) this;
  1050 + }
  1051 +
  1052 + public Criteria andCreateDateNotLike(String value) {
  1053 + addCriterion("create_date not like", value, "createDate");
  1054 + return (Criteria) this;
  1055 + }
  1056 +
  1057 + public Criteria andCreateDateIn(List<String> values) {
  1058 + addCriterion("create_date in", values, "createDate");
  1059 + return (Criteria) this;
  1060 + }
  1061 +
  1062 + public Criteria andCreateDateNotIn(List<String> values) {
  1063 + addCriterion("create_date not in", values, "createDate");
  1064 + return (Criteria) this;
  1065 + }
  1066 +
  1067 + public Criteria andCreateDateBetween(String value1, String value2) {
  1068 + addCriterion("create_date between", value1, value2, "createDate");
  1069 + return (Criteria) this;
  1070 + }
  1071 +
  1072 + public Criteria andCreateDateNotBetween(String value1, String value2) {
  1073 + addCriterion("create_date not between", value1, value2, "createDate");
  1074 + return (Criteria) this;
  1075 + }
  1076 +
  1077 + public Criteria andUpdateDateIsNull() {
  1078 + addCriterion("update_date is null");
  1079 + return (Criteria) this;
  1080 + }
  1081 +
  1082 + public Criteria andUpdateDateIsNotNull() {
  1083 + addCriterion("update_date is not null");
  1084 + return (Criteria) this;
  1085 + }
  1086 +
  1087 + public Criteria andUpdateDateEqualTo(String value) {
  1088 + addCriterion("update_date =", value, "updateDate");
  1089 + return (Criteria) this;
  1090 + }
  1091 +
  1092 + public Criteria andUpdateDateNotEqualTo(String value) {
  1093 + addCriterion("update_date <>", value, "updateDate");
  1094 + return (Criteria) this;
  1095 + }
  1096 +
  1097 + public Criteria andUpdateDateGreaterThan(String value) {
  1098 + addCriterion("update_date >", value, "updateDate");
  1099 + return (Criteria) this;
  1100 + }
  1101 +
  1102 + public Criteria andUpdateDateGreaterThanOrEqualTo(String value) {
  1103 + addCriterion("update_date >=", value, "updateDate");
  1104 + return (Criteria) this;
  1105 + }
  1106 +
  1107 + public Criteria andUpdateDateLessThan(String value) {
  1108 + addCriterion("update_date <", value, "updateDate");
  1109 + return (Criteria) this;
  1110 + }
  1111 +
  1112 + public Criteria andUpdateDateLessThanOrEqualTo(String value) {
  1113 + addCriterion("update_date <=", value, "updateDate");
  1114 + return (Criteria) this;
  1115 + }
  1116 +
  1117 + public Criteria andUpdateDateLike(String value) {
  1118 + addCriterion("update_date like", value, "updateDate");
  1119 + return (Criteria) this;
  1120 + }
  1121 +
  1122 + public Criteria andUpdateDateNotLike(String value) {
  1123 + addCriterion("update_date not like", value, "updateDate");
  1124 + return (Criteria) this;
  1125 + }
  1126 +
  1127 + public Criteria andUpdateDateIn(List<String> values) {
  1128 + addCriterion("update_date in", values, "updateDate");
  1129 + return (Criteria) this;
  1130 + }
  1131 +
  1132 + public Criteria andUpdateDateNotIn(List<String> values) {
  1133 + addCriterion("update_date not in", values, "updateDate");
  1134 + return (Criteria) this;
  1135 + }
  1136 +
  1137 + public Criteria andUpdateDateBetween(String value1, String value2) {
  1138 + addCriterion("update_date between", value1, value2, "updateDate");
  1139 + return (Criteria) this;
  1140 + }
  1141 +
  1142 + public Criteria andUpdateDateNotBetween(String value1, String value2) {
  1143 + addCriterion("update_date not between", value1, value2, "updateDate");
  1144 + return (Criteria) this;
  1145 + }
  1146 +
  1147 + public Criteria andIsDeleteIsNull() {
  1148 + addCriterion("is_delete is null");
  1149 + return (Criteria) this;
  1150 + }
  1151 +
  1152 + public Criteria andIsDeleteIsNotNull() {
  1153 + addCriterion("is_delete is not null");
  1154 + return (Criteria) this;
  1155 + }
  1156 +
  1157 + public Criteria andIsDeleteEqualTo(Integer value) {
  1158 + addCriterion("is_delete =", value, "isDelete");
  1159 + return (Criteria) this;
  1160 + }
  1161 +
  1162 + public Criteria andIsDeleteNotEqualTo(Integer value) {
  1163 + addCriterion("is_delete <>", value, "isDelete");
  1164 + return (Criteria) this;
  1165 + }
  1166 +
  1167 + public Criteria andIsDeleteGreaterThan(Integer value) {
  1168 + addCriterion("is_delete >", value, "isDelete");
  1169 + return (Criteria) this;
  1170 + }
  1171 +
  1172 + public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
  1173 + addCriterion("is_delete >=", value, "isDelete");
  1174 + return (Criteria) this;
  1175 + }
  1176 +
  1177 + public Criteria andIsDeleteLessThan(Integer value) {
  1178 + addCriterion("is_delete <", value, "isDelete");
  1179 + return (Criteria) this;
  1180 + }
  1181 +
  1182 + public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
  1183 + addCriterion("is_delete <=", value, "isDelete");
  1184 + return (Criteria) this;
  1185 + }
  1186 +
  1187 + public Criteria andIsDeleteIn(List<Integer> values) {
  1188 + addCriterion("is_delete in", values, "isDelete");
  1189 + return (Criteria) this;
  1190 + }
  1191 +
  1192 + public Criteria andIsDeleteNotIn(List<Integer> values) {
  1193 + addCriterion("is_delete not in", values, "isDelete");
  1194 + return (Criteria) this;
  1195 + }
  1196 +
  1197 + public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
  1198 + addCriterion("is_delete between", value1, value2, "isDelete");
  1199 + return (Criteria) this;
  1200 + }
  1201 +
  1202 + public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
  1203 + addCriterion("is_delete not between", value1, value2, "isDelete");
  1204 + return (Criteria) this;
  1205 + }
  1206 +
  1207 + public Criteria andEquipmentTypeIsNull() {
  1208 + addCriterion("equipment_type is null");
  1209 + return (Criteria) this;
  1210 + }
  1211 +
  1212 + public Criteria andEquipmentTypeIsNotNull() {
  1213 + addCriterion("equipment_type is not null");
  1214 + return (Criteria) this;
  1215 + }
  1216 +
  1217 + public Criteria andEquipmentTypeEqualTo(Integer value) {
  1218 + addCriterion("equipment_type =", value, "equipmentType");
  1219 + return (Criteria) this;
  1220 + }
  1221 +
  1222 + public Criteria andEquipmentTypeNotEqualTo(Integer value) {
  1223 + addCriterion("equipment_type <>", value, "equipmentType");
  1224 + return (Criteria) this;
  1225 + }
  1226 +
  1227 + public Criteria andEquipmentTypeGreaterThan(Integer value) {
  1228 + addCriterion("equipment_type >", value, "equipmentType");
  1229 + return (Criteria) this;
  1230 + }
  1231 +
  1232 + public Criteria andEquipmentTypeGreaterThanOrEqualTo(Integer value) {
  1233 + addCriterion("equipment_type >=", value, "equipmentType");
  1234 + return (Criteria) this;
  1235 + }
  1236 +
  1237 + public Criteria andEquipmentTypeLessThan(Integer value) {
  1238 + addCriterion("equipment_type <", value, "equipmentType");
  1239 + return (Criteria) this;
  1240 + }
  1241 +
  1242 + public Criteria andEquipmentTypeLessThanOrEqualTo(Integer value) {
  1243 + addCriterion("equipment_type <=", value, "equipmentType");
  1244 + return (Criteria) this;
  1245 + }
  1246 +
  1247 + public Criteria andEquipmentTypeIn(List<Integer> values) {
  1248 + addCriterion("equipment_type in", values, "equipmentType");
  1249 + return (Criteria) this;
  1250 + }
  1251 +
  1252 + public Criteria andEquipmentTypeNotIn(List<Integer> values) {
  1253 + addCriterion("equipment_type not in", values, "equipmentType");
  1254 + return (Criteria) this;
  1255 + }
  1256 +
  1257 + public Criteria andEquipmentTypeBetween(Integer value1, Integer value2) {
  1258 + addCriterion("equipment_type between", value1, value2, "equipmentType");
  1259 + return (Criteria) this;
  1260 + }
  1261 +
  1262 + public Criteria andEquipmentTypeNotBetween(Integer value1, Integer value2) {
  1263 + addCriterion("equipment_type not between", value1, value2, "equipmentType");
  1264 + return (Criteria) this;
  1265 + }
  1266 +
  1267 + public Criteria andStatusIsNull() {
  1268 + addCriterion("status is null");
  1269 + return (Criteria) this;
  1270 + }
  1271 +
  1272 + public Criteria andStatusIsNotNull() {
  1273 + addCriterion("status is not null");
  1274 + return (Criteria) this;
  1275 + }
  1276 +
  1277 + public Criteria andStatusEqualTo(Integer value) {
  1278 + addCriterion("status =", value, "status");
  1279 + return (Criteria) this;
  1280 + }
  1281 +
  1282 + public Criteria andStatusNotEqualTo(Integer value) {
  1283 + addCriterion("status <>", value, "status");
  1284 + return (Criteria) this;
  1285 + }
  1286 +
  1287 + public Criteria andStatusGreaterThan(Integer value) {
  1288 + addCriterion("status >", value, "status");
  1289 + return (Criteria) this;
  1290 + }
  1291 +
  1292 + public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
  1293 + addCriterion("status >=", value, "status");
  1294 + return (Criteria) this;
  1295 + }
  1296 +
  1297 + public Criteria andStatusLessThan(Integer value) {
  1298 + addCriterion("status <", value, "status");
  1299 + return (Criteria) this;
  1300 + }
  1301 +
  1302 + public Criteria andStatusLessThanOrEqualTo(Integer value) {
  1303 + addCriterion("status <=", value, "status");
  1304 + return (Criteria) this;
  1305 + }
  1306 +
  1307 + public Criteria andStatusIn(List<Integer> values) {
  1308 + addCriterion("status in", values, "status");
  1309 + return (Criteria) this;
  1310 + }
  1311 +
  1312 + public Criteria andStatusNotIn(List<Integer> values) {
  1313 + addCriterion("status not in", values, "status");
  1314 + return (Criteria) this;
  1315 + }
  1316 +
  1317 + public Criteria andStatusBetween(Integer value1, Integer value2) {
  1318 + addCriterion("status between", value1, value2, "status");
  1319 + return (Criteria) this;
  1320 + }
  1321 +
  1322 + public Criteria andStatusNotBetween(Integer value1, Integer value2) {
  1323 + addCriterion("status not between", value1, value2, "status");
  1324 + return (Criteria) this;
  1325 + }
  1326 +
  1327 + public Criteria andAidIsNull() {
  1328 + addCriterion("aid is null");
  1329 + return (Criteria) this;
  1330 + }
  1331 +
  1332 + public Criteria andAidIsNotNull() {
  1333 + addCriterion("aid is not null");
  1334 + return (Criteria) this;
  1335 + }
  1336 +
  1337 + public Criteria andAidEqualTo(Integer value) {
  1338 + addCriterion("aid =", value, "aid");
  1339 + return (Criteria) this;
  1340 + }
  1341 +
  1342 + public Criteria andAidNotEqualTo(Integer value) {
  1343 + addCriterion("aid <>", value, "aid");
  1344 + return (Criteria) this;
  1345 + }
  1346 +
  1347 + public Criteria andAidGreaterThan(Integer value) {
  1348 + addCriterion("aid >", value, "aid");
  1349 + return (Criteria) this;
  1350 + }
  1351 +
  1352 + public Criteria andAidGreaterThanOrEqualTo(Integer value) {
  1353 + addCriterion("aid >=", value, "aid");
  1354 + return (Criteria) this;
  1355 + }
  1356 +
  1357 + public Criteria andAidLessThan(Integer value) {
  1358 + addCriterion("aid <", value, "aid");
  1359 + return (Criteria) this;
  1360 + }
  1361 +
  1362 + public Criteria andAidLessThanOrEqualTo(Integer value) {
  1363 + addCriterion("aid <=", value, "aid");
  1364 + return (Criteria) this;
  1365 + }
  1366 +
  1367 + public Criteria andAidIn(List<Integer> values) {
  1368 + addCriterion("aid in", values, "aid");
  1369 + return (Criteria) this;
  1370 + }
  1371 +
  1372 + public Criteria andAidNotIn(List<Integer> values) {
  1373 + addCriterion("aid not in", values, "aid");
  1374 + return (Criteria) this;
  1375 + }
  1376 +
  1377 + public Criteria andAidBetween(Integer value1, Integer value2) {
  1378 + addCriterion("aid between", value1, value2, "aid");
  1379 + return (Criteria) this;
  1380 + }
  1381 +
  1382 + public Criteria andAidNotBetween(Integer value1, Integer value2) {
  1383 + addCriterion("aid not between", value1, value2, "aid");
  1384 + return (Criteria) this;
  1385 + }
  1386 +
  1387 + public Criteria andPlaceIsNull() {
  1388 + addCriterion("place is null");
  1389 + return (Criteria) this;
  1390 + }
  1391 +
  1392 + public Criteria andPlaceIsNotNull() {
  1393 + addCriterion("place is not null");
  1394 + return (Criteria) this;
  1395 + }
  1396 +
  1397 + public Criteria andPlaceEqualTo(String value) {
  1398 + addCriterion("place =", value, "place");
  1399 + return (Criteria) this;
  1400 + }
  1401 +
  1402 + public Criteria andPlaceNotEqualTo(String value) {
  1403 + addCriterion("place <>", value, "place");
  1404 + return (Criteria) this;
  1405 + }
  1406 +
  1407 + public Criteria andPlaceGreaterThan(String value) {
  1408 + addCriterion("place >", value, "place");
  1409 + return (Criteria) this;
  1410 + }
  1411 +
  1412 + public Criteria andPlaceGreaterThanOrEqualTo(String value) {
  1413 + addCriterion("place >=", value, "place");
  1414 + return (Criteria) this;
  1415 + }
  1416 +
  1417 + public Criteria andPlaceLessThan(String value) {
  1418 + addCriterion("place <", value, "place");
  1419 + return (Criteria) this;
  1420 + }
  1421 +
  1422 + public Criteria andPlaceLessThanOrEqualTo(String value) {
  1423 + addCriterion("place <=", value, "place");
  1424 + return (Criteria) this;
  1425 + }
  1426 +
  1427 + public Criteria andPlaceLike(String value) {
  1428 + addCriterion("place like", value, "place");
  1429 + return (Criteria) this;
  1430 + }
  1431 +
  1432 + public Criteria andPlaceNotLike(String value) {
  1433 + addCriterion("place not like", value, "place");
  1434 + return (Criteria) this;
  1435 + }
  1436 +
  1437 + public Criteria andPlaceIn(List<String> values) {
  1438 + addCriterion("place in", values, "place");
  1439 + return (Criteria) this;
  1440 + }
  1441 +
  1442 + public Criteria andPlaceNotIn(List<String> values) {
  1443 + addCriterion("place not in", values, "place");
  1444 + return (Criteria) this;
  1445 + }
  1446 +
  1447 + public Criteria andPlaceBetween(String value1, String value2) {
  1448 + addCriterion("place between", value1, value2, "place");
  1449 + return (Criteria) this;
  1450 + }
  1451 +
  1452 + public Criteria andPlaceNotBetween(String value1, String value2) {
  1453 + addCriterion("place not between", value1, value2, "place");
  1454 + return (Criteria) this;
  1455 + }
  1456 + }
  1457 +
  1458 + public static class Criteria extends GeneratedCriteria {
  1459 +
  1460 + protected Criteria() {
  1461 + super();
  1462 + }
  1463 + }
  1464 +
  1465 + public static class Criterion {
  1466 + private String condition;
  1467 +
  1468 + private Object value;
  1469 +
  1470 + private Object secondValue;
  1471 +
  1472 + private boolean noValue;
  1473 +
  1474 + private boolean singleValue;
  1475 +
  1476 + private boolean betweenValue;
  1477 +
  1478 + private boolean listValue;
  1479 +
  1480 + private String typeHandler;
  1481 +
  1482 + public String getCondition() {
  1483 + return condition;
  1484 + }
  1485 +
  1486 + public Object getValue() {
  1487 + return value;
  1488 + }
  1489 +
  1490 + public Object getSecondValue() {
  1491 + return secondValue;
  1492 + }
  1493 +
  1494 + public boolean isNoValue() {
  1495 + return noValue;
  1496 + }
  1497 +
  1498 + public boolean isSingleValue() {
  1499 + return singleValue;
  1500 + }
  1501 +
  1502 + public boolean isBetweenValue() {
  1503 + return betweenValue;
  1504 + }
  1505 +
  1506 + public boolean isListValue() {
  1507 + return listValue;
  1508 + }
  1509 +
  1510 + public String getTypeHandler() {
  1511 + return typeHandler;
  1512 + }
  1513 +
  1514 + protected Criterion(String condition) {
  1515 + super();
  1516 + this.condition = condition;
  1517 + this.typeHandler = null;
  1518 + this.noValue = true;
  1519 + }
  1520 +
  1521 + protected Criterion(String condition, Object value, String typeHandler) {
  1522 + super();
  1523 + this.condition = condition;
  1524 + this.value = value;
  1525 + this.typeHandler = typeHandler;
  1526 + if (value instanceof List<?>) {
  1527 + this.listValue = true;
  1528 + } else {
  1529 + this.singleValue = true;
  1530 + }
  1531 + }
  1532 +
  1533 + protected Criterion(String condition, Object value) {
  1534 + this(condition, value, null);
  1535 + }
  1536 +
  1537 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  1538 + super();
  1539 + this.condition = condition;
  1540 + this.value = value;
  1541 + this.secondValue = secondValue;
  1542 + this.typeHandler = typeHandler;
  1543 + this.betweenValue = true;
  1544 + }
  1545 +
  1546 + protected Criterion(String condition, Object value, Object secondValue) {
  1547 + this(condition, value, secondValue, null);
  1548 + }
  1549 + }
  1550 +}
0 1551 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyFeature.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyFeature.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyFeature implements Serializable {
  8 + @ApiModelProperty(value = "自增主键")
  9 + private Integer id;
  10 +
  11 + @ApiModelProperty(value = "人像库名")
  12 + private String name;
  13 +
  14 + @ApiModelProperty(value = "人像库描述")
  15 + private String description;
  16 +
  17 + @ApiModelProperty(value = "人像的数量")
  18 + private Integer count;
  19 +
  20 + @ApiModelProperty(value = "逻辑删除(0存在1删除)")
  21 + private Integer isDelete;
  22 +
  23 + @ApiModelProperty(value = "创建时间")
  24 + private String createDate;
  25 +
  26 + @ApiModelProperty(value = "更新时间")
  27 + private String updateDate;
  28 +
  29 + @ApiModelProperty(value = "是否是单人布控")
  30 + private Integer isSingle;
  31 +
  32 + private static final long serialVersionUID = 1L;
  33 +
  34 + public Integer getId() {
  35 + return id;
  36 + }
  37 +
  38 + public void setId(Integer id) {
  39 + this.id = id;
  40 + }
  41 +
  42 + public String getName() {
  43 + return name;
  44 + }
  45 +
  46 + public void setName(String name) {
  47 + this.name = name;
  48 + }
  49 +
  50 + public String getDescription() {
  51 + return description;
  52 + }
  53 +
  54 + public void setDescription(String description) {
  55 + this.description = description;
  56 + }
  57 +
  58 + public Integer getCount() {
  59 + return count;
  60 + }
  61 +
  62 + public void setCount(Integer count) {
  63 + this.count = count;
  64 + }
  65 +
  66 + public Integer getIsDelete() {
  67 + return isDelete;
  68 + }
  69 +
  70 + public void setIsDelete(Integer isDelete) {
  71 + this.isDelete = isDelete;
  72 + }
  73 +
  74 + public String getCreateDate() {
  75 + return createDate;
  76 + }
  77 +
  78 + public void setCreateDate(String createDate) {
  79 + this.createDate = createDate;
  80 + }
  81 +
  82 + public String getUpdateDate() {
  83 + return updateDate;
  84 + }
  85 +
  86 + public void setUpdateDate(String updateDate) {
  87 + this.updateDate = updateDate;
  88 + }
  89 +
  90 + public Integer getIsSingle() {
  91 + return isSingle;
  92 + }
  93 +
  94 + public void setIsSingle(Integer isSingle) {
  95 + this.isSingle = isSingle;
  96 + }
  97 +
  98 + @Override
  99 + public String toString() {
  100 + StringBuilder sb = new StringBuilder();
  101 + sb.append(getClass().getSimpleName());
  102 + sb.append(" [");
  103 + sb.append("Hash = ").append(hashCode());
  104 + sb.append(", id=").append(id);
  105 + sb.append(", name=").append(name);
  106 + sb.append(", description=").append(description);
  107 + sb.append(", count=").append(count);
  108 + sb.append(", isDelete=").append(isDelete);
  109 + sb.append(", createDate=").append(createDate);
  110 + sb.append(", updateDate=").append(updateDate);
  111 + sb.append(", isSingle=").append(isSingle);
  112 + sb.append(", serialVersionUID=").append(serialVersionUID);
  113 + sb.append("]");
  114 + return sb.toString();
  115 + }
  116 +}
0 117 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyFeatureExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyFeatureExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyFeatureExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyFeatureExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andNameIsNull() {
  168 + addCriterion("name is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andNameIsNotNull() {
  173 + addCriterion("name is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andNameEqualTo(String value) {
  178 + addCriterion("name =", value, "name");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andNameNotEqualTo(String value) {
  183 + addCriterion("name <>", value, "name");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andNameGreaterThan(String value) {
  188 + addCriterion("name >", value, "name");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andNameGreaterThanOrEqualTo(String value) {
  193 + addCriterion("name >=", value, "name");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andNameLessThan(String value) {
  198 + addCriterion("name <", value, "name");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andNameLessThanOrEqualTo(String value) {
  203 + addCriterion("name <=", value, "name");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andNameLike(String value) {
  208 + addCriterion("name like", value, "name");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andNameNotLike(String value) {
  213 + addCriterion("name not like", value, "name");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andNameIn(List<String> values) {
  218 + addCriterion("name in", values, "name");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andNameNotIn(List<String> values) {
  223 + addCriterion("name not in", values, "name");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andNameBetween(String value1, String value2) {
  228 + addCriterion("name between", value1, value2, "name");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andNameNotBetween(String value1, String value2) {
  233 + addCriterion("name not between", value1, value2, "name");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andDescriptionIsNull() {
  238 + addCriterion("description is null");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andDescriptionIsNotNull() {
  243 + addCriterion("description is not null");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andDescriptionEqualTo(String value) {
  248 + addCriterion("description =", value, "description");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andDescriptionNotEqualTo(String value) {
  253 + addCriterion("description <>", value, "description");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andDescriptionGreaterThan(String value) {
  258 + addCriterion("description >", value, "description");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andDescriptionGreaterThanOrEqualTo(String value) {
  263 + addCriterion("description >=", value, "description");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andDescriptionLessThan(String value) {
  268 + addCriterion("description <", value, "description");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andDescriptionLessThanOrEqualTo(String value) {
  273 + addCriterion("description <=", value, "description");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andDescriptionLike(String value) {
  278 + addCriterion("description like", value, "description");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andDescriptionNotLike(String value) {
  283 + addCriterion("description not like", value, "description");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andDescriptionIn(List<String> values) {
  288 + addCriterion("description in", values, "description");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andDescriptionNotIn(List<String> values) {
  293 + addCriterion("description not in", values, "description");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andDescriptionBetween(String value1, String value2) {
  298 + addCriterion("description between", value1, value2, "description");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andDescriptionNotBetween(String value1, String value2) {
  303 + addCriterion("description not between", value1, value2, "description");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andCountIsNull() {
  308 + addCriterion("count is null");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andCountIsNotNull() {
  313 + addCriterion("count is not null");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andCountEqualTo(Integer value) {
  318 + addCriterion("count =", value, "count");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andCountNotEqualTo(Integer value) {
  323 + addCriterion("count <>", value, "count");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andCountGreaterThan(Integer value) {
  328 + addCriterion("count >", value, "count");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andCountGreaterThanOrEqualTo(Integer value) {
  333 + addCriterion("count >=", value, "count");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andCountLessThan(Integer value) {
  338 + addCriterion("count <", value, "count");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andCountLessThanOrEqualTo(Integer value) {
  343 + addCriterion("count <=", value, "count");
  344 + return (Criteria) this;
  345 + }
  346 +
  347 + public Criteria andCountIn(List<Integer> values) {
  348 + addCriterion("count in", values, "count");
  349 + return (Criteria) this;
  350 + }
  351 +
  352 + public Criteria andCountNotIn(List<Integer> values) {
  353 + addCriterion("count not in", values, "count");
  354 + return (Criteria) this;
  355 + }
  356 +
  357 + public Criteria andCountBetween(Integer value1, Integer value2) {
  358 + addCriterion("count between", value1, value2, "count");
  359 + return (Criteria) this;
  360 + }
  361 +
  362 + public Criteria andCountNotBetween(Integer value1, Integer value2) {
  363 + addCriterion("count not between", value1, value2, "count");
  364 + return (Criteria) this;
  365 + }
  366 +
  367 + public Criteria andIsDeleteIsNull() {
  368 + addCriterion("is_delete is null");
  369 + return (Criteria) this;
  370 + }
  371 +
  372 + public Criteria andIsDeleteIsNotNull() {
  373 + addCriterion("is_delete is not null");
  374 + return (Criteria) this;
  375 + }
  376 +
  377 + public Criteria andIsDeleteEqualTo(Integer value) {
  378 + addCriterion("is_delete =", value, "isDelete");
  379 + return (Criteria) this;
  380 + }
  381 +
  382 + public Criteria andIsDeleteNotEqualTo(Integer value) {
  383 + addCriterion("is_delete <>", value, "isDelete");
  384 + return (Criteria) this;
  385 + }
  386 +
  387 + public Criteria andIsDeleteGreaterThan(Integer value) {
  388 + addCriterion("is_delete >", value, "isDelete");
  389 + return (Criteria) this;
  390 + }
  391 +
  392 + public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
  393 + addCriterion("is_delete >=", value, "isDelete");
  394 + return (Criteria) this;
  395 + }
  396 +
  397 + public Criteria andIsDeleteLessThan(Integer value) {
  398 + addCriterion("is_delete <", value, "isDelete");
  399 + return (Criteria) this;
  400 + }
  401 +
  402 + public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
  403 + addCriterion("is_delete <=", value, "isDelete");
  404 + return (Criteria) this;
  405 + }
  406 +
  407 + public Criteria andIsDeleteIn(List<Integer> values) {
  408 + addCriterion("is_delete in", values, "isDelete");
  409 + return (Criteria) this;
  410 + }
  411 +
  412 + public Criteria andIsDeleteNotIn(List<Integer> values) {
  413 + addCriterion("is_delete not in", values, "isDelete");
  414 + return (Criteria) this;
  415 + }
  416 +
  417 + public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
  418 + addCriterion("is_delete between", value1, value2, "isDelete");
  419 + return (Criteria) this;
  420 + }
  421 +
  422 + public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
  423 + addCriterion("is_delete not between", value1, value2, "isDelete");
  424 + return (Criteria) this;
  425 + }
  426 +
  427 + public Criteria andCreateDateIsNull() {
  428 + addCriterion("create_date is null");
  429 + return (Criteria) this;
  430 + }
  431 +
  432 + public Criteria andCreateDateIsNotNull() {
  433 + addCriterion("create_date is not null");
  434 + return (Criteria) this;
  435 + }
  436 +
  437 + public Criteria andCreateDateEqualTo(String value) {
  438 + addCriterion("create_date =", value, "createDate");
  439 + return (Criteria) this;
  440 + }
  441 +
  442 + public Criteria andCreateDateNotEqualTo(String value) {
  443 + addCriterion("create_date <>", value, "createDate");
  444 + return (Criteria) this;
  445 + }
  446 +
  447 + public Criteria andCreateDateGreaterThan(String value) {
  448 + addCriterion("create_date >", value, "createDate");
  449 + return (Criteria) this;
  450 + }
  451 +
  452 + public Criteria andCreateDateGreaterThanOrEqualTo(String value) {
  453 + addCriterion("create_date >=", value, "createDate");
  454 + return (Criteria) this;
  455 + }
  456 +
  457 + public Criteria andCreateDateLessThan(String value) {
  458 + addCriterion("create_date <", value, "createDate");
  459 + return (Criteria) this;
  460 + }
  461 +
  462 + public Criteria andCreateDateLessThanOrEqualTo(String value) {
  463 + addCriterion("create_date <=", value, "createDate");
  464 + return (Criteria) this;
  465 + }
  466 +
  467 + public Criteria andCreateDateLike(String value) {
  468 + addCriterion("create_date like", value, "createDate");
  469 + return (Criteria) this;
  470 + }
  471 +
  472 + public Criteria andCreateDateNotLike(String value) {
  473 + addCriterion("create_date not like", value, "createDate");
  474 + return (Criteria) this;
  475 + }
  476 +
  477 + public Criteria andCreateDateIn(List<String> values) {
  478 + addCriterion("create_date in", values, "createDate");
  479 + return (Criteria) this;
  480 + }
  481 +
  482 + public Criteria andCreateDateNotIn(List<String> values) {
  483 + addCriterion("create_date not in", values, "createDate");
  484 + return (Criteria) this;
  485 + }
  486 +
  487 + public Criteria andCreateDateBetween(String value1, String value2) {
  488 + addCriterion("create_date between", value1, value2, "createDate");
  489 + return (Criteria) this;
  490 + }
  491 +
  492 + public Criteria andCreateDateNotBetween(String value1, String value2) {
  493 + addCriterion("create_date not between", value1, value2, "createDate");
  494 + return (Criteria) this;
  495 + }
  496 +
  497 + public Criteria andUpdateDateIsNull() {
  498 + addCriterion("update_date is null");
  499 + return (Criteria) this;
  500 + }
  501 +
  502 + public Criteria andUpdateDateIsNotNull() {
  503 + addCriterion("update_date is not null");
  504 + return (Criteria) this;
  505 + }
  506 +
  507 + public Criteria andUpdateDateEqualTo(String value) {
  508 + addCriterion("update_date =", value, "updateDate");
  509 + return (Criteria) this;
  510 + }
  511 +
  512 + public Criteria andUpdateDateNotEqualTo(String value) {
  513 + addCriterion("update_date <>", value, "updateDate");
  514 + return (Criteria) this;
  515 + }
  516 +
  517 + public Criteria andUpdateDateGreaterThan(String value) {
  518 + addCriterion("update_date >", value, "updateDate");
  519 + return (Criteria) this;
  520 + }
  521 +
  522 + public Criteria andUpdateDateGreaterThanOrEqualTo(String value) {
  523 + addCriterion("update_date >=", value, "updateDate");
  524 + return (Criteria) this;
  525 + }
  526 +
  527 + public Criteria andUpdateDateLessThan(String value) {
  528 + addCriterion("update_date <", value, "updateDate");
  529 + return (Criteria) this;
  530 + }
  531 +
  532 + public Criteria andUpdateDateLessThanOrEqualTo(String value) {
  533 + addCriterion("update_date <=", value, "updateDate");
  534 + return (Criteria) this;
  535 + }
  536 +
  537 + public Criteria andUpdateDateLike(String value) {
  538 + addCriterion("update_date like", value, "updateDate");
  539 + return (Criteria) this;
  540 + }
  541 +
  542 + public Criteria andUpdateDateNotLike(String value) {
  543 + addCriterion("update_date not like", value, "updateDate");
  544 + return (Criteria) this;
  545 + }
  546 +
  547 + public Criteria andUpdateDateIn(List<String> values) {
  548 + addCriterion("update_date in", values, "updateDate");
  549 + return (Criteria) this;
  550 + }
  551 +
  552 + public Criteria andUpdateDateNotIn(List<String> values) {
  553 + addCriterion("update_date not in", values, "updateDate");
  554 + return (Criteria) this;
  555 + }
  556 +
  557 + public Criteria andUpdateDateBetween(String value1, String value2) {
  558 + addCriterion("update_date between", value1, value2, "updateDate");
  559 + return (Criteria) this;
  560 + }
  561 +
  562 + public Criteria andUpdateDateNotBetween(String value1, String value2) {
  563 + addCriterion("update_date not between", value1, value2, "updateDate");
  564 + return (Criteria) this;
  565 + }
  566 +
  567 + public Criteria andIsSingleIsNull() {
  568 + addCriterion("is_single is null");
  569 + return (Criteria) this;
  570 + }
  571 +
  572 + public Criteria andIsSingleIsNotNull() {
  573 + addCriterion("is_single is not null");
  574 + return (Criteria) this;
  575 + }
  576 +
  577 + public Criteria andIsSingleEqualTo(Integer value) {
  578 + addCriterion("is_single =", value, "isSingle");
  579 + return (Criteria) this;
  580 + }
  581 +
  582 + public Criteria andIsSingleNotEqualTo(Integer value) {
  583 + addCriterion("is_single <>", value, "isSingle");
  584 + return (Criteria) this;
  585 + }
  586 +
  587 + public Criteria andIsSingleGreaterThan(Integer value) {
  588 + addCriterion("is_single >", value, "isSingle");
  589 + return (Criteria) this;
  590 + }
  591 +
  592 + public Criteria andIsSingleGreaterThanOrEqualTo(Integer value) {
  593 + addCriterion("is_single >=", value, "isSingle");
  594 + return (Criteria) this;
  595 + }
  596 +
  597 + public Criteria andIsSingleLessThan(Integer value) {
  598 + addCriterion("is_single <", value, "isSingle");
  599 + return (Criteria) this;
  600 + }
  601 +
  602 + public Criteria andIsSingleLessThanOrEqualTo(Integer value) {
  603 + addCriterion("is_single <=", value, "isSingle");
  604 + return (Criteria) this;
  605 + }
  606 +
  607 + public Criteria andIsSingleIn(List<Integer> values) {
  608 + addCriterion("is_single in", values, "isSingle");
  609 + return (Criteria) this;
  610 + }
  611 +
  612 + public Criteria andIsSingleNotIn(List<Integer> values) {
  613 + addCriterion("is_single not in", values, "isSingle");
  614 + return (Criteria) this;
  615 + }
  616 +
  617 + public Criteria andIsSingleBetween(Integer value1, Integer value2) {
  618 + addCriterion("is_single between", value1, value2, "isSingle");
  619 + return (Criteria) this;
  620 + }
  621 +
  622 + public Criteria andIsSingleNotBetween(Integer value1, Integer value2) {
  623 + addCriterion("is_single not between", value1, value2, "isSingle");
  624 + return (Criteria) this;
  625 + }
  626 + }
  627 +
  628 + public static class Criteria extends GeneratedCriteria {
  629 +
  630 + protected Criteria() {
  631 + super();
  632 + }
  633 + }
  634 +
  635 + public static class Criterion {
  636 + private String condition;
  637 +
  638 + private Object value;
  639 +
  640 + private Object secondValue;
  641 +
  642 + private boolean noValue;
  643 +
  644 + private boolean singleValue;
  645 +
  646 + private boolean betweenValue;
  647 +
  648 + private boolean listValue;
  649 +
  650 + private String typeHandler;
  651 +
  652 + public String getCondition() {
  653 + return condition;
  654 + }
  655 +
  656 + public Object getValue() {
  657 + return value;
  658 + }
  659 +
  660 + public Object getSecondValue() {
  661 + return secondValue;
  662 + }
  663 +
  664 + public boolean isNoValue() {
  665 + return noValue;
  666 + }
  667 +
  668 + public boolean isSingleValue() {
  669 + return singleValue;
  670 + }
  671 +
  672 + public boolean isBetweenValue() {
  673 + return betweenValue;
  674 + }
  675 +
  676 + public boolean isListValue() {
  677 + return listValue;
  678 + }
  679 +
  680 + public String getTypeHandler() {
  681 + return typeHandler;
  682 + }
  683 +
  684 + protected Criterion(String condition) {
  685 + super();
  686 + this.condition = condition;
  687 + this.typeHandler = null;
  688 + this.noValue = true;
  689 + }
  690 +
  691 + protected Criterion(String condition, Object value, String typeHandler) {
  692 + super();
  693 + this.condition = condition;
  694 + this.value = value;
  695 + this.typeHandler = typeHandler;
  696 + if (value instanceof List<?>) {
  697 + this.listValue = true;
  698 + } else {
  699 + this.singleValue = true;
  700 + }
  701 + }
  702 +
  703 + protected Criterion(String condition, Object value) {
  704 + this(condition, value, null);
  705 + }
  706 +
  707 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  708 + super();
  709 + this.condition = condition;
  710 + this.value = value;
  711 + this.secondValue = secondValue;
  712 + this.typeHandler = typeHandler;
  713 + this.betweenValue = true;
  714 + }
  715 +
  716 + protected Criterion(String condition, Object value, Object secondValue) {
  717 + this(condition, value, secondValue, null);
  718 + }
  719 + }
  720 +}
0 721 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyImgParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyImgParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +
  4 +import lombok.AllArgsConstructor;
  5 +import lombok.Data;
  6 +import lombok.NoArgsConstructor;
  7 +
  8 +/**
  9 + *
  10 + */
  11 +@AllArgsConstructor
  12 +@NoArgsConstructor
  13 +@Data
  14 +public class SyImgParam {
  15 + byte[] data;
  16 + int width;
  17 + int height;
  18 + int channel;
  19 +}
... ...
src/main/java/com/objecteye/entity/SyPersonnel.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyPersonnel.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyPersonnel implements Serializable {
  8 + @ApiModelProperty(value = "自增主键")
  9 + private Integer id;
  10 +
  11 + @ApiModelProperty(value = "姓名")
  12 + private String name;
  13 +
  14 + @ApiModelProperty(value = "身份证号")
  15 + private String indentity;
  16 +
  17 + @ApiModelProperty(value = "图片url")
  18 + private String imageUrl;
  19 +
  20 + @ApiModelProperty(value = "创建时间")
  21 + private String createDate;
  22 +
  23 + @ApiModelProperty(value = "更新时间")
  24 + private String updateDate;
  25 +
  26 + @ApiModelProperty(value = "逻辑删除(0存在1删除)")
  27 + private Integer status;
  28 +
  29 + @ApiModelProperty(value = "布控原因")
  30 + private String conreason;
  31 +
  32 + @ApiModelProperty(value = "人像库外键")
  33 + private Integer fid;
  34 +
  35 + private static final long serialVersionUID = 1L;
  36 +
  37 + public Integer getId() {
  38 + return id;
  39 + }
  40 +
  41 + public void setId(Integer id) {
  42 + this.id = id;
  43 + }
  44 +
  45 + public String getName() {
  46 + return name;
  47 + }
  48 +
  49 + public void setName(String name) {
  50 + this.name = name;
  51 + }
  52 +
  53 + public String getIndentity() {
  54 + return indentity;
  55 + }
  56 +
  57 + public void setIndentity(String indentity) {
  58 + this.indentity = indentity;
  59 + }
  60 +
  61 + public String getImageUrl() {
  62 + return imageUrl;
  63 + }
  64 +
  65 + public void setImageUrl(String imageUrl) {
  66 + this.imageUrl = imageUrl;
  67 + }
  68 +
  69 + public String getCreateDate() {
  70 + return createDate;
  71 + }
  72 +
  73 + public void setCreateDate(String createDate) {
  74 + this.createDate = createDate;
  75 + }
  76 +
  77 + public String getUpdateDate() {
  78 + return updateDate;
  79 + }
  80 +
  81 + public void setUpdateDate(String updateDate) {
  82 + this.updateDate = updateDate;
  83 + }
  84 +
  85 + public Integer getStatus() {
  86 + return status;
  87 + }
  88 +
  89 + public void setStatus(Integer status) {
  90 + this.status = status;
  91 + }
  92 +
  93 + public String getConreason() {
  94 + return conreason;
  95 + }
  96 +
  97 + public void setConreason(String conreason) {
  98 + this.conreason = conreason;
  99 + }
  100 +
  101 + public Integer getFid() {
  102 + return fid;
  103 + }
  104 +
  105 + public void setFid(Integer fid) {
  106 + this.fid = fid;
  107 + }
  108 +
  109 + @Override
  110 + public String toString() {
  111 + StringBuilder sb = new StringBuilder();
  112 + sb.append(getClass().getSimpleName());
  113 + sb.append(" [");
  114 + sb.append("Hash = ").append(hashCode());
  115 + sb.append(", id=").append(id);
  116 + sb.append(", name=").append(name);
  117 + sb.append(", indentity=").append(indentity);
  118 + sb.append(", imageUrl=").append(imageUrl);
  119 + sb.append(", createDate=").append(createDate);
  120 + sb.append(", updateDate=").append(updateDate);
  121 + sb.append(", status=").append(status);
  122 + sb.append(", conreason=").append(conreason);
  123 + sb.append(", fid=").append(fid);
  124 + sb.append(", serialVersionUID=").append(serialVersionUID);
  125 + sb.append("]");
  126 + return sb.toString();
  127 + }
  128 +}
0 129 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyPersonnelExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyPersonnelExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyPersonnelExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyPersonnelExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andNameIsNull() {
  168 + addCriterion("name is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andNameIsNotNull() {
  173 + addCriterion("name is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andNameEqualTo(String value) {
  178 + addCriterion("name =", value, "name");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andNameNotEqualTo(String value) {
  183 + addCriterion("name <>", value, "name");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andNameGreaterThan(String value) {
  188 + addCriterion("name >", value, "name");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andNameGreaterThanOrEqualTo(String value) {
  193 + addCriterion("name >=", value, "name");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andNameLessThan(String value) {
  198 + addCriterion("name <", value, "name");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andNameLessThanOrEqualTo(String value) {
  203 + addCriterion("name <=", value, "name");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andNameLike(String value) {
  208 + addCriterion("name like", value, "name");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andNameNotLike(String value) {
  213 + addCriterion("name not like", value, "name");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andNameIn(List<String> values) {
  218 + addCriterion("name in", values, "name");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andNameNotIn(List<String> values) {
  223 + addCriterion("name not in", values, "name");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andNameBetween(String value1, String value2) {
  228 + addCriterion("name between", value1, value2, "name");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andNameNotBetween(String value1, String value2) {
  233 + addCriterion("name not between", value1, value2, "name");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andIndentityIsNull() {
  238 + addCriterion("indentity is null");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andIndentityIsNotNull() {
  243 + addCriterion("indentity is not null");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andIndentityEqualTo(String value) {
  248 + addCriterion("indentity =", value, "indentity");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andIndentityNotEqualTo(String value) {
  253 + addCriterion("indentity <>", value, "indentity");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andIndentityGreaterThan(String value) {
  258 + addCriterion("indentity >", value, "indentity");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andIndentityGreaterThanOrEqualTo(String value) {
  263 + addCriterion("indentity >=", value, "indentity");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andIndentityLessThan(String value) {
  268 + addCriterion("indentity <", value, "indentity");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andIndentityLessThanOrEqualTo(String value) {
  273 + addCriterion("indentity <=", value, "indentity");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andIndentityLike(String value) {
  278 + addCriterion("indentity like", value, "indentity");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andIndentityNotLike(String value) {
  283 + addCriterion("indentity not like", value, "indentity");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andIndentityIn(List<String> values) {
  288 + addCriterion("indentity in", values, "indentity");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andIndentityNotIn(List<String> values) {
  293 + addCriterion("indentity not in", values, "indentity");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andIndentityBetween(String value1, String value2) {
  298 + addCriterion("indentity between", value1, value2, "indentity");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andIndentityNotBetween(String value1, String value2) {
  303 + addCriterion("indentity not between", value1, value2, "indentity");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andImageUrlIsNull() {
  308 + addCriterion("image_url is null");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andImageUrlIsNotNull() {
  313 + addCriterion("image_url is not null");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andImageUrlEqualTo(String value) {
  318 + addCriterion("image_url =", value, "imageUrl");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andImageUrlNotEqualTo(String value) {
  323 + addCriterion("image_url <>", value, "imageUrl");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andImageUrlGreaterThan(String value) {
  328 + addCriterion("image_url >", value, "imageUrl");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andImageUrlGreaterThanOrEqualTo(String value) {
  333 + addCriterion("image_url >=", value, "imageUrl");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andImageUrlLessThan(String value) {
  338 + addCriterion("image_url <", value, "imageUrl");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andImageUrlLessThanOrEqualTo(String value) {
  343 + addCriterion("image_url <=", value, "imageUrl");
  344 + return (Criteria) this;
  345 + }
  346 +
  347 + public Criteria andImageUrlLike(String value) {
  348 + addCriterion("image_url like", value, "imageUrl");
  349 + return (Criteria) this;
  350 + }
  351 +
  352 + public Criteria andImageUrlNotLike(String value) {
  353 + addCriterion("image_url not like", value, "imageUrl");
  354 + return (Criteria) this;
  355 + }
  356 +
  357 + public Criteria andImageUrlIn(List<String> values) {
  358 + addCriterion("image_url in", values, "imageUrl");
  359 + return (Criteria) this;
  360 + }
  361 +
  362 + public Criteria andImageUrlNotIn(List<String> values) {
  363 + addCriterion("image_url not in", values, "imageUrl");
  364 + return (Criteria) this;
  365 + }
  366 +
  367 + public Criteria andImageUrlBetween(String value1, String value2) {
  368 + addCriterion("image_url between", value1, value2, "imageUrl");
  369 + return (Criteria) this;
  370 + }
  371 +
  372 + public Criteria andImageUrlNotBetween(String value1, String value2) {
  373 + addCriterion("image_url not between", value1, value2, "imageUrl");
  374 + return (Criteria) this;
  375 + }
  376 +
  377 + public Criteria andCreateDateIsNull() {
  378 + addCriterion("create_date is null");
  379 + return (Criteria) this;
  380 + }
  381 +
  382 + public Criteria andCreateDateIsNotNull() {
  383 + addCriterion("create_date is not null");
  384 + return (Criteria) this;
  385 + }
  386 +
  387 + public Criteria andCreateDateEqualTo(String value) {
  388 + addCriterion("create_date =", value, "createDate");
  389 + return (Criteria) this;
  390 + }
  391 +
  392 + public Criteria andCreateDateNotEqualTo(String value) {
  393 + addCriterion("create_date <>", value, "createDate");
  394 + return (Criteria) this;
  395 + }
  396 +
  397 + public Criteria andCreateDateGreaterThan(String value) {
  398 + addCriterion("create_date >", value, "createDate");
  399 + return (Criteria) this;
  400 + }
  401 +
  402 + public Criteria andCreateDateGreaterThanOrEqualTo(String value) {
  403 + addCriterion("create_date >=", value, "createDate");
  404 + return (Criteria) this;
  405 + }
  406 +
  407 + public Criteria andCreateDateLessThan(String value) {
  408 + addCriterion("create_date <", value, "createDate");
  409 + return (Criteria) this;
  410 + }
  411 +
  412 + public Criteria andCreateDateLessThanOrEqualTo(String value) {
  413 + addCriterion("create_date <=", value, "createDate");
  414 + return (Criteria) this;
  415 + }
  416 +
  417 + public Criteria andCreateDateLike(String value) {
  418 + addCriterion("create_date like", value, "createDate");
  419 + return (Criteria) this;
  420 + }
  421 +
  422 + public Criteria andCreateDateNotLike(String value) {
  423 + addCriterion("create_date not like", value, "createDate");
  424 + return (Criteria) this;
  425 + }
  426 +
  427 + public Criteria andCreateDateIn(List<String> values) {
  428 + addCriterion("create_date in", values, "createDate");
  429 + return (Criteria) this;
  430 + }
  431 +
  432 + public Criteria andCreateDateNotIn(List<String> values) {
  433 + addCriterion("create_date not in", values, "createDate");
  434 + return (Criteria) this;
  435 + }
  436 +
  437 + public Criteria andCreateDateBetween(String value1, String value2) {
  438 + addCriterion("create_date between", value1, value2, "createDate");
  439 + return (Criteria) this;
  440 + }
  441 +
  442 + public Criteria andCreateDateNotBetween(String value1, String value2) {
  443 + addCriterion("create_date not between", value1, value2, "createDate");
  444 + return (Criteria) this;
  445 + }
  446 +
  447 + public Criteria andUpdateDateIsNull() {
  448 + addCriterion("update_date is null");
  449 + return (Criteria) this;
  450 + }
  451 +
  452 + public Criteria andUpdateDateIsNotNull() {
  453 + addCriterion("update_date is not null");
  454 + return (Criteria) this;
  455 + }
  456 +
  457 + public Criteria andUpdateDateEqualTo(String value) {
  458 + addCriterion("update_date =", value, "updateDate");
  459 + return (Criteria) this;
  460 + }
  461 +
  462 + public Criteria andUpdateDateNotEqualTo(String value) {
  463 + addCriterion("update_date <>", value, "updateDate");
  464 + return (Criteria) this;
  465 + }
  466 +
  467 + public Criteria andUpdateDateGreaterThan(String value) {
  468 + addCriterion("update_date >", value, "updateDate");
  469 + return (Criteria) this;
  470 + }
  471 +
  472 + public Criteria andUpdateDateGreaterThanOrEqualTo(String value) {
  473 + addCriterion("update_date >=", value, "updateDate");
  474 + return (Criteria) this;
  475 + }
  476 +
  477 + public Criteria andUpdateDateLessThan(String value) {
  478 + addCriterion("update_date <", value, "updateDate");
  479 + return (Criteria) this;
  480 + }
  481 +
  482 + public Criteria andUpdateDateLessThanOrEqualTo(String value) {
  483 + addCriterion("update_date <=", value, "updateDate");
  484 + return (Criteria) this;
  485 + }
  486 +
  487 + public Criteria andUpdateDateLike(String value) {
  488 + addCriterion("update_date like", value, "updateDate");
  489 + return (Criteria) this;
  490 + }
  491 +
  492 + public Criteria andUpdateDateNotLike(String value) {
  493 + addCriterion("update_date not like", value, "updateDate");
  494 + return (Criteria) this;
  495 + }
  496 +
  497 + public Criteria andUpdateDateIn(List<String> values) {
  498 + addCriterion("update_date in", values, "updateDate");
  499 + return (Criteria) this;
  500 + }
  501 +
  502 + public Criteria andUpdateDateNotIn(List<String> values) {
  503 + addCriterion("update_date not in", values, "updateDate");
  504 + return (Criteria) this;
  505 + }
  506 +
  507 + public Criteria andUpdateDateBetween(String value1, String value2) {
  508 + addCriterion("update_date between", value1, value2, "updateDate");
  509 + return (Criteria) this;
  510 + }
  511 +
  512 + public Criteria andUpdateDateNotBetween(String value1, String value2) {
  513 + addCriterion("update_date not between", value1, value2, "updateDate");
  514 + return (Criteria) this;
  515 + }
  516 +
  517 + public Criteria andStatusIsNull() {
  518 + addCriterion("status is null");
  519 + return (Criteria) this;
  520 + }
  521 +
  522 + public Criteria andStatusIsNotNull() {
  523 + addCriterion("status is not null");
  524 + return (Criteria) this;
  525 + }
  526 +
  527 + public Criteria andStatusEqualTo(Integer value) {
  528 + addCriterion("status =", value, "status");
  529 + return (Criteria) this;
  530 + }
  531 +
  532 + public Criteria andStatusNotEqualTo(Integer value) {
  533 + addCriterion("status <>", value, "status");
  534 + return (Criteria) this;
  535 + }
  536 +
  537 + public Criteria andStatusGreaterThan(Integer value) {
  538 + addCriterion("status >", value, "status");
  539 + return (Criteria) this;
  540 + }
  541 +
  542 + public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
  543 + addCriterion("status >=", value, "status");
  544 + return (Criteria) this;
  545 + }
  546 +
  547 + public Criteria andStatusLessThan(Integer value) {
  548 + addCriterion("status <", value, "status");
  549 + return (Criteria) this;
  550 + }
  551 +
  552 + public Criteria andStatusLessThanOrEqualTo(Integer value) {
  553 + addCriterion("status <=", value, "status");
  554 + return (Criteria) this;
  555 + }
  556 +
  557 + public Criteria andStatusIn(List<Integer> values) {
  558 + addCriterion("status in", values, "status");
  559 + return (Criteria) this;
  560 + }
  561 +
  562 + public Criteria andStatusNotIn(List<Integer> values) {
  563 + addCriterion("status not in", values, "status");
  564 + return (Criteria) this;
  565 + }
  566 +
  567 + public Criteria andStatusBetween(Integer value1, Integer value2) {
  568 + addCriterion("status between", value1, value2, "status");
  569 + return (Criteria) this;
  570 + }
  571 +
  572 + public Criteria andStatusNotBetween(Integer value1, Integer value2) {
  573 + addCriterion("status not between", value1, value2, "status");
  574 + return (Criteria) this;
  575 + }
  576 +
  577 + public Criteria andConreasonIsNull() {
  578 + addCriterion("conreason is null");
  579 + return (Criteria) this;
  580 + }
  581 +
  582 + public Criteria andConreasonIsNotNull() {
  583 + addCriterion("conreason is not null");
  584 + return (Criteria) this;
  585 + }
  586 +
  587 + public Criteria andConreasonEqualTo(String value) {
  588 + addCriterion("conreason =", value, "conreason");
  589 + return (Criteria) this;
  590 + }
  591 +
  592 + public Criteria andConreasonNotEqualTo(String value) {
  593 + addCriterion("conreason <>", value, "conreason");
  594 + return (Criteria) this;
  595 + }
  596 +
  597 + public Criteria andConreasonGreaterThan(String value) {
  598 + addCriterion("conreason >", value, "conreason");
  599 + return (Criteria) this;
  600 + }
  601 +
  602 + public Criteria andConreasonGreaterThanOrEqualTo(String value) {
  603 + addCriterion("conreason >=", value, "conreason");
  604 + return (Criteria) this;
  605 + }
  606 +
  607 + public Criteria andConreasonLessThan(String value) {
  608 + addCriterion("conreason <", value, "conreason");
  609 + return (Criteria) this;
  610 + }
  611 +
  612 + public Criteria andConreasonLessThanOrEqualTo(String value) {
  613 + addCriterion("conreason <=", value, "conreason");
  614 + return (Criteria) this;
  615 + }
  616 +
  617 + public Criteria andConreasonLike(String value) {
  618 + addCriterion("conreason like", value, "conreason");
  619 + return (Criteria) this;
  620 + }
  621 +
  622 + public Criteria andConreasonNotLike(String value) {
  623 + addCriterion("conreason not like", value, "conreason");
  624 + return (Criteria) this;
  625 + }
  626 +
  627 + public Criteria andConreasonIn(List<String> values) {
  628 + addCriterion("conreason in", values, "conreason");
  629 + return (Criteria) this;
  630 + }
  631 +
  632 + public Criteria andConreasonNotIn(List<String> values) {
  633 + addCriterion("conreason not in", values, "conreason");
  634 + return (Criteria) this;
  635 + }
  636 +
  637 + public Criteria andConreasonBetween(String value1, String value2) {
  638 + addCriterion("conreason between", value1, value2, "conreason");
  639 + return (Criteria) this;
  640 + }
  641 +
  642 + public Criteria andConreasonNotBetween(String value1, String value2) {
  643 + addCriterion("conreason not between", value1, value2, "conreason");
  644 + return (Criteria) this;
  645 + }
  646 +
  647 + public Criteria andFidIsNull() {
  648 + addCriterion("fid is null");
  649 + return (Criteria) this;
  650 + }
  651 +
  652 + public Criteria andFidIsNotNull() {
  653 + addCriterion("fid is not null");
  654 + return (Criteria) this;
  655 + }
  656 +
  657 + public Criteria andFidEqualTo(Integer value) {
  658 + addCriterion("fid =", value, "fid");
  659 + return (Criteria) this;
  660 + }
  661 +
  662 + public Criteria andFidNotEqualTo(Integer value) {
  663 + addCriterion("fid <>", value, "fid");
  664 + return (Criteria) this;
  665 + }
  666 +
  667 + public Criteria andFidGreaterThan(Integer value) {
  668 + addCriterion("fid >", value, "fid");
  669 + return (Criteria) this;
  670 + }
  671 +
  672 + public Criteria andFidGreaterThanOrEqualTo(Integer value) {
  673 + addCriterion("fid >=", value, "fid");
  674 + return (Criteria) this;
  675 + }
  676 +
  677 + public Criteria andFidLessThan(Integer value) {
  678 + addCriterion("fid <", value, "fid");
  679 + return (Criteria) this;
  680 + }
  681 +
  682 + public Criteria andFidLessThanOrEqualTo(Integer value) {
  683 + addCriterion("fid <=", value, "fid");
  684 + return (Criteria) this;
  685 + }
  686 +
  687 + public Criteria andFidIn(List<Integer> values) {
  688 + addCriterion("fid in", values, "fid");
  689 + return (Criteria) this;
  690 + }
  691 +
  692 + public Criteria andFidNotIn(List<Integer> values) {
  693 + addCriterion("fid not in", values, "fid");
  694 + return (Criteria) this;
  695 + }
  696 +
  697 + public Criteria andFidBetween(Integer value1, Integer value2) {
  698 + addCriterion("fid between", value1, value2, "fid");
  699 + return (Criteria) this;
  700 + }
  701 +
  702 + public Criteria andFidNotBetween(Integer value1, Integer value2) {
  703 + addCriterion("fid not between", value1, value2, "fid");
  704 + return (Criteria) this;
  705 + }
  706 + }
  707 +
  708 + public static class Criteria extends GeneratedCriteria {
  709 +
  710 + protected Criteria() {
  711 + super();
  712 + }
  713 + }
  714 +
  715 + public static class Criterion {
  716 + private String condition;
  717 +
  718 + private Object value;
  719 +
  720 + private Object secondValue;
  721 +
  722 + private boolean noValue;
  723 +
  724 + private boolean singleValue;
  725 +
  726 + private boolean betweenValue;
  727 +
  728 + private boolean listValue;
  729 +
  730 + private String typeHandler;
  731 +
  732 + public String getCondition() {
  733 + return condition;
  734 + }
  735 +
  736 + public Object getValue() {
  737 + return value;
  738 + }
  739 +
  740 + public Object getSecondValue() {
  741 + return secondValue;
  742 + }
  743 +
  744 + public boolean isNoValue() {
  745 + return noValue;
  746 + }
  747 +
  748 + public boolean isSingleValue() {
  749 + return singleValue;
  750 + }
  751 +
  752 + public boolean isBetweenValue() {
  753 + return betweenValue;
  754 + }
  755 +
  756 + public boolean isListValue() {
  757 + return listValue;
  758 + }
  759 +
  760 + public String getTypeHandler() {
  761 + return typeHandler;
  762 + }
  763 +
  764 + protected Criterion(String condition) {
  765 + super();
  766 + this.condition = condition;
  767 + this.typeHandler = null;
  768 + this.noValue = true;
  769 + }
  770 +
  771 + protected Criterion(String condition, Object value, String typeHandler) {
  772 + super();
  773 + this.condition = condition;
  774 + this.value = value;
  775 + this.typeHandler = typeHandler;
  776 + if (value instanceof List<?>) {
  777 + this.listValue = true;
  778 + } else {
  779 + this.singleValue = true;
  780 + }
  781 + }
  782 +
  783 + protected Criterion(String condition, Object value) {
  784 + this(condition, value, null);
  785 + }
  786 +
  787 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  788 + super();
  789 + this.condition = condition;
  790 + this.value = value;
  791 + this.secondValue = secondValue;
  792 + this.typeHandler = typeHandler;
  793 + this.betweenValue = true;
  794 + }
  795 +
  796 + protected Criterion(String condition, Object value, Object secondValue) {
  797 + this(condition, value, secondValue, null);
  798 + }
  799 + }
  800 +}
0 801 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyPointParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyPointParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +/**
  8 + *
  9 + */
  10 +@AllArgsConstructor
  11 +@NoArgsConstructor
  12 +@Data
  13 +public class SyPointParam {
  14 + private int x;
  15 + private int y;
  16 +}
... ...
src/main/java/com/objecteye/entity/SyPrivilege.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyPrivilege.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +
  5 +import java.io.Serializable;
  6 +
  7 +public class SyPrivilege implements Serializable {
  8 + @ApiModelProperty(value = "主键")
  9 + private Integer id;
  10 +
  11 + @ApiModelProperty(value = "权限名称")
  12 + private String privilegeName;
  13 +
  14 + @ApiModelProperty(value = "是否删除")
  15 + private String isDelete;
  16 +
  17 + @ApiModelProperty(value = "创建时间")
  18 + private String createDate;
  19 +
  20 + private static final long serialVersionUID = 1L;
  21 +
  22 + public Integer getId() {
  23 + return id;
  24 + }
  25 +
  26 + public void setId(Integer id) {
  27 + this.id = id;
  28 + }
  29 +
  30 + public String getPrivilegeName() {
  31 + return privilegeName;
  32 + }
  33 +
  34 + public void setPrivilegeName(String privilegeName) {
  35 + this.privilegeName = privilegeName;
  36 + }
  37 +
  38 + public String getIsDelete() {
  39 + return isDelete;
  40 + }
  41 +
  42 + public void setIsDelete(String isDelete) {
  43 + this.isDelete = isDelete;
  44 + }
  45 +
  46 + public String getCreateDate() {
  47 + return createDate;
  48 + }
  49 +
  50 + public void setCreateDate(String createDate) {
  51 + this.createDate = createDate;
  52 + }
  53 +
  54 + @Override
  55 + public String toString() {
  56 + StringBuilder sb = new StringBuilder();
  57 + sb.append(getClass().getSimpleName());
  58 + sb.append(" [");
  59 + sb.append("Hash = ").append(hashCode());
  60 + sb.append(", id=").append(id);
  61 + sb.append(", privilegeName=").append(privilegeName);
  62 + sb.append(", isDelete=").append(isDelete);
  63 + sb.append(", createDate=").append(createDate);
  64 + sb.append(", serialVersionUID=").append(serialVersionUID);
  65 + sb.append("]");
  66 + return sb.toString();
  67 + }
  68 +}
0 69 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyPrivilegeExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyPrivilegeExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import java.util.ArrayList;
  4 +import java.util.List;
  5 +
  6 +public class SyPrivilegeExample {
  7 + protected String orderByClause;
  8 +
  9 + protected boolean distinct;
  10 +
  11 + protected List<Criteria> oredCriteria;
  12 +
  13 + public SyPrivilegeExample() {
  14 + oredCriteria = new ArrayList<Criteria>();
  15 + }
  16 +
  17 + public void setOrderByClause(String orderByClause) {
  18 + this.orderByClause = orderByClause;
  19 + }
  20 +
  21 + public String getOrderByClause() {
  22 + return orderByClause;
  23 + }
  24 +
  25 + public void setDistinct(boolean distinct) {
  26 + this.distinct = distinct;
  27 + }
  28 +
  29 + public boolean isDistinct() {
  30 + return distinct;
  31 + }
  32 +
  33 + public List<Criteria> getOredCriteria() {
  34 + return oredCriteria;
  35 + }
  36 +
  37 + public void or(Criteria criteria) {
  38 + oredCriteria.add(criteria);
  39 + }
  40 +
  41 + public Criteria or() {
  42 + Criteria criteria = createCriteriaInternal();
  43 + oredCriteria.add(criteria);
  44 + return criteria;
  45 + }
  46 +
  47 + public Criteria createCriteria() {
  48 + Criteria criteria = createCriteriaInternal();
  49 + if (oredCriteria.size() == 0) {
  50 + oredCriteria.add(criteria);
  51 + }
  52 + return criteria;
  53 + }
  54 +
  55 + protected Criteria createCriteriaInternal() {
  56 + Criteria criteria = new Criteria();
  57 + return criteria;
  58 + }
  59 +
  60 + public void clear() {
  61 + oredCriteria.clear();
  62 + orderByClause = null;
  63 + distinct = false;
  64 + }
  65 +
  66 + protected abstract static class GeneratedCriteria {
  67 + protected List<Criterion> criteria;
  68 +
  69 + protected GeneratedCriteria() {
  70 + super();
  71 + criteria = new ArrayList<Criterion>();
  72 + }
  73 +
  74 + public boolean isValid() {
  75 + return criteria.size() > 0;
  76 + }
  77 +
  78 + public List<Criterion> getAllCriteria() {
  79 + return criteria;
  80 + }
  81 +
  82 + public List<Criterion> getCriteria() {
  83 + return criteria;
  84 + }
  85 +
  86 + protected void addCriterion(String condition) {
  87 + if (condition == null) {
  88 + throw new RuntimeException("Value for condition cannot be null");
  89 + }
  90 + criteria.add(new Criterion(condition));
  91 + }
  92 +
  93 + protected void addCriterion(String condition, Object value, String property) {
  94 + if (value == null) {
  95 + throw new RuntimeException("Value for " + property + " cannot be null");
  96 + }
  97 + criteria.add(new Criterion(condition, value));
  98 + }
  99 +
  100 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  101 + if (value1 == null || value2 == null) {
  102 + throw new RuntimeException("Between values for " + property + " cannot be null");
  103 + }
  104 + criteria.add(new Criterion(condition, value1, value2));
  105 + }
  106 +
  107 + public Criteria andIdIsNull() {
  108 + addCriterion("id is null");
  109 + return (Criteria) this;
  110 + }
  111 +
  112 + public Criteria andIdIsNotNull() {
  113 + addCriterion("id is not null");
  114 + return (Criteria) this;
  115 + }
  116 +
  117 + public Criteria andIdEqualTo(Integer value) {
  118 + addCriterion("id =", value, "id");
  119 + return (Criteria) this;
  120 + }
  121 +
  122 + public Criteria andIdNotEqualTo(Integer value) {
  123 + addCriterion("id <>", value, "id");
  124 + return (Criteria) this;
  125 + }
  126 +
  127 + public Criteria andIdGreaterThan(Integer value) {
  128 + addCriterion("id >", value, "id");
  129 + return (Criteria) this;
  130 + }
  131 +
  132 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  133 + addCriterion("id >=", value, "id");
  134 + return (Criteria) this;
  135 + }
  136 +
  137 + public Criteria andIdLessThan(Integer value) {
  138 + addCriterion("id <", value, "id");
  139 + return (Criteria) this;
  140 + }
  141 +
  142 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  143 + addCriterion("id <=", value, "id");
  144 + return (Criteria) this;
  145 + }
  146 +
  147 + public Criteria andIdIn(List<Integer> values) {
  148 + addCriterion("id in", values, "id");
  149 + return (Criteria) this;
  150 + }
  151 +
  152 + public Criteria andIdNotIn(List<Integer> values) {
  153 + addCriterion("id not in", values, "id");
  154 + return (Criteria) this;
  155 + }
  156 +
  157 + public Criteria andIdBetween(Integer value1, Integer value2) {
  158 + addCriterion("id between", value1, value2, "id");
  159 + return (Criteria) this;
  160 + }
  161 +
  162 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  163 + addCriterion("id not between", value1, value2, "id");
  164 + return (Criteria) this;
  165 + }
  166 +
  167 + public Criteria andPrivilegeNameIsNull() {
  168 + addCriterion("privilege_name is null");
  169 + return (Criteria) this;
  170 + }
  171 +
  172 + public Criteria andPrivilegeNameIsNotNull() {
  173 + addCriterion("privilege_name is not null");
  174 + return (Criteria) this;
  175 + }
  176 +
  177 + public Criteria andPrivilegeNameEqualTo(String value) {
  178 + addCriterion("privilege_name =", value, "privilegeName");
  179 + return (Criteria) this;
  180 + }
  181 +
  182 + public Criteria andPrivilegeNameNotEqualTo(String value) {
  183 + addCriterion("privilege_name <>", value, "privilegeName");
  184 + return (Criteria) this;
  185 + }
  186 +
  187 + public Criteria andPrivilegeNameGreaterThan(String value) {
  188 + addCriterion("privilege_name >", value, "privilegeName");
  189 + return (Criteria) this;
  190 + }
  191 +
  192 + public Criteria andPrivilegeNameGreaterThanOrEqualTo(String value) {
  193 + addCriterion("privilege_name >=", value, "privilegeName");
  194 + return (Criteria) this;
  195 + }
  196 +
  197 + public Criteria andPrivilegeNameLessThan(String value) {
  198 + addCriterion("privilege_name <", value, "privilegeName");
  199 + return (Criteria) this;
  200 + }
  201 +
  202 + public Criteria andPrivilegeNameLessThanOrEqualTo(String value) {
  203 + addCriterion("privilege_name <=", value, "privilegeName");
  204 + return (Criteria) this;
  205 + }
  206 +
  207 + public Criteria andPrivilegeNameLike(String value) {
  208 + addCriterion("privilege_name like", value, "privilegeName");
  209 + return (Criteria) this;
  210 + }
  211 +
  212 + public Criteria andPrivilegeNameNotLike(String value) {
  213 + addCriterion("privilege_name not like", value, "privilegeName");
  214 + return (Criteria) this;
  215 + }
  216 +
  217 + public Criteria andPrivilegeNameIn(List<String> values) {
  218 + addCriterion("privilege_name in", values, "privilegeName");
  219 + return (Criteria) this;
  220 + }
  221 +
  222 + public Criteria andPrivilegeNameNotIn(List<String> values) {
  223 + addCriterion("privilege_name not in", values, "privilegeName");
  224 + return (Criteria) this;
  225 + }
  226 +
  227 + public Criteria andPrivilegeNameBetween(String value1, String value2) {
  228 + addCriterion("privilege_name between", value1, value2, "privilegeName");
  229 + return (Criteria) this;
  230 + }
  231 +
  232 + public Criteria andPrivilegeNameNotBetween(String value1, String value2) {
  233 + addCriterion("privilege_name not between", value1, value2, "privilegeName");
  234 + return (Criteria) this;
  235 + }
  236 +
  237 + public Criteria andIsDeleteIsNull() {
  238 + addCriterion("is_delete is null");
  239 + return (Criteria) this;
  240 + }
  241 +
  242 + public Criteria andIsDeleteIsNotNull() {
  243 + addCriterion("is_delete is not null");
  244 + return (Criteria) this;
  245 + }
  246 +
  247 + public Criteria andIsDeleteEqualTo(String value) {
  248 + addCriterion("is_delete =", value, "isDelete");
  249 + return (Criteria) this;
  250 + }
  251 +
  252 + public Criteria andIsDeleteNotEqualTo(String value) {
  253 + addCriterion("is_delete <>", value, "isDelete");
  254 + return (Criteria) this;
  255 + }
  256 +
  257 + public Criteria andIsDeleteGreaterThan(String value) {
  258 + addCriterion("is_delete >", value, "isDelete");
  259 + return (Criteria) this;
  260 + }
  261 +
  262 + public Criteria andIsDeleteGreaterThanOrEqualTo(String value) {
  263 + addCriterion("is_delete >=", value, "isDelete");
  264 + return (Criteria) this;
  265 + }
  266 +
  267 + public Criteria andIsDeleteLessThan(String value) {
  268 + addCriterion("is_delete <", value, "isDelete");
  269 + return (Criteria) this;
  270 + }
  271 +
  272 + public Criteria andIsDeleteLessThanOrEqualTo(String value) {
  273 + addCriterion("is_delete <=", value, "isDelete");
  274 + return (Criteria) this;
  275 + }
  276 +
  277 + public Criteria andIsDeleteLike(String value) {
  278 + addCriterion("is_delete like", value, "isDelete");
  279 + return (Criteria) this;
  280 + }
  281 +
  282 + public Criteria andIsDeleteNotLike(String value) {
  283 + addCriterion("is_delete not like", value, "isDelete");
  284 + return (Criteria) this;
  285 + }
  286 +
  287 + public Criteria andIsDeleteIn(List<String> values) {
  288 + addCriterion("is_delete in", values, "isDelete");
  289 + return (Criteria) this;
  290 + }
  291 +
  292 + public Criteria andIsDeleteNotIn(List<String> values) {
  293 + addCriterion("is_delete not in", values, "isDelete");
  294 + return (Criteria) this;
  295 + }
  296 +
  297 + public Criteria andIsDeleteBetween(String value1, String value2) {
  298 + addCriterion("is_delete between", value1, value2, "isDelete");
  299 + return (Criteria) this;
  300 + }
  301 +
  302 + public Criteria andIsDeleteNotBetween(String value1, String value2) {
  303 + addCriterion("is_delete not between", value1, value2, "isDelete");
  304 + return (Criteria) this;
  305 + }
  306 +
  307 + public Criteria andCreateDateIsNull() {
  308 + addCriterion("create_date is null");
  309 + return (Criteria) this;
  310 + }
  311 +
  312 + public Criteria andCreateDateIsNotNull() {
  313 + addCriterion("create_date is not null");
  314 + return (Criteria) this;
  315 + }
  316 +
  317 + public Criteria andCreateDateEqualTo(String value) {
  318 + addCriterion("create_date =", value, "createDate");
  319 + return (Criteria) this;
  320 + }
  321 +
  322 + public Criteria andCreateDateNotEqualTo(String value) {
  323 + addCriterion("create_date <>", value, "createDate");
  324 + return (Criteria) this;
  325 + }
  326 +
  327 + public Criteria andCreateDateGreaterThan(String value) {
  328 + addCriterion("create_date >", value, "createDate");
  329 + return (Criteria) this;
  330 + }
  331 +
  332 + public Criteria andCreateDateGreaterThanOrEqualTo(String value) {
  333 + addCriterion("create_date >=", value, "createDate");
  334 + return (Criteria) this;
  335 + }
  336 +
  337 + public Criteria andCreateDateLessThan(String value) {
  338 + addCriterion("create_date <", value, "createDate");
  339 + return (Criteria) this;
  340 + }
  341 +
  342 + public Criteria andCreateDateLessThanOrEqualTo(String value) {
  343 + addCriterion("create_date <=", value, "createDate");
  344 + return (Criteria) this;
  345 + }
  346 +
  347 + public Criteria andCreateDateLike(String value) {
  348 + addCriterion("create_date like", value, "createDate");
  349 + return (Criteria) this;
  350 + }
  351 +
  352 + public Criteria andCreateDateNotLike(String value) {
  353 + addCriterion("create_date not like", value, "createDate");
  354 + return (Criteria) this;
  355 + }
  356 +
  357 + public Criteria andCreateDateIn(List<String> values) {
  358 + addCriterion("create_date in", values, "createDate");
  359 + return (Criteria) this;
  360 + }
  361 +
  362 + public Criteria andCreateDateNotIn(List<String> values) {
  363 + addCriterion("create_date not in", values, "createDate");
  364 + return (Criteria) this;
  365 + }
  366 +
  367 + public Criteria andCreateDateBetween(String value1, String value2) {
  368 + addCriterion("create_date between", value1, value2, "createDate");
  369 + return (Criteria) this;
  370 + }
  371 +
  372 + public Criteria andCreateDateNotBetween(String value1, String value2) {
  373 + addCriterion("create_date not between", value1, value2, "createDate");
  374 + return (Criteria) this;
  375 + }
  376 + }
  377 +
  378 + public static class Criteria extends GeneratedCriteria {
  379 +
  380 + protected Criteria() {
  381 + super();
  382 + }
  383 + }
  384 +
  385 + public static class Criterion {
  386 + private String condition;
  387 +
  388 + private Object value;
  389 +
  390 + private Object secondValue;
  391 +
  392 + private boolean noValue;
  393 +
  394 + private boolean singleValue;
  395 +
  396 + private boolean betweenValue;
  397 +
  398 + private boolean listValue;
  399 +
  400 + private String typeHandler;
  401 +
  402 + public String getCondition() {
  403 + return condition;
  404 + }
  405 +
  406 + public Object getValue() {
  407 + return value;
  408 + }
  409 +
  410 + public Object getSecondValue() {
  411 + return secondValue;
  412 + }
  413 +
  414 + public boolean isNoValue() {
  415 + return noValue;
  416 + }
  417 +
  418 + public boolean isSingleValue() {
  419 + return singleValue;
  420 + }
  421 +
  422 + public boolean isBetweenValue() {
  423 + return betweenValue;
  424 + }
  425 +
  426 + public boolean isListValue() {
  427 + return listValue;
  428 + }
  429 +
  430 + public String getTypeHandler() {
  431 + return typeHandler;
  432 + }
  433 +
  434 + protected Criterion(String condition) {
  435 + super();
  436 + this.condition = condition;
  437 + this.typeHandler = null;
  438 + this.noValue = true;
  439 + }
  440 +
  441 + protected Criterion(String condition, Object value, String typeHandler) {
  442 + super();
  443 + this.condition = condition;
  444 + this.value = value;
  445 + this.typeHandler = typeHandler;
  446 + if (value instanceof List<?>) {
  447 + this.listValue = true;
  448 + } else {
  449 + this.singleValue = true;
  450 + }
  451 + }
  452 +
  453 + protected Criterion(String condition, Object value) {
  454 + this(condition, value, null);
  455 + }
  456 +
  457 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  458 + super();
  459 + this.condition = condition;
  460 + this.value = value;
  461 + this.secondValue = secondValue;
  462 + this.typeHandler = typeHandler;
  463 + this.betweenValue = true;
  464 + }
  465 +
  466 + protected Criterion(String condition, Object value, Object secondValue) {
  467 + this(condition, value, secondValue, null);
  468 + }
  469 + }
  470 +}
0 471 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyRectParam.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyRectParam.java
  1 +package com.objecteye.entity;
  2 +
  3 +import lombok.AllArgsConstructor;
  4 +import lombok.Data;
  5 +import lombok.NoArgsConstructor;
  6 +
  7 +
  8 +@AllArgsConstructor
  9 +@NoArgsConstructor
  10 +@Data
  11 +public class SyRectParam {
  12 + int left;
  13 + int top;
  14 + int width;
  15 + int height;
  16 +}
... ...
src/main/java/com/objecteye/entity/SyRole.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyRole.java
  1 +package com.objecteye.entity;
  2 +
  3 +import io.swagger.annotations.ApiModelProperty;
  4 +import org.springframework.stereotype.Component;
  5 +
  6 +import java.io.Serializable;
  7 +
  8 +@Component
  9 +public class SyRole implements Serializable {
  10 + @ApiModelProperty(value = "主键")
  11 + private Integer id;
  12 +
  13 + @ApiModelProperty(value = "角色名称")
  14 + private String roleName;
  15 +
  16 + @ApiModelProperty(value = "是否删除")
  17 + private Integer isDelete;
  18 +
  19 + @ApiModelProperty(value = "创建日期")
  20 + private String createDate;
  21 +
  22 + private static final long serialVersionUID = 1L;
  23 +
  24 + public Integer getId() {
  25 + return id;
  26 + }
  27 +
  28 + public void setId(Integer id) {
  29 + this.id = id;
  30 + }
  31 +
  32 + public String getRoleName() {
  33 + return roleName;
  34 + }
  35 +
  36 + public void setRoleName(String roleName) {
  37 + this.roleName = roleName;
  38 + }
  39 +
  40 + public Integer getIsDelete() {
  41 + return isDelete;
  42 + }
  43 +
  44 + public void setIsDelete(Integer isDelete) {
  45 + this.isDelete = isDelete;
  46 + }
  47 +
  48 + public String getCreateDate() {
  49 + return createDate;
  50 + }
  51 +
  52 + public void setCreateDate(String createDate) {
  53 + this.createDate = createDate;
  54 + }
  55 +
  56 + @Override
  57 + public String toString() {
  58 + StringBuilder sb = new StringBuilder();
  59 + sb.append(getClass().getSimpleName());
  60 + sb.append(" [");
  61 + sb.append("Hash = ").append(hashCode());
  62 + sb.append(", id=").append(id);
  63 + sb.append(", roleName=").append(roleName);
  64 + sb.append(", isDelete=").append(isDelete);
  65 + sb.append(", createDate=").append(createDate);
  66 + sb.append(", serialVersionUID=").append(serialVersionUID);
  67 + sb.append("]");
  68 + return sb.toString();
  69 + }
  70 +}
0 71 \ No newline at end of file
... ...
src/main/java/com/objecteye/entity/SyRoleExample.java 0 → 100644
  1 +++ a/src/main/java/com/objecteye/entity/SyRoleExample.java
  1 +package com.objecteye.entity;
  2 +
  3 +import org.springframework.stereotype.Component;
  4 +
  5 +import java.util.ArrayList;
  6 +import java.util.List;
  7 +
  8 +@Component
  9 +public class SyRoleExample {
  10 + protected String orderByClause;
  11 +
  12 + protected boolean distinct;
  13 +
  14 + protected List<Criteria> oredCriteria;
  15 +
  16 + public SyRoleExample() {
  17 + oredCriteria = new ArrayList<Criteria>();
  18 + }
  19 +
  20 + public void setOrderByClause(String orderByClause) {
  21 + this.orderByClause = orderByClause;
  22 + }
  23 +
  24 + public String getOrderByClause() {
  25 + return orderByClause;
  26 + }
  27 +
  28 + public void setDistinct(boolean distinct) {
  29 + this.distinct = distinct;
  30 + }
  31 +
  32 + public boolean isDistinct() {
  33 + return distinct;
  34 + }
  35 +
  36 + public List<Criteria> getOredCriteria() {
  37 + return oredCriteria;
  38 + }
  39 +
  40 + public void or(Criteria criteria) {
  41 + oredCriteria.add(criteria);
  42 + }
  43 +
  44 + public Criteria or() {
  45 + Criteria criteria = createCriteriaInternal();
  46 + oredCriteria.add(criteria);
  47 + return criteria;
  48 + }
  49 +
  50 + public Criteria createCriteria() {
  51 + Criteria criteria = createCriteriaInternal();
  52 + if (oredCriteria.size() == 0) {
  53 + oredCriteria.add(criteria);
  54 + }
  55 + return criteria;
  56 + }
  57 +
  58 + protected Criteria createCriteriaInternal() {
  59 + Criteria criteria = new Criteria();
  60 + return criteria;
  61 + }
  62 +
  63 + public void clear() {
  64 + oredCriteria.clear();
  65 + orderByClause = null;
  66 + distinct = false;
  67 + }
  68 +
  69 + protected abstract static class GeneratedCriteria {
  70 + protected List<Criterion> criteria;
  71 +
  72 + protected GeneratedCriteria() {
  73 + super();
  74 + criteria = new ArrayList<Criterion>();
  75 + }
  76 +
  77 + public boolean isValid() {
  78 + return criteria.size() > 0;
  79 + }
  80 +
  81 + public List<Criterion> getAllCriteria() {
  82 + return criteria;
  83 + }
  84 +
  85 + public List<Criterion> getCriteria() {
  86 + return criteria;
  87 + }
  88 +
  89 + protected void addCriterion(String condition) {
  90 + if (condition == null) {
  91 + throw new RuntimeException("Value for condition cannot be null");
  92 + }
  93 + criteria.add(new Criterion(condition));
  94 + }
  95 +
  96 + protected void addCriterion(String condition, Object value, String property) {
  97 + if (value == null) {
  98 + throw new RuntimeException("Value for " + property + " cannot be null");
  99 + }
  100 + criteria.add(new Criterion(condition, value));
  101 + }
  102 +
  103 + protected void addCriterion(String condition, Object value1, Object value2, String property) {
  104 + if (value1 == null || value2 == null) {
  105 + throw new RuntimeException("Between values for " + property + " cannot be null");
  106 + }
  107 + criteria.add(new Criterion(condition, value1, value2));
  108 + }
  109 +
  110 + public Criteria andIdIsNull() {
  111 + addCriterion("id is null");
  112 + return (Criteria) this;
  113 + }
  114 +
  115 + public Criteria andIdIsNotNull() {
  116 + addCriterion("id is not null");
  117 + return (Criteria) this;
  118 + }
  119 +
  120 + public Criteria andIdEqualTo(Integer value) {
  121 + addCriterion("id =", value, "id");
  122 + return (Criteria) this;
  123 + }
  124 +
  125 + public Criteria andIdNotEqualTo(Integer value) {
  126 + addCriterion("id <>", value, "id");
  127 + return (Criteria) this;
  128 + }
  129 +
  130 + public Criteria andIdGreaterThan(Integer value) {
  131 + addCriterion("id >", value, "id");
  132 + return (Criteria) this;
  133 + }
  134 +
  135 + public Criteria andIdGreaterThanOrEqualTo(Integer value) {
  136 + addCriterion("id >=", value, "id");
  137 + return (Criteria) this;
  138 + }
  139 +
  140 + public Criteria andIdLessThan(Integer value) {
  141 + addCriterion("id <", value, "id");
  142 + return (Criteria) this;
  143 + }
  144 +
  145 + public Criteria andIdLessThanOrEqualTo(Integer value) {
  146 + addCriterion("id <=", value, "id");
  147 + return (Criteria) this;
  148 + }
  149 +
  150 + public Criteria andIdIn(List<Integer> values) {
  151 + addCriterion("id in", values, "id");
  152 + return (Criteria) this;
  153 + }
  154 +
  155 + public Criteria andIdNotIn(List<Integer> values) {
  156 + addCriterion("id not in", values, "id");
  157 + return (Criteria) this;
  158 + }
  159 +
  160 + public Criteria andIdBetween(Integer value1, Integer value2) {
  161 + addCriterion("id between", value1, value2, "id");
  162 + return (Criteria) this;
  163 + }
  164 +
  165 + public Criteria andIdNotBetween(Integer value1, Integer value2) {
  166 + addCriterion("id not between", value1, value2, "id");
  167 + return (Criteria) this;
  168 + }
  169 +
  170 + public Criteria andRoleNameIsNull() {
  171 + addCriterion("role_name is null");
  172 + return (Criteria) this;
  173 + }
  174 +
  175 + public Criteria andRoleNameIsNotNull() {
  176 + addCriterion("role_name is not null");
  177 + return (Criteria) this;
  178 + }
  179 +
  180 + public Criteria andRoleNameEqualTo(String value) {
  181 + addCriterion("role_name =", value, "roleName");
  182 + return (Criteria) this;
  183 + }
  184 +
  185 + public Criteria andRoleNameNotEqualTo(String value) {
  186 + addCriterion("role_name <>", value, "roleName");
  187 + return (Criteria) this;
  188 + }
  189 +
  190 + public Criteria andRoleNameGreaterThan(String value) {
  191 + addCriterion("role_name >", value, "roleName");
  192 + return (Criteria) this;
  193 + }
  194 +
  195 + public Criteria andRoleNameGreaterThanOrEqualTo(String value) {
  196 + addCriterion("role_name >=", value, "roleName");
  197 + return (Criteria) this;
  198 + }
  199 +
  200 + public Criteria andRoleNameLessThan(String value) {
  201 + addCriterion("role_name <", value, "roleName");
  202 + return (Criteria) this;
  203 + }
  204 +
  205 + public Criteria andRoleNameLessThanOrEqualTo(String value) {
  206 + addCriterion("role_name <=", value, "roleName");
  207 + return (Criteria) this;
  208 + }
  209 +
  210 + public Criteria andRoleNameLike(String value) {
  211 + addCriterion("role_name like", value, "roleName");
  212 + return (Criteria) this;
  213 + }
  214 +
  215 + public Criteria andRoleNameNotLike(String value) {
  216 + addCriterion("role_name not like", value, "roleName");
  217 + return (Criteria) this;
  218 + }
  219 +
  220 + public Criteria andRoleNameIn(List<String> values) {
  221 + addCriterion("role_name in", values, "roleName");
  222 + return (Criteria) this;
  223 + }
  224 +
  225 + public Criteria andRoleNameNotIn(List<String> values) {
  226 + addCriterion("role_name not in", values, "roleName");
  227 + return (Criteria) this;
  228 + }
  229 +
  230 + public Criteria andRoleNameBetween(String value1, String value2) {
  231 + addCriterion("role_name between", value1, value2, "roleName");
  232 + return (Criteria) this;
  233 + }
  234 +
  235 + public Criteria andRoleNameNotBetween(String value1, String value2) {
  236 + addCriterion("role_name not between", value1, value2, "roleName");
  237 + return (Criteria) this;
  238 + }
  239 +
  240 + public Criteria andIsDeleteIsNull() {
  241 + addCriterion("is_delete is null");
  242 + return (Criteria) this;
  243 + }
  244 +
  245 + public Criteria andIsDeleteIsNotNull() {
  246 + addCriterion("is_delete is not null");
  247 + return (Criteria) this;
  248 + }
  249 +
  250 + public Criteria andIsDeleteEqualTo(Integer value) {
  251 + addCriterion("is_delete =", value, "isDelete");
  252 + return (Criteria) this;
  253 + }
  254 +
  255 + public Criteria andIsDeleteNotEqualTo(Integer value) {
  256 + addCriterion("is_delete <>", value, "isDelete");
  257 + return (Criteria) this;
  258 + }
  259 +
  260 + public Criteria andIsDeleteGreaterThan(Integer value) {
  261 + addCriterion("is_delete >", value, "isDelete");
  262 + return (Criteria) this;
  263 + }
  264 +
  265 + public Criteria andIsDeleteGreaterThanOrEqualTo(Integer value) {
  266 + addCriterion("is_delete >=", value, "isDelete");
  267 + return (Criteria) this;
  268 + }
  269 +
  270 + public Criteria andIsDeleteLessThan(Integer value) {
  271 + addCriterion("is_delete <", value, "isDelete");
  272 + return (Criteria) this;
  273 + }
  274 +
  275 + public Criteria andIsDeleteLessThanOrEqualTo(Integer value) {
  276 + addCriterion("is_delete <=", value, "isDelete");
  277 + return (Criteria) this;
  278 + }
  279 +
  280 + public Criteria andIsDeleteIn(List<Integer> values) {
  281 + addCriterion("is_delete in", values, "isDelete");
  282 + return (Criteria) this;
  283 + }
  284 +
  285 + public Criteria andIsDeleteNotIn(List<Integer> values) {
  286 + addCriterion("is_delete not in", values, "isDelete");
  287 + return (Criteria) this;
  288 + }
  289 +
  290 + public Criteria andIsDeleteBetween(Integer value1, Integer value2) {
  291 + addCriterion("is_delete between", value1, value2, "isDelete");
  292 + return (Criteria) this;
  293 + }
  294 +
  295 + public Criteria andIsDeleteNotBetween(Integer value1, Integer value2) {
  296 + addCriterion("is_delete not between", value1, value2, "isDelete");
  297 + return (Criteria) this;
  298 + }
  299 +
  300 + public Criteria andCreateDateIsNull() {
  301 + addCriterion("create_date is null");
  302 + return (Criteria) this;
  303 + }
  304 +
  305 + public Criteria andCreateDateIsNotNull() {
  306 + addCriterion("create_date is not null");
  307 + return (Criteria) this;
  308 + }
  309 +
  310 + public Criteria andCreateDateEqualTo(String value) {
  311 + addCriterion("create_date =", value, "createDate");
  312 + return (Criteria) this;
  313 + }
  314 +
  315 + public Criteria andCreateDateNotEqualTo(String value) {
  316 + addCriterion("create_date <>", value, "createDate");
  317 + return (Criteria) this;
  318 + }
  319 +
  320 + public Criteria andCreateDateGreaterThan(String value) {
  321 + addCriterion("create_date >", value, "createDate");
  322 + return (Criteria) this;
  323 + }
  324 +
  325 + public Criteria andCreateDateGreaterThanOrEqualTo(String value) {
  326 + addCriterion("create_date >=", value, "createDate");
  327 + return (Criteria) this;
  328 + }
  329 +
  330 + public Criteria andCreateDateLessThan(String value) {
  331 + addCriterion("create_date <", value, "createDate");
  332 + return (Criteria) this;
  333 + }
  334 +
  335 + public Criteria andCreateDateLessThanOrEqualTo(String value) {
  336 + addCriterion("create_date <=", value, "createDate");
  337 + return (Criteria) this;
  338 + }
  339 +
  340 + public Criteria andCreateDateLike(String value) {
  341 + addCriterion("create_date like", value, "createDate");
  342 + return (Criteria) this;
  343 + }
  344 +
  345 + public Criteria andCreateDateNotLike(String value) {
  346 + addCriterion("create_date not like", value, "createDate");
  347 + return (Criteria) this;
  348 + }
  349 +
  350 + public Criteria andCreateDateIn(List<String> values) {
  351 + addCriterion("create_date in", values, "createDate");
  352 + return (Criteria) this;
  353 + }
  354 +
  355 + public Criteria andCreateDateNotIn(List<String> values) {
  356 + addCriterion("create_date not in", values, "createDate");
  357 + return (Criteria) this;
  358 + }
  359 +
  360 + public Criteria andCreateDateBetween(String value1, String value2) {
  361 + addCriterion("create_date between", value1, value2, "createDate");
  362 + return (Criteria) this;
  363 + }
  364 +
  365 + public Criteria andCreateDateNotBetween(String value1, String value2) {
  366 + addCriterion("create_date not between", value1, value2, "createDate");
  367 + return (Criteria) this;
  368 + }
  369 + }
  370 +
  371 + public static class Criteria extends GeneratedCriteria {
  372 +
  373 + protected Criteria() {
  374 + super();
  375 + }
  376 + }
  377 +
  378 + public static class Criterion {
  379 + private String condition;
  380 +
  381 + private Object value;
  382 +
  383 + private Object secondValue;
  384 +
  385 + private boolean noValue;
  386 +
  387 + private boolean singleValue;
  388 +
  389 + private boolean betweenValue;
  390 +
  391 + private boolean listValue;
  392 +
  393 + private String typeHandler;
  394 +
  395 + public String getCondition() {
  396 + return condition;
  397 + }
  398 +
  399 + public Object getValue() {
  400 + return value;
  401 + }
  402 +
  403 + public Object getSecondValue() {
  404 + return secondValue;
  405 + }
  406 +
  407 + public boolean isNoValue() {
  408 + return noValue;
  409 + }
  410 +
  411 + public boolean isSingleValue() {
  412 + return singleValue;
  413 + }
  414 +
  415 + public boolean isBetweenValue() {
  416 + return betweenValue;
  417 + }
  418 +
  419 + public boolean isListValue() {
  420 + return listValue;
  421 + }
  422 +
  423 + public String getTypeHandler() {
  424 + return typeHandler;
  425 + }
  426 +
  427 + protected Criterion(String condition) {
  428 + super();
  429 + this.condition = condition;
  430 + this.typeHandler = null;
  431 + this.noValue = true;
  432 + }
  433 +
  434 + protected Criterion(String condition, Object value, String typeHandler) {
  435 + super();
  436 + this.condition = condition;
  437 + this.value = value;
  438 + this.typeHandler = typeHandler;
  439 + if (value instanceof List<?>) {
  440 + this.listValue = true;
  441 + } else {
  442 + this.singleValue = true;
  443 + }
  444 + }
  445 +
  446 + protected Criterion(String condition, Object value) {
  447 + this(condition, value, null);
  448 + }
  449 +
  450 + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
  451 + super();
  452 + this.condition = condition;
  453 + this.value = value;
  454 + this.secondValue = secondValue;
  455 + this.typeHandler = typeHandler;
  456 + this.betweenValue = true;
  457 + }
  458 +
  459 + protected Criterion(String condition, Object value, Object secondValue) {
  460 + this(condition, value, secondValue, null);
  461 + }
  462 + }
  463 +}
0 464 \ No newline at end of file
... ...