Compare commits

..

1 Commits
dev ... master

Author SHA1 Message Date
huangfeng 194c3ed71e build: 去掉不用的 1 year ago

@ -20,21 +20,18 @@
<java.version>1.8</java.version>
<xymanager.version>1.0.0</xymanager.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<spring-boot-dependencies.version>2.5.15</spring-boot-dependencies.version>
<mysql.version>8.0.33</mysql.version>
<spring-boot-dependencies.version>2.5.6</spring-boot-dependencies.version>
<swagger.version>3.0.0</swagger.version>
<knife4j-spring-boot.version>3.0.2</knife4j-spring-boot.version>
<swagger-annotations.version>1.5.21</swagger-annotations.version>
<swagger-models.version>1.5.21</swagger-models.version>
<fastjson.version>1.2.83</fastjson.version>
<druid.version>1.2.23</druid.version>
<mybatis-spring-boot.version>2.2.2</mybatis-spring-boot.version>
<pagehelper.boot.version>1.4.7</pagehelper.boot.version>
<commons.fileupload.version>1.5</commons.fileupload.version>
<fastjson.version>1.2.79</fastjson.version>
<druid.version>1.2.8</druid.version>
<mybatis-spring-boot.version>2.2.0</mybatis-spring-boot.version>
<pagehelper.boot.version>1.4.0</pagehelper.boot.version>
<commons.fileupload.version>1.4</commons.fileupload.version>
<jwt.version>0.9.0</jwt.version>
<mybatisplus.version>3.2.0</mybatisplus.version>
<easyexcel.version>3.3.4</easyexcel.version>
<jackson.version>2.17.2</jackson.version>
</properties>
<dependencyManagement>
@ -78,6 +75,11 @@
<version>${swagger.version}</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>io.jsonwebtoken</groupId>-->
<!-- <artifactId>jjwt</artifactId>-->
<!-- <version>${jwt.version}</version>-->
<!-- </dependency>-->
<!-- swagger ui-->
<dependency>
@ -99,42 +101,6 @@
<version>${swagger-models.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jdk8</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-jsr310</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-parameter-names</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.dataformat</groupId>
<artifactId>jackson-dataformat-yaml</artifactId>
<version>${jackson.version}</version>
</dependency>
<!-- 阿里JSON解析器 -->
<dependency>
<groupId>com.alibaba</groupId>
@ -149,12 +115,7 @@
<artifactId>commons-fileupload</artifactId>
<version>${commons.fileupload.version}</version>
</dependency>
<!-- 阿里excel表格工具-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
<version>${easyexcel.version}</version>
</dependency>
<!--一个开源工具类 一个Java基础工具类对文件、流、加密解密、转码、正则、线程、XML等JDK方法进行封装组成各种Util工具类-->
<dependency>
@ -163,6 +124,13 @@
<version>5.7.20</version>
</dependency>
<!-- &lt;!&ndash;shiro&ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>org.apache.shiro</groupId>-->
<!-- <artifactId>shiro-spring-boot-starter</artifactId>-->
<!-- <version>1.11.0</version>-->
<!-- </dependency>-->
<!--JNA:调用本地dll-->
<dependency>
@ -172,21 +140,13 @@
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
<version>0.11.5</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>javax.servlet</groupId>-->
<!-- <artifactId>javax.servlet-api</artifactId>-->
<!-- <version>4.0.1</version>-->
<!-- <scope>provided</scope>-->
<!-- </dependency>-->
<dependency>
<groupId>org.springframework.boot</groupId>
@ -229,7 +189,7 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${spring-boot-dependencies.version}</version>
<version>2.5.6</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@ -246,7 +206,6 @@
<artifactId>mybatis-generator-maven-plugin</artifactId>
<version>1.3.5</version>
</plugin>
</plugins>
</build>
</project>

@ -1,57 +0,0 @@
## -keep {Modifier} {class_specification} 防止类和成员被移除或者被重命名
## -keepclassmembers {modifier} {class_specification} 防止成员被移除或者被重命名
## -keepclasseswithmembers {class_specification} 防止拥有该成员的类和成员被移除或者被重命名
## -keepnames {class_specification} 防止成员被重命名
## -keepclasseswithmembernames {class_specification} 防止拥有该成员的类和成员被重命名
## -keepclasseswithmembers
## -basedirectory directoryname 在配置文件中出现的相对路径均是相对于该路径
#
#
## 忽略所有警告,否则有警告的时候混淆会停止
#-ignorewarnings
#
## JDK目标版本1.8
#-target 1.8
#
## 不做收缩(删除注释、未被引用代码)
#-dontshrink
#
## 不做优化(变更代码实现逻辑)
#-dontoptimize
#
## 不路过非公用类文件及成员
#-dontskipnonpubliclibraryclasses
#-dontskipnonpubliclibraryclassmembers
#
## 优化时允许访问并修改有修饰符的类和类的成员
#-allowaccessmodification
#
## 确定统一的混淆类的成员名称来增加混淆
#-useuniqueclassmembernames
#
## 不混淆所有包名本人测试混淆后WEB项目问题实在太多毕竟Spring配置中有大量固定写法的包名
#-keeppackagenames
#
## 不混淆局部变量名
#-keepparameternames
#
## 不混淆所有特殊的类 LocalVariable*Table,
#-keepattributes Exceptions,InnerClasses,Signature,Deprecated,SourceFile,LineNumberTable,*Annotation*,Synthetic,EnclosingMethod
#
## 不混淆包下的所有类名
#-keep class weg.base.** { <methods>; }
#-keep class weg.service.** { <methods>; }
#-keep class weg.dao.** { <methods>; }
#-keep class weg.util.** { <methods>; }
#
## 不混淆quartz包下的所有类名且类中的方法也不混淆
#-keep class weg.quartz.** { <methods>; }
#
## 不混淆model包中的所有类以及类的属性及方法实体包混淆了会导致ORM框架及前端无法识别
#-keep class weg.model.** {*;}
#
## 不混淆所有的set/get方法毕竟项目中使用的部分第三方框架例如Shiro会用到大量的set/get映射
#-keepclassmembers public class * {void set*(***);*** get*();}
#
## 保持类protected不被混淆
#-keep public class * { public protected <fields>;public protected <methods>; }

@ -1,103 +0,0 @@
CREATE TABLE `dev_type` (
`id` int(11) NOT NULL COMMENT '内部设备类型1: 微拍 2: 拉力 3微气象',
`name` varchar(1024) NOT NULL,
`create_time` timestamp NULL DEFAULT NULL COMMENT '创建时间',
`update_time` timestamp NULL DEFAULT NULL COMMENT '修改时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='设备类型表';
CREATE
ALGORITHM = UNDEFINED
DEFINER = `xymp`@`localhost`
SQL SECURITY DEFINER
VIEW `v_dy_line_towe_terminals` AS
SELECT
`d`.`id` AS `id`,
`a`.`id` AS `dy_id`,
`a`.`name` AS `dy_name`,
`b`.`id` AS `line_id`,
`b`.`name` AS `line_name`,
`b`.`bs_manufacturer` AS `line_bs_manufacturer`,
`c`.`id` AS `tower_id`,
`c`.`name` AS `tower_name`,
`d`.`cmdid` AS `cmdid`,
`d`.`org_id` AS `org_id`,
`d`.`equip_name` AS `equip_name`,
`d`.`display_name` AS `display_name`,
`d`.`model` AS `model`,
`d`.`essential_info_version` AS `essential_info_version`,
`d`.`has_pan` AS `has_pan`,
`d`.`bs_manufacturer` AS `bs_manufacturer`,
`d`.`bs_production_date` AS `bs_production_date`,
`d`.`bs_identifier` AS `bs_identifier`,
`d`.`latitude` AS `latitude`,
`d`.`longitude` AS `longitude`,
`d`.`status` AS `status`,
`d`.`protocol` AS `protocol`,
`d`.`sim` AS `sim`,
`d`.`working_date` AS `working_date`,
`d`.`net_type` AS `net_type`,
`d`.`dev_type` AS `dev_type`,
`d`.`phase` AS `phase`,
`d`.`equipment_type` AS `equipment_type`
FROM
(((`dy_level` `a`
LEFT JOIN `lines` `b` ON ((`a`.`id` = `b`.`dy_level_id`)))
LEFT JOIN `towers` `c` ON ((`b`.`id` = `c`.`line_id`)))
JOIN `terminals` `d` ON ((`c`.`id` = `d`.`tower_id`)))
ALTER TABLE `xymp`.`sys_users`
ADD COLUMN `notes` VARCHAR(1024) NULL DEFAULT NULL AFTER `password`;
CREATE TABLE `terminal_upload` (
`path` varchar(500) NOT NULL COMMENT '上传路径',
`name` varchar(100) DEFAULT NULL COMMENT '文件名称',
`upload_date` timestamp NULL DEFAULT CURRENT_TIMESTAMP COMMENT '上传时间',
`version` varchar(50) DEFAULT NULL COMMENT '版本号',
`title` varchar(1024) DEFAULT NULL COMMENT '备注'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='上传信息表';
CREATE
ALGORITHM = UNDEFINED
DEFINER = `root`@`localhost`
SQL SECURITY DEFINER
VIEW `v_dy_line_tower_terminals` AS
SELECT
`d`.`id` AS `id`,
`a`.`id` AS `dy_id`,
`a`.`name` AS `dy_name`,
`b`.`id` AS `line_id`,
`b`.`name` AS `line_name`,
`b`.`bs_manufacturer` AS `line_bs_manufacturer`,
`c`.`id` AS `tower_id`,
`c`.`name` AS `tower_name`,
`c`.`address` AS `address`,
`c`.`order` AS `order`,
`d`.`cmdid` AS `cmdid`,
`d`.`org_id` AS `org_id`,
`d`.`equip_name` AS `equip_name`,
`d`.`display_name` AS `display_name`,
`d`.`model` AS `model`,
`d`.`essential_info_version` AS `essential_info_version`,
`d`.`has_pan` AS `has_pan`,
`d`.`bs_manufacturer` AS `bs_manufacturer`,
`d`.`bs_production_date` AS `bs_production_date`,
`d`.`bs_identifier` AS `bs_identifier`,
`d`.`latitude` AS `latitude`,
`d`.`longitude` AS `longitude`,
`d`.`status` AS `status`,
`d`.`protocol` AS `protocol`,
`d`.`sim` AS `sim`,
`d`.`working_date` AS `working_date`,
`d`.`net_type` AS `net_type`,
`d`.`dev_type` AS `dev_type`,
`d`.`phase` AS `phase`,
`d`.`equipment_type` AS `equipment_type`,
`e`.`last_heartbeat` AS `last_heartbeat`
FROM
((((`dy_level` `a`
LEFT JOIN `lines` `b` ON ((`a`.`id` = `b`.`dy_level_id`)))
LEFT JOIN `towers` `c` ON ((`b`.`id` = `c`.`line_id`)))
JOIN `terminals` `d` ON ((`c`.`id` = `d`.`tower_id`)))
LEFT JOIN `terminal_status` `e` ON ((`e`.`term_id` = `d`.`id`)))

@ -1 +0,0 @@
getdyList

@ -37,7 +37,7 @@
</exclusion>
</exclusions>
<scope>test</scope>
<version>${spring-boot-dependencies.version}</version>
<version>2.5.6</version>
</dependency>
<dependency>
@ -96,7 +96,7 @@
<!-- </excludes>-->
</resource>
</resources>
<finalName>xymanager</finalName>
<finalName>xymanager-admin</finalName>
</build>
</project>

@ -0,0 +1,12 @@
//package com.shxy.xymanager_admin;
//
//import org.springframework.boot.builder.SpringApplicationBuilder;
//import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
//
//public class SpringBootStartApplication extends SpringBootServletInitializer {
// @Override
// protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
// // 注意这里要指向原先用main方法执行的Application启动类
// return builder.sources(XymanagerAdminApplication.class);
// }
//}

@ -13,18 +13,14 @@ import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
@MapperScan("com.shxy.**.dao")
@EnableAspectJAutoProxy(exposeProxy = true)
@Slf4j
@EnableConfigurationProperties
@ComponentScan(basePackages = {"com.shxy","org.springframework.data.redis"})
@ComponentScan(basePackages = {"com.shxy"})
@EnableCaching
@EnableAsync
@EnableScheduling
public class XymanagerAdminApplication extends SpringBootServletInitializer{
public static void main(String[] args) {
@ -40,7 +36,6 @@ public class XymanagerAdminApplication extends SpringBootServletInitializer {
log.error("error>>>>>>>>>>>>>>>>>>>>>>>>>>>", e);
}
}
@Override
protected SpringApplicationBuilder configure(SpringApplicationBuilder application){
return application.sources(XymanagerAdminApplication.class);

@ -1,66 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.MntnActivities;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_service.service.ActivitiesService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"活动相关接口"})
@RequestMapping("activity")
@Slf4j
public class ActivityController extends BaseController {
@Resource
ActivitiesService service;
@GetMapping("listAll")
@ApiOperation("查询全部列表")
@Log(title = "查询活动全部列表", type = "查询")
public ResponseReult<List<MntnActivities>> listAll(@RequestParam(value = "simple", required = false) String simple) {
List<MntnActivities> result = service.listAll(null, simple);
return ResponseReult.success(result);
}
@PostMapping("add")
@ApiOperation("新增")
@Log(title = "新增活动", type = "新增")
public ResponseReult<String> add(@Validated @RequestBody MntnActivities item) throws Exception {
service.add(item);
return ResponseReult.success("OK");
}
@PostMapping("update")
@ApiOperation("修改")
@Log(title = "修改活动", type = "修改")
public ResponseReult<String> update(@Validated @RequestBody MntnActivities item) throws Exception {
if (item.getId() == null) {
throw new ApiException("id不能为空!");
}
service.update(item);
return ResponseReult.success("OK");
}
@PostMapping("delete")
@ApiOperation("删除")
@Log(title = "删除活动", type = "删除")
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
service.delete(id);
return ResponseReult.success("OK");
}
}

@ -1,42 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.CameraSchedule;
import com.shxy.xymanager_service.service.CameraScheduleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.List;
@RestController
@Api(tags = {"装置的拍照时间表接口"})
@RequestMapping("schedule")
@Slf4j
public class CameraScheduleController extends BaseController {
@Resource
CameraScheduleService service;
@GetMapping("list")
@ApiOperation("查询")
@Log(title = "查询", type = "查询")
public ResponseReult<List<CameraSchedule>> list(@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
List<CameraSchedule> result = service.list(termId);
return ResponseReult.success(result);
}
@GetMapping("getOne")
@ApiOperation("查询")
@Log(title = "查询", type = "查询")
public ResponseReult<CameraSchedule> getOne(@RequestParam(value = "termId", required = true) Integer termId,
@RequestParam(value = "channel", required = true) Integer channel) throws Exception {
CameraSchedule result = service.getOne(termId, channel);
return ResponseReult.success(result);
}
}

@ -1,88 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.MntnCmdHistory;
import com.shxy.xymanager_common.entity.MntnCmds;
import com.shxy.xymanager_common.model.ActionModel;
import com.shxy.xymanager_common.model.CmdModel;
import com.shxy.xymanager_service.service.CmdService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@RestController
@Api(tags = {"命令相关接口"})
@RequestMapping("cmd")
@Slf4j
public class CmdController extends BaseController {
@Resource
CmdService cmdsService;
@GetMapping("listAction")
@ApiOperation("命令类型列表")
@Log(title = "查询命令类型", type = "查询")
public ResponseReult<List<ActionModel>> listAction() {
List<ActionModel> list = new ArrayList<>();
list.add(new ActionModel(1, "yw_cmd_android_reboot", "重启设备"));
list.add(new ActionModel(2, "yw_cmd_mcu_reboot", "MCU单片机重启"));
list.add(new ActionModel(3, "i1_cmd_set_i1_server_ip_port", "设置I1服务器"));
// list.add(new ActionModel(4, "i1_cmd_set_xy_yw_ip_port", "设置运维服务器"));
list.add(new ActionModel(5, "i1_cmd_set_i1_heart_beat_time", "设置心跳周期"));
list.add(new ActionModel(6, "yw_cmd_upload_i1_zip_log", "上传日志"));
list.add(new ActionModel(7, "upgrade", "升级"));
list.add(new ActionModel(8, "yw_cmd_start_frpc", "开启frpc"));
list.add(new ActionModel(9, "yw_cmd_stop_frpc", "停止frpc"));
list.add(new ActionModel(10, "i1_cmd_stop_aging_test", "停止老化测试"));
list.add(new ActionModel(11, "yw_upd_ota", "升级Ota"));
list.add(new ActionModel(12, "del_file", "删除文件"));
list.add(new ActionModel(13, "pull_files", "拉取文件"));
list.add(new ActionModel(14, "push_file", "推送文件"));
list.add(new ActionModel(15, "upd_cfg", "修改配置文件"));
list.add(new ActionModel(16, "list_files", "列出目录下的文件名"));
list.add(new ActionModel(17, "yw_app_upd_ota", "App增量更新"));
return ResponseReult.success(list);
}
@PostMapping("send")
@ApiOperation("下达命令")
@Log(title = "下达命令", type = "新增")
public ResponseReult<String> send(@RequestBody CmdModel model) throws Exception {
cmdsService.send(model);
return ResponseReult.success("OK");
}
@GetMapping("list")
@ApiOperation("查询")
@Log(title = "查询命令", type = "查询")
public ResponseReult<PageInfo<MntnCmds>> list(String cmdid, String action,
Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<MntnCmds> result = cmdsService.list(cmdid, action,
pageNum, pageSize);
return ResponseReult.success(result);
}
@GetMapping("listHistory")
@ApiOperation("查询历史")
@Log(title = "查询历史命令", type = "查询")
public ResponseReult<PageInfo<MntnCmdHistory>> listHistory(String cmdid, String action,
Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<MntnCmdHistory> result = cmdsService.listHistory(cmdid, action,
pageNum, pageSize);
return ResponseReult.success(result);
}
}

@ -1,36 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.DevType;
import com.shxy.xymanager_common.entity.DevTypeExample;
import com.shxy.xymanager_dao.dao.DevTypeDao;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import java.util.List;
@RestController
@Api(tags = {"设备类型相关接口"})
@RequestMapping("devtype")
@Slf4j
public class DevTypeController extends BaseController {
@Resource
DevTypeDao devTypeDao;
@GetMapping("list")
@ApiOperation("查询列表")
public ResponseReult<List<DevType>> list() {
DevTypeExample example = new DevTypeExample();
example.createCriteria();
List<DevType> list = devTypeDao.selectByExample(example);
return ResponseReult.success(list);
}
}

@ -1,33 +1,21 @@
package com.shxy.xymanager_admin.controller;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.PermissionDetail;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.DyLevel;
import com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals;
import com.shxy.xymanager_common.entity.View_Dy_Line_Tower_TerminalsExample;
import com.shxy.xymanager_common.enums.CommonStatus;
import com.shxy.xymanager_common.model.DyLineTreeListModel;
import com.shxy.xymanager_common.model.TerminalPhotosModel;
import com.shxy.xymanager_common.page.PageUtils;
import com.shxy.xymanager_common.page.TableDataInfo;
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_dao.dao.View_Dy_Line_Tower_TerminalsDao;
import com.shxy.xymanager_common.model.DyListModel;
import com.shxy.xymanager_common.vo.PageVo;
import com.shxy.xymanager_common.vo.TerminalIdVo;
import com.shxy.xymanager_common.vo.TestVo;
import com.shxy.xymanager_service.service.DyLevelService;
import com.shxy.xymanager_service.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.validation.annotation.Validated;
@ -36,39 +24,23 @@ import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.constraints.NotNull;
import java.util.List;
@Api(value = "电压等级接口", tags = "电压等级接口描述")
@RestController
@Slf4j
@RequestMapping("dy")
public class DyLevelController extends BaseController {
@Autowired
DyLevelService dyLevelService;
@Autowired
UserService userService;
@Autowired
View_Dy_Line_Tower_TerminalsDao view_dy_line_tower_terminalsDao;
@ApiOperation(value = "增加电压", notes = "增加电压", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/add")
@Log(title = "增加电压", type = "查询")
public ResponseReult<DyLevel> addDy(@RequestBody DyLevel vo) {
dyLevelService.add(vo);
return ResponseReult.success(vo);
}
@ApiOperation(value = "删除电压", notes = "删除电压", httpMethod = "POST")
@ApiOperation(value = "获取电压等级树状列表接口", notes = "获取电压等级树状列表接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/delete")
@Log(title = "删除电压", type = "查询")
public ResponseReult<String> deleteDy(@RequestBody @Validated LineIdVo vo) {
ServiceBody<String> serviceBody = dyLevelService.delete(vo);
@RequestMapping("/getdyTreeList")
@Log(title = "获取电压等级树状列表接口", type = "查询")
public ResponseReult<DyLineTreeListModel> getdyTreeList() {
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getdyTreeList();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -76,12 +48,12 @@ public class DyLevelController extends BaseController {
}
}
@ApiOperation(value = "修改电压", notes = "修改电压", httpMethod = "POST")
@ApiOperation(value = "获取电压等级列表", notes = "获取电压等级列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/update")
@Log(title = "修改电压", type = "查询")
public ResponseReult<String> update(@RequestBody DyLevel vo) {
ServiceBody<String> serviceBody = dyLevelService.update(vo);
@RequestMapping("/getdyList")
@Log(title = "获取电压等级列表", type = "查询")
public ResponseReult<DyListModel> getdyList() {
ServiceBody<DyListModel> serviceBody = dyLevelService.getdyList();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -89,12 +61,12 @@ public class DyLevelController extends BaseController {
}
}
@ApiOperation(value = "查询电压", notes = "查询电压", httpMethod = "POST")
@ApiOperation(value = "测试测试", notes = "测试测试", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/listAll")
@Log(title = "查询电压", type = "查询")
public ResponseReult<TableDataInfo<DyLevel>> listAll(@RequestBody @Validated SelectVo vo) {
ServiceBody<TableDataInfo<DyLevel>> serviceBody = dyLevelService.listAll(vo);
@RequestMapping("/gettest")
@Log(title = "测试测试", type = "查询")
public ResponseReult<String> gettest(@RequestBody List<TestVo> vo) {
ServiceBody<String> serviceBody = dyLevelService.gettest(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {

@ -1,93 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.DyLevel;
import com.shxy.xymanager_common.model.DyLineTreeListModel;
import com.shxy.xymanager_common.model.TerminalPhotosModel;
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
import com.shxy.xymanager_common.vo.DyListVo;
import com.shxy.xymanager_common.vo.DyTreeListVo;
import com.shxy.xymanager_common.vo.LastTowerVo;
import com.shxy.xymanager_service.service.DyLevelService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.constraints.NotNull;
import java.util.List;
@Api(value = "电压等级接口", tags = "电压等级接口描述")
@RestController
@Slf4j
public class DyTreeController extends BaseController {
@Autowired
DyLevelService dyLevelService;
@ApiOperation(value = "获取电压等级树状列表接口", notes = "获取电压等级树状列表接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getdyTreeList")
@Log(title = "获取电压等级树状列表接口", type = "查询")
public ResponseReult<DyLineTreeListModel> getdyTreeList(@RequestBody @Validated DyTreeListVo vo) {
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getdyTreeList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "郑州测试获取电压等级树状列表接口", notes = "郑州测试获取电压等级树状列表接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getzzdyTreeList")
@Log(title = "郑州测试获取电压等级树状列表接口", type = "查询")
public ResponseReult<DyLineTreeListModel> getzzdyTreeList(@RequestBody @Validated DyListVo vo) {
ServiceBody<DyLineTreeListModel> serviceBody = dyLevelService.getzzdyTreeList(vo.getType(), vo.getLineid());
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取电压等级列表", notes = "获取电压等级列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getdyList")
@Log(title = "获取电压等级列表", type = "查询")
public ResponseReult<List<DyLevel>> getdyList() {
ServiceBody<List<DyLevel>> serviceBody = dyLevelService.getdyList();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "根据电压或者线路获取所有杆塔和最新照片", notes = "根据电压或者线路获取所有杆塔和最新照片", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTowerAndPhotoList")
@Log(title = "根据电压或者线路获取所有杆塔和最新照片", type = "查询")
public ResponseReult<TerminalPhotosModel> getLastTowerList(@RequestHeader HttpHeaders headers, @RequestBody LastTowerVo vo) {
String requestIp = HeaderUtil.getRequestIp(headers);
ServiceBody<TerminalPhotosModel> serviceBody = dyLevelService.getLastTowerList(requestIp, vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
}

@ -5,7 +5,6 @@ import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.model.GlobalParamsModel;
import com.shxy.xymanager_service.service.GloablParamsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -30,8 +29,8 @@ public class GloableParamsController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getMarkEnableStatus")
@Log(title = "查询图片绘制开关状态", type = "查询")
public ResponseReult<GlobalParamsModel> getMarkEnableStatus() {
ServiceBody<GlobalParamsModel> serviceBody = gloableParamsService.getMarkEnableStatus();
public ResponseReult<Integer> getMarkEnableStatus() {
ServiceBody<Integer> serviceBody = gloableParamsService.getMarkEnableStatus();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -52,17 +51,5 @@ public class GloableParamsController extends BaseController {
}
}
@ApiOperation(value = "修改告警展示的通道接口", notes = "修改告警展示的通道接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/updateAlarmChannel")
@Log(title = "修改告警展示的通道接口", type = "修改")
public ResponseReult<String> updateAlarmChannel(@RequestParam("channel") Integer status) {
ServiceBody<String> serviceBody = gloableParamsService.updateAlarmChannel(status);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
}

@ -1,66 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.google.code.kaptcha.Constants;
import com.google.code.kaptcha.Producer;
import com.shxy.xymanager_common.kaptcha.KaptchaCache;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.imageio.ImageIO;
import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;
import java.awt.image.BufferedImage;
import java.io.IOException;
@RestController
@Slf4j
@Api(value = "生成验证码", description = "生成验证码")
public class KaptchaController {
@Autowired
private Producer captchaProducer;
@ApiOperation("生成验证码")
@GetMapping("/kaptcha")
public void getKaptchaImage(HttpServletRequest request, HttpServletResponse response){
HttpSession session = request.getSession();
response.setDateHeader("Expires", 0);
// Set standard HTTP/1.1 no-cache headers.
response.setHeader("Cache-Control", "no-store, no-cache, must-revalidate");
// Set IE extended HTTP/1.1 no-cache headers (use addHeader).
response.addHeader("Cache-Control", "post-check=0, pre-check=0");
// Set standard HTTP/1.0 no-cache header.
response.setHeader("Pragma", "no-cache");
// return a jpeg
response.setContentType("image/jpeg");
// create the text for the image
String capText = captchaProducer.createText();
log.info("登录验证码:{}",capText);
// store the text in the session
session.setAttribute(Constants.KAPTCHA_SESSION_KEY, capText);
KaptchaCache.getInstance().put(capText.toLowerCase(), capText);
// KaptchaCache.getInstance().put(capText.toLowerCase());
// create the image with the text
BufferedImage bi = captchaProducer.createImage(capText);
ServletOutputStream out;
try {
out = response.getOutputStream();
// write the data out
ImageIO.write(bi, "jpg", out);
out.flush();
response.flushBuffer();
} catch (IOException e) {
e.printStackTrace();
}
}
}

@ -1,112 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.LeadPulls;
import com.shxy.xymanager_common.model.StatLeadPull;
import com.shxy.xymanager_common.util.EasyExcelUtil;
import com.shxy.xymanager_service.service.LeadPullsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
@RestController
@Api(tags = {"拉力相关接口"})
@RequestMapping("leadpulls")
@Slf4j
public class LeadPullsController extends BaseController {
@Resource
LeadPullsService service;
@GetMapping("list")
@ApiOperation("查询列表")
@Log(title = "查询拉力列表", type = "查询")
public ResponseReult<PageInfo<LeadPulls>> list(Integer lineId, Integer towerId, Integer termId,
Long start, Long end,
Integer pageNum, Integer pageSize) {
List<Integer> idList = null;
if (termId != null) {
idList = new ArrayList<>();
idList.add(termId);
}
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
start, end, pageNum, pageSize);
return ResponseReult.success(result);
}
@GetMapping("listStat")
@ApiOperation("查询统计")
@Log(title = "查询拉力统计", type = "查询")
public ResponseReult<List<StatLeadPull>> listStat(Integer lineId, Integer towerId, Integer termId,
Long start, Long end,
Integer pageNum, Integer pageSize) {
List<Integer> idList = null;
if (termId != null) {
idList = new ArrayList<>();
idList.add(termId);
}
pageNum = 1;
pageSize = 100000;
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
start, end, pageNum, pageSize);
List<StatLeadPull> list = this.buildStat(result.getList());
return ResponseReult.success(list);
}
private List<StatLeadPull> buildStat(List<LeadPulls> list) {
List<StatLeadPull> result = new ArrayList<>();
if (list != null) {
for (LeadPulls item : list) {
StatLeadPull term = this.findStatTerm(result, item);
term.addLeadPull(item);
}
}
return result;
}
private StatLeadPull findStatTerm(List<StatLeadPull> list, LeadPulls leadPulls) {
StatLeadPull the = null;
for (StatLeadPull item : list) {
if (item.getTermId() == leadPulls.getTermId()) {
the = item;
break;
}
}
if (the == null) {
the = new StatLeadPull();
the.setTermId(leadPulls.getTermId());
the.setCmdid(leadPulls.getCmdid());
list.add(the);
}
return the;
}
@GetMapping("export")
@ApiOperation("导出")
@Log(title = "导出拉力", type = "导出")
public void export(Integer lineId, Integer towerId, Integer termId,
Long start, Long end,
Integer pageNum, Integer pageSize,
HttpServletResponse response) throws Exception {
List<Integer> idList = null;
if (termId != null) {
idList = new ArrayList<>();
idList.add(termId);
}
PageInfo<LeadPulls> result = service.list(lineId, towerId, idList,
start, end, pageNum, pageSize);
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), LeadPulls.class);
}
}

@ -5,9 +5,9 @@ import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.Lines;
import com.shxy.xymanager_common.model.LineAndGtAndChannelListModel;
import com.shxy.xymanager_common.page.TableDataInfo;
import com.shxy.xymanager_common.model.LineListModel;
import com.shxy.xymanager_common.model.DyLineTreeListModel;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_service.service.LineService;
import io.swagger.annotations.Api;
@ -21,8 +21,6 @@ import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
@Api(value = "线路接口", tags = "线路相关")
@RestController
@ -36,8 +34,8 @@ public class LineController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getLineList")
@Log(title = "获取线路列表", type = "查询")
public ResponseReult<TableDataInfo<Lines>> getLineList(@RequestBody @Validated SelectVo vo) {
ServiceBody<TableDataInfo<Lines>> serviceBody = lineService.getLineList(vo);
public ResponseReult<LineListModel> getLineList(@RequestBody @Validated PageVo vo) {
ServiceBody<LineListModel> serviceBody = lineService.getLineList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -50,9 +48,13 @@ public class LineController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/addLine")
@Log(title = "添加线路", type = "新增")
public ResponseReult<List<Lines>> addLine(@RequestBody @Validated LineVo vo) {
List<Lines> list = lineService.addLine(vo);
return ResponseReult.success(list);
public ResponseReult<String> addLine(@RequestBody @Validated LineVo vo) {
ServiceBody<String> serviceBody = lineService.addLine(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "删除线路", notes = "删除线路接口", httpMethod = "POST")

@ -1,81 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_common.util.DingTalkPushUtil;
import com.shxy.xymanager_common.util.HttpRequestUtil;
import com.shxy.xymanager_common.util.JSONUtil;
import com.shxy.xymanager_common.util.StringUtils;
import com.shxy.xymanager_framework.timeTask.ClearCacheTask;
import com.shxy.xymanager_service.service.MntnService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;
import java.util.Map;
@RestController
@Api(tags = {"设备接入接口"})
@RequestMapping("mntn")
@Slf4j
public class MntnController extends BaseController {
@Resource
MntnService service;
@PostMapping("")
@ApiOperation("上传心跳并返回命令")
public HashMap<String, Object> sync(@RequestBody String data,
HttpServletRequest req, HttpServletResponse resp) {
String ip = HttpRequestUtil.getRemoteIp(req);
String url = req.getRequestURI();
try {
String multi = req.getHeader("Accept-Cmds");
Map<String, Object> map = JSONUtil.json2Object(data, Map.class);
String cmdid = (String) map.get("id");
if (StringUtils.isBlank(cmdid)) {
cmdid = (String) map.get("oid");
if (StringUtils.isBlank(cmdid)) {
throw new ApiException("id不能为空");
}
}
HashMap<String, Object> result = service.sync(cmdid, ip, multi, data);
resp.setHeader("ResSyncTime", String.valueOf(System.currentTimeMillis()));
return result;
} catch (Exception ex) {
if (!ClearCacheTask.heartbeatMap.containsKey(ip)) {
ClearCacheTask.heartbeatMap.put(ip, 1L);
String str = ex.getMessage() + ", ip=" + ip + ", url=" + url + ", " + data;
if (ex instanceof ApiException) {
log.error("上传心跳异常, " + str);
} else {
log.error("上传心跳异常.", ex);
}
// DingTalkPushUtil.pushText("运维心跳", str);
}
HashMap<String, Object> result = new HashMap<>();
result.put("code", "400");
result.put("msg", ex.getMessage());
return result;
}
}
@GetMapping("status")
@ApiOperation("上传命令结果")
public ResponseReult status(@RequestParam("cid") Long cid,
@RequestParam("res") Integer res,
@RequestParam("content") String content) {
service.result(cid, res, content);
ResponseReult resp = new ResponseReult();
resp.setCode(0);
return resp;
}
}

@ -1,75 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.MntnUploads;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_service.service.MntnUploadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"运维上传日志相关接口"})
@RequestMapping("upload")
@Slf4j
public class MntnUploadController extends BaseController {
@Resource
MntnUploadService service;
@GetMapping("listAll")
@ApiOperation("查询日志全部列表")
@Log(title = "查询日志全部列表", type = "查询")
public ResponseReult<List<MntnUploads>> listAll(Integer type, String cmdid) {
List<MntnUploads> result = service.listAll(type, cmdid);
return ResponseReult.success(result);
}
@PostMapping("delete")
@ApiOperation("删除")
@Log(title = "删除日志", type = "删除")
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
service.delete(id);
return ResponseReult.success("OK");
}
@PostMapping("uploadLog")
@ApiOperation("上传日志")
@Log(title = "上传日志", type = "新增")
public ResponseReult uploadLog(@RequestParam("file") MultipartFile file,
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
if (termId == null) {
termId = 0;
}
service.uploadLog(termId, file);
ResponseReult result = new ResponseReult();
result.setCode(0);
return result;
}
@PostMapping("uploadFile")
@ApiOperation("上传文件")
@Log(title = "上传文件", type = "新增")
public ResponseReult uploadFile(@RequestParam("file") MultipartFile file,
@RequestParam(value = "termId", required = false) Integer termId) throws Exception {
if (termId == null) {
termId = 0;
}
service.uploadFile(termId, file);
ResponseReult result = new ResponseReult();
result.setCode(0);
return result;
}
}

@ -1,34 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.model.mqtt.MessageSend;
import com.shxy.xymanager_service.mqtt.MqttPublisherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@Api(tags = {"mqtt相关接口"})
@RequestMapping("mqtt")
@Slf4j
public class MqttController extends BaseController {
@Resource
MqttPublisherService mqttPublisherService;
@PostMapping("send")
@ApiOperation("下达命令")
@Log(title = "下达命令", type = "下达")
public ResponseReult<String> send(@RequestBody MessageSend msg) throws Exception {
mqttPublisherService.publish(msg, "N938XY12345678901");
return ResponseReult.success("OK");
}
}

@ -1,46 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.Lines;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_service.service.LineService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@Api(tags = {"线路新接口"})
@RequestMapping("line")
@Slf4j
public class NewLineController extends BaseController {
@Autowired
LineService lineService;
@ApiOperation(value = "查询线路全量列表")
@PostMapping("listFull")
@Log(title = "获取线路列表", type = "查询")
public ResponseReult<PageInfo<Lines>> listFull(@RequestBody @Validated SelectVo vo) {
PageInfo<Lines> list = lineService.listFull(vo);
return ResponseReult.success(list);
}
@ApiOperation(value = "查询线路超量列表")
@PostMapping("listOver")
@Log(title = "获取线路列表", type = "查询")
public ResponseReult<PageInfo<Lines>> listOver(@RequestBody @Validated SelectVo vo) {
PageInfo<Lines> list = lineService.listOver(vo);
return ResponseReult.success(list);
}
}

@ -1,80 +1,80 @@
//package com.shxy.xymanager_admin.controller;
//
//import cn.hutool.json.JSONObject;
//import com.shxy.xymanager_common.annotation.Log;
//import com.shxy.xymanager_common.base.BaseController;
//import com.shxy.xymanager_common.base.ResponseReult;
//import com.shxy.xymanager_common.bean.ServiceBody;
//import com.shxy.xymanager_common.bean.ServiceStatus;
//import com.shxy.xymanager_common.model.*;
//import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
//import com.shxy.xymanager_common.vo.*;
//import com.shxy.xymanager_service.service.OpenService;
//import com.shxy.xymanager_service.service.TerminalPhotoService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiOperation;
//import io.swagger.annotations.ApiResponse;
//import io.swagger.annotations.ApiResponses;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.http.HttpHeaders;
//import org.springframework.validation.annotation.Validated;
//import org.springframework.web.bind.annotation.RequestBody;
//import org.springframework.web.bind.annotation.RequestHeader;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RestController;
//
//
//@Api(value = "精益化平台接口", tags = "精益化平台相关")
//@RestController
//@Slf4j
//public class OpenController extends BaseController {
//
// @Autowired
// TerminalPhotoService terminalPhotoService;
//
// @Autowired
// OpenService openService;
//
//
// @ApiOperation(value = "对外图片查询", notes = "对外图片查询", httpMethod = "POST")
// @ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
// @RequestMapping("/getPhotoListForOpen")
// @Log(title = "对外图片查询", type = "查询")
// public ResponseReult<TerminalPhotoListForOpenModel> getPhotoListForOpen(@RequestHeader HttpHeaders headers, @RequestBody @Validated OpenTerminalAndTimeVo vo) {
// String requestIp = HeaderUtil.getRequestIp(headers);
// ServiceBody<TerminalPhotoListForOpenModel> serviceBody = terminalPhotoService.getPhotoListForOpen(requestIp,vo);
// if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
// return ResponseReult.success(serviceBody.getData());
// } else {
// return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
// }
// }
//
// @ApiOperation(value = "第三方登录认证接口", notes = "第三方登录认证接口", httpMethod = "POST")
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
// @RequestMapping("/cmaUserLogin")
// @Log(title = "第三方登录认证接口", type = "查询")
// public JSONObject cmaUserLogin(@RequestBody @Validated UserLoginVo vo) {
// JSONObject serviceBody = openService.cmaUserLogin(vo);
// return serviceBody;
// }
//
// @ApiOperation(value = "远程拍照(短视频)控制", notes = "远程拍照(短视频)控制接口", httpMethod = "POST")
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
// @RequestMapping("/ctrlCmaDeviceCapture")
// @Log(title = "远程拍照(短视频)控制", type = "查询")
// public JSONObject ctrlCmaDeviceCapture(@RequestBody @Validated OpenDeviceCaptureVo vo) {
// JSONObject serviceBody = openService.ctrlCmaDeviceCapture(vo);
// return serviceBody;
// }
//
// @ApiOperation(value = "查询装置状态", notes = "查询装置状态接口", httpMethod = "POST")
// @ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
// @RequestMapping("/cmaDeviceStatus")
// @Log(title = "查询装置状态接口", type = "查询")
// public JSONObject cmaDeviceStatus(@RequestBody @Validated OpenCmdidVo vo) {
// JSONObject serviceBody = openService.cmaDeviceStatus(vo);
// return serviceBody;
// }
//}
package com.shxy.xymanager_admin.controller;
import cn.hutool.json.JSONObject;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.model.*;
import com.shxy.xymanager_common.util.HeaderUtil;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_service.service.OpenService;
import com.shxy.xymanager_service.service.TerminalPhotoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@Api(value = "精益化平台接口", tags = "精益化平台相关")
@RestController
@Slf4j
public class OpenController extends BaseController {
@Autowired
TerminalPhotoService terminalPhotoService;
@Autowired
OpenService openService;
@ApiOperation(value = "对外图片查询", notes = "对外图片查询", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getPhotoListForOpen")
@Log(title = "对外图片查询", type = "查询")
public ResponseReult<TerminalPhotoListForOpenModel> getPhotoListForOpen(@RequestHeader HttpHeaders headers, @RequestBody @Validated OpenTerminalAndTimeVo vo) {
String requestIp = HeaderUtil.getRequestIp(headers);
ServiceBody<TerminalPhotoListForOpenModel> serviceBody = terminalPhotoService.getPhotoListForOpen(requestIp,vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "第三方登录认证接口", notes = "第三方登录认证接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
@RequestMapping("/cmaUserLogin")
@Log(title = "第三方登录认证接口", type = "查询")
public JSONObject cmaUserLogin(@RequestBody @Validated UserLoginVo vo) {
JSONObject serviceBody = openService.cmaUserLogin(vo);
return serviceBody;
}
@ApiOperation(value = "远程拍照(短视频)控制", notes = "远程拍照(短视频)控制接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
@RequestMapping("/ctrlCmaDeviceCapture")
@Log(title = "远程拍照(短视频)控制", type = "查询")
public JSONObject ctrlCmaDeviceCapture(@RequestBody @Validated OpenDeviceCaptureVo vo) {
JSONObject serviceBody = openService.ctrlCmaDeviceCapture(vo);
return serviceBody;
}
@ApiOperation(value = "查询装置状态", notes = "查询装置状态接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 0, message = "请求成功"), @ApiResponse(code = 1, message = "用户名错误"), @ApiResponse(code = 2, message = "密码错误")})
@RequestMapping("/cmaDeviceStatus")
@Log(title = "查询装置状态接口", type = "查询")
public JSONObject cmaDeviceStatus(@RequestBody @Validated OpenCmdidVo vo) {
JSONObject serviceBody = openService.cmaDeviceStatus(vo);
return serviceBody;
}
}

@ -1,66 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.TbResource;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_service.service.ResourceService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"资源相关接口"})
@RequestMapping("resource")
@Slf4j
public class ResourceController extends BaseController {
@Resource
ResourceService service;
@GetMapping("listAll")
@ApiOperation("查询全部列表")
@Log(title = "查询资源全部列表", type = "查询")
public ResponseReult<List<TbResource>> listAll() {
List<TbResource> result = service.listAll();
return ResponseReult.success(result);
}
@PostMapping("add")
@ApiOperation("新增")
@Log(title = "新增资源", type = "新增")
public ResponseReult<String> add(@Validated @RequestBody TbResource item) throws Exception {
service.add(item);
return ResponseReult.success("OK");
}
@PostMapping("update")
@ApiOperation("修改")
@Log(title = "修改资源", type = "修改")
public ResponseReult<String> update(@Validated @RequestBody TbResource item) throws Exception {
if (item.getId() == null) {
throw new ApiException("id不能为空!");
}
service.update(item);
return ResponseReult.success("OK");
}
@PostMapping("delete")
@ApiOperation("删除")
@Log(title = "删除资源", type = "删除")
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
service.delete(id);
return ResponseReult.success("OK");
}
}

@ -1,87 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.TbRole;
import com.shxy.xymanager_common.entity.TbRoleResource;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_common.model.RolePermissionModel;
import com.shxy.xymanager_service.service.RolePermissionService;
import com.shxy.xymanager_service.service.RoleService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"角色权限相关接口"})
@RequestMapping("role")
@Slf4j
public class RoleController extends BaseController {
@Resource
RoleService service;
@Resource
RolePermissionService permissionService;
@GetMapping("listAll")
@ApiOperation("查询角色全部列表")
@Log(title = "查询角色全部列表", type = "查询")
public ResponseReult<List<TbRole>> listAll() {
List<TbRole> result = service.listAll();
return ResponseReult.success(result);
}
@PostMapping("add")
@ApiOperation("新增")
@Log(title = "新增角色", type = "新增")
public ResponseReult<String> add(@Validated @RequestBody TbRole item) throws Exception {
service.add(item);
return ResponseReult.success("OK");
}
@PostMapping("update")
@ApiOperation("修改")
@Log(title = "修改角色", type = "修改")
public ResponseReult<String> update(@Validated @RequestBody TbRole item) throws Exception {
if (item.getId() == null) {
throw new ApiException("id不能为空!");
}
service.update(item);
return ResponseReult.success("OK");
}
@PostMapping("delete")
@ApiOperation("删除")
@Log(title = "删除角色", type = "删除")
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
service.delete(id);
return ResponseReult.success("OK");
}
@GetMapping("getPermission")
@ApiOperation("查询权限")
public ResponseReult<List<TbRoleResource>> getPermission(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
List<TbRoleResource> result = permissionService.getPermission(id);
return ResponseReult.success(result);
}
@PostMapping("changePermission")
@ApiOperation("修改角色权限")
@Log(title = "修改角色权限", type = "修改")
public ResponseReult<String> changePermission(@Validated @RequestBody RolePermissionModel item) throws Exception {
permissionService.changePermission(item.getRoleId(), item.getList());
return ResponseReult.success("OK");
}
}

@ -1,83 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.alibaba.excel.EasyExcel;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.constant.Constants;
import com.shxy.xymanager_common.entity.SimInfo;
import com.shxy.xymanager_service.excel.*;
import com.shxy.xymanager_service.service.SimService;
import com.shxy.xymanager_service.service.TerminalSimcardService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
@RestController
@Api(tags = {"sim卡相关接口"})
@RequestMapping("sim")
@Slf4j
public class SimController extends BaseController {
@Resource
SimService service;
@Resource
TerminalSimcardService simcardService;
@PostMapping("importSim")
@ApiOperation("导入sim")
public ResponseReult<String> importSim(@RequestParam("file") MultipartFile file,
@RequestParam(value = "type", required = true) Integer type) throws Exception {
if (file != null && file.getInputStream() != null) {
if (type == Constants.NetType_Dahan) {
DahanExcelListener listener = new DahanExcelListener(service);
EasyExcel.read(file.getInputStream(), DahanLine.class, listener)
.sheet(0)
.doRead();
} else if (type == Constants.NetType_LWWLKJ) {
LwwlkjExcelListener listener = new LwwlkjExcelListener(service);
EasyExcel.read(file.getInputStream(), LwwlkjLine.class, listener)
.sheet(0)
.doRead();
} else if (type == Constants.NetType_M2M10086) {
M2mExcelListener listener = new M2mExcelListener(service);
EasyExcel.read(file.getInputStream(), M2mLine.class, listener)
.sheet(0)
.doRead();
} else if (type == Constants.NetType_Rabchaser) {
RabchaserExcelListener listener = new RabchaserExcelListener(service);
EasyExcel.read(file.getInputStream(), RabchaserLine.class, listener)
.sheet(0)
.doRead();
} else {
return ResponseReult.fail("type不正确");
}
return ResponseReult.success("OK");
} else {
return ResponseReult.fail("缺少上传文件");
}
}
@GetMapping("list")
@ApiOperation("查询sim卡")
@Log(title = "查询sim卡", type = "查询")
public ResponseReult<PageInfo<SimInfo>> list(Integer type, Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<SimInfo> result = service.list(type, pageNum, pageSize);
return ResponseReult.success(result);
}
@PostMapping("syncAll")
@ApiOperation("同步所有sim卡数据")
public ResponseReult<String> syncAll() {
simcardService.syncAll();
return ResponseReult.success("OK");
}
}

@ -1,85 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.model.SmsModel;
import com.shxy.xymanager_common.model.SmsReturn;
import com.shxy.xymanager_common.sms.dahan.DahanWeb;
import com.shxy.xymanager_common.sms.lwwlkj.LwwlkjWeb;
import com.shxy.xymanager_common.sms.m2m.M2m10086Web;
import com.shxy.xymanager_common.sms.rabchaser.RabchaserWeb;
import com.shxy.xymanager_service.service.SmsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import java.util.HashMap;
@RestController
@Api(tags = {"短信相关接口"})
@RequestMapping("sms")
@Slf4j
public class SmsController extends BaseController {
@Resource
SmsService service;
@PostMapping("send")
@ApiOperation("发送短信")
@Log(title = "发送短信", type = "发送")
public ResponseReult<String> send(@Validated @RequestBody SmsModel model) {
service.sendSms(model);
return ResponseReult.success("OK");
}
@GetMapping("list")
@ApiOperation("查询短信")
@Log(title = "查询短信", type = "查询")
public ResponseReult<SmsReturn> list(Integer termId) {
SmsReturn obj = service.listSms(termId);
return ResponseReult.success(obj);
}
@PostMapping("netDown")
@ApiOperation("断网")
@Log(title = "断网", type = "断网")
public ResponseReult<String> netDown(@RequestBody SmsModel model) {
service.netDown(model);
return ResponseReult.success("OK");
}
@PostMapping("netUp")
@ApiOperation("恢复上网")
@Log(title = "恢复上网", type = "恢复上网")
public ResponseReult<String> netUp(@RequestBody SmsModel model) {
service.netUp(model);
return ResponseReult.success("OK");
}
@GetMapping("getAuth")
@ApiOperation("查询授权")
public ResponseReult<HashMap<String, String>> getAuth() {
HashMap<String, String> map = new HashMap<>();
map.put("dahan", DahanWeb.cookie);
map.put("rabchaser", RabchaserWeb.authorization);
map.put("m2m10086", M2m10086Web.cookie);
map.put("lwwlkj", LwwlkjWeb.cookie);
return ResponseReult.success(map);
}
@PostMapping("updateAuth")
@ApiOperation("更新授权")
public ResponseReult<String> updateAuth(@RequestBody HashMap<String, String> map) {
DahanWeb.cookie = map.get("dahan");
RabchaserWeb.authorization = map.get("rabchaser");
M2m10086Web.cookie = map.get("m2m10086");
LwwlkjWeb.cookie = map.get("lwwlkj");
return ResponseReult.success("OK");
}
}

@ -4,14 +4,14 @@ package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.SysUser;
import com.shxy.xymanager_common.page.TableDataInfo;
import com.shxy.xymanager_common.bean.SysUser;
import com.shxy.xymanager_common.entity.SysUserSession;
import com.shxy.xymanager_common.model.SysUserModel;
import com.shxy.xymanager_common.vo.PageVo;
import com.shxy.xymanager_common.vo.SysUserUpdateVo;
import com.shxy.xymanager_common.vo.SysUserVo;
import com.shxy.xymanager_service.service.LoginService;
import com.shxy.xymanager_service.service.SysUserService;
import com.shxy.xymanager_service.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
@ -31,9 +31,6 @@ public class SysLoginController {
@Autowired
SysUserService sysUserService;
@Autowired
UserService userService;
/**
* @Description
@ -44,10 +41,13 @@ public class SysLoginController {
@ApiOperation(value = "登录", notes = "登录", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/login")
public ResponseReult<SysUser> login(@RequestBody SysUser sysUser) throws Exception {
SysUser user = userService.login(sysUser);
user.setPassword(null);
return ResponseReult.success(user);
public ResponseReult<SysUserSession> login(@RequestBody SysUser sysUser) {
ServiceBody<SysUserSession> serviceBody = loginService.remoteLogin(sysUser);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
/**
@ -81,6 +81,7 @@ public class SysLoginController {
}
}
/**
*
*
@ -90,8 +91,8 @@ public class SysLoginController {
@ApiOperation(value = "查询用户列表", notes = "查询用户列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/userList")
public ResponseReult<TableDataInfo<com.shxy.xymanager_common.entity.SysUser>> userList(@RequestBody @Validated PageVo vo) {
ServiceBody<TableDataInfo<com.shxy.xymanager_common.entity.SysUser>> serviceBody = sysUserService.selectUserList(vo);
public ResponseReult<SysUserModel> userList(@RequestBody @Validated PageVo vo) {
ServiceBody<SysUserModel> serviceBody = sysUserService.selectUserList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -109,7 +110,7 @@ public class SysLoginController {
@ApiOperation(value = "删除用户", notes = "删除用户", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/deleteUser")
public ResponseReult<String> deleteUser(@RequestParam("uid") Integer uid) {
public ResponseReult<String> deleteUser(@RequestParam("uid") String uid) {
ServiceBody<String> serviceBody = sysUserService.deleteUserById(uid);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());

@ -5,10 +5,8 @@ import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.RequestResults;
import com.shxy.xymanager_common.model.*;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_framework.timeTask.StoreCameraScheduleTask;
import com.shxy.xymanager_service.service.TermSetService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -22,8 +20,6 @@ import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@Api(value = "装置cma控制", tags = "装置cma控制")
@RestController
@ -32,8 +28,6 @@ public class TermSetController extends BaseController {
@Autowired
TermSetService termSetService;
@Autowired
StoreCameraScheduleTask cameraScheduleTask;
@ApiOperation(value = "声光报警", notes = "声光报警", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@ -60,50 +54,4 @@ public class TermSetController extends BaseController {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "调整装置焦距", notes = "调整装置焦距", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/updateTermCamera")
@Log(title = "调整装置焦距", type = "查询")
public ResponseReult<CmaRequestModel> updateTermCamera(UpdateCameraVo vo) {
ServiceBody<CmaRequestModel> serviceBody = termSetService.updateTermCamera(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "设备控制接口", notes = "设备控制接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/setTermCamera")
@Log(title = "设备控制接口", type = "查询")
public ResponseReult<CmaRequestModel> setTermCamera(@RequestBody @Validated TermCtrlVo vo) throws Exception {
ServiceBody<CmaRequestModel> serviceBody = termSetService.setTermCamera(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "设备控制接口返回查询", notes = "设备控制接口返回查询", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermCameraRequest")
@Log(title = "设备控制接口返回查询", type = "查询")
public ResponseReult<CmaRequestBackModel> getTermCameraRequest(@RequestBody @Validated RequestIdVo vo) {
ServiceBody<CmaRequestBackModel> serviceBody = termSetService.getTermCameraRequest(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@RequestMapping("/refreshAllCameraSchedule")
public ResponseReult<String> refreshAllCameraSchedule() {
cameraScheduleTask.search();
return ResponseReult.success("OK");
}
}

@ -6,7 +6,7 @@ import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.model.*;
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
import com.shxy.xymanager_common.util.HeaderUtil;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_service.service.TerminalAlarmService;
import io.swagger.annotations.Api;
@ -72,6 +72,7 @@ public class TerminalAlarmController extends BaseController {
}
}
@ApiOperation(value = "修改告警分类列表", notes = "修改告警分类列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/updateAlarmTypeList")
@ -85,30 +86,4 @@ public class TerminalAlarmController extends BaseController {
}
}
@ApiOperation(value = "七天报警统计", notes = "七天报警统计接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getWeekAlarmStatistics")
@Log(title = "七天报警统计", type = "查询")
public ResponseReult<TerminalWeekAlarmStatisticsModel> getWeekAlarmStatistics(@Validated WeekAlarmVo vo) {
ServiceBody<TerminalWeekAlarmStatisticsModel> serviceBody = terminalAlarmService.getWeekAlarmStatistics(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "当日报警统计", notes = "当日报警统计", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTodayAlarmStatistics")
@Log(title = "当日报警统计", type = "查询")
public ResponseReult<TerminalTodayAlarmStatisticsModel> getTodayAlarmStatistics(@Validated WeekAlarmVo vo) {
ServiceBody<TerminalTodayAlarmStatisticsModel> serviceBody = terminalAlarmService.getTodayAlarmStatistics(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
}

@ -5,13 +5,8 @@ import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.*;
import com.shxy.xymanager_common.excelbean.TerminalAndLastPicListExcelModel;
import com.shxy.xymanager_common.excelbean.TerminalListExcelModel;
import com.shxy.xymanager_common.model.*;
import com.shxy.xymanager_common.page.TableDataInfo;
import com.shxy.xymanager_common.util.EasyExcelUtil;
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
import com.shxy.xymanager_common.util.HeaderUtil;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_service.service.TerminalService;
import io.swagger.annotations.Api;
@ -19,16 +14,11 @@ import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
@Api(value = "设备接口", tags = "设备接口相关")
@RestController
@ -42,8 +32,8 @@ public class TerminalController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTerminalList")
@Log(title = "获取设备列表", type = "查询")
public ResponseReult<TableDataInfo<View_Dy_Line_Tower_Terminals>> getTerminalList(@RequestBody @Validated TerminalSelectVo vo) {
ServiceBody<TableDataInfo<View_Dy_Line_Tower_Terminals>> serviceBody = terminalService.getTerminalList(vo);
public ResponseReult<TerminalListModel> getTerminalList(@RequestBody @Validated TerminalSelectVo vo) {
ServiceBody<TerminalListModel> serviceBody = terminalService.getTerminalList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -51,15 +41,6 @@ public class TerminalController extends BaseController {
}
}
@ApiOperation(value = "导出设备列表Excel", notes = "导出设备列表Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTerminalListExcel")
@Log(title = "获取设备列表", type = "查询")
public void getTerminalListExcel(HttpServletResponse response) throws IOException {
ServiceBody<List<TerminalListExcelModel>> serviceBody = terminalService.getTerminalListExcel(null);
EasyExcelUtil.createExcel(response, "设备表", serviceBody.getData(), TerminalListExcelModel.class);
}
@ApiOperation(value = "获取绘制图标", notes = "绘制坐标保存接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getCoordinate")
@ -243,178 +224,4 @@ public class TerminalController extends BaseController {
}
}
@ApiOperation(value = "工作状态历史", notes = "工作状态历史", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getWorkingStatusHistory")
@Log(title = "工作状态历史", type = "查询")
public ResponseReult<TableDataInfo<TerminalWorkingStatusHistory>> getWorkingStatusHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalWorkingStatusHistory>> serviceBody = terminalService.getWorkingStatusHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "工作状态历史Excel", notes = "工作状态历史Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getWorkingStatusHistoryExcel")
@Log(title = "工作状态历史Excel", type = "查询")
public void getWorkingStatusHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalWorkingStatusHistory>> serviceBody = terminalService.getWorkingStatusHistory(vo);
EasyExcelUtil.createExcel(response, "设备工作状态列表", serviceBody.getData().getList(), TerminalWorkingStatusHistory.class);
}
@ApiOperation(value = "装置统计", notes = "装置统计", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermStatistics")
@Log(title = "装置统计", type = "查询")
public ResponseReult<TerminalStatisticsModel> getTermStatistics() {
ServiceBody<TerminalStatisticsModel> serviceBody = terminalService.getTermStatistics();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取在线设备列表", notes = "获取在线设备列表接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getOnlineTerminalList")
@Log(title = "获取设备列表", type = "查询")
public ResponseReult<List<TerminalAndLastPicListExcelModel>> getOnlineTerminalList(@Param("type") Integer type) {
ServiceBody<List<TerminalAndLastPicListExcelModel>> serviceBody = terminalService.getOnlineTerminalList(type);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "导出设备在线和心跳时间和照片时间列表Excel", notes = "导出设备在线和心跳时间和照片时间列表Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getOnlineTerminalListExcel")
@Log(title = "导出设备在线和心跳时间和照片时间列表Excel", type = "查询")
public void getOnlineTerminalListExcel(HttpServletResponse response, @Param("type") Integer type) throws IOException {
ServiceBody<List<TerminalAndLastPicListExcelModel>> serviceBody = terminalService.getOnlineTerminalList(type);
EasyExcelUtil.createExcel(response, "设备在线表", serviceBody.getData(), TerminalAndLastPicListExcelModel.class);
}
@ApiOperation(value = "获取规约列表", notes = "获取规约列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getProtocolList")
@Log(title = "获取规约列表", type = "查询")
public ResponseReult<ProtocolListModel> getProtocolList() {
ServiceBody<ProtocolListModel> serviceBody = terminalService.getProtocolList();
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "新增收藏夹接口", notes = "新增收藏夹接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/addFavorList")
@Log(title = "新增收藏夹接口", type = "新增")
public ResponseReult<String> addFavorList(@RequestBody FavorVo vo) {
ServiceBody<String> serviceBody = terminalService.addFavorList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "设备故障接口", notes = "设备故障接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermFaults")
@Log(title = "设备故障接口", type = "查询")
public ResponseReult<TableDataInfo<TerminalFaults>> getTermFaults(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalFaults>> serviceBody = terminalService.getTermFaults(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "导出设备故障列表Excel", notes = "导出设备列表Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermFaultsExcel")
@Log(title = "获取设备列表", type = "查询")
public void getTermFaultsExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalFaults>> serviceBody = terminalService.getTermFaults(vo);
EasyExcelUtil.createExcel(response, "设备故障列表", serviceBody.getData().getList(), TerminalFaults.class);
}
@ApiOperation(value = "获取设备运行状态历史", notes = "获取设备运行状态历史", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermRunningHistory")
@Log(title = "获取设备运行状态历史", type = "查询")
public ResponseReult<TableDataInfo<TerminalRunningStatusHistory>> getTermRunningHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalRunningStatusHistory>> serviceBody = terminalService.getTermRunningHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取设备运行状态历史Excel", notes = "获取设备运行状态历史Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermRunningHistoryExcel")
@Log(title = "获取设备运行状态历史", type = "查询")
public void getTermRunningHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalRunningStatusHistory>> serviceBody = terminalService.getTermRunningHistory(vo);
EasyExcelUtil.createExcel(response, "设备运行列表", serviceBody.getData().getList(), TerminalRunningStatusHistory.class);
}
@ApiOperation(value = "获取设备Gps历史", notes = "获取设备Gps历史", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermGpsHistory")
@Log(title = "获取设备Gps历史", type = "查询")
public ResponseReult<TableDataInfo<TerminalPositionHistory>> getTermGpsHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalPositionHistory>> serviceBody = terminalService.getTermGpsHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取设备Gps历史Excel", notes = "获取设备Gps历史Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermGpsHistoryExcel")
@Log(title = "获取设备Gps历史Excel", type = "查询")
public void getTermGpsHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalPositionHistory>> serviceBody = terminalService.getTermGpsHistory(vo);
EasyExcelUtil.createExcel(response, "设备GPS列表", serviceBody.getData().getList(), TerminalPositionHistory.class);
}
@ApiOperation(value = "获取设备基本信息", notes = "获取设备基本信息", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermBasicInfoHistory")
@Log(title = "获取设备基本信息", type = "查询")
public ResponseReult<TableDataInfo<TerminalBasicInfoHistory>> getTermBasicInfoHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalBasicInfoHistory>> serviceBody = terminalService.getTermBasicInfoHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取设备基本信息Excel", notes = "获取设备基本信息Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermBasicInfoHistoryExcel")
@Log(title = "获取设备基本信息Excel", type = "查询")
public void getTermBasicInfoHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalBasicInfoHistory>> serviceBody = terminalService.getTermBasicInfoHistory(vo);
EasyExcelUtil.createExcel(response, "设备基本信息列表", serviceBody.getData().getList(), TerminalBasicInfoHistory.class);
}
}

@ -1,439 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.*;
import com.shxy.xymanager_common.excel.TerminalExcel;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_common.model.*;
import com.shxy.xymanager_common.util.EasyExcelUtil;
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
import com.shxy.xymanager_common.vo.TerminalPhotoSelectVo;
import com.shxy.xymanager_common.vo.TerminalSelectVo;
import com.shxy.xymanager_dao.dao.TerminalPositionsMapper;
import com.shxy.xymanager_dao.dao.TerminalStatusDao;
import com.shxy.xymanager_framework.timeTask.ClearCacheTask;
import com.shxy.xymanager_service.service.*;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpHeaders;
import org.springframework.util.CollectionUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
@RestController
@Api(tags = {"装置附带额外信息接口"})
@RequestMapping("terminal")
@Slf4j
@Validated
public class TerminalExtController extends BaseController {
@Resource
TerminalGpsService gpsService;
@Resource
WeatherService weatherService;
@Resource
LeadPullsService leadPullsService;
@Resource
TerminalPhotoService photoService;
@Resource
TerminalStatusDao terminalStatusDao;
@Resource
TerminalPositionsMapper terminalPositionsMapper;
@Resource
TerminalBasicInfoHistoryService infoHistoryService;
@Resource
HeartbeatService heartbeatService;
@Resource
TerminalExtService terminalExtService;
@Resource
TerminalSimcardService simcardService;
@Resource
CameraScheduleService cameraScheduleService;
@Resource
ClearCacheTask clearCacheTask;
@GetMapping("clearCache")
@ApiOperation("清空缓存")
public ResponseReult<String> clearCache() {
clearCacheTask.clearAllCache();
return ResponseReult.success("OK");
}
@PostMapping("batchUpdate")
@ApiOperation("批量修改装置")
@Log(title = "批量修改装置", type = "修改")
public ResponseReult<String> batchUpdate(@RequestBody BatchUpdateModel model) throws Exception {
if (model.getNewLineId() == null) {
throw new ApiException("newLineId不能为空");
}
if (CollectionUtils.isEmpty(model.getTermIds())) {
throw new ApiException("termIds不能为空");
}
terminalExtService.batchUpdate(model);
return ResponseReult.success("OK");
}
@PostMapping("importTerminal")
@ApiOperation("导入装置")
@Log(title = "导入装置", type = "导入")
public ResponseReult<String> importTerminal(@Validated @RequestBody UploadModel model) throws Exception {
terminalExtService.importTerminal(model);
return ResponseReult.success("OK");
}
@PostMapping("updateComment")
@ApiOperation("修改备注")
@Log(title = "修改备注", type = "修改")
public ResponseReult<String> updateComment(@RequestBody MntnStatus model) throws Exception {
terminalExtService.updateComment(model);
return ResponseReult.success("OK");
}
@GetMapping("listReport")
@ApiOperation("查询运维数据历史")
@Log(title = "查询运维数据历史", type = "查询")
public ResponseReult<PageInfo<MntnRawReports>> listReport(Integer termId, Integer pageNum, Integer pageSize) {
if (termId == null) {
throw new ApiException("termId不能为空");
}
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<MntnRawReports> result = terminalExtService.listReport(termId, pageNum, pageSize);
return ResponseReult.success(result);
}
@GetMapping("listForMaintain")
@ApiOperation("运维查询装置")
@Log(title = "运维查询装置", type = "查询")
public ResponseReult<List<View_Dy_Line_Tower_Terminals>> listForMaintain(TerminalSelectVo vo) {
vo.setPageindex(1);
vo.setPagesize(10000);
List<View_Dy_Line_Tower_Terminals> result = terminalExtService.getExtTerminalList(vo);
return ResponseReult.success(result);
}
@GetMapping("exportForMaintain")
@ApiOperation("导出运维")
@Log(title = "导出运维", type = "导出")
public void exportForMaintain(TerminalSelectVo vo, HttpServletResponse response) throws Exception {
vo.setPageindex(1);
vo.setPagesize(10000);
List<View_Dy_Line_Tower_Terminals> result = terminalExtService.getExtTerminalList(vo);
List<TerminalExcel> list = new ArrayList<>();
for (View_Dy_Line_Tower_Terminals term : result) {
TerminalExcel item = TerminalExcel.from(term);
list.add(item);
}
EasyExcelUtil.createExcel(response, "运维数据", list, TerminalExcel.class);
}
@PostMapping("statMaintain")
@ApiOperation("运维统计")
@Log(title = "运维统计", type = "统计")
public ResponseReult<List<StatMaintain>> statMaintain(StatModel model) throws Exception {
if (model.getStart() == null) {
throw new ApiException("start不能为空");
}
if (model.getEnd() == null) {
throw new ApiException("end不能为空");
}
if (model.getLineIds() == null) {
throw new ApiException("lineIds不能为空");
}
List<StatMaintain> result = terminalExtService.statMaintain(model);
return ResponseReult.success(result);
}
@GetMapping("listWithAll")
@ApiOperation("查询附带全部额外信息")
@Log(title = "装置查询附带全部额外信息", type = "查询")
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithAll(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
Integer isonline, Integer protocol, Integer devType, String cmdid,
Long start, Long end,
Integer channelId, Integer activityId, String dataFlag,
Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
if (dataFlag == null) {
dataFlag = "";
}
long cost = System.currentTimeMillis();
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
search, cmdid,
isonline, protocol, devType, activityId,
pageNum, pageSize);
cost = System.currentTimeMillis() - cost;
log.info("getTerminalList cost=" + cost);
if (!CollectionUtils.isEmpty(result.getList())) {
cost = System.currentTimeMillis();
List<Integer> terminalIds = new ArrayList<>();
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
terminalIds.add(terminal.getId());
if (dataFlag.contains("P")) {
PhotoDayModel photoInfo = photoService.getDayModel(terminal.getId(), channelId, start, end);
terminal.setPhotoInfo(photoInfo);
}
if (dataFlag.contains("C")) {
long rebootCount = infoHistoryService.count(terminal.getId(), start, end);
terminal.setRebootCount(rebootCount);
}
if (dataFlag.contains("B")) {
TerminalBasicInfoHistory info = infoHistoryService.getLast(terminal.getId());
terminal.setLastInfo(info);
}
}
if (dataFlag.contains("S")) {
TerminalStatusExample example = new TerminalStatusExample();
TerminalStatusExample.Criteria criteria = example.createCriteria();
criteria.andTermIdIn(terminalIds);
List<TerminalStatus> terminalStatuses = terminalStatusDao.selectByExample(example);
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
for (TerminalStatus terminalStatus : terminalStatuses) {
if (terminal.getId().intValue() == terminalStatus.getTermId().intValue()) {
terminal.setWorkingStatus(terminalStatus);
break;
}
}
}
}
if (dataFlag.contains("O")) {
TerminalPositionsExample example = new TerminalPositionsExample();
TerminalPositionsExample.Criteria criteria = example.createCriteria();
criteria.andTermIdIn(terminalIds);
List<TerminalPositions> terminalPositions = terminalPositionsMapper.selectByExample(example);
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
for (TerminalPositions terminalPosition : terminalPositions) {
if (terminal.getId().intValue() == terminalPosition.getTermId().intValue()) {
terminal.setPositions(terminalPosition);
break;
}
}
}
}
cost = System.currentTimeMillis() - cost;
log.info("listWithAll cost=" + cost);
}
return ResponseReult.success(result);
}
@GetMapping("listWithWeather")
@ApiOperation("查询附带天气")
@Log(title = "覆冰查询附带天气", type = "查询")
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithWeather(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
Integer isonline, Integer protocol, Integer devType,
Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
search, null,
isonline, protocol, devType, null,
pageNum, pageSize);
if (!CollectionUtils.isEmpty(result.getList())) {
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
Weathers last = weatherService.getLast(terminal.getId());
if (last != null) {
last.setCmdid(terminal.getCmdid());
last.setPhase(terminal.getPhase());
terminal.setLastWeathers(last);
}
}
}
return ResponseReult.success(result);
}
@GetMapping("listWithLeadPull")
@ApiOperation("查询附带拉力")
@Log(title = "覆冰查询附带拉力", type = "查询")
public ResponseReult<PageInfo<View_Dy_Line_Tower_Terminals>> listWithLeadPull(Integer dyId, Integer lineId, Integer towerId, Integer termId, String search,
Integer isonline, Integer protocol, Integer devType,
Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<View_Dy_Line_Tower_Terminals> result = terminalExtService.getTerminalPage(dyId, lineId, towerId, termId,
search, null,
isonline, protocol, devType, null,
pageNum, pageSize);
if (!CollectionUtils.isEmpty(result.getList())) {
for (View_Dy_Line_Tower_Terminals terminal : result.getList()) {
LeadPulls last = leadPullsService.getLast(terminal.getId());
if (last != null) {
last.setCmdid(terminal.getCmdid());
last.setPhase(terminal.getPhase());
terminal.setLastLeadPulls(last);
}
}
}
return ResponseReult.success(result);
}
@GetMapping("heartbeat")
@ApiOperation("心跳历史")
@Log(title = "查询心跳历史", type = "查询")
public ResponseReult<PageInfo<TerminalHeartbeatHistory>> heartbeat(Integer termId, Integer pageNum, Integer pageSize) {
pageNum = this.initPageNum(pageNum);
pageSize = this.initPageSize(pageSize);
PageInfo<TerminalHeartbeatHistory> list = heartbeatService.listAll(termId, pageNum, pageSize);
return ResponseReult.success(list);
}
@GetMapping("getSimcard")
@ApiOperation("查询Simcard数据")
@Log(title = "查询Simcard数据", type = "查询")
public ResponseReult<TerminalSimcard> getSimcard(Integer termId) {
if (termId == null) {
throw new ApiException("termId不能为空");
}
TerminalSimcard simcard = simcardService.getSimcard(termId);
return ResponseReult.success(simcard);
}
@PostMapping("updateSimcard")
@ApiOperation("修改Simcard数据")
@Log(title = "修改Simcard数据", type = "修改")
public ResponseReult<String> updateSimcard(@RequestBody TerminalSimcard model) throws Exception {
simcardService.updateSimcard(model);
return ResponseReult.success("OK");
}
@PostMapping("importIccidForMaintain")
@ApiOperation("比对运维后导入iccid")
@Log(title = "比对运维后导入iccid", type = "导入")
public ResponseReult<String> importIccidForMaintain(@Validated @RequestBody IccidModel model) throws Exception {
TerminalSelectVo vo = new TerminalSelectVo();
vo.setPageindex(1);
vo.setPagesize(10000);
List<View_Dy_Line_Tower_Terminals> list = terminalExtService.getExtTerminalList(vo);
for (View_Dy_Line_Tower_Terminals item : list) {
MntnStatus mntnStatus = item.getMntnStatus();
if (mntnStatus != null && mntnStatus.getReportMap() != null) {
HashMap<String, Object> reportMap = mntnStatus.getReportMap();
String iccid1 = (String) reportMap.get("simcard1");
String iccid2 = (String) reportMap.get("simcard2");
if (iccid2 != null && model.getIccidList().contains(iccid2)) {
TerminalSimcard simcard = new TerminalSimcard();
simcard.setTermId(item.getId());
simcard.setIccid2(iccid2);
simcard.setType2(model.getType());
simcardService.updateSimcard(simcard);
} else if (iccid1 != null && model.getIccidList().contains(iccid1)) {
TerminalSimcard simcard = new TerminalSimcard();
simcard.setTermId(item.getId());
simcard.setIccid2(iccid1);
simcard.setType2(model.getType());
simcardService.updateSimcard(simcard);
}
}
}
return ResponseReult.success("OK");
}
@ApiOperation(value = "图片覆冰天气的按时间表统计", notes = "图片覆冰天气的按时间表统计接口", httpMethod = "POST")
@RequestMapping("/getScheduleStat")
@Log(title = "图片覆冰天气的按时间表统计", type = "统计")
public ResponseReult<List<StatTerm>> getScheduleStat(@RequestHeader HttpHeaders headers, @RequestBody @Validated TerminalPhotoSelectVo vo) throws Exception {
String requestIp = HeaderUtil.getRequestIp(headers);
vo.setPageindex(1);
vo.setPagesize(100000);
if (vo.getInterval() == null) {
vo.setInterval(10);
}
List<StatTerm> termList = new ArrayList<>();
ServiceBody<TerminalPhotoSelectListModel> serviceBody = photoService.getPhotoList(requestIp, vo, termList);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
TerminalPhotoSelectListModel model = serviceBody.getData();
List<Integer> idList = new ArrayList<>();
for (StatTerm st : termList) {
idList.add(st.getTermId());
}
if (idList.size() < 1) {
idList.add(-1);
}
this.buildPhotoStat(termList, idList, model.getList(), vo);
PageInfo<Weathers> weatherPage = weatherService.list(null, null, idList,
vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000, 1, 100000);
if (!CollectionUtils.isEmpty(weatherPage.getList())) {
for (Weathers weather : weatherPage.getList()) {
StatTerm term = this.findStatTerm(termList, weather.getTermId(), weather.getCmdid());
term.addWeather(weather);
}
}
PageInfo<LeadPulls> pullPage = leadPullsService.list(null, null, idList,
vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000, 1, 100000);
if (!CollectionUtils.isEmpty(pullPage.getList())) {
for (LeadPulls pull : pullPage.getList()) {
StatTerm term = this.findStatTerm(termList, pull.getTermId(), pull.getCmdid());
term.addLeadPulls(pull);
}
}
return ResponseReult.success(termList);
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
private void buildPhotoStat(List<StatTerm> termList, List<Integer> idList,
List<TerminalPhotoSelectListModel.PhotoBean> list, TerminalPhotoSelectVo vo) throws Exception {
for (StatTerm statTerm : termList) {
List<CameraSchedule> scheduleList = cameraScheduleService.list(statTerm.getTermId());
statTerm.initScheduleList(scheduleList, vo.getStarttime().getTime(), vo.getEndtime().getTime(), vo.getInterval());
long rebootCount = infoHistoryService.count(statTerm.getTermId(), vo.getStarttime().getTime() / 1000, vo.getEndtime().getTime() / 1000);
statTerm.setRebootCount(rebootCount);
TerminalBasicInfoHistory info = infoHistoryService.getLast(statTerm.getTermId());
statTerm.setLastInfo(info);
}
TerminalStatusExample example = new TerminalStatusExample();
TerminalStatusExample.Criteria criteria = example.createCriteria();
criteria.andTermIdIn(idList);
List<TerminalStatus> terminalStatuses = terminalStatusDao.selectByExample(example);
for (StatTerm item : termList) {
for (TerminalStatus terminalStatus : terminalStatuses) {
if (item.getTermId() == terminalStatus.getTermId().intValue()) {
item.setWorkingStatus(terminalStatus);
break;
}
}
}
if (list != null) {
for (TerminalPhotoSelectListModel.PhotoBean photo : list) {
StatTerm term = this.findStatTerm(termList, photo.getTermid(), photo.getCmdid());
term.addPhoto(photo);
}
}
}
private StatTerm findStatTerm(List<StatTerm> list, Integer termId, String cmdid) {
StatTerm the = null;
for (StatTerm item : list) {
if (item.getTermId() == termId) {
the = item;
break;
}
}
if (the == null) {
the = new StatTerm();
the.setTermId(termId);
the.setCmdid(cmdid);
list.add(the);
}
return the;
}
}

@ -5,15 +5,9 @@ import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.CameraSchedule;
import com.shxy.xymanager_common.excel.PhotoStatExcel;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_common.model.*;
import com.shxy.xymanager_common.util.DateUtil;
import com.shxy.xymanager_common.util.EasyExcelUtil;
import com.shxy.xymanager_common.util.xinyin.HeaderUtil;
import com.shxy.xymanager_common.util.HeaderUtil;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_service.service.CameraScheduleService;
import com.shxy.xymanager_service.service.TerminalPhotoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -23,17 +17,12 @@ import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpHeaders;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.net.URLEncoder;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
import java.util.HashMap;
@Api(value = "图片接口", tags = "图片接口相关")
@ -43,8 +32,6 @@ public class TerminalPhotoController extends BaseController {
@Autowired
TerminalPhotoService terminalPhotoService;
@Resource
CameraScheduleService cameraScheduleService;
@ApiOperation(value = "获取图片列表", notes = "获取图片列表接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@ -62,24 +49,10 @@ public class TerminalPhotoController extends BaseController {
@ApiOperation(value = "主动拍照", notes = "主动拍照接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/takePic")
@RequestMapping("/getLatestPhoto")
@Log(title = "主动拍照", type = "查询")
public ResponseReult<TakePIcModel> takePic(@Validated TerminalPhotoVo vo) throws Exception {
ServiceBody<TakePIcModel> serviceBody = terminalPhotoService.takePic(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取检测设备图片列表", notes = "获取检测设备图片列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTestTerminalPhotoList")
@Log(title = "获取检测设备图片列表", type = "查询")
public ResponseReult<TerminalPhotoListModel> getTestTerminalPhotoList(@RequestHeader HttpHeaders headers) {
String requestIp = HeaderUtil.getRequestIp(headers);
ServiceBody<TerminalPhotoListModel> serviceBody = terminalPhotoService.getTestTerminalPhotoList(requestIp);
public ResponseReult<Date> getLatestPhoto(@RequestBody @Validated TerminalPhotoVo vo) {
ServiceBody<Date> serviceBody = terminalPhotoService.getLatestPhoto(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -87,70 +60,25 @@ public class TerminalPhotoController extends BaseController {
}
}
@ApiOperation(value = "告警划线", notes = "告警划线", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/takeAlarm")
@Log(title = "告警划线", type = "查询")
public ResponseReult<String> takeAlarm(@Validated @RequestBody TerminalPhotoTestVo vo) {
ServiceBody<String> serviceBody = terminalPhotoService.takeAlarm(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
HashMap<Integer, String> workingMap = new HashMap<>();
@ApiOperation(value = "主动拍照下发状态查询", notes = "主动拍照下发状态查询接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTakePicStatus")
@Log(title = "主动拍照下发状态查询", type = "查询")
public ResponseReult<TakePIcStatusModel> getTakePicStatus(@Validated ReturnedPhotoVo vo) {
try {
if (workingMap.containsKey(vo.getRequestid())) {
throw new ApiException("相同请求正在处理中, 请刷新页面更新");
}
workingMap.put(vo.getRequestid(), "1");
ServiceBody<TakePIcStatusModel> serviceBody = terminalPhotoService.getTakePicStatus(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
} finally {
workingMap.remove(vo.getRequestid());
}
}
@ApiOperation(value = "主动拍照下照片状态查询", notes = "主动拍照下照片状态查询接口", httpMethod = "POST")
@ApiOperation(value = "拍照时间表查询触发", notes = "拍照时间表查询触发", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTakePicPhotoStatus")
@Log(title = "主动拍照下照片状态查询", type = "查询")
public ResponseReult<Boolean> getTakePicPhotoStatus(@Validated ReturnedPhotoVo vo) {
try {
if (workingMap.containsKey(vo.getRequestid())) {
throw new ApiException("相同请求正在处理中, 请刷新页面更新");
}
workingMap.put(vo.getRequestid(), "1");
ServiceBody<Boolean> serviceBody = terminalPhotoService.getTakePicPhotoStatus(vo);
@RequestMapping("/selectPhotoTimeGet")
@Log(title = "拍照时间表查询触发", type = "查询")
public ResponseReult<GetModel> selectPhotoTimeGet(@RequestBody @Validated TerminalPhotoTimeGetVo vo) {
ServiceBody<GetModel> serviceBody = terminalPhotoService.selectPhotoTimeGet(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
} finally {
workingMap.remove(vo.getRequestid());
}
}
@ApiOperation(value = "拍照时间表查询触发", notes = "拍照时间表查询触发", httpMethod = "POST")
@ApiOperation(value = "拍照时间表查询", notes = "拍照时间表查询", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/selectPhotoTimeGet")
@Log(title = "拍照时间表查询触发", type = "查询")
public ResponseReult<GetModel> selectPhotoTimeGet(@RequestBody @Validated TerminalPhotoTimeGetVo vo) {
ServiceBody<GetModel> serviceBody = terminalPhotoService.selectPhotoTimeGet(vo);
@RequestMapping("/selectPhotoTime")
@Log(title = "拍照时间表查询", type = "查询")
public ResponseReult<TerminalScheduleRuleTimeListModel> selectPhotoTime(@RequestBody @Validated TerminalReqPhotoTimeVo vo) {
ServiceBody<TerminalScheduleRuleTimeListModel> serviceBody = terminalPhotoService.selectPhotoTime(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -164,8 +92,7 @@ public class TerminalPhotoController extends BaseController {
@Log(title = "图片查询", type = "查询")
public ResponseReult<TerminalPhotoSelectListModel> getPhotoList(@RequestHeader HttpHeaders headers, @RequestBody @Validated TerminalPhotoSelectVo vo) {
String requestIp = HeaderUtil.getRequestIp(headers);
List<StatTerm> termList = new ArrayList<>();
ServiceBody<TerminalPhotoSelectListModel> serviceBody = terminalPhotoService.getPhotoList(requestIp, vo, termList);
ServiceBody<TerminalPhotoSelectListModel> serviceBody = terminalPhotoService.getPhotoList(requestIp, vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -173,186 +100,19 @@ public class TerminalPhotoController extends BaseController {
}
}
@ApiOperation(value = "图片统计查询", notes = "图片统计查询接口", httpMethod = "POST")
@RequestMapping("/getPhotoStat")
@Log(title = "图片统计查询", type = "查询")
public ResponseReult<List<StatTerm>> getPhotoStat(@RequestHeader HttpHeaders headers, @RequestBody @Validated TerminalPhotoSelectVo vo) throws Exception {
String requestIp = HeaderUtil.getRequestIp(headers);
vo.setPageindex(1);
vo.setPagesize(100000);
if (vo.getInterval() == null) {
vo.setInterval(10);
}
List<StatTerm> termList = new ArrayList<>();
ServiceBody<TerminalPhotoSelectListModel> serviceBody = terminalPhotoService.getPhotoList(requestIp, vo, termList);
@ApiOperation(value = "最新图片查询", notes = "图片查询接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getReturnedPhoto")
@Log(title = "最新图片查询", type = "查询")
public ResponseReult<Boolean> getReturnedPhoto(@RequestBody @Validated ReturnedPhotoVo vo) {
ServiceBody<Boolean> serviceBody = terminalPhotoService.getReturnedPhoto(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
TerminalPhotoSelectListModel model = serviceBody.getData();
this.buildPhotoStat(termList, model.getList(), vo);
return ResponseReult.success(termList);
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
private void buildPhotoStat(List<StatTerm> termList, List<TerminalPhotoSelectListModel.PhotoBean> list, TerminalPhotoSelectVo vo) throws Exception {
for (StatTerm statTerm : termList) {
List<CameraSchedule> scheduleList = cameraScheduleService.list(statTerm.getTermId());
statTerm.initScheduleList(scheduleList, vo.getStarttime().getTime(), vo.getEndtime().getTime(), vo.getInterval());
}
if (list != null) {
for (TerminalPhotoSelectListModel.PhotoBean photo : list) {
StatTerm term = this.findStatTerm(termList, photo);
term.addPhoto(photo);
}
}
}
private StatTerm findStatTerm(List<StatTerm> list, TerminalPhotoSelectListModel.PhotoBean photo) {
StatTerm the = null;
for (StatTerm item : list) {
if (item.getTermId() == photo.getTermid()) {
the = item;
break;
}
}
if (the == null) {
the = new StatTerm();
the.setTermId(photo.getTermid());
the.setCmdid(photo.getCmdid());
list.add(the);
}
return the;
}
// @ApiOperation(value = "图片统计导出", notes = "图片统计导出接口", httpMethod = "POST")
// @RequestMapping("/exportPhotoStat")
// @Log(title = "图片统计导出", type = "导出")
// public void exportPhotoStat(@RequestHeader HttpHeaders headers,
// @RequestBody @Validated TerminalPhotoSelectVo vo,
// HttpServletResponse response) throws Exception {
// String requestIp = HeaderUtil.getRequestIp(headers);
// vo.setPageindex(1);
// vo.setPagesize(100000);
// List<StatTerm> termList = new ArrayList<>();
// ServiceBody<TerminalPhotoSelectListModel> serviceBody = terminalPhotoService.getPhotoList(requestIp, vo, termList);
// if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
// TerminalPhotoSelectListModel model = serviceBody.getData();
// this.buildPhotoStat(termList, model.getList());
//
// response.setContentType("application/vnd.ms-excel");
// response.setCharacterEncoding("utf-8");
// response.setHeader("Content-Disposition", "attachment; filename="
// + URLEncoder.encode("照片统计.xlsx", "UTF-8"));
// EasyExcelUtil.exportPhotoStat(termList, response.getOutputStream());
// }
// }
// @ApiOperation(value = "图片统计导出合计", notes = "图片统计导出合计接口", httpMethod = "POST")
// @RequestMapping("/exportPhotoStatSum")
// @Log(title = "图片统计导出合计", type = "导出")
// public void exportPhotoStatSum(@RequestHeader HttpHeaders headers,
// @RequestBody @Validated TerminalPhotoSelectVo vo,
// HttpServletResponse response) throws Exception {
// String requestIp = HeaderUtil.getRequestIp(headers);
// vo.setPageindex(1);
// vo.setPagesize(100000);
// List<StatTerm> termList = new ArrayList<>();
// ServiceBody<TerminalPhotoSelectListModel> serviceBody = terminalPhotoService.getPhotoList(requestIp, vo, termList);
// if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
// TerminalPhotoSelectListModel model = serviceBody.getData();
// this.buildPhotoStat(termList, model.getList());
// List<PhotoStatExcel> result = this.buildPhotoStatExcel(termList);
//
// EasyExcelUtil.createExcel(response, "图片统计合计", result, PhotoStatExcel.class);
// }
// }
// private List<PhotoStatExcel> buildPhotoStatExcel(List<StatTerm> list) {
// List<PhotoStatExcel> result = new ArrayList<>();
// for (StatTerm term : list) {
// PhotoStatExcel item = new PhotoStatExcel();
// item.setCmdid(term.getCmdid());
// item.setTotal(term.getTotal());
// result.add(item);
// if (term.getWrongCount() > 0) {
// item.setStatus("有异常");
// } else {
// item.setStatus("正常");
// }
// for (StatChannel channel : term.getChannels()) {
// PhotoStatExcel item2 = new PhotoStatExcel();
// item2.setChannelId(channel.getChannelId());
// item2.setTotal(channel.getTotal());
// result.add(item2);
// if (channel.getWrongCount() > 0) {
// item2.setStatus("有异常");
// } else {
// item2.setStatus("正常");
// }
// for (StatPreset preset : channel.getPresets()) {
// PhotoStatExcel item3 = new PhotoStatExcel();
// item3.setChannelId(channel.getChannelId());
// item3.setPresetId(preset.getPresetId());
// item3.setTotal(preset.getTotal());
// result.add(item3);
// if (preset.getWrongCount() > 0) {
// item3.setStatus("有异常");
// } else {
// item3.setStatus("正常");
// }
// for (StatHour hour : preset.getHours()) {
// if (hour.isWrong()) {
// PhotoStatExcel err = new PhotoStatExcel();
// err.setChannelId(channel.getChannelId());
// err.setPresetId(preset.getPresetId());
// err.setHour(hour.getHour());
// List<String> dateList = new ArrayList<>();
// for (Date date : hour.getTimeList()) {
// dateList.add(DateUtil.format(date));
// }
// err.setTotal(dateList.size());
// err.setStatus(hour.getWrongDetail());
// err.setDetail(String.join(System.lineSeparator(), dateList));
// result.add(err);
// }
// }
// }
// }
// }
// return result;
// }
@PostMapping("uploadPhoto")
@ApiOperation("上传图片")
@Log(title = "上传图片", type = "上传")
public ResponseReult<String> uploadPhoto(@RequestParam("files") MultipartFile[] files,
@RequestParam("cmdid") String cmdid) throws Exception {
if (files != null && files.length > 0) {
terminalPhotoService.uploadPhotos(files, cmdid);
return ResponseReult.success("OK");
} else {
return ResponseReult.error("缺少上传文件");
}
}
@PostMapping("uploadPatch")
@ApiOperation("上传图片差分")
@Log(title = "上传图片差分", type = "上传")
public ResponseReult<String> uploadPatch(@RequestParam("files") MultipartFile[] files,
@RequestParam("cmdid") String cmdid,
@RequestParam("oids") Integer[] oids) throws Exception {
if (files != null && files.length > 0) {
if (oids != null && oids.length > 0 && files.length == oids.length) {
terminalPhotoService.uploadPatchs(files, oids, cmdid);
return ResponseReult.success("OK");
} else {
return ResponseReult.error("oids和文件不匹配");
}
} else {
return ResponseReult.error("缺少上传文件");
}
}
@ApiOperation(value = "图片轮询", notes = "图片轮询接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getPhotoBanner")
@ -406,6 +166,7 @@ public class TerminalPhotoController extends BaseController {
}
}
@ApiOperation(value = "历史图片", notes = "历史图片接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getHistoryList")
@ -420,17 +181,4 @@ public class TerminalPhotoController extends BaseController {
}
}
@ApiOperation(value = "删除图片", notes = "删除图片接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/deletePicList")
@Log(title = "删除图片", type = "删除")
public ResponseReult<String> deletePicList(@RequestBody @Validated DeletePicVo vo) {
ServiceBody<String> serviceBody = terminalPhotoService.deletePicList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
}

@ -1,59 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.TerminalPresets;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_service.service.TerminalPresetsService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"装置预置位相关接口"})
@RequestMapping("preset")
@Slf4j
public class TerminalPresetController extends BaseController {
@Resource
TerminalPresetsService service;
@GetMapping("list")
@ApiOperation("查询列表")
@Log(title = "查询装置预置位列表", type = "查询")
public ResponseReult<List<TerminalPresets>> list(@RequestParam(value = "termId", required = true) Integer termId) {
List<TerminalPresets> result = service.list(termId);
return ResponseReult.success(result);
}
@PostMapping("save")
@ApiOperation("保存")
@Log(title = "保存装置预置位", type = "保存")
public ResponseReult<String> save(@Validated @RequestBody TerminalPresets item) throws Exception {
service.save(item);
return ResponseReult.success("OK");
}
@PostMapping("delete")
@ApiOperation("删除")
@Log(title = "删除装置预置位", type = "删除")
public ResponseReult<String> delete(@Validated @NotNull(message = "termId不能为空!") Integer termId,
@Validated @NotNull(message = "presetNo不能为空!") Integer presetNo) throws Exception {
if (termId == null) {
throw new ApiException("termId不能为空!");
}
if (presetNo == null) {
throw new ApiException("presetNo不能为空!");
}
service.delete(termId, presetNo);
return ResponseReult.success("OK");
}
}

@ -1,36 +1,57 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_framework.socket.WebSocketServer;
import com.shxy.xymanager_common.annotation.Log;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;
@RestController
@Api(tags = {"测试接口"})
@RequestMapping("test")
@Api(value = "测试接口", tags = "测试接口tags")
@Controller
@Slf4j
public class TestController extends BaseController {
@Resource
WebSocketServer webSocketServer;
public class TestController {
@GetMapping("sendMsg")
@ApiOperation("发送消息")
public void sendMsg(String msg) {
webSocketServer.sendNotice(null, msg);
@ApiOperation(value = "测试", notes = "测试notes", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/user/login")
@Log(title = "测试", type = "查询")
public String gettest() {
log.info("有一个沙雕点了链接");
return "/api/index2";
}
@GetMapping("test")
@ApiOperation("test")
public ResponseReult<String> test() {
return ResponseReult.success("OK");
@GetMapping("/user/logins")
@Log(title = "测试", type = "查询")
public String hhtest() {
log.info("有一个沙雕点了链接");
return "/api/index2.html";
}
// @ApiOperation(value = "登录", notes = "登录", httpMethod = "POST")
//// @ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
// @RequestMapping("/login")
// @Log(title = "登录", type = "查询")
// public String login(String username, String password) {
// //获取主题对象
// Subject subject = SecurityUtils.getSubject();
// try {
// subject.login(new UsernamePasswordToken(username,password));
// System.out.println("登录成功!!!");
// return "登录成功";
// } catch (UnknownAccountException e) {
// e.printStackTrace();
// System.out.println("用户错误!!!");
// } catch (IncorrectCredentialsException e) {
// System.out.println("密码错误!!!");
// }
// return "登录失败";
// }
}

@ -8,7 +8,10 @@ import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.dto.TowerDto;
import com.shxy.xymanager_common.model.AllTowerListModel;
import com.shxy.xymanager_common.model.TowerListModel;
import com.shxy.xymanager_common.vo.*;
import com.shxy.xymanager_common.vo.PageVo;
import com.shxy.xymanager_common.vo.TowerIdVo;
import com.shxy.xymanager_common.vo.TowersVo;
import com.shxy.xymanager_common.vo.UpdateTowerVo;
import com.shxy.xymanager_service.service.TowerService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -48,7 +51,7 @@ public class TowerController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTowerList")
@Log(title = "获取杆塔列表", type = "查询")
public ResponseReult<TowerListModel> getTowerList(@RequestBody @Validated SelectVo vo) {
public ResponseReult<TowerListModel> getTowerList(@RequestBody @Validated PageVo vo) {
ServiceBody<TowerListModel> serviceBody = towerService.getTowerList(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
@ -110,5 +113,4 @@ public class TowerController extends BaseController {
}
}

@ -1,45 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_service.service.TerminalPhotoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import java.math.BigInteger;
import java.util.Date;
@Api(value = "补图片", tags = "补图片相关")
@RestController
@Slf4j
public class UpPhotoController extends BaseController {
@Autowired
TerminalPhotoService terminalPhotoService;
@PostMapping("upload")
@ApiOperation("处理icd文件")
public ResponseReult<String> upload(@RequestParam("file") MultipartFile file,
@RequestParam(value = "termid",required = false) Integer termid,
@RequestParam(value = "cmdid",required = false) String cmdid,
@RequestParam(value = "channel",required = false) Integer channel,
@RequestParam(value = "phototime",required = false) BigInteger phototime) throws Exception {
//保存在服务器中
ServiceBody<String> serviceBody = terminalPhotoService.uploadPhoto(file, termid, cmdid, channel, phototime);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
}

@ -1,73 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.MntnUpgrades;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_service.service.UpgradeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"升级相关接口"})
@RequestMapping("upgrade")
@Slf4j
public class UpgradeController extends BaseController {
@Resource
UpgradeService service;
@GetMapping("listAll")
@ApiOperation("查询全部列表")
public ResponseReult<List<MntnUpgrades>> listAll(Integer type) {
List<MntnUpgrades> result = service.listAll(type);
return ResponseReult.success(result);
}
@PostMapping("upload")
@ApiOperation("上传")
public ResponseReult<String> upload(@RequestParam("file") MultipartFile file,
@RequestParam(value = "title", required = false) String title,
@RequestParam(value = "type", required = true) Integer type) throws Exception {
if (file == null) {
throw new ApiException("缺少上传的文件");
}
if (StringUtils.isBlank(file.getOriginalFilename())) {
throw new ApiException("文件格式不正确");
}
MntnUpgrades record = new MntnUpgrades();
record.setTitle(title);
record.setType(type);
service.upload(record, file);
return ResponseReult.success("OK");
}
@PostMapping("updateTitle")
@ApiOperation("修改")
public ResponseReult<String> updateTitle(@Validated @RequestBody MntnUpgrades item) throws Exception {
if (item.getId() == null) {
throw new ApiException("id不能为空!");
}
service.updateTitle(item);
return ResponseReult.success("OK");
}
@PostMapping("delete")
@ApiOperation("删除")
public ResponseReult<String> delete(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
service.delete(id);
return ResponseReult.success("OK");
}
}

@ -5,11 +5,10 @@ import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.TerminalUpload;
import com.shxy.xymanager_common.page.TableDataInfo;
import com.shxy.xymanager_common.model.TerminalApkInfoListModel;
import com.shxy.xymanager_common.vo.PageVo;
import com.shxy.xymanager_common.vo.TerminalApkVo;
import com.shxy.xymanager_common.vo.TerminalUpdateApkVo;
import com.shxy.xymanager_common.vo.TerminalUploadVo;
import com.shxy.xymanager_service.service.UploadService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@ -17,7 +16,11 @@ import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;
@ -31,11 +34,10 @@ public class UploadController extends BaseController {
@ApiOperation(value = "上传APK", notes = "上传APK接口", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@PostMapping("/uploadApk")
@RequestMapping("/uploadApk")
@Log(title = "上传APK", type = "新增")
public ResponseReult<String> uploadApk(@RequestParam("file") MultipartFile file, @RequestParam("title") String title
, @RequestParam("name") String name) {
ServiceBody<String> serviceBody = uploadService.upload(file, title, name);
public ResponseReult<String> issueApk(@RequestParam("file")MultipartFile file,@RequestParam("version")String version) {
ServiceBody<String> serviceBody = uploadService.upload(file,version);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -47,35 +49,8 @@ public class UploadController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/listApk")
@Log(title = "查询APK列表", type = "查询")
public ResponseReult<TableDataInfo<TerminalUpload>> listApk(@RequestBody PageVo vo) {
ServiceBody<TableDataInfo<TerminalUpload>> serviceBody = uploadService.listApk(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "修改apk列表", notes = "修改apk列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/updateApk")
@Log(title = "修改apk列表", type = "修改")
public ResponseReult<String> updateApk(@RequestBody TerminalUpdateApkVo vo) {
ServiceBody<String> serviceBody = uploadService.updateApk(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "删除apk列表", notes = "修改apk列表", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/deleteApk")
@Log(title = "删除apk列表", type = "修改")
public ResponseReult<String> deleteApk(@RequestBody TerminalUpdateApkVo vo) {
ServiceBody<String> serviceBody = uploadService.deleteApk(vo);
public ResponseReult<TerminalApkInfoListModel> listApk(@RequestBody PageVo vo) {
ServiceBody<TerminalApkInfoListModel> serviceBody = uploadService.listApk(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {

@ -1,82 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.PermissionDetail;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.DyLevel;
import com.shxy.xymanager_common.entity.SysUser;
import com.shxy.xymanager_common.entity.TbPermission;
import com.shxy.xymanager_common.model.PermissionModel;
import com.shxy.xymanager_common.threadlocal.UserContextHolder;
import com.shxy.xymanager_service.service.NewCacheService;
import com.shxy.xymanager_service.service.PermissionService;
import com.shxy.xymanager_service.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.List;
@RestController
@Api(tags = {"用户权限相关接口"})
@RequestMapping("user")
@Slf4j
public class UserController extends BaseController {
@Resource
UserService service;
@Resource
PermissionService permissionService;
@Resource
NewCacheService cacheService;
@GetMapping("getFullTree")
@ApiOperation("查询数据全量树")
public ResponseReult<List<DyLevel>> getFullTree() {
List<DyLevel> list = cacheService.getFullTree();
return ResponseReult.success(list);
}
@GetMapping("getPermission")
@ApiOperation("查询权限")
public ResponseReult<List<TbPermission>> getPermission(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
List<TbPermission> result = permissionService.getPermission(id);
return ResponseReult.success(result);
}
@PostMapping("changePermission")
@ApiOperation("修改权限")
public ResponseReult<String> changePermission(@Validated @RequestBody PermissionModel item) throws Exception {
permissionService.changePermission(item.getUserId(), item.getList());
return ResponseReult.success("OK");
}
/**
* @param
* @return ResponseReult
* @Description
*/
@ApiOperation(value = "获取当前用户", notes = "获取当前用户", httpMethod = "GET")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/currentUser")
public ResponseReult<SysUser> currentUser() throws Exception {
SysUser user = UserContextHolder.currentUserInfo();
if (user != null) {
user.setPassword("");
PermissionDetail permission = cacheService.getPermissionDetailFull(user.getUid());
user.setPermission(permission);
return ResponseReult.success(user);
} else {
return ResponseReult.error(ServiceStatus.ERROR, "未获取到当前用户信息");
}
}
}

@ -1,110 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.Weathers;
import com.shxy.xymanager_common.model.StatWeather;
import com.shxy.xymanager_common.util.EasyExcelUtil;
import com.shxy.xymanager_service.service.WeatherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletResponse;
import java.util.ArrayList;
import java.util.List;
@RestController
@Api(tags = {"气象相关接口"})
@RequestMapping("weather")
@Slf4j
public class WeatherController extends BaseController {
@Resource
WeatherService service;
@GetMapping("list")
@ApiOperation("查询列表")
@Log(title = "查询气象列表", type = "查询")
public ResponseReult<PageInfo<Weathers>> list(Integer lineId, Integer towerId, Integer termId,
Long start, Long end,
Integer pageNum, Integer pageSize) {
List<Integer> idList = null;
if (termId != null) {
idList = new ArrayList<>();
idList.add(termId);
}
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
start, end, pageNum, pageSize);
return ResponseReult.success(result);
}
@GetMapping("listStat")
@ApiOperation("查询统计")
@Log(title = "查询气象统计", type = "查询")
public ResponseReult<List<StatWeather>> listStat(Integer lineId, Integer towerId, Integer termId,
Long start, Long end,
Integer pageNum, Integer pageSize) {
List<Integer> idList = null;
if (termId != null) {
idList = new ArrayList<>();
idList.add(termId);
}
pageNum = 1;
pageSize = 100000;
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
start, end, pageNum, pageSize);
List<StatWeather> list = this.buildStat(result.getList());
return ResponseReult.success(list);
}
private List<StatWeather> buildStat(List<Weathers> list) {
List<StatWeather> result = new ArrayList<>();
if (list != null) {
for (Weathers item : list) {
StatWeather term = this.findStatTerm(result, item);
term.addWeather(item);
}
}
return result;
}
private StatWeather findStatTerm(List<StatWeather> list, Weathers weathers) {
StatWeather the = null;
for (StatWeather item : list) {
if (item.getTermId() == weathers.getTermId()) {
the = item;
break;
}
}
if (the == null) {
the = new StatWeather();
the.setTermId(weathers.getTermId());
the.setCmdid(weathers.getCmdid());
list.add(the);
}
return the;
}
@GetMapping("export")
@ApiOperation("导出")
@Log(title = "导出气象", type = "导出")
public void export(Integer lineId, Integer towerId, Integer termId,
Long start, Long end,
Integer pageNum, Integer pageSize,
HttpServletResponse response) throws Exception {
List<Integer> idList = null;
if (termId != null) {
idList = new ArrayList<>();
idList.add(termId);
}
PageInfo<Weathers> result = service.list(lineId, towerId, idList,
start, end, pageNum, pageSize);
EasyExcelUtil.createExcel(response, "覆冰数据", result.getList(), Weathers.class);
}
}

@ -1,318 +0,0 @@
package com.shxy.xymanager_admin.controller;
import com.github.pagehelper.PageInfo;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.entity.*;
import com.shxy.xymanager_common.exception.ApiException;
import com.shxy.xymanager_common.util.*;
import com.shxy.xymanager_common.zhiping.*;
import com.shxy.xymanager_service.service.HenanService;
import com.shxy.xymanager_service.service.LeadPullsService;
import com.shxy.xymanager_service.service.WeatherService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.CollectionUtils;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@RestController
@Api(tags = {"微气象监测数据同步接口"})
@RequestMapping("henan")
@Slf4j
public class ZhipingController extends BaseController {
String accountName = "admin";
String secretKey = "SHxy@2024";
@Resource
LeadPullsService leadPullsService;
@Resource
WeatherService weatherService;
@Autowired
TokenUtil tokenUtil;
@Resource
HenanService henanService;
@PostMapping("addWeather")
@ApiOperation("新增天气装置")
public ResponseReult<String> addWeather(@RequestBody TerminalWeather item) throws Exception {
henanService.addWeather(item);
return ResponseReult.success("OK");
}
@PostMapping("addPoint")
@ApiOperation("新增拉力装置")
public ResponseReult<String> addPoint(@RequestBody TerminalPoint item) throws Exception {
henanService.addPoint(item);
return ResponseReult.success("OK");
}
@PostMapping("delWeather")
@ApiOperation("删除天气装置")
public ResponseReult<String> delWeather(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
henanService.delWeather(id);
return ResponseReult.success("OK");
}
@PostMapping("delPoint")
@ApiOperation("删除拉力装置")
public ResponseReult<String> delPoint(@Validated @NotNull(message = "id不能为空!") Integer id) throws Exception {
if (id == null) {
throw new ApiException("id不能为空!");
}
henanService.delPoint(id);
return ResponseReult.success("OK");
}
@GetMapping("getWeatherList")
@ApiOperation("查询天气装置列表")
public ResponseReult<List<TerminalWeather>> getWeatherList() {
List<TerminalWeather> result = henanService.getWeatherList();
return ResponseReult.success(result);
}
@GetMapping("getPointList")
@ApiOperation("查询拉力装置点表")
public ResponseReult<List<TerminalPoint>> getPointList() {
List<TerminalPoint> result = henanService.getPointList();
return ResponseReult.success(result);
}
@GetMapping("query")
@ApiOperation("查询")
@Log(title = "微气象监测数据同步查询", type = "查询")
public ZhipingReult<List<OutModel>> query(String actiontype, String timestamp,
String beginTime, String endTime) throws Exception {
ZhipingReult result = new ZhipingReult();
result.setCode("0");
if (StringUtils.isBlank(beginTime)) {
result.setCode("400");
result.setMsg("beginTime不能为空");
} else if (StringUtils.isBlank(endTime)) {
result.setCode("400");
result.setMsg("endTime不能为空");
} else if (StringUtils.isBlank(timestamp)) {
result.setCode("400");
result.setMsg("timestamp不能为空");
} else if (!timestamp.contains("9186B579774441C58FB0867FF05C8CE2")) {
result.setCode("400");
result.setMsg("私钥不正确");
} else {
Date start = DateUtil.parse(beginTime);
Date end = DateUtil.parse(endTime);
if ("meteo".equals(actiontype)) {
PageInfo<Weathers> page = weatherService.list(null, null, null,
start.getTime() / 1000, end.getTime() / 1000, 1, 10000);
if (!CollectionUtils.isEmpty(page.getList())) {
List<OutModel> list = new ArrayList<>();
for (Weathers weather : page.getList()) {
OutModel item = new OutModel();
item.setCmonitorCode(weather.getCmdid());
item.setCupdateTime(DateUtil.format(weather.getUpdateDate()));
item.setCtemperature(String.valueOf(weather.getAirTemperature()));
item.setChumidity(String.valueOf(weather.getHumidity()));
item.setCwindSpeed(String.valueOf(weather.getStandardWindSpeed()));
item.setCwindDirection(String.valueOf(weather.getAvgWindDir10min()));
item.setCsunshine(String.valueOf(weather.getRadiationIntensity()));
item.setCrainAmount(String.valueOf(weather.getPrecipitation()));
list.add(item);
}
result.setDataCount(String.valueOf(list.size()));
result.setDataList(list);
}
} else if ("ice_weight".equals(actiontype)) {
PageInfo<LeadPulls> page = leadPullsService.list(null, null, null,
start.getTime() / 1000, end.getTime() / 1000, 1, 10000);
if (!CollectionUtils.isEmpty(page.getList())) {
List<OutModel> list = new ArrayList<>();
for (LeadPulls pull : page.getList()) {
OutModel item = new OutModel();
item.setCmonitorCode(pull.getCmdid());
item.setCupdateTime(DateUtil.format(pull.getUpdateDate()));
item.setCwindAngle(String.valueOf(pull.getWindSpeed()));
item.setCice(String.valueOf(0));
Float x = (pull.getMaxpullPull() + pull.getMinpullPull()) / 2;
item.setCpull(String.valueOf(pull.getMaxpullPull()));
item.setCpullAngle(String.valueOf(x));
list.add(item);
}
result.setDataCount(String.valueOf(list.size()));
result.setDataList(list);
}
} else {
result.setCode("400");
result.setMsg("actiontype不正确");
}
}
result.setRTime(DateUtil.format(new Date()));
return result;
}
@PostMapping("login")
@ApiOperation("同步登入")
@Log(title = "同步登入", type = "登入")
public SdqjResult login(@RequestBody LoginModel model) throws Exception {
SdqjResult result = new SdqjResult();
String account = DigestUtils.md5(accountName);
String key = DigestUtils.md5(secretKey);
if (account.equals(model.getAccountName()) &&
key.equals(model.getSecretKey())) {
result.setCode("200");
result.setMessage("认证成功");
Long time = System.currentTimeMillis() / 1000;
String token = tokenUtil.generateToken(time.intValue());
result.setToken(token);
} else {
result.setCode("-1");
result.setMessage("认证失败");
}
return result;
}
@PostMapping("queryMicromes")
@ApiOperation("天气数据同步查询")
@Log(title = "天气数据同步查询", type = "查询")
public SdqjResult queryMicromes(String token,
String startTime, String endTime) throws Exception {
if (StringUtils.isBlank(token)) {
return SdqjResult.error("token不能为空");
}
if (StringUtils.isBlank(startTime)) {
return SdqjResult.error("startTime不能为空");
}
if (StringUtils.isBlank(endTime)) {
return SdqjResult.error("endTime不能为空");
}
try {
String str = tokenUtil.getUserId(token);
long time = Long.valueOf(str);
time = System.currentTimeMillis() / 1000 - time;
if (time >= 0 && time <= 30 * 60) {
} else {
return SdqjResult.error("token已过期");
}
} catch (Exception e) {
return SdqjResult.error("token无效");
}
Date start = DateUtil.parse(startTime);
Date end = DateUtil.parse(endTime);
List<WeatherModel> result = new ArrayList<>();
List<Weathers> list = henanService.queryMicromes(start, end);
if (!CollectionUtils.isEmpty(list)) {
for (Weathers weather : list) {
WeatherModel item = new WeatherModel();
item.setCollTime(DateUtil.format(weather.getUpdateDate()));
item.setWindAvg(String.valueOf(weather.getAvgWindSpeed10min()));
item.setWindAngle(String.valueOf(weather.getAvgWindDir10min()));
item.setMaxWind(String.valueOf(weather.getMaxWindSpeed()));
if (weather.getExtremeWindSpeed() == null) {
item.setExtrWind("0");
} else {
item.setExtrWind(String.valueOf(weather.getExtremeWindSpeed()));
}
item.setStandWind(String.valueOf(weather.getStandardWindSpeed()));
item.setTemperature(String.valueOf(weather.getAirTemperature()));
item.setHumidity(String.valueOf(weather.getHumidity()));
item.setPressure(String.valueOf(weather.getAirPressure()));
item.setPrecipitation(String.valueOf(weather.getPrecipitation()));
if (weather.getPrecipitationIntensity() == null) {
item.setPrecipInten("0");
} else {
item.setPrecipInten(String.valueOf(weather.getPrecipitationIntensity()));
}
item.setRadiaInten(String.valueOf(weather.getRadiationIntensity()));
item.setIce("0");
item.setPull("0");
item.setTiltAngle("0");
item.setEquipId(weather.getCmdid());
result.add(item);
}
} else {
String str = "从" + startTime + "到" + endTime + "无天气数据";
String key = "weather";
if (!PulliceModel.fubinDoneMap.containsKey(key)) {
PulliceModel.fubinDoneMap.put(key, "");
DingTalkPushUtil.alertFB1.add(str);
}
}
return SdqjResult.success(result);
}
@PostMapping("queryPullIces")
@ApiOperation("覆冰拉力数据同步查询")
@Log(title = "覆冰拉力数据同步查询", type = "查询")
public SdqjResult queryPullIces(String token,
String startTime, String endTime) throws Exception {
if (StringUtils.isBlank(token)) {
return SdqjResult.error("token不能为空");
}
if (StringUtils.isBlank(startTime)) {
return SdqjResult.error("startTime不能为空");
}
if (StringUtils.isBlank(endTime)) {
return SdqjResult.error("endTime不能为空");
}
try {
String str = tokenUtil.getUserId(token);
long time = Long.valueOf(str);
time = System.currentTimeMillis() / 1000 - time;
if (time >= 0 && time <= 30 * 60) {
} else {
return SdqjResult.error("token已过期");
}
} catch (Exception e) {
return SdqjResult.error("token无效");
}
Date start = DateUtil.parse(startTime);
Date end = DateUtil.parse(endTime);
List<PulliceModel> result = new ArrayList<>();
List<LeadPulls> list = henanService.queryPullIces(start, end);
if (!CollectionUtils.isEmpty(list)) {
for (LeadPulls pull : list) {
PulliceModel item = new PulliceModel();
item.setCollTime(DateUtil.format(pull.getUpdateDate()));
item.setPull(String.valueOf(pull.getMaxpullPull()));
item.setCrosswiseAngle(String.valueOf(pull.getMaxpullWind()));
item.setForwardTiltAngle(String.valueOf(pull.getMaxpullTilt()));
item.setAirTemper("0");
item.setHumidity("0");
item.setWindSpeed("0");
item.setWAngle("0");
item.setCcll(String.valueOf(pull.getCcll()));
item.setEquipId(pull.getCmdid());
item.setPointId(pull.getCmdid() + "_" + pull.getPhase());
item.setT_Sensor_Num(String.valueOf(pull.getCount()));
item.calculate();
result.add(item);
}
} else {
String str = "从" + startTime + "到" + endTime + "无覆冰拉力数据";
String key = "pull";
if (!PulliceModel.fubinDoneMap.containsKey(key)) {
PulliceModel.fubinDoneMap.put(key, "");
DingTalkPushUtil.alertFB1.add(str);
}
}
return SdqjResult.success(result);
}
}

@ -0,0 +1,183 @@
## Spring配置
#spring:
# # 数据源配置
# datasource:
# type: com.alibaba.druid.pool.DruidDataSource
# driverClassName: com.mysql.cj.jdbc.Driver
# druid:
# # 主库数据源
# master:
# url: jdbc:mysql://139.196.98.172:3306/fc_medicialkit?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: root
# password: Root*123
# # 从库数据源
# slave:
# # 从数据源开关/默认关闭
# enabled: false
# url:
# username:
# password:
# # 初始连接数
# initialSize: 5
# # 最小连接池数量
# minIdle: 10
# # 最大连接池数量
# maxActive: 20
# # 配置获取连接等待超时的时间
# maxWait: 60000
# # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
# timeBetweenEvictionRunsMillis: 60000
# # 配置一个连接在池中最小生存的时间,单位是毫秒
# minEvictableIdleTimeMillis: 300000
# # 配置一个连接在池中最大生存的时间,单位是毫秒
# maxEvictableIdleTimeMillis: 900000
# # 配置检测连接是否有效
# validationQuery: SELECT 1 FROM DUAL
# testWhileIdle: true
# testOnBorrow: false
# testOnReturn: false
# webStatFilter:
# enabled: true
# statViewServlet:
# enabled: true
# # 设置白名单,不填则允许所有访问
# allow:
# url-pattern: /druid/*
# # 控制台管理用户名和密码
# login-username: root
# login-password: 123456
# filter:
# stat:
# enabled: true
# # 慢SQL记录
# log-slow-sql: true
# slow-sql-millis: 1000
# merge-sql: true
# wall:
# config:
# multi-statement-allow: true
## # 资源信息
## messages:
## # 国际化资源文件路径
## basename: i18n/messages
## # 文件上传
## servlet:
## multipart:
## # 单个文件大小
## max-file-size: 20MB
## # 设置总上传的文件大小
## max-request-size: 20MB
## # 服务模块
## devtools:
## restart:
## # 热部署开关
## enabled: true
# # redis 配置
## redis:
## # 地址
## host: localhost
## # 端口默认为6379
## port: 6379
## # 数据库索引
## database: 0
## # 密码
## password:
## # 连接超时时间
## timeout: 10s
## lettuce:
## pool:
## # 连接池中的最小空闲连接
## min-idle: 0
## # 连接池中的最大空闲连接
## max-idle: 8
## # 连接池的最大数据库连接数
## max-active: 8
## # #连接池最大阻塞等待时间(使用负值表示没有限制)
## max-wait: -1ms
#
## 项目相关配置
##shop-backend:
## # 名称
## name: 知青人电商后端管理系统
## # 版本
## version: 1.0.0
## # 版权年份
## copyrightYear: 2021
## # 实例演示开关
## demoEnabled: true
## # 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
## profile: D:/shop-backend/uploadPath
## # 获取ip地址开关
## addressEnabled: false
## # 验证码类型 math 数组计算 char 字符验证
## captchaType: math
#
## 开发环境配置
#server:
# # 服务器的HTTP端口默认为8080
# port: 8087
# servlet:
# # 应用的访问路径
# context-path: /zqrssb
# tomcat:
# # tomcat的URI编码
# uri-encoding: UTF-8
# # 连接数满后的排队数默认为100
# accept-count: 1000
# max-swallow-size: -1 # tomcat默认大小2M超过2M的文件不会被捕获需要调整此处大小为100MB或者-1即可
# threads:
# # tomcat最大线程数默认为200
# max: 800
# # Tomcat启动初始化的线程数默认值10
# min-spare: 100
#
### 日志配置
##logging:
## config: classpath:log4j2ss.xml
## level:
## com.fc: debug
## org.springframework: warn
#
## token配置
#token:
# # 令牌自定义标识
# header: Authorization
# # 令牌密钥
# secret: abcdefghijklmnopqrstuvwxyz
# # 令牌有效期默认30分钟
# expireTime: 30
#
## MyBatis配置
#mybatis:
# # 搜索指定包别名
# type-aliases-package: com.fc.**.model
# # 配置mapper的扫描找到所有的mapper.xml映射文件
# mapper-locations: classpath*:mappers/**/*Dao.xml
# # 加载全局的配置文件
# configLocation: classpath:mybatis/mybatis-config.xml
#
##mybatis:
## mapper-locations: classpath:mappers/**/*.xml
## type-aliases-package: com.fuchang.entity
#
### PageHelper分页插件
##pagehelper:
## helperDialect: mysql
## supportMethodsArguments: true
## params: count=countSql
##
## Swagger配置
#swagger2:
# # 是否开启swagger
# enabled: true
# # 请求前缀
## pathMapping: /dev-api
##
### 防止XSS攻击
##xss:
## # 过滤开关
## enabled: true
## # 排除链接(多个用逗号分隔)
## excludes: /system/notice
## # 匹配链接
## urlPatterns: /system/*,/monitor/*,/tool/*

@ -0,0 +1,183 @@
## Spring配置
#spring:
# # 数据源配置
# datasource:
# type: com.alibaba.druid.pool.DruidDataSource
# driverClassName: com.mysql.cj.jdbc.Driver
# druid:
# # 主库数据源
# master:
# url: jdbc:mysql://139.196.98.172:3306/fc_medicialkit?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: root
# password: Root*123
# # 从库数据源
# slave:
# # 从数据源开关/默认关闭
# enabled: false
# url:
# username:
# password:
# # 初始连接数
# initialSize: 5
# # 最小连接池数量
# minIdle: 10
# # 最大连接池数量
# maxActive: 20
# # 配置获取连接等待超时的时间
# maxWait: 60000
# # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
# timeBetweenEvictionRunsMillis: 60000
# # 配置一个连接在池中最小生存的时间,单位是毫秒
# minEvictableIdleTimeMillis: 300000
# # 配置一个连接在池中最大生存的时间,单位是毫秒
# maxEvictableIdleTimeMillis: 900000
# # 配置检测连接是否有效
# validationQuery: SELECT 1 FROM DUAL
# testWhileIdle: true
# testOnBorrow: false
# testOnReturn: false
# webStatFilter:
# enabled: true
# statViewServlet:
# enabled: true
# # 设置白名单,不填则允许所有访问
# allow:
# url-pattern: /druid/*
# # 控制台管理用户名和密码
# login-username: root
# login-password: 123456
# filter:
# stat:
# enabled: true
# # 慢SQL记录
# log-slow-sql: true
# slow-sql-millis: 1000
# merge-sql: true
# wall:
# config:
# multi-statement-allow: true
## # 资源信息
## messages:
## # 国际化资源文件路径
## basename: i18n/messages
## # 文件上传
## servlet:
## multipart:
## # 单个文件大小
## max-file-size: 20MB
## # 设置总上传的文件大小
## max-request-size: 20MB
## # 服务模块
## devtools:
## restart:
## # 热部署开关
## enabled: true
# # redis 配置
## redis:
## # 地址
## host: localhost
## # 端口默认为6379
## port: 6379
## # 数据库索引
## database: 0
## # 密码
## password:
## # 连接超时时间
## timeout: 10s
## lettuce:
## pool:
## # 连接池中的最小空闲连接
## min-idle: 0
## # 连接池中的最大空闲连接
## max-idle: 8
## # 连接池的最大数据库连接数
## max-active: 8
## # #连接池最大阻塞等待时间(使用负值表示没有限制)
## max-wait: -1ms
#
## 项目相关配置
##shop-backend:
## # 名称
## name: 知青人电商后端管理系统
## # 版本
## version: 1.0.0
## # 版权年份
## copyrightYear: 2021
## # 实例演示开关
## demoEnabled: true
## # 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
## profile: D:/shop-backend/uploadPath
## # 获取ip地址开关
## addressEnabled: false
## # 验证码类型 math 数组计算 char 字符验证
## captchaType: math
#
## 开发环境配置
#server:
# # 服务器的HTTP端口默认为8080
# port: 8087
# servlet:
# # 应用的访问路径
# context-path: /zqrssb
# tomcat:
# # tomcat的URI编码
# uri-encoding: UTF-8
# # 连接数满后的排队数默认为100
# accept-count: 1000
# max-swallow-size: -1 # tomcat默认大小2M超过2M的文件不会被捕获需要调整此处大小为100MB或者-1即可
# threads:
# # tomcat最大线程数默认为200
# max: 800
# # Tomcat启动初始化的线程数默认值10
# min-spare: 100
#
### 日志配置
##logging:
## config: classpath:log4j2ss.xml
## level:
## com.fc: debug
## org.springframework: warn
#
## token配置
#token:
# # 令牌自定义标识
# header: Authorization
# # 令牌密钥
# secret: abcdefghijklmnopqrstuvwxyz
# # 令牌有效期默认30分钟
# expireTime: 30
#
## MyBatis配置
#mybatis:
# # 搜索指定包别名
# type-aliases-package: com.fc.**.model
# # 配置mapper的扫描找到所有的mapper.xml映射文件
# mapper-locations: classpath*:mappers/**/*Dao.xml
# # 加载全局的配置文件
# configLocation: classpath:mybatis/mybatis-config.xml
#
##mybatis:
## mapper-locations: classpath:mappers/**/*.xml
## type-aliases-package: com.fuchang.entity
#
### PageHelper分页插件
##pagehelper:
## helperDialect: mysql
## supportMethodsArguments: true
## params: count=countSql
##
## Swagger配置
#swagger2:
# # 是否开启swagger
# enabled: true
# # 请求前缀
## pathMapping: /dev-api
##
### 防止XSS攻击
##xss:
## # 过滤开关
## enabled: true
## # 排除链接(多个用逗号分隔)
## excludes: /system/notice
## # 匹配链接
## urlPatterns: /system/*,/monitor/*,/tool/*

@ -1,31 +1,102 @@
# Spring配置
spring:
cache:
type: simple
redis:
host: 192.168.1.190
port: 6379
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.1.190:3306/xymp_chenxi?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
url: jdbc:mysql://127.0.0.1:3306/xymp?allowMultiQueries=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: 123456
type: com.alibaba.druid.pool.DruidDataSource
servlet:
multipart:
# 指定自定义上传目录
location: /usr/local/home/manager/temp/
max-request-size: 2000MB
max-file-size: 2000MB
location: http://47.96.238.157/usr/local/home/manager/temp/
#spring:
# # 数据源配置
# datasource:
# type: com.alibaba.druid.pool.DruidDataSource
# driverClassName: com.mysql.cj.jdbc.Driver
# druid:
# # 主库数据源
# master:
# url: jdbc:mysql://192.168.200.63:3306/xymp?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
# username: xymp
# password: xymp@123
# # 从库数据源
# slave:
# # 从数据源开关/默认关闭
# enabled: false
# url:
# username:
# password:
# # 初始连接数
# initialSize: 5
# # 最小连接池数量
# minIdle: 10
# # 最大连接池数量
# maxActive: 20
# # 配置获取连接等待超时的时间
# maxWait: 60000
# # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
# timeBetweenEvictionRunsMillis: 60000
# # 配置一个连接在池中最小生存的时间,单位是毫秒
# minEvictableIdleTimeMillis: 300000
# # 配置一个连接在池中最大生存的时间,单位是毫秒
# maxEvictableIdleTimeMillis: 900000
# # 配置检测连接是否有效
# validationQuery: SELECT 1 FROM DUAL
# testWhileIdle: true
# testOnBorrow: false
# testOnReturn: false
# webStatFilter:
# enabled: true
# statViewServlet:
# enabled: true
# # 设置白名单,不填则允许所有访问
# allow:
# url-pattern: /druid/*
# # 控制台管理用户名和密码
# login-username: root
# login-password: 123456
# filter:
# stat:
# enabled: true
# # 慢SQL记录
# log-slow-sql: true
# slow-sql-millis: 1000
# merge-sql: true
# wall:
# config:
# multi-statement-allow: true
# # # 资源信息
# # messages:
# # # 国际化资源文件路径
# # basename: i18n/messages
# # # 文件上传
# # servlet:
# # multipart:
# # # 单个文件大小
# # max-file-size: 20MB
# # # 设置总上传的文件大小
# # max-request-size: 20MB
# # # 服务模块
# # devtools:
# # restart:
# # # 热部署开关
# # enabled: true
# mvc:
# view:
# suffix: .html
# # redis 配置
# servlet:
# multipart:
# max-file-size: 10MB #单个数据大小
# max-request-size: 50MB #总数据大小
# MyBatis配置
mybatis:
# 搜索指定包别名
type-aliases-package: com.shxy.**.model
# 配置mapper的扫描找到所有的mapper.xml映射文件
mapper-locations: classpath*:mappers/**/*.xml
mapper-locations: classpath*:mappers/**/*Dao.xml
# 加载全局的配置文件
configLocation: classpath:mybatis/mybatis-config.xml
# 项目相关配置
@ -51,7 +122,7 @@ server:
port: 8093
servlet:
# 应用的访问路径
context-path: /xymanager
context-path: /api
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
@ -68,7 +139,7 @@ server:
logging:
config: classpath:log4j2.xml
level:
com.shxy: info
com.shxy: trace
org.springframework: warn
@ -81,6 +152,7 @@ token:
# 令牌有效期默认30分钟
expireTime: 1
# Swagger配置
swagger2:
# 是否开启swagger
@ -96,12 +168,6 @@ swagger2:
# excludes: /system/notice
# # 匹配链接
# urlPatterns: /system/*,/monitor/*,/tool/*
#运维配置
maintain:
termlog: /home/xymp/termLogs/
apk: /home/xymp/apk/
uri: http://61.169.135.146:40085/
check: false
cma:
server: 127.0.0.1
@ -109,8 +175,8 @@ cma:
clientid: 10
scheduletype: 202
upload:
path: file:/usr/local/home/manager/download/
# path: http://47.96.238.157/usr/local/home/manager/download/
# path: file:/usr/local/home/manager/download/
path: http://47.96.238.157/usr/local/home/manager/download/
photo:
address: /photos/
video:
@ -126,12 +192,3 @@ rsa:
public_key: MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCViq0L+1XCTKOkt9nmy9aQbMRNNJNBOtPYRlCq/bRuwlYaq/I+XqSDkIF8s4JJSy3/Vgjw0fp8d4O+5KBS4Om9Ela60I2Vv/q8LjCNFNYbRE6xI7yrlyPukodmC/s1VgODDRHn3vVyKcK9nyF7xZsXixnlvltAky888CJkLpiGjQIDAQAB
private_key: MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAJWKrQv7VcJMo6S32ebL1pBsxE00k0E609hGUKr9tG7CVhqr8j5epIOQgXyzgklLLf9WCPDR+nx3g77koFLg6b0SVrrQjZW/+rwuMI0U1htETrEjvKuXI+6Sh2YL+zVWA4MNEefe9XIpwr2fIXvFmxeLGeW+W0CTLzzwImQumIaNAgMBAAECgYAzOn2LlD9Nv5lzzTPNl9jaQxiAZllnyDJYbcYmvaD5LIP4wRzMdvmexHtHb+tbFnEcfqmzbguEZiDw3Tt7COepQWvNzlM+/HbFtkXzSh6WEu2TgjZwudcCDHDyjDzUNgcWnBIw8/+Sy4COOm4p+UnprYK4sdriMZyz8K5UC8CxFQJBAODTt0lg/HiZKaOX7PMmsiRisd5oAslyDHCt66oPG29KTE1j4fwKDzGJlrOo1f4Q078IDYMO1I/Y3uP8Es3FT1MCQQCqRrD+lO3YCZOUGTHm2WGmbljIoeDpnIn2TZFyqDGKXs6EAx7SXkgarY2OC5O2aifMhXElPUGChfSgPmRUFHafAkEAxFtkWuwf1NxAJ6cKxZpoP6sLGenRdUrsXoUnrBEhruM/HOA9gLjwaB14x1SQASOFK/TGiE4ti6ynjoqbiafoDQJBAI0l6FZAsiBhX9pmQD1yeUXzNtmphr1gK+TmS+lVjyt6h4pa49PSn8atkyfqZNnTiYY6H56U9pbx3+Rtk9E23VUCQEZ9/JHUaGc77s3ibpcKFVemlb0i/Uvj2V45aoNfY34iex4biAUsRq/FJNiqBk+xQWkJ4QY8nKVE45GlaCfZ8/c=
mqtt:
enable: false
clientId: code_client
broker: tcp://61.169.135.146:51001
username: xymp
password: xymp
photodir: /home/xymp/photos/
camera-schedule: false

@ -30,7 +30,7 @@
<!--输出日志的格式-->
<PatternLayout pattern="${LOG_PATTERN}" disableAnsi="false" noConsoleNoAnsi="false"/>
<!--控制台只输出level及其以上级别的信息onMatch其他的直接拒绝onMismatch-->
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
<ThresholdFilter level="debug" onMatch="ACCEPT" onMismatch="DENY"/>
</console>
<!--
@ -40,7 +40,7 @@
<RollingFile name="RollingFileInfo" fileName="${FILE_PATH}/${FILE_NAME}-info.log"
filePattern="${FILE_PATH}/${FILE_NAME}-INFO-%d{yyyy-MM-dd}.log">
<!--控制台只输出level及以上级别的信息onMatch其他的直接拒绝onMismatch-->
<ThresholdFilter level="info" onMatch="ACCEPT" onMismatch="DENY"/>
<ThresholdFilter level="debug" onMatch="ACCEPT" onMismatch="DENY"/>
<PatternLayout pattern="${LOG_PATTERN}"/>
<Policies>
<!--interval属性用来指定多久滚动一次默认是1 hour-->

@ -1,33 +1,25 @@
package com.shxy.xymanager_admin;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.util.StrUtil;
import cn.hutool.core.util.URLUtil;
import cn.hutool.crypto.SecureUtil;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.shxy.xymanager_common.bean.PermissionDetail;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.config.CustomRsaProperties;
import com.shxy.xymanager_common.dto.*;
import com.shxy.xymanager_common.entity.*;
import com.shxy.xymanager_common.entity.Lines;
import com.shxy.xymanager_common.entity.RequestResults;
import com.shxy.xymanager_common.entity.TerminalImgAlarmParams;
import com.shxy.xymanager_common.entity.Terminals;
import com.shxy.xymanager_common.enums.CommonStatus;
import com.shxy.xymanager_common.exception.Asserts;
import com.shxy.xymanager_common.util.*;
import com.shxy.xymanager_common.vo.UpdateTowerVo;
import com.shxy.xymanager_dao.dao.*;
import com.shxy.xymanager_service.service.CacheService;
import com.shxy.xymanager_service.service.NewCacheService;
import com.shxy.xymanager_service.service.TowerService;
import com.shxy.xymanager_service.service.UserService;
import io.swagger.models.auth.In;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import java.math.BigInteger;
import java.sql.Array;
import java.sql.Time;
import java.util.ArrayList;
import java.util.Date;
@ -37,43 +29,33 @@ import java.util.List;
@SpringBootTest
class XymanagerAdminApplicationTests {
// @Autowired
// TerminalsDao terminalsDao;
// @Autowired
// ScheduleDetailsDao scheduleDetailsDao;
// @Autowired
// SchedulesDao schedulesDao;
// @Autowired
// LinesDao linesDao;
// @Autowired
// private DyLevelDao dyLevelDao;
//
// @Autowired
// private TerminalPhotoDao terminalPhotoDao;
//
// @Autowired
// private TerminalSchedulesTempDao terminalSchedulesTempDao;
//
// @Autowired
// private TerminalScheduleDao terminalScheduleDao;
// @Autowired
// private RequestResultsDao requestResultsDao;
// @Autowired
// private TerminalImgAlarmParamsDao terminalImgAlarmParamsDao;
//
// @Autowired
// private CacheService cacheService;
//@Autowired
//View_Dy_Line_Tower_TerminalsDao view_dy_line_tower_terminalsDao;
@Autowired
TerminalsDao terminalsDao;
@Autowired
ScheduleDetailsDao scheduleDetailsDao;
@Autowired
SchedulesDao schedulesDao;
@Autowired
LinesDao linesDao;
@Autowired
private DyLevelDao dyLevelDao;
@Autowired
private TerminalPhotoDao terminalPhotoDao;
@Autowired
UserService userService;
private TerminalSchedulesTempDao terminalSchedulesTempDao;
@Autowired
private TerminalScheduleDao terminalScheduleDao;
@Autowired
NewCacheService newCacheService;
private RequestResultsDao requestResultsDao;
@Autowired
TowerDao towerDao;
private TerminalImgAlarmParamsDao terminalImgAlarmParamsDao;
@Autowired
TowerService towerService;
private CacheService cacheService;
@Test
void contextLoads() {
@ -331,189 +313,12 @@ class XymanagerAdminApplicationTests {
// Lines line = cacheService.getLine(108);
// System.out.println(line);
// ArrayList<String> list = new ArrayList<>();
// list.add("dfsaf");
// list.add("ewrqer");
// list.add("wfsakfd");
// System.out.println(list.toArray());
// Date date = MyDateUtils.date(1689846097752l);
//
// DateTime dateTime1 = MyDateUtils.offsetDay(date, -1);
// DateTime dateTime2 = MyDateUtils.offsetDay(date, -2);
// DateTime dateTime3 = MyDateUtils.offsetDay(date, -3);
// DateTime dateTime4 = MyDateUtils.offsetDay(date, -4);
// System.out.println(dateTime1.toString());
// ArrayList<String> strlist = new ArrayList<>();
// strlist.add("dsfad");
// strlist.add("dsaffad");
// strlist.add("dserefad");
// strlist.add("dsfa3432d");
// String[] array =new String[strlist.size()];
// strlist.toArray(array);
// System.out.println(array.toString());
// ArrayList<Integer> list = null;
// View_Dy_Line_Tower_TerminalsExample example = new View_Dy_Line_Tower_TerminalsExample();
// example.createCriteria().andDyIdIn(list);
// List<View_Dy_Line_Tower_Terminals> view_dy_line_tower_terminals = view_dy_line_tower_terminalsDao.selectByExample(example);
// System.out.println(view_dy_line_tower_terminals);
// View_Dy_Line_Tower_TerminalsExample example = new View_Dy_Line_Tower_TerminalsExample();
// example.setOrderByClause("d.id desc");
// View_Dy_Line_Tower_TerminalsExample.Criteria criteria = example.createCriteria();
// if (BeanUtil.isNotEmpty(dyid)) {
// criteria.andDyIdEqualTo(dyid);
// }
// if (BeanUtil.isNotEmpty(lineid)) {
// criteria.andLineIdEqualTo(lineid);
// }
// if (BeanUtil.isNotEmpty(tower)) {
// criteria.andTowerIdEqualTo(tower);
// }
// View_Dy_Line_Tower_TerminalsExample.Criteria or = example.or();
// or.andDyNameLike(search);
// View_Dy_Line_Tower_TerminalsExample.Criteria or1 = example.or();
// or1.andLineNameLike(search);
//
// List<View_Dy_Line_Tower_Terminals> view_dy_line_tower_terminals = view_dy_line_tower_terminalsDao.selectByExample(example);
// System.out.println(view_dy_line_tower_terminals);
// View_Dy_Line_Tower_TerminalsExample example = new View_Dy_Line_Tower_TerminalsExample();
// example.setOrderByClause("id desc");
// View_Dy_Line_Tower_TerminalsExample.Criteria criteria = example.createCriteria();
// if (BeanUtil.isNotEmpty(dyid)) {
// criteria.andDyIdEqualTo(dyid);
// }
// if (BeanUtil.isNotEmpty(lineid)) {
// criteria.andLineIdEqualTo(lineid);
// }
// if (BeanUtil.isNotEmpty(tower)) {
// criteria.andTowerIdEqualTo(tower);
// }
// if (StrUtil.isNotEmpty(search)) {
// criteria.andDyNameLike(search);
// }
// View_Dy_Line_Tower_TerminalsExample.Criteria or = example.or();
// if (BeanUtil.isNotEmpty(dyid)) {
// or.andDyIdEqualTo(dyid);
// }
// if (BeanUtil.isNotEmpty(lineid)) {
// or.andLineIdEqualTo(lineid);
// }
// if (BeanUtil.isNotEmpty(tower)) {
// or.andTowerIdEqualTo(tower);
// }
// if (StrUtil.isNotEmpty(search)) {
// or.andLineNameLike(search);
// }
// View_Dy_Line_Tower_TerminalsExample.Criteria toweror = example.or();
// if (BeanUtil.isNotEmpty(dyid)) {
// toweror.andDyIdEqualTo(dyid);
// }
// if (BeanUtil.isNotEmpty(lineid)) {
// toweror.andLineIdEqualTo(lineid);
// }
// if (BeanUtil.isNotEmpty(tower)) {
// toweror.andTowerIdEqualTo(tower);
// }
// if (StrUtil.isNotEmpty(search)) {
// toweror.andTowerNameLike(search);
// }
//
// List<View_Dy_Line_Tower_Terminals> view_dy_line_tower_terminals = view_dy_line_tower_terminalsDao.selectByExample(example);
// System.out.println(view_dy_line_tower_terminals);
// String[] array = new String[]{"XYIGQ10C231000009",
// "XYIGQ10C231000018",
// "XYIGQ10C231000039",
// "XYIGQ10C231000125",
// "XYIGQ10C231000132",
// "XYIGQ10C231000192",
// "XYIGQ10C231000202",
// "XYIGQ10C231000232",
// "XYIGQ10C231000240",
// "XYIGQ10C231000268",
// "XYIGQ10C231000284",
// "XYIGQ10C231000325",
// "XYIGQ10C231000357",
// "XYIGQ10C231000375",
// "XYIGQ10C231000427",
// "XYIGQ10C231000501",
// "XYIGQ10C231000502",
// "XYIGQ10C231000516",
// "XYIGQ10C231000520",
// "XYIGQ10C231000526",
// "XYIGQ10C231000543",
// "XYIGQ10C231000546",
// "XYIGQ10C231000556",
// "XYIGQ10C231000558",
// "XYIGQ10C231000561",
// "XYIGQ10C231000563",
// "XYIGQ10C231000569",
// "XYIGQ10C231000571",
// "XYIGQ10C231000576",
// "XYIGQ10C231000588",
// "XYIGQ10C231000592",
// "XYIGQ10C231000597",
// "XYIGQ10C231000601",
// "XYIGQ10C231000605",
// "XYIGQ10C231000608",
// "XYIGQ10C231000611",
// "XYIGQ10C231000613",
// "XYIGQ10C231000618",
// "XYIGQ10C231000619",
// "XYIGQ10C231000621",
// "XYIGQ10C231000627",
// "XYIGQ10C231000630",
// "XYIGQ10C231000633",
// "XYIGQ10C231000644",
// "XYIGQ10C231000647",
// "XYIGQ10C231000663",
// "XYIGQ10C231000664",
// "XYIGQ10C231000667",
// "XYIGQ10C231000668",
// "XYIGQ10C231000669",
// "XYIGQ10C231000671",
// "XYIGQ10C231000674",
// "XYIGQ10C231000675",
// "XYIGQ10C231000679",
// "XYIGQ10C231000681",
// "XYIGQ10C231000683",
// "XYIGQ10C231000689",
// "XYIGQ10C231000692",
// "XYIGQ10C231000698",
// "XYIGQ10C231000699",
// "XYYFV12XJ2403D001",
// "XYYFV12XJ2403C002"};
//
// String s = "";
// Integer towerd = 0;
// for (String item :array) {
// towerd++;
//// s+= "INSERT INTO `terminals`(id,`line_id`, `tower_id`, `cmdid`) VALUES("+towerd+",1," + towerd + ", '" + item + "');";
// s+= "INSERT INTO `terminal_channel_mapper`(`term_id`, `channel_id`) VALUES("+towerd+",1);";
// s+= "INSERT INTO `terminal_channel_mapper`(`term_id`, `channel_id`) VALUES("+towerd+",2);";
// s+= "INSERT INTO `terminal_channel_mapper`(`term_id`, `channel_id`) VALUES("+towerd+",3);";
// }
//
// System.out.println(s);
// PermissionDetail permissionDetailFull = newCacheService.getPermissionDetailOver(24);
// System.out.println(permissionDetailFull.toString());
ArrayList<String> list = new ArrayList<>();
list.add("dfsaf");
list.add("ewrqer");
list.add("wfsakfd");
System.out.println(list.toArray());
UpdateTowerVo towers = new UpdateTowerVo();
towers.setId(2);
towers.setName("ceshsish");
towers.setLineId(108);
towers.setOrder(1);
towers.setAddress("838837");
ServiceBody<String> serviceBody = towerService.updateTower(towers);
System.out.println(serviceBody);
}
}

@ -15,20 +15,10 @@
</properties>
<dependencies>
<!-- SpringBoot Web容器 -->
<!-- SpringWeb模块 -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
</dependency>
<!-- Spring框架基本的核心工具 -->
@ -43,29 +33,6 @@
<artifactId>javax.servlet-api</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
<exclusions>
<!-- 排除 Lettuce -->
<exclusion>
<groupId>io.lettuce</groupId>
<artifactId>lettuce-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- 添加 Jedis -->
<dependency>
<groupId>redis.clients</groupId>
<artifactId>jedis</artifactId>
<version>3.6.3</version> <!-- 可选,建议与 Spring Boot 2.x 兼容的最新版本 -->
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
<!--lombok-->
<dependency>
<groupId>org.projectlombok</groupId>
@ -84,6 +51,12 @@
<artifactId>knife4j-spring-boot-starter</artifactId>
</dependency>
<!-- <dependency>-->
<!-- <groupId>eu.bitwalker</groupId>-->
<!-- <artifactId>UserAgentUtils</artifactId>-->
<!-- <version>1.21</version>-->
<!-- </dependency>-->
<!--指定swagger-models版本解决报错-->
<dependency>
<groupId>io.swagger</groupId>
@ -101,11 +74,6 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-log4j2</artifactId>
</dependency>
<!--用于解决tomcat中log4j2-->
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-web</artifactId>
</dependency>
<!-- 阿里JSON解析器 -->
@ -126,16 +94,6 @@
<version>1.11</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.5.14</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
</dependency>
<!-- 文件上传工具类 -->
@ -153,16 +111,6 @@
<dependency>
<groupId>com.github.pagehelper</groupId>
<artifactId>pagehelper-spring-boot-starter</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-logging</artifactId>
</exclusion>
<exclusion>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</exclusion>
</exclusions>
</dependency>
<!--JNA:调用本地dll-->
@ -175,42 +123,31 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<!-- &lt;!&ndash;shiro&ndash;&gt;-->
<!-- <dependency>-->
<!-- <groupId>org.apache.shiro</groupId>-->
<!-- <artifactId>shiro-spring-boot-starter</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>easyexcel</artifactId>
</dependency>
<dependency>
<groupId>com.aliyun</groupId>
<artifactId>alibaba-dingtalk-service-sdk</artifactId>
<version>2.0.0</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId> <!-- or jjwt-gson if Gson is preferred -->
</dependency>
<dependency>
<groupId>com.github.penggle</groupId>
<artifactId>kaptcha</artifactId>
<version>2.3.2</version>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.springframework.boot</groupId>-->
<!-- <artifactId>spring-boot-starter-security</artifactId>-->
<!-- </dependency>-->
<dependency>
<groupId>io.sigpipe</groupId>
<artifactId>jbsdiff</artifactId>
<version>1.0</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
</plugins>
</build>
</project>

@ -20,26 +20,6 @@ import java.util.List;
*/
public class BaseController {
protected Integer initPageNum(Integer pageNum) {
if (pageNum == null) {
pageNum = 1;
}
if (pageNum < 0) {
pageNum = 1;
}
return pageNum;
}
protected Integer initPageSize(Integer pageSize) {
if (pageSize == null) {
pageSize = 10;
}
if (pageSize < 1) {
pageSize = 1;
}
return pageSize;
}
/**
* Date
*/
@ -94,14 +74,13 @@ public class BaseController {
/**
*
*/
public static TableDataInfo getDataTable(List<?> list) {
@SuppressWarnings({"rawtypes", "unchecked"})
protected TableDataInfo getDataTable(List<?> list) {
TableDataInfo rspData = new TableDataInfo();
PageInfo pageInfo = new PageInfo(list);
rspData.setList(list);
rspData.setTotal(pageInfo.getTotal());
rspData.setTotalpage(pageInfo.getPages());
rspData.setPagesize(pageInfo.getPageSize());
rspData.setCurrentpage(pageInfo.getPageNum());
rspData.setCode(HttpStatus.HTTP_OK);
rspData.setMsg("查询成功");
rspData.setRows(list);
rspData.setTotal(new PageInfo(list).getTotal());
return rspData;
}
@ -112,4 +91,31 @@ public class BaseController {
return StringUtils.format("redirect:{}", url);
}
// /**
// * 获取用户缓存信息
// */
// public LoginUser getLoginUser() {
// return SecurityUtils.getLoginUser();
// }
//
// /**
// * 获取登录用户id
// */
// public Long getUserId() {
// return getLoginUser().getUserId();
// }
//
// /**
// * 获取登录部门id
// */
// public Long getDeptId() {
// return getLoginUser().getDeptId();
// }
//
// /**
// * 获取登录用户名
// */
// public String getUsername() {
// return getLoginUser().getUsername();
// }
}

@ -26,8 +26,6 @@ public class ResponseReult<T> implements Serializable {
@ApiModelProperty(value = "返回描述", name = "返回描述")
private String msg;
public T getData() {
return data;
}
@ -81,21 +79,16 @@ public class ResponseReult<T> implements Serializable {
return response;
}
/**
*
*
*
* @param message
* @return
*/
public static <T> ResponseReult<T> fail(String message) {
return ResponseReult.error(HttpStatus.HTTP_BAD_REQUEST, message);
}
public static <T> ResponseReult<T> fail(int code, String msg) {
ResponseReult<T> response = new ResponseReult<>();
response.setCode(code, msg);
public static <T> ResponseReult<T> error() {
ResponseReult<T> response = ResponseReult.error(HttpStatus.HTTP_INTERNAL_ERROR, "操作失败");
return response;
}
/**
*
*

@ -19,7 +19,7 @@ public class MultipartConfig {
String os = System.getProperty("os.name");
// 兼容windows
if(os.toLowerCase().startsWith("win")){
fileTempDir = fileTempDir;
fileTempDir = "C:" + fileTempDir;
}
log.info("fileTempDir:{}", fileTempDir);
MultipartConfigFactory factory = new MultipartConfigFactory();

@ -1,62 +0,0 @@
package com.shxy.xymanager_common.bean;
import com.shxy.xymanager_common.enums.CommonStatus;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
/**
*
*
* @author jingjing
*/
@Data
public class PermissionDetail implements Serializable {
private List<Integer> dypList = new ArrayList<>();
private List<Integer> linepList = new ArrayList<>();
private List<Integer> towerpList = new ArrayList<>();
private List<Integer> termpList = new ArrayList<>();
private Integer isSuper = CommonStatus.DELETE.value();
private Integer uid;
public boolean hasDyId(Integer id) {
if (dypList.contains(id)) {
return true;
} else {
return false;
}
}
public boolean hasLineId(Integer id) {
if (linepList.contains(id)) {
return true;
} else {
return false;
}
}
public boolean hasTowerId(Integer id) {
if (towerpList.contains(id)) {
return true;
} else {
return false;
}
}
public boolean hasTermId(Integer id) {
if (termpList.contains(id)) {
return true;
} else {
return false;
}
}
}

@ -1,6 +1,5 @@
package com.shxy.xymanager_common.bean;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.io.Serializable;
@ -10,7 +9,6 @@ import java.io.Serializable;
*
* @author
*/
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class SysOperLog implements Serializable {
private static final long serialVersionUID = 1L;

@ -43,22 +43,19 @@ public class SysUser {
@ApiModelProperty(value="创建时间", name="createTime")
private Date createTime;
/**
*
*/
private String password;
/**
* 0 1
*/
private String status;
/**
*
*/
@ApiModelProperty(value="角色名称", name="rolename")
private String roleName;
public SysUser() {
}
@ApiModelProperty(value="权限信息")
PermissionDetail permission;
}

@ -1,38 +0,0 @@
package com.shxy.xymanager_common.config;
import com.google.code.kaptcha.Constants;
import com.google.code.kaptcha.impl.DefaultKaptcha;
import com.google.code.kaptcha.util.Config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.Properties;
@Configuration
public class CaptchaConfig {
@Bean(name = "captchaProducer")
public DefaultKaptcha getKaptchaBean() {
DefaultKaptcha defaultKaptcha = new DefaultKaptcha();
Properties properties = new Properties();
properties.setProperty(Constants.KAPTCHA_TEXTPRODUCER_FONT_NAMES, "Arial, Helvetica");
properties.setProperty(Constants.KAPTCHA_BORDER, "no");
properties.setProperty(Constants.KAPTCHA_BORDER_COLOR, "0,0,0");
properties.setProperty("kaptcha.textproducer.font.color", "36,114,180");
properties.setProperty("kaptcha.textproducer.font.size", "40");
properties.setProperty("kaptcha.image.width", "160");
properties.setProperty("kaptcha.obscurificator.impl", "com.google.code.kaptcha.impl.WaterRipple");
properties.setProperty("kaptcha.textproducer.char.length", "4");
properties.setProperty("kaptcha.textproducer.char.string", "zxcvbnmasdfghjkqwertyupZXCVBNMASDFGHJKLQWERTYUP23456789");
properties.setProperty("kaptcha.word.impl", "com.google.code.kaptcha.text.impl.DefaultWordRenderer");
properties.setProperty("kaptcha.textproducer.impl", "com.google.code.kaptcha.text.impl.DefaultTextCreator");
properties.setProperty("kaptcha.background.clear.from", "255,255,255");
properties.setProperty("kaptcha.background.clear.to", "255,255,255");
properties.setProperty("kaptcha.noise.impl", "com.google.code.kaptcha.impl.NoNoise");
Config config = new Config(properties);
defaultKaptcha.setConfig(config);
return defaultKaptcha;
}
}

@ -1,92 +0,0 @@
package com.shxy.xymanager_common.config;
import com.fasterxml.jackson.core.StreamReadConstraints;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.google.common.collect.Lists;
import com.google.common.collect.Sets;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Configuration;
import javax.annotation.PostConstruct;
import java.util.List;
import java.util.Set;
@Configuration
@Data
@Slf4j
public class SecurityConfig {
private String jwtPwd = "x11d11ddf@!dddd12efwefwefwd1111ff1111qefeffeefffdfdfdfa1d";
private String jwtHeader = "Authorization";
private String jwtPrefix = "Bearer";
// default 7 days
private Integer jwtExpiration = 7 * 24 * 60 * 60;
private List<String> urlWhiteList = Lists.newArrayList();
/**
*
*/
private Boolean enable = true;
/**
*
*/
private String defaultPwd = "Aa12345678";
/**
*
*/
private String staticResource = ".jpg,.jpeg,.js,.css,.png,.bmp,.gif,.ico,.mp3,.mp4,.svg";
private Set<String> resourceSuffix = Sets.newHashSet();
private List<String> swagger = Lists.newArrayList("/swagger**", "/webjars/**",
"/v2/api-docs/**", "/v3/api-docs/**", "/swagger-resources/**");
@PostConstruct
private void init() {
if (StringUtils.isNotBlank(staticResource)) {
this.resourceSuffix = Sets.newHashSet(staticResource.split(","));
}
urlWhiteList.addAll(swagger);
urlWhiteList.add("/api/login");
urlWhiteList.add("/xymanager/login");
urlWhiteList.add("/login");
urlWhiteList.add("/xymanager/doc.html");
urlWhiteList.add("/xymanager/swagger-ui.html");
urlWhiteList.add("/xymanager/swagger-resources/**");
urlWhiteList.add("/xymanager/*/api-docs");
urlWhiteList.add("/xymanager/websocket/**");
urlWhiteList.add("/test/**");
urlWhiteList.add("/error");
urlWhiteList.add("/xymanager/getPhotoListForOpen");
urlWhiteList.add("/xymanager/ctrlCmaDeviceCapture");
urlWhiteList.add("/xymanager/cmaDeviceStatus");
urlWhiteList.add("/xymanager/cmaUserLogin");
urlWhiteList.add("/xymanager/leadpulls/export");
urlWhiteList.add("/xymanager/weather/export");
urlWhiteList.add("/xymanager/upload/upload**");
urlWhiteList.add("/xymanager/henan/**");
urlWhiteList.add("/xymanager/kaptcha");
urlWhiteList.add("/xymanager/test/**");
urlWhiteList.add("/xymanager/mntn/**");
urlWhiteList.add("/xymanager/uploadPhoto");
urlWhiteList.add("/xymanager/uploadPatch");
StreamReadConstraints streamReadConstraints = StreamReadConstraints
.builder()
.maxStringLength(200000000)
.build();
objectMapper.getFactory().setStreamReadConstraints(streamReadConstraints);
}
@Autowired
private ObjectMapper objectMapper;
}

@ -5,17 +5,16 @@ import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
import javax.annotation.PostConstruct;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.atomic.AtomicInteger;
/**
*
*
* @author jingjing
* @author xzg
*/
@Component
public class Constants {
public class Constants
{
@Value("${cma.server}")
public String cmServer;
@ -23,15 +22,11 @@ public class Constants {
@Value("${cma.port}")
public int cmaPort;
public static String server;
private static String server;
public static int port;
private static int port;
public static String CMD = "";
public static String newCMD = "";
public static String shpath = "/usr/local/bin/xympadmn";
public static String serverpath = "";
public static String portpath = "";
@PostConstruct
@ -39,12 +34,11 @@ public class Constants {
server = cmServer;
port = cmaPort;
CMD = "/usr/local/bin/xympadmn --server="+server+" --port="+port+" --act=";
newCMD = "/usr/local/bin/xympadmn --server=" + server + " --port=" + port;
serverpath = "--server=" + server;
portpath = "--port=" + port;
}
/**
* UTF-8
*/
@ -201,28 +195,5 @@ public class Constants {
*/
public static AtomicInteger REQUEST_ID = new AtomicInteger((int) (System.currentTimeMillis()/1000 - 1672502400)); // Based On 2023-01-01 00:00:00
/**
*
*/
public static int SUPER_ADMIN = 0;
public static String SUPER_ADMIN_NAME = "超级管理员";
/**
* Sim
*/
public static final Integer NetType_Dahan = 1;
public static final Integer NetType_Rabchaser = 2;
public static final Integer NetType_M2M10086 = 3;
public static final Integer NetType_LWWLKJ = 4;
public static ConcurrentHashMap<Integer, Integer> scheduleRequestMap = new ConcurrentHashMap<>();
public static HashMap<Integer, String> scheduleRequestDoneMap = new HashMap<>();
/**
* mqtt
*/
public static String TopicPrefix = "/v1/devices/";
public static String DataSuffix = "/datas";
public static String RespSuffix = "/commandResponse";
public static String CmdSuffix = "/command";
}

@ -0,0 +1,18 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.util.List;
@Data
public class DyLineAndTerminalWithHeartDto {
private Integer id;
private String name;
private Integer dyValue;
private List<LineAndTerminalWithHeartDto> list;
}

@ -0,0 +1,27 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
@Data
public class DyLineAndTowertDto {
private Integer dyId;
private String dyName;
private Integer dyValue;
private Integer lineId;
private String lineName;
private String bsManufacturer;
private Integer dyLevelId;
private Integer towerId;
private String towerName;
}

@ -1,21 +0,0 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
@Data
public class GroupAlarmType implements Serializable {
private BigInteger num;
private Integer label;
private String name;
private String enname;
private static final long serialVersionUID = 1L;
}

@ -1,16 +0,0 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.List;
@Data
public class LastPicTimeDto implements Serializable {
private BigInteger photoTime;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,23 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
/**
* 线
*/
@Data
public class LineAndDyNameDto {
private Integer id;
private String name;
private String bsManufacturer;
private Integer dyLevelId;
private String dyLevelName;
private Integer status;
}

@ -0,0 +1,20 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.util.List;
@Data
public class LineAndTerminalWithHeartDto {
private Integer id;
private String name;
private String bsManufacturer;
private Integer dyLevel;
private List<TerminalsWithHeart> list;
}

@ -0,0 +1,28 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.util.List;
@Data
public class PhotoMarkDto {
private Integer markId;
private Integer termId;
private Integer channelId;
private Integer width;
private Integer height;
private String color;
private String path;
private Short boderWidth;
private List<TermChannelCoordinateDto> list;
}

@ -1,70 +1,23 @@
package com.shxy.xymanager_common.dto;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.shxy.xymanager_common.util.DateUtil;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Calendar;
import java.sql.Time;
import java.util.Date;
import java.util.List;
@JsonInclude(JsonInclude.Include.NON_NULL)
@Data
public class ScheduleDetailsDto implements Serializable {
private Integer id;
private Integer scheduleId;
private Integer hour;
private Integer minute;
private Integer preset;
private String day;
private Integer before = 0;
private Integer delay = 0;
private static final long serialVersionUID = 1L;
List<Date> timeList = new ArrayList<>();
public void initMinute(int min) {
hour = min / 60;
minute = min - hour * 60;
if (hour >= 24) {
hour = hour - 24;
}
}
public int calMinute() {
return hour * 60 + minute;
}
public boolean match(String day, int min) {
if (day.equals(this.day)) {
int cal = this.calMinute();
if (cal >= min) {
if (cal - min <= before) {
return true;
} else {
return false;
}
} else {
if (min - cal <= delay) {
return true;
} else {
return false;
}
}
} else {
return false;
}
}
public boolean isWrong() {
if (timeList.size() == 1) {
return false;
} else {
return true;
}
}
}

@ -18,8 +18,6 @@ public class TermChannelAndMapperDto {
private String alias;
private Integer type;
private Integer status;
private Integer maxResolutionWidth;

@ -8,6 +8,7 @@ import lombok.Data;
@Data
public class TermChannelCoordinateDto {
private float x1;
private float x2;
@ -16,4 +17,5 @@ public class TermChannelCoordinateDto {
private float y1;
}

@ -1,15 +1,16 @@
package com.shxy.xymanager_common.entity;
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.io.Serializable;
@Data
public class Protocols implements Serializable {
private Integer id;
public class TerminalApkInfoDto implements Serializable {
private String name;
private String path;
private String version;
private static final long serialVersionUID = 1L;

@ -1,59 +0,0 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
@Data
public class TerminalImgAlarmsAndPhotoDto implements Serializable {
private BigInteger id;
private Integer termId;
private Integer channelId;
private Integer presetId;
private BigInteger photoOrgId;
private BigInteger alarmTime;
private Integer label;
private String name;
private String enname;
private Float prob;
private Float x;
private Float y;
private Float width;
private Float height;
private Integer isread;
private Integer mediaType;
private Integer photowidth;
private Integer photoheight;
private Integer fileSize;
private BigInteger photoTime;
private BigInteger recvTime;
private String path;
private String thumb;
private static final long serialVersionUID = 1L;
}

@ -1,25 +0,0 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class TerminalsAndPositionDto implements Serializable {
private Integer id;
private Integer towerId;
private String cmdId;
private Double latitude;
private Double longitude;
private Integer radius;
private static final long serialVersionUID = 1L;
}

@ -8,34 +8,48 @@ import java.util.Date;
import java.util.List;
@Data
public class TerminalsAndStatusAndLastPicDto implements Serializable {
public class TerminalsAndStatusDto implements Serializable {
private Integer id;
private Integer towerId;
private Integer lineid;
private String cmdId;
private Integer towerid;
private String cmdid;
private Short orgId;
private String equipName;
private String displayName;
private Integer status;
private String model;
private Integer signalStrength4g;
private String essentialInfoVersion;
private BigInteger bootTime;
private Byte hasPan;
private float batteryCapacity;
private String bsManufacturer;
private float batteryVoltage;
private Date bsProductionDate;
private BigInteger lastHeartbeat;
private String bsIdentifier;
private Double latitude;
private Double longitude;
private Integer radius;
private Integer status;
private List<LastPicTimeDto> list;
private Short signalStrength4g;
private BigInteger bootTime;
private float batteryCapacity;
private float batteryVoltage;
private BigInteger lastHeartbeat;
private static final long serialVersionUID = 1L;

@ -0,0 +1,51 @@
package com.shxy.xymanager_common.dto;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
import java.util.Date;
@Data
public class TerminalsWithHeart implements Serializable {
private Integer id;
private Integer lineid;
private Integer towerid;
private String name;
private String cmdid;
private Short orgId;
private String equipname;
private String displayname;
private String model;
private String essentialInfoVersion;
private Byte hasPan;
private String bsManufacturer;
private Date bsProductionDate;
private String bsIdentifier;
private Double latitude;
private Double longitude;
private Date createTime;
private Date updateTime;
private BigInteger lastheartbeat;
private static final long serialVersionUID = 1L;
}

@ -14,8 +14,6 @@ public class TowerDto implements Serializable {
private String lineName;
private String address;
private Integer order;
private Integer status;

@ -1,183 +0,0 @@
package com.shxy.xymanager_common.entity;
import com.shxy.xymanager_common.dto.ScheduleDetailsDto;
import java.util.List;
public class CameraSchedule {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column camera_schedule.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column camera_schedule.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column camera_schedule.channel_id
*
* @mbg.generated
*/
private Integer channelId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column camera_schedule.protocol
*
* @mbg.generated
*/
private Integer protocol;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column camera_schedule.data
*
* @mbg.generated
*/
private String data;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column camera_schedule.id
*
* @return the value of camera_schedule.id
*
* @mbg.generated
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column camera_schedule.id
*
* @param id the value for camera_schedule.id
*
* @mbg.generated
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column camera_schedule.term_id
*
* @return the value of camera_schedule.term_id
*
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column camera_schedule.term_id
*
* @param termId the value for camera_schedule.term_id
*
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column camera_schedule.channel_id
*
* @return the value of camera_schedule.channel_id
*
* @mbg.generated
*/
public Integer getChannelId() {
return channelId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column camera_schedule.channel_id
*
* @param channelId the value for camera_schedule.channel_id
*
* @mbg.generated
*/
public void setChannelId(Integer channelId) {
this.channelId = channelId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column camera_schedule.protocol
*
* @return the value of camera_schedule.protocol
*
* @mbg.generated
*/
public Integer getProtocol() {
return protocol;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column camera_schedule.protocol
*
* @param protocol the value for camera_schedule.protocol
*
* @mbg.generated
*/
public void setProtocol(Integer protocol) {
this.protocol = protocol;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column camera_schedule.data
*
* @return the value of camera_schedule.data
*
* @mbg.generated
*/
public String getData() {
return data;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column camera_schedule.data
*
* @param data the value for camera_schedule.data
*
* @mbg.generated
*/
public void setData(String data) {
this.data = data;
}
private List<ScheduleDetailsDto> list;
public List<ScheduleDetailsDto> getList() {
return list;
}
public void setList(List<ScheduleDetailsDto> list) {
this.list = list;
}
}

@ -1,541 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class CameraScheduleExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table camera_schedule
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table camera_schedule
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table camera_schedule
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public CameraScheduleExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table camera_schedule
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andChannelIdIsNull() {
addCriterion("channel_id is null");
return (Criteria) this;
}
public Criteria andChannelIdIsNotNull() {
addCriterion("channel_id is not null");
return (Criteria) this;
}
public Criteria andChannelIdEqualTo(Integer value) {
addCriterion("channel_id =", value, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdNotEqualTo(Integer value) {
addCriterion("channel_id <>", value, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdGreaterThan(Integer value) {
addCriterion("channel_id >", value, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdGreaterThanOrEqualTo(Integer value) {
addCriterion("channel_id >=", value, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdLessThan(Integer value) {
addCriterion("channel_id <", value, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdLessThanOrEqualTo(Integer value) {
addCriterion("channel_id <=", value, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdIn(List<Integer> values) {
addCriterion("channel_id in", values, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdNotIn(List<Integer> values) {
addCriterion("channel_id not in", values, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdBetween(Integer value1, Integer value2) {
addCriterion("channel_id between", value1, value2, "channelId");
return (Criteria) this;
}
public Criteria andChannelIdNotBetween(Integer value1, Integer value2) {
addCriterion("channel_id not between", value1, value2, "channelId");
return (Criteria) this;
}
public Criteria andProtocolIsNull() {
addCriterion("protocol is null");
return (Criteria) this;
}
public Criteria andProtocolIsNotNull() {
addCriterion("protocol is not null");
return (Criteria) this;
}
public Criteria andProtocolEqualTo(Integer value) {
addCriterion("protocol =", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotEqualTo(Integer value) {
addCriterion("protocol <>", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolGreaterThan(Integer value) {
addCriterion("protocol >", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolGreaterThanOrEqualTo(Integer value) {
addCriterion("protocol >=", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolLessThan(Integer value) {
addCriterion("protocol <", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolLessThanOrEqualTo(Integer value) {
addCriterion("protocol <=", value, "protocol");
return (Criteria) this;
}
public Criteria andProtocolIn(List<Integer> values) {
addCriterion("protocol in", values, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotIn(List<Integer> values) {
addCriterion("protocol not in", values, "protocol");
return (Criteria) this;
}
public Criteria andProtocolBetween(Integer value1, Integer value2) {
addCriterion("protocol between", value1, value2, "protocol");
return (Criteria) this;
}
public Criteria andProtocolNotBetween(Integer value1, Integer value2) {
addCriterion("protocol not between", value1, value2, "protocol");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table camera_schedule
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table camera_schedule
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,20 +0,0 @@
package com.shxy.xymanager_common.entity;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
@Data
public class DevType implements Serializable {
private Integer id;
private String name;
private Date createTime;
private Date updateTime;
private static final long serialVersionUID = 1L;
}

@ -1,451 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DevTypeExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DevTypeExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,62 +1,24 @@
package com.shxy.xymanager_common.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Data
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "电压", description = "电压")
public class DyLevel implements Serializable {
@ApiModelProperty(value = "电压编号", example = "123456")
private Integer id;
@ApiModelProperty(value = "电压名称", example = "AAAA")
private String name;
@ApiModelProperty(value = "电压大小", example = "AAAA")
private Integer dyValue;
@ApiModelProperty(value = "电压状态", example = "AAAA")
private Integer status;
private Date createTime;
private Date updateTime;
@ApiModelProperty(value = "线路列表", example = "[]")
public List<Lines> list = new ArrayList<>();
private boolean checked;
public void setCheck(boolean check) {
checked = check;
if (checked) {
for (Lines item : list) {
item.setCheck(checked);
}
}
}
public boolean checkInclude() {
if (checked) {
return true;
} else {
for (Lines item : list) {
if (item.checkInclude()) {
return true;
}
}
return false;
}
}
private static final long serialVersionUID = 1L;
}

@ -1,571 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class DyLevelExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public DyLevelExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andDyValueIsNull() {
addCriterion("dy_value is null");
return (Criteria) this;
}
public Criteria andDyValueIsNotNull() {
addCriterion("dy_value is not null");
return (Criteria) this;
}
public Criteria andDyValueEqualTo(Integer value) {
addCriterion("dy_value =", value, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueNotEqualTo(Integer value) {
addCriterion("dy_value <>", value, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueGreaterThan(Integer value) {
addCriterion("dy_value >", value, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueGreaterThanOrEqualTo(Integer value) {
addCriterion("dy_value >=", value, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueLessThan(Integer value) {
addCriterion("dy_value <", value, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueLessThanOrEqualTo(Integer value) {
addCriterion("dy_value <=", value, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueIn(List<Integer> values) {
addCriterion("dy_value in", values, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueNotIn(List<Integer> values) {
addCriterion("dy_value not in", values, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueBetween(Integer value1, Integer value2) {
addCriterion("dy_value between", value1, value2, "dyValue");
return (Criteria) this;
}
public Criteria andDyValueNotBetween(Integer value1, Integer value2) {
addCriterion("dy_value not between", value1, value2, "dyValue");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,75 +1,21 @@
package com.shxy.xymanager_common.entity;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
@Data
@ApiModel(value = "线路", description = "线路")
public class Lines implements Serializable {
private Integer onlinenum;
private Integer totalnum;
@ApiModelProperty(value = "线路编号", example = "123456")
private Integer id;
@ApiModelProperty(value = "线路名称", example = "AAAA")
private String name;
@ApiModelProperty(value = "单位", example = "123456")
private String bsManufacturer;
private Integer dyLevelId;
@ApiModelProperty(value = "线路状态", example = "AAAA")
private Integer status;
private Date createTime;
private Date updateTime;
private String photoCount;
private String photoRate;
@ApiModelProperty(value = "电压等级名称", example = "123456")
private String dyLevelName;
@ApiModelProperty(value = "杆塔信息", example = "123456")
private List<Towers> list = new ArrayList<>();
private boolean checked;
public void setCheck(boolean check) {
checked = check;
if (checked) {
for (Towers item : list) {
item.setCheck(checked);
}
}
}
public boolean checkInclude() {
if (checked) {
return true;
} else {
for (Towers item : list) {
if (item.checkInclude()) {
return true;
}
}
return false;
}
}
private static final long serialVersionUID = 1L;
}

@ -1,701 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class LinesExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public LinesExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("name is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("name is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("name =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("name <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("name >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("name >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("name <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("name <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("name like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("name not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("name in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("name not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("name between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("name not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andBsManufacturerIsNull() {
addCriterion("bs_manufacturer is null");
return (Criteria) this;
}
public Criteria andBsManufacturerIsNotNull() {
addCriterion("bs_manufacturer is not null");
return (Criteria) this;
}
public Criteria andBsManufacturerEqualTo(String value) {
addCriterion("bs_manufacturer =", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerNotEqualTo(String value) {
addCriterion("bs_manufacturer <>", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerGreaterThan(String value) {
addCriterion("bs_manufacturer >", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerGreaterThanOrEqualTo(String value) {
addCriterion("bs_manufacturer >=", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerLessThan(String value) {
addCriterion("bs_manufacturer <", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerLessThanOrEqualTo(String value) {
addCriterion("bs_manufacturer <=", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerLike(String value) {
addCriterion("bs_manufacturer like", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerNotLike(String value) {
addCriterion("bs_manufacturer not like", value, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerIn(List<String> values) {
addCriterion("bs_manufacturer in", values, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerNotIn(List<String> values) {
addCriterion("bs_manufacturer not in", values, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerBetween(String value1, String value2) {
addCriterion("bs_manufacturer between", value1, value2, "bsManufacturer");
return (Criteria) this;
}
public Criteria andBsManufacturerNotBetween(String value1, String value2) {
addCriterion("bs_manufacturer not between", value1, value2, "bsManufacturer");
return (Criteria) this;
}
public Criteria andDyLevelIdIsNull() {
addCriterion("dy_level_id is null");
return (Criteria) this;
}
public Criteria andDyLevelIdIsNotNull() {
addCriterion("dy_level_id is not null");
return (Criteria) this;
}
public Criteria andDyLevelIdEqualTo(Integer value) {
addCriterion("dy_level_id =", value, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdNotEqualTo(Integer value) {
addCriterion("dy_level_id <>", value, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdGreaterThan(Integer value) {
addCriterion("dy_level_id >", value, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdGreaterThanOrEqualTo(Integer value) {
addCriterion("dy_level_id >=", value, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdLessThan(Integer value) {
addCriterion("dy_level_id <", value, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdLessThanOrEqualTo(Integer value) {
addCriterion("dy_level_id <=", value, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdIn(List<Integer> values) {
addCriterion("dy_level_id in", values, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdNotIn(List<Integer> values) {
addCriterion("dy_level_id not in", values, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdBetween(Integer value1, Integer value2) {
addCriterion("dy_level_id between", value1, value2, "dyLevelId");
return (Criteria) this;
}
public Criteria andDyLevelIdNotBetween(Integer value1, Integer value2) {
addCriterion("dy_level_id not between", value1, value2, "dyLevelId");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("status is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("status is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("status =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("status <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("status >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("status >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("status <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("status <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("status in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("status not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("status between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("status not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andTesIsNull() {
addCriterion("tes is null");
return (Criteria) this;
}
public Criteria andTesIsNotNull() {
addCriterion("tes is not null");
return (Criteria) this;
}
public Criteria andTesEqualTo(Float value) {
addCriterion("tes =", value, "tes");
return (Criteria) this;
}
public Criteria andTesNotEqualTo(Float value) {
addCriterion("tes <>", value, "tes");
return (Criteria) this;
}
public Criteria andTesGreaterThan(Float value) {
addCriterion("tes >", value, "tes");
return (Criteria) this;
}
public Criteria andTesGreaterThanOrEqualTo(Float value) {
addCriterion("tes >=", value, "tes");
return (Criteria) this;
}
public Criteria andTesLessThan(Float value) {
addCriterion("tes <", value, "tes");
return (Criteria) this;
}
public Criteria andTesLessThanOrEqualTo(Float value) {
addCriterion("tes <=", value, "tes");
return (Criteria) this;
}
public Criteria andTesIn(List<Float> values) {
addCriterion("tes in", values, "tes");
return (Criteria) this;
}
public Criteria andTesNotIn(List<Float> values) {
addCriterion("tes not in", values, "tes");
return (Criteria) this;
}
public Criteria andTesBetween(Float value1, Float value2) {
addCriterion("tes between", value1, value2, "tes");
return (Criteria) this;
}
public Criteria andTesNotBetween(Float value1, Float value2) {
addCriterion("tes not between", value1, value2, "tes");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,247 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.Date;
import java.util.List;
public class MntnActivities {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.id
*
* @mbg.generated
*/
private Integer id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.title
*
* @mbg.generated
*/
private String title;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.term_count
*
* @mbg.generated
*/
private Integer termCount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.lost_count
*
* @mbg.generated
*/
private Integer lostCount;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.status
*
* @mbg.generated
*/
private Byte status;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activities.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.id
*
* @return the value of mntn_activities.id
*
* @mbg.generated
*/
public Integer getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.id
*
* @param id the value for mntn_activities.id
*
* @mbg.generated
*/
public void setId(Integer id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.title
*
* @return the value of mntn_activities.title
*
* @mbg.generated
*/
public String getTitle() {
return title;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.title
*
* @param title the value for mntn_activities.title
*
* @mbg.generated
*/
public void setTitle(String title) {
this.title = title;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.term_count
*
* @return the value of mntn_activities.term_count
*
* @mbg.generated
*/
public Integer getTermCount() {
return termCount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.term_count
*
* @param termCount the value for mntn_activities.term_count
*
* @mbg.generated
*/
public void setTermCount(Integer termCount) {
this.termCount = termCount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.lost_count
*
* @return the value of mntn_activities.lost_count
*
* @mbg.generated
*/
public Integer getLostCount() {
return lostCount;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.lost_count
*
* @param lostCount the value for mntn_activities.lost_count
*
* @mbg.generated
*/
public void setLostCount(Integer lostCount) {
this.lostCount = lostCount;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.status
*
* @return the value of mntn_activities.status
*
* @mbg.generated
*/
public Byte getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.status
*
* @param status the value for mntn_activities.status
*
* @mbg.generated
*/
public void setStatus(Byte status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.create_time
*
* @return the value of mntn_activities.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.create_time
*
* @param createTime the value for mntn_activities.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activities.update_time
*
* @return the value of mntn_activities.update_time
*
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activities.update_time
*
* @param updateTime the value for mntn_activities.update_time
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
private List<Terminals> terms;
public List<Terminals> getTerms() {
return terms;
}
public void setTerms(List<Terminals> terms) {
this.terms = terms;
}
}

@ -1,732 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class MntnActivitiesExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_activities
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_activities
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_activities
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public MntnActivitiesExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_activities
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Integer value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Integer value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Integer value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Integer value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Integer value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Integer value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Integer> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Integer> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Integer value1, Integer value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Integer value1, Integer value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTitleIsNull() {
addCriterion("title is null");
return (Criteria) this;
}
public Criteria andTitleIsNotNull() {
addCriterion("title is not null");
return (Criteria) this;
}
public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title");
return (Criteria) this;
}
public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title");
return (Criteria) this;
}
public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title");
return (Criteria) this;
}
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTermCountIsNull() {
addCriterion("term_count is null");
return (Criteria) this;
}
public Criteria andTermCountIsNotNull() {
addCriterion("term_count is not null");
return (Criteria) this;
}
public Criteria andTermCountEqualTo(Integer value) {
addCriterion("term_count =", value, "termCount");
return (Criteria) this;
}
public Criteria andTermCountNotEqualTo(Integer value) {
addCriterion("term_count <>", value, "termCount");
return (Criteria) this;
}
public Criteria andTermCountGreaterThan(Integer value) {
addCriterion("term_count >", value, "termCount");
return (Criteria) this;
}
public Criteria andTermCountGreaterThanOrEqualTo(Integer value) {
addCriterion("term_count >=", value, "termCount");
return (Criteria) this;
}
public Criteria andTermCountLessThan(Integer value) {
addCriterion("term_count <", value, "termCount");
return (Criteria) this;
}
public Criteria andTermCountLessThanOrEqualTo(Integer value) {
addCriterion("term_count <=", value, "termCount");
return (Criteria) this;
}
public Criteria andTermCountIn(List<Integer> values) {
addCriterion("term_count in", values, "termCount");
return (Criteria) this;
}
public Criteria andTermCountNotIn(List<Integer> values) {
addCriterion("term_count not in", values, "termCount");
return (Criteria) this;
}
public Criteria andTermCountBetween(Integer value1, Integer value2) {
addCriterion("term_count between", value1, value2, "termCount");
return (Criteria) this;
}
public Criteria andTermCountNotBetween(Integer value1, Integer value2) {
addCriterion("term_count not between", value1, value2, "termCount");
return (Criteria) this;
}
public Criteria andLostCountIsNull() {
addCriterion("lost_count is null");
return (Criteria) this;
}
public Criteria andLostCountIsNotNull() {
addCriterion("lost_count is not null");
return (Criteria) this;
}
public Criteria andLostCountEqualTo(Integer value) {
addCriterion("lost_count =", value, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountNotEqualTo(Integer value) {
addCriterion("lost_count <>", value, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountGreaterThan(Integer value) {
addCriterion("lost_count >", value, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountGreaterThanOrEqualTo(Integer value) {
addCriterion("lost_count >=", value, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountLessThan(Integer value) {
addCriterion("lost_count <", value, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountLessThanOrEqualTo(Integer value) {
addCriterion("lost_count <=", value, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountIn(List<Integer> values) {
addCriterion("lost_count in", values, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountNotIn(List<Integer> values) {
addCriterion("lost_count not in", values, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountBetween(Integer value1, Integer value2) {
addCriterion("lost_count between", value1, value2, "lostCount");
return (Criteria) this;
}
public Criteria andLostCountNotBetween(Integer value1, Integer value2) {
addCriterion("lost_count not between", value1, value2, "lostCount");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Byte value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Byte value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Byte value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Byte value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Byte value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Byte value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Byte> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Byte> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Byte value1, Byte value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Byte value1, Byte value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Date value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Date value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Date value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Date value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Date> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Date> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Date value1, Date value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_activities
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_activities
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,38 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.Date;
public class MntnActivityTerminals extends MntnActivityTerminalsKey {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activity_terminals.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activity_terminals.create_time
*
* @return the value of mntn_activity_terminals.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activity_terminals.create_time
*
* @param createTime the value for mntn_activity_terminals.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
}

@ -1,482 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class MntnActivityTerminalsExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public MntnActivityTerminalsExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andActivityIdIsNull() {
addCriterion("activity_id is null");
return (Criteria) this;
}
public Criteria andActivityIdIsNotNull() {
addCriterion("activity_id is not null");
return (Criteria) this;
}
public Criteria andActivityIdEqualTo(Integer value) {
addCriterion("activity_id =", value, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdNotEqualTo(Integer value) {
addCriterion("activity_id <>", value, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdGreaterThan(Integer value) {
addCriterion("activity_id >", value, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdGreaterThanOrEqualTo(Integer value) {
addCriterion("activity_id >=", value, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdLessThan(Integer value) {
addCriterion("activity_id <", value, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdLessThanOrEqualTo(Integer value) {
addCriterion("activity_id <=", value, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdIn(List<Integer> values) {
addCriterion("activity_id in", values, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdNotIn(List<Integer> values) {
addCriterion("activity_id not in", values, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdBetween(Integer value1, Integer value2) {
addCriterion("activity_id between", value1, value2, "activityId");
return (Criteria) this;
}
public Criteria andActivityIdNotBetween(Integer value1, Integer value2) {
addCriterion("activity_id not between", value1, value2, "activityId");
return (Criteria) this;
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_activity_terminals
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_activity_terminals
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,69 +0,0 @@
package com.shxy.xymanager_common.entity;
public class MntnActivityTerminalsKey {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activity_terminals.activity_id
*
* @mbg.generated
*/
private Integer activityId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_activity_terminals.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activity_terminals.activity_id
*
* @return the value of mntn_activity_terminals.activity_id
*
* @mbg.generated
*/
public Integer getActivityId() {
return activityId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activity_terminals.activity_id
*
* @param activityId the value for mntn_activity_terminals.activity_id
*
* @mbg.generated
*/
public void setActivityId(Integer activityId) {
this.activityId = activityId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_activity_terminals.term_id
*
* @return the value of mntn_activity_terminals.term_id
*
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_activity_terminals.term_id
*
* @param termId the value for mntn_activity_terminals.term_id
*
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
}

@ -1,389 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.Date;
import java.util.HashMap;
public class MntnCmdHistory {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.name
*
* @mbg.generated
*/
private String name;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.cmd
*
* @mbg.generated
*/
private String cmd;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.desc
*
* @mbg.generated
*/
private String desc;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.status
*
* @mbg.generated
*/
private Integer status;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.publish_time
*
* @mbg.generated
*/
private Date publishTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.result
*
* @mbg.generated
*/
private Integer result;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.res_time
*
* @mbg.generated
*/
private Date resTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_history.content
*
* @mbg.generated
*/
private String content;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.id
*
* @return the value of mntn_cmd_history.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.id
*
* @param id the value for mntn_cmd_history.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.term_id
*
* @return the value of mntn_cmd_history.term_id
*
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.term_id
*
* @param termId the value for mntn_cmd_history.term_id
*
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.name
*
* @return the value of mntn_cmd_history.name
*
* @mbg.generated
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.name
*
* @param name the value for mntn_cmd_history.name
*
* @mbg.generated
*/
public void setName(String name) {
this.name = name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.cmd
*
* @return the value of mntn_cmd_history.cmd
*
* @mbg.generated
*/
public String getCmd() {
return cmd;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.cmd
*
* @param cmd the value for mntn_cmd_history.cmd
*
* @mbg.generated
*/
public void setCmd(String cmd) {
this.cmd = cmd;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.desc
*
* @return the value of mntn_cmd_history.desc
*
* @mbg.generated
*/
public String getDesc() {
return desc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.desc
*
* @param desc the value for mntn_cmd_history.desc
*
* @mbg.generated
*/
public void setDesc(String desc) {
this.desc = desc;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.status
*
* @return the value of mntn_cmd_history.status
*
* @mbg.generated
*/
public Integer getStatus() {
return status;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.status
*
* @param status the value for mntn_cmd_history.status
*
* @mbg.generated
*/
public void setStatus(Integer status) {
this.status = status;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.create_time
*
* @return the value of mntn_cmd_history.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.create_time
*
* @param createTime the value for mntn_cmd_history.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.publish_time
*
* @return the value of mntn_cmd_history.publish_time
*
* @mbg.generated
*/
public Date getPublishTime() {
return publishTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.publish_time
*
* @param publishTime the value for mntn_cmd_history.publish_time
*
* @mbg.generated
*/
public void setPublishTime(Date publishTime) {
this.publishTime = publishTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.result
*
* @return the value of mntn_cmd_history.result
*
* @mbg.generated
*/
public Integer getResult() {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.result
*
* @param result the value for mntn_cmd_history.result
*
* @mbg.generated
*/
public void setResult(Integer result) {
this.result = result;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.res_time
*
* @return the value of mntn_cmd_history.res_time
*
* @mbg.generated
*/
public Date getResTime() {
return resTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.res_time
*
* @param resTime the value for mntn_cmd_history.res_time
*
* @mbg.generated
*/
public void setResTime(Date resTime) {
this.resTime = resTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_history.content
*
* @return the value of mntn_cmd_history.content
*
* @mbg.generated
*/
public String getContent() {
return content;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_history.content
*
* @param content the value for mntn_cmd_history.content
*
* @mbg.generated
*/
public void setContent(String content) {
this.content = content;
}
private Terminals terminal;
public Terminals getTerminal() {
return terminal;
}
public void setTerminal(Terminals terminal) {
this.terminal = terminal;
}
private HashMap<String, Object> cmdMap;
public HashMap<String, Object> getCmdMap() {
return cmdMap;
}
public void setCmdMap(HashMap<String, Object> cmdMap) {
this.cmdMap = cmdMap;
}
}

@ -1,932 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class MntnCmdHistoryExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public MntnCmdHistoryExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("`name` is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("`name` =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("`name` <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("`name` >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("`name` >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("`name` <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("`name` <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("`name` like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("`name` not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("`name` in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("`name` not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("`name` between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("`name` not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andCmdIsNull() {
addCriterion("cmd is null");
return (Criteria) this;
}
public Criteria andCmdIsNotNull() {
addCriterion("cmd is not null");
return (Criteria) this;
}
public Criteria andCmdEqualTo(String value) {
addCriterion("cmd =", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotEqualTo(String value) {
addCriterion("cmd <>", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdGreaterThan(String value) {
addCriterion("cmd >", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdGreaterThanOrEqualTo(String value) {
addCriterion("cmd >=", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdLessThan(String value) {
addCriterion("cmd <", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdLessThanOrEqualTo(String value) {
addCriterion("cmd <=", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdLike(String value) {
addCriterion("cmd like", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotLike(String value) {
addCriterion("cmd not like", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdIn(List<String> values) {
addCriterion("cmd in", values, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotIn(List<String> values) {
addCriterion("cmd not in", values, "cmd");
return (Criteria) this;
}
public Criteria andCmdBetween(String value1, String value2) {
addCriterion("cmd between", value1, value2, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotBetween(String value1, String value2) {
addCriterion("cmd not between", value1, value2, "cmd");
return (Criteria) this;
}
public Criteria andDescIsNull() {
addCriterion("`desc` is null");
return (Criteria) this;
}
public Criteria andDescIsNotNull() {
addCriterion("`desc` is not null");
return (Criteria) this;
}
public Criteria andDescEqualTo(String value) {
addCriterion("`desc` =", value, "desc");
return (Criteria) this;
}
public Criteria andDescNotEqualTo(String value) {
addCriterion("`desc` <>", value, "desc");
return (Criteria) this;
}
public Criteria andDescGreaterThan(String value) {
addCriterion("`desc` >", value, "desc");
return (Criteria) this;
}
public Criteria andDescGreaterThanOrEqualTo(String value) {
addCriterion("`desc` >=", value, "desc");
return (Criteria) this;
}
public Criteria andDescLessThan(String value) {
addCriterion("`desc` <", value, "desc");
return (Criteria) this;
}
public Criteria andDescLessThanOrEqualTo(String value) {
addCriterion("`desc` <=", value, "desc");
return (Criteria) this;
}
public Criteria andDescLike(String value) {
addCriterion("`desc` like", value, "desc");
return (Criteria) this;
}
public Criteria andDescNotLike(String value) {
addCriterion("`desc` not like", value, "desc");
return (Criteria) this;
}
public Criteria andDescIn(List<String> values) {
addCriterion("`desc` in", values, "desc");
return (Criteria) this;
}
public Criteria andDescNotIn(List<String> values) {
addCriterion("`desc` not in", values, "desc");
return (Criteria) this;
}
public Criteria andDescBetween(String value1, String value2) {
addCriterion("`desc` between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andDescNotBetween(String value1, String value2) {
addCriterion("`desc` not between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andStatusIsNull() {
addCriterion("`status` is null");
return (Criteria) this;
}
public Criteria andStatusIsNotNull() {
addCriterion("`status` is not null");
return (Criteria) this;
}
public Criteria andStatusEqualTo(Integer value) {
addCriterion("`status` =", value, "status");
return (Criteria) this;
}
public Criteria andStatusNotEqualTo(Integer value) {
addCriterion("`status` <>", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThan(Integer value) {
addCriterion("`status` >", value, "status");
return (Criteria) this;
}
public Criteria andStatusGreaterThanOrEqualTo(Integer value) {
addCriterion("`status` >=", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThan(Integer value) {
addCriterion("`status` <", value, "status");
return (Criteria) this;
}
public Criteria andStatusLessThanOrEqualTo(Integer value) {
addCriterion("`status` <=", value, "status");
return (Criteria) this;
}
public Criteria andStatusIn(List<Integer> values) {
addCriterion("`status` in", values, "status");
return (Criteria) this;
}
public Criteria andStatusNotIn(List<Integer> values) {
addCriterion("`status` not in", values, "status");
return (Criteria) this;
}
public Criteria andStatusBetween(Integer value1, Integer value2) {
addCriterion("`status` between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andStatusNotBetween(Integer value1, Integer value2) {
addCriterion("`status` not between", value1, value2, "status");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andPublishTimeIsNull() {
addCriterion("publish_time is null");
return (Criteria) this;
}
public Criteria andPublishTimeIsNotNull() {
addCriterion("publish_time is not null");
return (Criteria) this;
}
public Criteria andPublishTimeEqualTo(Date value) {
addCriterion("publish_time =", value, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeNotEqualTo(Date value) {
addCriterion("publish_time <>", value, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeGreaterThan(Date value) {
addCriterion("publish_time >", value, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeGreaterThanOrEqualTo(Date value) {
addCriterion("publish_time >=", value, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeLessThan(Date value) {
addCriterion("publish_time <", value, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeLessThanOrEqualTo(Date value) {
addCriterion("publish_time <=", value, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeIn(List<Date> values) {
addCriterion("publish_time in", values, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeNotIn(List<Date> values) {
addCriterion("publish_time not in", values, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeBetween(Date value1, Date value2) {
addCriterion("publish_time between", value1, value2, "publishTime");
return (Criteria) this;
}
public Criteria andPublishTimeNotBetween(Date value1, Date value2) {
addCriterion("publish_time not between", value1, value2, "publishTime");
return (Criteria) this;
}
public Criteria andResultIsNull() {
addCriterion("`result` is null");
return (Criteria) this;
}
public Criteria andResultIsNotNull() {
addCriterion("`result` is not null");
return (Criteria) this;
}
public Criteria andResultEqualTo(Integer value) {
addCriterion("`result` =", value, "result");
return (Criteria) this;
}
public Criteria andResultNotEqualTo(Integer value) {
addCriterion("`result` <>", value, "result");
return (Criteria) this;
}
public Criteria andResultGreaterThan(Integer value) {
addCriterion("`result` >", value, "result");
return (Criteria) this;
}
public Criteria andResultGreaterThanOrEqualTo(Integer value) {
addCriterion("`result` >=", value, "result");
return (Criteria) this;
}
public Criteria andResultLessThan(Integer value) {
addCriterion("`result` <", value, "result");
return (Criteria) this;
}
public Criteria andResultLessThanOrEqualTo(Integer value) {
addCriterion("`result` <=", value, "result");
return (Criteria) this;
}
public Criteria andResultIn(List<Integer> values) {
addCriterion("`result` in", values, "result");
return (Criteria) this;
}
public Criteria andResultNotIn(List<Integer> values) {
addCriterion("`result` not in", values, "result");
return (Criteria) this;
}
public Criteria andResultBetween(Integer value1, Integer value2) {
addCriterion("`result` between", value1, value2, "result");
return (Criteria) this;
}
public Criteria andResultNotBetween(Integer value1, Integer value2) {
addCriterion("`result` not between", value1, value2, "result");
return (Criteria) this;
}
public Criteria andResTimeIsNull() {
addCriterion("res_time is null");
return (Criteria) this;
}
public Criteria andResTimeIsNotNull() {
addCriterion("res_time is not null");
return (Criteria) this;
}
public Criteria andResTimeEqualTo(Date value) {
addCriterion("res_time =", value, "resTime");
return (Criteria) this;
}
public Criteria andResTimeNotEqualTo(Date value) {
addCriterion("res_time <>", value, "resTime");
return (Criteria) this;
}
public Criteria andResTimeGreaterThan(Date value) {
addCriterion("res_time >", value, "resTime");
return (Criteria) this;
}
public Criteria andResTimeGreaterThanOrEqualTo(Date value) {
addCriterion("res_time >=", value, "resTime");
return (Criteria) this;
}
public Criteria andResTimeLessThan(Date value) {
addCriterion("res_time <", value, "resTime");
return (Criteria) this;
}
public Criteria andResTimeLessThanOrEqualTo(Date value) {
addCriterion("res_time <=", value, "resTime");
return (Criteria) this;
}
public Criteria andResTimeIn(List<Date> values) {
addCriterion("res_time in", values, "resTime");
return (Criteria) this;
}
public Criteria andResTimeNotIn(List<Date> values) {
addCriterion("res_time not in", values, "resTime");
return (Criteria) this;
}
public Criteria andResTimeBetween(Date value1, Date value2) {
addCriterion("res_time between", value1, value2, "resTime");
return (Criteria) this;
}
public Criteria andResTimeNotBetween(Date value1, Date value2) {
addCriterion("res_time not between", value1, value2, "resTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmd_history
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmd_history
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,137 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.Date;
public class MntnCmdResults {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_results.cid
*
* @mbg.generated
*/
private Integer cid;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_results.result
*
* @mbg.generated
*/
private Integer result;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_results.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmd_results.content
*
* @mbg.generated
*/
private String content;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_results.cid
*
* @return the value of mntn_cmd_results.cid
*
* @mbg.generated
*/
public Integer getCid() {
return cid;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_results.cid
*
* @param cid the value for mntn_cmd_results.cid
*
* @mbg.generated
*/
public void setCid(Integer cid) {
this.cid = cid;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_results.result
*
* @return the value of mntn_cmd_results.result
*
* @mbg.generated
*/
public Integer getResult() {
return result;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_results.result
*
* @param result the value for mntn_cmd_results.result
*
* @mbg.generated
*/
public void setResult(Integer result) {
this.result = result;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_results.create_time
*
* @return the value of mntn_cmd_results.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_results.create_time
*
* @param createTime the value for mntn_cmd_results.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmd_results.content
*
* @return the value of mntn_cmd_results.content
*
* @mbg.generated
*/
public String getContent() {
return content;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmd_results.content
*
* @param content the value for mntn_cmd_results.content
*
* @mbg.generated
*/
public void setContent(String content) {
this.content = content;
}
}

@ -1,482 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class MntnCmdResultsExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public MntnCmdResultsExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andCidIsNull() {
addCriterion("cid is null");
return (Criteria) this;
}
public Criteria andCidIsNotNull() {
addCriterion("cid is not null");
return (Criteria) this;
}
public Criteria andCidEqualTo(Integer value) {
addCriterion("cid =", value, "cid");
return (Criteria) this;
}
public Criteria andCidNotEqualTo(Integer value) {
addCriterion("cid <>", value, "cid");
return (Criteria) this;
}
public Criteria andCidGreaterThan(Integer value) {
addCriterion("cid >", value, "cid");
return (Criteria) this;
}
public Criteria andCidGreaterThanOrEqualTo(Integer value) {
addCriterion("cid >=", value, "cid");
return (Criteria) this;
}
public Criteria andCidLessThan(Integer value) {
addCriterion("cid <", value, "cid");
return (Criteria) this;
}
public Criteria andCidLessThanOrEqualTo(Integer value) {
addCriterion("cid <=", value, "cid");
return (Criteria) this;
}
public Criteria andCidIn(List<Integer> values) {
addCriterion("cid in", values, "cid");
return (Criteria) this;
}
public Criteria andCidNotIn(List<Integer> values) {
addCriterion("cid not in", values, "cid");
return (Criteria) this;
}
public Criteria andCidBetween(Integer value1, Integer value2) {
addCriterion("cid between", value1, value2, "cid");
return (Criteria) this;
}
public Criteria andCidNotBetween(Integer value1, Integer value2) {
addCriterion("cid not between", value1, value2, "cid");
return (Criteria) this;
}
public Criteria andResultIsNull() {
addCriterion("`result` is null");
return (Criteria) this;
}
public Criteria andResultIsNotNull() {
addCriterion("`result` is not null");
return (Criteria) this;
}
public Criteria andResultEqualTo(Integer value) {
addCriterion("`result` =", value, "result");
return (Criteria) this;
}
public Criteria andResultNotEqualTo(Integer value) {
addCriterion("`result` <>", value, "result");
return (Criteria) this;
}
public Criteria andResultGreaterThan(Integer value) {
addCriterion("`result` >", value, "result");
return (Criteria) this;
}
public Criteria andResultGreaterThanOrEqualTo(Integer value) {
addCriterion("`result` >=", value, "result");
return (Criteria) this;
}
public Criteria andResultLessThan(Integer value) {
addCriterion("`result` <", value, "result");
return (Criteria) this;
}
public Criteria andResultLessThanOrEqualTo(Integer value) {
addCriterion("`result` <=", value, "result");
return (Criteria) this;
}
public Criteria andResultIn(List<Integer> values) {
addCriterion("`result` in", values, "result");
return (Criteria) this;
}
public Criteria andResultNotIn(List<Integer> values) {
addCriterion("`result` not in", values, "result");
return (Criteria) this;
}
public Criteria andResultBetween(Integer value1, Integer value2) {
addCriterion("`result` between", value1, value2, "result");
return (Criteria) this;
}
public Criteria andResultNotBetween(Integer value1, Integer value2) {
addCriterion("`result` not between", value1, value2, "result");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmd_results
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmd_results
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,241 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.Date;
import java.util.HashMap;
public class MntnCmds {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmds.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmds.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmds.name
*
* @mbg.generated
*/
private String name;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmds.cmd
*
* @mbg.generated
*/
private String cmd;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmds.desc
*
* @mbg.generated
*/
private String desc;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_cmds.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmds.id
*
* @return the value of mntn_cmds.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmds.id
*
* @param id the value for mntn_cmds.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmds.term_id
*
* @return the value of mntn_cmds.term_id
*
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmds.term_id
*
* @param termId the value for mntn_cmds.term_id
*
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmds.name
*
* @return the value of mntn_cmds.name
*
* @mbg.generated
*/
public String getName() {
return name;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmds.name
*
* @param name the value for mntn_cmds.name
*
* @mbg.generated
*/
public void setName(String name) {
this.name = name;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmds.cmd
*
* @return the value of mntn_cmds.cmd
*
* @mbg.generated
*/
public String getCmd() {
return cmd;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmds.cmd
*
* @param cmd the value for mntn_cmds.cmd
*
* @mbg.generated
*/
public void setCmd(String cmd) {
this.cmd = cmd;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmds.desc
*
* @return the value of mntn_cmds.desc
*
* @mbg.generated
*/
public String getDesc() {
return desc;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmds.desc
*
* @param desc the value for mntn_cmds.desc
*
* @mbg.generated
*/
public void setDesc(String desc) {
this.desc = desc;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_cmds.create_time
*
* @return the value of mntn_cmds.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_cmds.create_time
*
* @param createTime the value for mntn_cmds.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
private Terminals terminal;
private HashMap<String, Object> cmdMap;
private Long prevReportTime;
private Long estimatedPublishTime;
public Terminals getTerminal() {
return terminal;
}
public void setTerminal(Terminals terminal) {
this.terminal = terminal;
}
public HashMap<String, Object> getCmdMap() {
return cmdMap;
}
public void setCmdMap(HashMap<String, Object> cmdMap) {
this.cmdMap = cmdMap;
}
public Long getPrevReportTime() {
return prevReportTime;
}
public void setPrevReportTime(Long prevReportTime) {
this.prevReportTime = prevReportTime;
}
public Long getEstimatedPublishTime() {
return estimatedPublishTime;
}
public void setEstimatedPublishTime(Long estimatedPublishTime) {
this.estimatedPublishTime = estimatedPublishTime;
}
}

@ -1,692 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class MntnCmdsExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public MntnCmdsExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andNameIsNull() {
addCriterion("`name` is null");
return (Criteria) this;
}
public Criteria andNameIsNotNull() {
addCriterion("`name` is not null");
return (Criteria) this;
}
public Criteria andNameEqualTo(String value) {
addCriterion("`name` =", value, "name");
return (Criteria) this;
}
public Criteria andNameNotEqualTo(String value) {
addCriterion("`name` <>", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThan(String value) {
addCriterion("`name` >", value, "name");
return (Criteria) this;
}
public Criteria andNameGreaterThanOrEqualTo(String value) {
addCriterion("`name` >=", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThan(String value) {
addCriterion("`name` <", value, "name");
return (Criteria) this;
}
public Criteria andNameLessThanOrEqualTo(String value) {
addCriterion("`name` <=", value, "name");
return (Criteria) this;
}
public Criteria andNameLike(String value) {
addCriterion("`name` like", value, "name");
return (Criteria) this;
}
public Criteria andNameNotLike(String value) {
addCriterion("`name` not like", value, "name");
return (Criteria) this;
}
public Criteria andNameIn(List<String> values) {
addCriterion("`name` in", values, "name");
return (Criteria) this;
}
public Criteria andNameNotIn(List<String> values) {
addCriterion("`name` not in", values, "name");
return (Criteria) this;
}
public Criteria andNameBetween(String value1, String value2) {
addCriterion("`name` between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andNameNotBetween(String value1, String value2) {
addCriterion("`name` not between", value1, value2, "name");
return (Criteria) this;
}
public Criteria andCmdIsNull() {
addCriterion("cmd is null");
return (Criteria) this;
}
public Criteria andCmdIsNotNull() {
addCriterion("cmd is not null");
return (Criteria) this;
}
public Criteria andCmdEqualTo(String value) {
addCriterion("cmd =", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotEqualTo(String value) {
addCriterion("cmd <>", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdGreaterThan(String value) {
addCriterion("cmd >", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdGreaterThanOrEqualTo(String value) {
addCriterion("cmd >=", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdLessThan(String value) {
addCriterion("cmd <", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdLessThanOrEqualTo(String value) {
addCriterion("cmd <=", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdLike(String value) {
addCriterion("cmd like", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotLike(String value) {
addCriterion("cmd not like", value, "cmd");
return (Criteria) this;
}
public Criteria andCmdIn(List<String> values) {
addCriterion("cmd in", values, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotIn(List<String> values) {
addCriterion("cmd not in", values, "cmd");
return (Criteria) this;
}
public Criteria andCmdBetween(String value1, String value2) {
addCriterion("cmd between", value1, value2, "cmd");
return (Criteria) this;
}
public Criteria andCmdNotBetween(String value1, String value2) {
addCriterion("cmd not between", value1, value2, "cmd");
return (Criteria) this;
}
public Criteria andDescIsNull() {
addCriterion("`desc` is null");
return (Criteria) this;
}
public Criteria andDescIsNotNull() {
addCriterion("`desc` is not null");
return (Criteria) this;
}
public Criteria andDescEqualTo(String value) {
addCriterion("`desc` =", value, "desc");
return (Criteria) this;
}
public Criteria andDescNotEqualTo(String value) {
addCriterion("`desc` <>", value, "desc");
return (Criteria) this;
}
public Criteria andDescGreaterThan(String value) {
addCriterion("`desc` >", value, "desc");
return (Criteria) this;
}
public Criteria andDescGreaterThanOrEqualTo(String value) {
addCriterion("`desc` >=", value, "desc");
return (Criteria) this;
}
public Criteria andDescLessThan(String value) {
addCriterion("`desc` <", value, "desc");
return (Criteria) this;
}
public Criteria andDescLessThanOrEqualTo(String value) {
addCriterion("`desc` <=", value, "desc");
return (Criteria) this;
}
public Criteria andDescLike(String value) {
addCriterion("`desc` like", value, "desc");
return (Criteria) this;
}
public Criteria andDescNotLike(String value) {
addCriterion("`desc` not like", value, "desc");
return (Criteria) this;
}
public Criteria andDescIn(List<String> values) {
addCriterion("`desc` in", values, "desc");
return (Criteria) this;
}
public Criteria andDescNotIn(List<String> values) {
addCriterion("`desc` not in", values, "desc");
return (Criteria) this;
}
public Criteria andDescBetween(String value1, String value2) {
addCriterion("`desc` between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andDescNotBetween(String value1, String value2) {
addCriterion("`desc` not between", value1, value2, "desc");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Date value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Date value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Date value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Date value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Date> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Date> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Date value1, Date value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmds
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_cmds
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,36 +0,0 @@
package com.shxy.xymanager_common.entity;
public class MntnDayStat extends MntnDayStatKey {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_day_stat.uploads
*
* @mbg.generated
*/
private String uploads;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_day_stat.uploads
*
* @return the value of mntn_day_stat.uploads
*
* @mbg.generated
*/
public String getUploads() {
return uploads;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_day_stat.uploads
*
* @param uploads the value for mntn_day_stat.uploads
*
* @mbg.generated
*/
public void setUploads(String uploads) {
this.uploads = uploads;
}
}

@ -1,501 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class MntnDayStatExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public MntnDayStatExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andDateIsNull() {
addCriterion("`date` is null");
return (Criteria) this;
}
public Criteria andDateIsNotNull() {
addCriterion("`date` is not null");
return (Criteria) this;
}
public Criteria andDateEqualTo(String value) {
addCriterion("`date` =", value, "date");
return (Criteria) this;
}
public Criteria andDateNotEqualTo(String value) {
addCriterion("`date` <>", value, "date");
return (Criteria) this;
}
public Criteria andDateGreaterThan(String value) {
addCriterion("`date` >", value, "date");
return (Criteria) this;
}
public Criteria andDateGreaterThanOrEqualTo(String value) {
addCriterion("`date` >=", value, "date");
return (Criteria) this;
}
public Criteria andDateLessThan(String value) {
addCriterion("`date` <", value, "date");
return (Criteria) this;
}
public Criteria andDateLessThanOrEqualTo(String value) {
addCriterion("`date` <=", value, "date");
return (Criteria) this;
}
public Criteria andDateLike(String value) {
addCriterion("`date` like", value, "date");
return (Criteria) this;
}
public Criteria andDateNotLike(String value) {
addCriterion("`date` not like", value, "date");
return (Criteria) this;
}
public Criteria andDateIn(List<String> values) {
addCriterion("`date` in", values, "date");
return (Criteria) this;
}
public Criteria andDateNotIn(List<String> values) {
addCriterion("`date` not in", values, "date");
return (Criteria) this;
}
public Criteria andDateBetween(String value1, String value2) {
addCriterion("`date` between", value1, value2, "date");
return (Criteria) this;
}
public Criteria andDateNotBetween(String value1, String value2) {
addCriterion("`date` not between", value1, value2, "date");
return (Criteria) this;
}
public Criteria andUploadsIsNull() {
addCriterion("uploads is null");
return (Criteria) this;
}
public Criteria andUploadsIsNotNull() {
addCriterion("uploads is not null");
return (Criteria) this;
}
public Criteria andUploadsEqualTo(String value) {
addCriterion("uploads =", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsNotEqualTo(String value) {
addCriterion("uploads <>", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsGreaterThan(String value) {
addCriterion("uploads >", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsGreaterThanOrEqualTo(String value) {
addCriterion("uploads >=", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsLessThan(String value) {
addCriterion("uploads <", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsLessThanOrEqualTo(String value) {
addCriterion("uploads <=", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsLike(String value) {
addCriterion("uploads like", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsNotLike(String value) {
addCriterion("uploads not like", value, "uploads");
return (Criteria) this;
}
public Criteria andUploadsIn(List<String> values) {
addCriterion("uploads in", values, "uploads");
return (Criteria) this;
}
public Criteria andUploadsNotIn(List<String> values) {
addCriterion("uploads not in", values, "uploads");
return (Criteria) this;
}
public Criteria andUploadsBetween(String value1, String value2) {
addCriterion("uploads between", value1, value2, "uploads");
return (Criteria) this;
}
public Criteria andUploadsNotBetween(String value1, String value2) {
addCriterion("uploads not between", value1, value2, "uploads");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_day_stat
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_day_stat
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,69 +0,0 @@
package com.shxy.xymanager_common.entity;
public class MntnDayStatKey {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_day_stat.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_day_stat.date
*
* @mbg.generated
*/
private String date;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_day_stat.term_id
*
* @return the value of mntn_day_stat.term_id
*
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_day_stat.term_id
*
* @param termId the value for mntn_day_stat.term_id
*
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_day_stat.date
*
* @return the value of mntn_day_stat.date
*
* @mbg.generated
*/
public String getDate() {
return date;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_day_stat.date
*
* @param date the value for mntn_day_stat.date
*
* @mbg.generated
*/
public void setDate(String date) {
this.date = date;
}
}

@ -1,189 +0,0 @@
package com.shxy.xymanager_common.entity;
import com.alibaba.excel.util.StringUtils;
import com.shxy.xymanager_common.util.RawReportUtil;
import java.util.HashMap;
public class MntnRawReports {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_raw_reports.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_raw_reports.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_raw_reports.content
*
* @mbg.generated
*/
private String content;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_raw_reports.ip
*
* @mbg.generated
*/
private String ip;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_raw_reports.create_time
*
* @mbg.generated
*/
private Long createTime;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_raw_reports.id
*
* @return the value of mntn_raw_reports.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_raw_reports.id
*
* @param id the value for mntn_raw_reports.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_raw_reports.term_id
*
* @return the value of mntn_raw_reports.term_id
*
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_raw_reports.term_id
*
* @param termId the value for mntn_raw_reports.term_id
*
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_raw_reports.content
*
* @return the value of mntn_raw_reports.content
*
* @mbg.generated
*/
public String getContent() {
return content;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_raw_reports.content
*
* @param content the value for mntn_raw_reports.content
*
* @mbg.generated
*/
public void setContent(String content) {
this.content = content;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_raw_reports.ip
*
* @return the value of mntn_raw_reports.ip
*
* @mbg.generated
*/
public String getIp() {
return ip;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_raw_reports.ip
*
* @param ip the value for mntn_raw_reports.ip
*
* @mbg.generated
*/
public void setIp(String ip) {
this.ip = ip;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_raw_reports.create_time
*
* @return the value of mntn_raw_reports.create_time
*
* @mbg.generated
*/
public Long getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_raw_reports.create_time
*
* @param createTime the value for mntn_raw_reports.create_time
*
* @mbg.generated
*/
public void setCreateTime(Long createTime) {
this.createTime = createTime;
}
private HashMap<String, Object> reportMap;
public HashMap<String, Object> getReportMap() {
return reportMap;
}
public void setReportMap(HashMap<String, Object> reportMap) {
this.reportMap = reportMap;
}
public void makeRawReport() {
if (StringUtils.isNotBlank(content)) {
reportMap = RawReportUtil.buildRawReportMap(content);
}
}
}

@ -1,621 +0,0 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class MntnRawReportsExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
protected String orderByClause;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
protected boolean distinct;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
protected List<Criteria> oredCriteria;
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public MntnRawReportsExample() {
oredCriteria = new ArrayList<>();
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public String getOrderByClause() {
return orderByClause;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public boolean isDistinct() {
return distinct;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andContentIsNull() {
addCriterion("content is null");
return (Criteria) this;
}
public Criteria andContentIsNotNull() {
addCriterion("content is not null");
return (Criteria) this;
}
public Criteria andContentEqualTo(String value) {
addCriterion("content =", value, "content");
return (Criteria) this;
}
public Criteria andContentNotEqualTo(String value) {
addCriterion("content <>", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThan(String value) {
addCriterion("content >", value, "content");
return (Criteria) this;
}
public Criteria andContentGreaterThanOrEqualTo(String value) {
addCriterion("content >=", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThan(String value) {
addCriterion("content <", value, "content");
return (Criteria) this;
}
public Criteria andContentLessThanOrEqualTo(String value) {
addCriterion("content <=", value, "content");
return (Criteria) this;
}
public Criteria andContentLike(String value) {
addCriterion("content like", value, "content");
return (Criteria) this;
}
public Criteria andContentNotLike(String value) {
addCriterion("content not like", value, "content");
return (Criteria) this;
}
public Criteria andContentIn(List<String> values) {
addCriterion("content in", values, "content");
return (Criteria) this;
}
public Criteria andContentNotIn(List<String> values) {
addCriterion("content not in", values, "content");
return (Criteria) this;
}
public Criteria andContentBetween(String value1, String value2) {
addCriterion("content between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andContentNotBetween(String value1, String value2) {
addCriterion("content not between", value1, value2, "content");
return (Criteria) this;
}
public Criteria andIpIsNull() {
addCriterion("ip is null");
return (Criteria) this;
}
public Criteria andIpIsNotNull() {
addCriterion("ip is not null");
return (Criteria) this;
}
public Criteria andIpEqualTo(String value) {
addCriterion("ip =", value, "ip");
return (Criteria) this;
}
public Criteria andIpNotEqualTo(String value) {
addCriterion("ip <>", value, "ip");
return (Criteria) this;
}
public Criteria andIpGreaterThan(String value) {
addCriterion("ip >", value, "ip");
return (Criteria) this;
}
public Criteria andIpGreaterThanOrEqualTo(String value) {
addCriterion("ip >=", value, "ip");
return (Criteria) this;
}
public Criteria andIpLessThan(String value) {
addCriterion("ip <", value, "ip");
return (Criteria) this;
}
public Criteria andIpLessThanOrEqualTo(String value) {
addCriterion("ip <=", value, "ip");
return (Criteria) this;
}
public Criteria andIpLike(String value) {
addCriterion("ip like", value, "ip");
return (Criteria) this;
}
public Criteria andIpNotLike(String value) {
addCriterion("ip not like", value, "ip");
return (Criteria) this;
}
public Criteria andIpIn(List<String> values) {
addCriterion("ip in", values, "ip");
return (Criteria) this;
}
public Criteria andIpNotIn(List<String> values) {
addCriterion("ip not in", values, "ip");
return (Criteria) this;
}
public Criteria andIpBetween(String value1, String value2) {
addCriterion("ip between", value1, value2, "ip");
return (Criteria) this;
}
public Criteria andIpNotBetween(String value1, String value2) {
addCriterion("ip not between", value1, value2, "ip");
return (Criteria) this;
}
public Criteria andCreateTimeIsNull() {
addCriterion("create_time is null");
return (Criteria) this;
}
public Criteria andCreateTimeIsNotNull() {
addCriterion("create_time is not null");
return (Criteria) this;
}
public Criteria andCreateTimeEqualTo(Long value) {
addCriterion("create_time =", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotEqualTo(Long value) {
addCriterion("create_time <>", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThan(Long value) {
addCriterion("create_time >", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("create_time >=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThan(Long value) {
addCriterion("create_time <", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeLessThanOrEqualTo(Long value) {
addCriterion("create_time <=", value, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeIn(List<Long> values) {
addCriterion("create_time in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotIn(List<Long> values) {
addCriterion("create_time not in", values, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeBetween(Long value1, Long value2) {
addCriterion("create_time between", value1, value2, "createTime");
return (Criteria) this;
}
public Criteria andCreateTimeNotBetween(Long value1, Long value2) {
addCriterion("create_time not between", value1, value2, "createTime");
return (Criteria) this;
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_raw_reports
*
* @mbg.generated do_not_delete_during_merge
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
/**
* This class was generated by MyBatis Generator.
* This class corresponds to the database table mntn_raw_reports
*
* @mbg.generated
*/
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -1,453 +0,0 @@
package com.shxy.xymanager_common.entity;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.date.DateUnit;
import com.alibaba.excel.util.StringUtils;
import com.shxy.xymanager_common.util.MyDateUtils;
import com.shxy.xymanager_common.util.RawReportUtil;
import com.shxy.xymanager_common.util.xinyin.TerminalUtils;
import com.shxy.xymanager_common.vo.TerminalSelectVo;
import java.util.Date;
import java.util.HashMap;
import java.util.Iterator;
public class MntnStatus {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.term_id
*
* @mbg.generated
*/
private Integer termId;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.in_maintain
*
* @mbg.generated
*/
private Integer inMaintain;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.quick_hb
*
* @mbg.generated
*/
private Integer quickHb;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.mode_time
*
* @mbg.generated
*/
private Long modeTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.last_ip
*
* @mbg.generated
*/
private String lastIp;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.raw_report_time
*
* @mbg.generated
*/
private Long rawReportTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.comment
*
* @mbg.generated
*/
private String comment;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database column mntn_status.last_raw_report
*
* @mbg.generated
*/
private String lastRawReport;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.term_id
*
* @return the value of mntn_status.term_id
* @mbg.generated
*/
public Integer getTermId() {
return termId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.term_id
*
* @param termId the value for mntn_status.term_id
* @mbg.generated
*/
public void setTermId(Integer termId) {
this.termId = termId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.in_maintain
*
* @return the value of mntn_status.in_maintain
* @mbg.generated
*/
public Integer getInMaintain() {
return inMaintain;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.in_maintain
*
* @param inMaintain the value for mntn_status.in_maintain
* @mbg.generated
*/
public void setInMaintain(Integer inMaintain) {
this.inMaintain = inMaintain;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.quick_hb
*
* @return the value of mntn_status.quick_hb
* @mbg.generated
*/
public Integer getQuickHb() {
return quickHb;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.quick_hb
*
* @param quickHb the value for mntn_status.quick_hb
* @mbg.generated
*/
public void setQuickHb(Integer quickHb) {
this.quickHb = quickHb;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.mode_time
*
* @return the value of mntn_status.mode_time
* @mbg.generated
*/
public Long getModeTime() {
return modeTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.mode_time
*
* @param modeTime the value for mntn_status.mode_time
* @mbg.generated
*/
public void setModeTime(Long modeTime) {
this.modeTime = modeTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.last_ip
*
* @return the value of mntn_status.last_ip
* @mbg.generated
*/
public String getLastIp() {
return lastIp;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.last_ip
*
* @param lastIp the value for mntn_status.last_ip
* @mbg.generated
*/
public void setLastIp(String lastIp) {
this.lastIp = lastIp;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.raw_report_time
*
* @return the value of mntn_status.raw_report_time
* @mbg.generated
*/
public Long getRawReportTime() {
return rawReportTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.raw_report_time
*
* @param rawReportTime the value for mntn_status.raw_report_time
* @mbg.generated
*/
public void setRawReportTime(Long rawReportTime) {
this.rawReportTime = rawReportTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.comment
*
* @return the value of mntn_status.comment
* @mbg.generated
*/
public String getComment() {
return comment;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.comment
*
* @param comment the value for mntn_status.comment
* @mbg.generated
*/
public void setComment(String comment) {
this.comment = comment;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.create_time
*
* @return the value of mntn_status.create_time
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.create_time
*
* @param createTime the value for mntn_status.create_time
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.update_time
*
* @return the value of mntn_status.update_time
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.update_time
*
* @param updateTime the value for mntn_status.update_time
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column mntn_status.last_raw_report
*
* @return the value of mntn_status.last_raw_report
* @mbg.generated
*/
public String getLastRawReport() {
return lastRawReport;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column mntn_status.last_raw_report
*
* @param lastRawReport the value for mntn_status.last_raw_report
* @mbg.generated
*/
public void setLastRawReport(String lastRawReport) {
this.lastRawReport = lastRawReport;
}
private HashMap<String, Object> reportMap = new HashMap<>();
public HashMap<String, Object> getReportMap() {
return reportMap;
}
public void setReportMap(HashMap<String, Object> reportMap) {
this.reportMap = reportMap;
}
public void makeRawReport() {
if (StringUtils.isNotBlank(lastRawReport)) {
reportMap = RawReportUtil.buildRawReportMap(lastRawReport);
}
}
public boolean match(TerminalSelectVo vo) {
if (this.matchVersion(vo) && this.matchCma(vo) &&
this.matchOid(vo) && this.matchOnline(vo)) {
return true;
}
return false;
}
private boolean matchVersion(TerminalSelectVo vo) {
if (StringUtils.isNotBlank(vo.getVersion())) {
int v = 0;
Iterator<String> it = reportMap.keySet().iterator();
while (it.hasNext()) {
String key = it.next();
Object value = reportMap.get(key);
if (key.toLowerCase().contains("version") || "firmware".equalsIgnoreCase(key)) {
if (value != null && value.toString().contains(vo.getVersion())) {
v = 1;
break;
}
}
}
if (vo.getVersionExclude()) {
if (v == 0) {
return true;
}
} else {
if (v == 1) {
return true;
}
}
return false;
} else {
return true;
}
}
private boolean matchCma(TerminalSelectVo vo) {
if (StringUtils.isNotBlank(vo.getCma())) {
int c = 0;
Iterator<String> it = reportMap.keySet().iterator();
while (it.hasNext()) {
String key = it.next();
Object value = reportMap.get(key);
if (key.toLowerCase().contains("cma")) {
if (value != null && value.toString().contains(vo.getCma())) {
c = 1;
break;
}
}
}
if (vo.getCmaExclude()) {
if (c == 0) {
return true;
}
} else {
if (c == 1) {
return true;
}
}
return false;
} else {
return true;
}
}
private boolean matchOid(TerminalSelectVo vo) {
if (StringUtils.isNotBlank(vo.getOid())) {
int d = 0;
Iterator<String> it = reportMap.keySet().iterator();
while (it.hasNext()) {
String key = it.next();
Object value = reportMap.get(key);
if (key.toLowerCase().contains("oid")) {
if (value != null && value.toString().contains(vo.getOid())) {
d = 1;
break;
}
}
}
if (vo.getOidExclude()) {
if (d == 0) {
return true;
}
} else {
if (d == 1) {
return true;
}
}
return false;
} else {
return true;
}
}
private boolean matchOnline(TerminalSelectVo vo) {
if (vo.getIsonline() != null) {
if (vo.getIsonline().equals(this.getOnlinestatus())) {
return true;
} else {
return false;
}
} else {
return true;
}
}
public Integer getOnlinestatus() {
if (rawReportTime == null) {
return 0;
}
long time = MyDateUtils.TimeSecond2MillSecond(rawReportTime);
DateTime date = MyDateUtils.date(time);
long between = MyDateUtils.between(MyDateUtils.getNowDate(), date, DateUnit.MINUTE);
if (between > TerminalUtils.hearttime) {
return 0;
} else {
return 1;
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save