From 593587aca26c69b930a19f643abe123a61dd1fb3 Mon Sep 17 00:00:00 2001 From: bgy Date: Wed, 3 Dec 2025 16:59:01 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E6=95=B0=E6=8D=AE=E5=AD=98?= =?UTF-8?q?=E5=82=A8=E5=92=8C=E6=9F=A5=E8=AF=A2=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 21 + .../influxdb/controller/DeviceDataController.java | 51 + .../influxdb/controller/DeviceLogController.java | 58 + .../topsail/influxdb/entity/DeviceBelongInfo.java | 25 + .../topsail/influxdb/entity/DeviceHistoryData.java | 46 + .../com/topsail/influxdb/entity/DeviceLogData.java | 32 + .../com/topsail/influxdb/mapper/AlarmMapper.java | 62 - .../com/topsail/influxdb/mapper/AlarmMapper.xml | 553 ----- .../topsail/influxdb/mapper/DeviceInfoMapper.java | 40 +- .../topsail/influxdb/mapper/DeviceInfoMapper.xml | 407 +--- .../influxdb/mapper/DeviceProjectViewMapper.java | 40 - .../influxdb/mapper/DeviceProjectViewMapper.xml | 240 -- .../topsail/influxdb/mapper/DeviceUserMapper.java | 40 - .../topsail/influxdb/mapper/DeviceUserMapper.xml | 483 ---- .../influxdb/mapper/GatewayDeviceMapper.java | 32 - .../influxdb/mapper/GatewayDeviceMapper.xml | 17 - .../topsail/influxdb/mapper/HistoryAllMapper.java | 48 - .../topsail/influxdb/mapper/HistoryAllMapper.xml | 491 ---- .../topsail/influxdb/mapper/HistoryErrMapper.java | 48 - .../topsail/influxdb/mapper/HistoryErrMapper.xml | 491 ---- .../com/topsail/influxdb/mapper/HistoryMapper.java | 60 - .../com/topsail/influxdb/mapper/HistoryMapper.xml | 555 ----- .../topsail/influxdb/mapper/ImsiImeiMapper.java | 72 - .../com/topsail/influxdb/mapper/ImsiImeiMapper.xml | 131 -- .../topsail/influxdb/mapper/NbiotConfigMapper.java | 40 - .../topsail/influxdb/mapper/NbiotConfigMapper.xml | 688 ------ .../topsail/influxdb/mapper/OcCompanyMapper.java | 40 - .../topsail/influxdb/mapper/OcCompanyMapper.xml | 285 --- .../topsail/influxdb/mapper/OcConfigMapper.java | 40 - .../com/topsail/influxdb/mapper/OcConfigMapper.xml | 688 ------ .../topsail/influxdb/mapper/OcDeviceMapper.java | 44 - .../com/topsail/influxdb/mapper/OcDeviceMapper.xml | 385 --- .../influxdb/mapper/OnenetCompanyMapper.java | 40 - .../influxdb/mapper/OnenetCompanyMapper.xml | 254 -- .../influxdb/mapper/OnenetDeviceMapper.java | 40 - .../topsail/influxdb/mapper/OnenetDeviceMapper.xml | 332 --- .../influxdb/mapper/OnlineProjectMapper.java | 40 - .../influxdb/mapper/OnlineProjectMapper.xml | 209 -- .../topsail/influxdb/mapper/OnlineRateMapper.java | 48 - .../topsail/influxdb/mapper/OnlineRateMapper.xml | 337 --- .../influxdb/mapper/OnlineRateViewMapper.java | 40 - .../influxdb/mapper/OnlineRateViewMapper.xml | 195 -- .../com/topsail/influxdb/mapper/ProjectMapper.java | 48 - .../com/topsail/influxdb/mapper/ProjectMapper.xml | 355 --- .../influxdb/mapper/ProjectTransmitMapper.java | 48 - .../influxdb/mapper/ProjectTransmitMapper.xml | 432 ---- .../influxdb/mapper/TransmitTypeMapper.java | 48 - .../topsail/influxdb/mapper/TransmitTypeMapper.xml | 223 -- .../influxdb/mapper/UpdateMsgViewMapper.java | 40 - .../influxdb/mapper/UpdateMsgViewMapper.xml | 195 -- .../{InfluxData.java => DeviceDataInfluxData.java} | 2 +- .../influxdb/model/DeviceLogInfluxData.java | 34 + src/main/java/com/topsail/influxdb/pojo/Alarm.java | 409 ---- .../com/topsail/influxdb/pojo/AlarmExample.java | 781 ------- .../topsail/influxdb/pojo/DeviceProjectView.java | 246 -- .../influxdb/pojo/DeviceProjectViewExample.java | 590 ----- .../java/com/topsail/influxdb/pojo/DeviceUser.java | 423 ---- .../topsail/influxdb/pojo/DeviceUserExample.java | 1631 ------------- .../com/topsail/influxdb/pojo/GatewayDevice.java | 125 - .../java/com/topsail/influxdb/pojo/History.java | 356 +-- .../java/com/topsail/influxdb/pojo/HistoryAll.java | 368 --- .../topsail/influxdb/pojo/HistoryAllExample.java | 1311 ----------- .../java/com/topsail/influxdb/pojo/HistoryErr.java | 368 --- .../topsail/influxdb/pojo/HistoryErrExample.java | 1311 ----------- .../com/topsail/influxdb/pojo/HistoryExample.java | 1241 ---------- .../topsail/influxdb/pojo/HistoryWithBLOBs.java | 215 -- .../java/com/topsail/influxdb/pojo/ImsiImei.java | 75 - .../com/topsail/influxdb/pojo/NbiotConfig.java | 566 ----- .../topsail/influxdb/pojo/NbiotConfigExample.java | 2431 ------------------- .../java/com/topsail/influxdb/pojo/OcCompany.java | 279 --- .../topsail/influxdb/pojo/OcCompanyExample.java | 800 ------- .../java/com/topsail/influxdb/pojo/OcConfig.java | 566 ----- .../com/topsail/influxdb/pojo/OcConfigExample.java | 2441 -------------------- .../java/com/topsail/influxdb/pojo/OcDevice.java | 323 --- .../com/topsail/influxdb/pojo/OcDeviceExample.java | 1000 -------- .../com/topsail/influxdb/pojo/OnenetCompany.java | 257 --- .../influxdb/pojo/OnenetCompanyExample.java | 670 ------ .../com/topsail/influxdb/pojo/OnenetDevice.java | 312 --- .../topsail/influxdb/pojo/OnenetDeviceExample.java | 990 -------- .../com/topsail/influxdb/pojo/OnlineProject.java | 224 -- .../influxdb/pojo/OnlineProjectExample.java | 440 ---- .../java/com/topsail/influxdb/pojo/OnlineRate.java | 280 --- .../topsail/influxdb/pojo/OnlineRateExample.java | 761 ------ .../com/topsail/influxdb/pojo/OnlineRateView.java | 214 -- .../influxdb/pojo/OnlineRateViewExample.java | 381 --- .../java/com/topsail/influxdb/pojo/Project.java | 291 --- .../com/topsail/influxdb/pojo/ProjectExample.java | 861 ------- .../com/topsail/influxdb/pojo/ProjectTransmit.java | 335 --- .../influxdb/pojo/ProjectTransmitExample.java | 1091 --------- .../com/topsail/influxdb/pojo/TransmitType.java | 213 -- .../topsail/influxdb/pojo/TransmitTypeExample.java | 380 --- .../com/topsail/influxdb/pojo/UpdateMsgView.java | 213 -- .../influxdb/pojo/UpdateMsgViewExample.java | 400 ---- .../topsail/influxdb/rabbitmq/AmqpListener.java | 30 +- .../influxdb/rabbitmq/service/IotService.java | 258 --- .../java/com/topsail/influxdb/result/CodeMsg.java | 58 + .../java/com/topsail/influxdb/result/Result.java | 95 + .../influxdb/service/DeviceDataService.java | 238 ++ .../topsail/influxdb/service/DeviceLogService.java | 285 +++ .../java/com/topsail/influxdb/task/CostRunner.java | 4 +- .../topsail/influxdb/task/OnlineScheduleTask.java | 4 +- src/main/resources/application-prod.properties | 6 - src/main/resources/application-rds.properties | 8 +- src/main/resources/application-test.properties | 6 - src/main/resources/application.properties | 1 + .../influxdb/OperateInfluxdbApplicationTests.java | 4 +- 106 files changed, 1079 insertions(+), 35300 deletions(-) create mode 100644 src/main/java/com/topsail/influxdb/controller/DeviceDataController.java create mode 100644 src/main/java/com/topsail/influxdb/controller/DeviceLogController.java create mode 100644 src/main/java/com/topsail/influxdb/entity/DeviceBelongInfo.java create mode 100644 src/main/java/com/topsail/influxdb/entity/DeviceHistoryData.java create mode 100644 src/main/java/com/topsail/influxdb/entity/DeviceLogData.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml delete mode 100644 src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java delete mode 100644 src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml rename src/main/java/com/topsail/influxdb/model/{InfluxData.java => DeviceDataInfluxData.java} (94%) create mode 100644 src/main/java/com/topsail/influxdb/model/DeviceLogInfluxData.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/Alarm.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/AlarmExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/DeviceUser.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/HistoryAll.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/HistoryErr.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/HistoryExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/ImsiImei.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OcCompany.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OcConfig.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OcDevice.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnlineProject.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnlineRate.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/Project.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/ProjectExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/TransmitType.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java delete mode 100644 src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java delete mode 100644 src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java create mode 100644 src/main/java/com/topsail/influxdb/result/CodeMsg.java create mode 100644 src/main/java/com/topsail/influxdb/result/Result.java create mode 100644 src/main/java/com/topsail/influxdb/service/DeviceDataService.java create mode 100644 src/main/java/com/topsail/influxdb/service/DeviceLogService.java delete mode 100644 src/main/resources/application-prod.properties delete mode 100644 src/main/resources/application-test.properties diff --git a/pom.xml b/pom.xml index e650f80..69b1f68 100644 --- a/pom.xml +++ b/pom.xml @@ -19,6 +19,27 @@ + + org.springframework.boot + spring-boot-starter-web + + + org.springframework.boot + spring-boot-starter-logging + + + + + + com.github.pagehelper + pagehelper-spring-boot-starter + 1.2.10 + + + org.projectlombok + lombok + 1.18.6 + org.springframework.boot spring-boot-starter-amqp diff --git a/src/main/java/com/topsail/influxdb/controller/DeviceDataController.java b/src/main/java/com/topsail/influxdb/controller/DeviceDataController.java new file mode 100644 index 0000000..4979bb6 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/controller/DeviceDataController.java @@ -0,0 +1,51 @@ +package com.topsail.influxdb.controller; + +import com.topsail.influxdb.entity.DeviceHistoryData; +import com.topsail.influxdb.result.Result; +import com.topsail.influxdb.service.DeviceDataService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Controller; +import org.springframework.validation.BindException; +import org.springframework.web.bind.annotation.*; + +import java.text.ParseException; +import java.util.ArrayList; +import java.util.List; + + +@RestController +@ResponseBody +@CrossOrigin +@RequestMapping(value = "/deviceData") +public class DeviceDataController { + private Logger logger = LoggerFactory.getLogger(DeviceDataController.class); + + @Autowired + private DeviceDataService deviceDataService; + + /** + * 查询单个设备历史数据(根据设备号查询设备历史数据) + * devices/history/{deviceid} + */ + @GetMapping(value = "/history/{deviceid}") + public Result> getHistoryData(String uid, Integer pageNo, Integer pageSize, String startTime, String endTime, @PathVariable("deviceid") String Imei) throws ParseException, BindException { + logger.info("history " + uid); + List list = new ArrayList<>(); + list = deviceDataService.getDeviceHistoryData(uid, pageNo, pageSize, startTime, endTime, Imei); + logger.info("finished request " + uid); + return Result.success(list); + } + + /** + * 查询单个设备历史数据(根据设备号查询设备历史数据) + * devices/history/{deviceid} + */ + @RequestMapping(value = "/delete", method = RequestMethod.GET) + public Result> deleteDeviceData() throws ParseException, BindException { + List list = new ArrayList<>(); + deviceDataService.deleteDeviceData(); + return Result.success(list); + } +} diff --git a/src/main/java/com/topsail/influxdb/controller/DeviceLogController.java b/src/main/java/com/topsail/influxdb/controller/DeviceLogController.java new file mode 100644 index 0000000..6dff473 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/controller/DeviceLogController.java @@ -0,0 +1,58 @@ +package com.topsail.influxdb.controller; + +import com.topsail.influxdb.entity.DeviceLogData; +import com.topsail.influxdb.result.CodeMsg; +import com.topsail.influxdb.result.Result; +import com.topsail.influxdb.service.DeviceLogService; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.validation.BindException; +import org.springframework.web.bind.annotation.*; + +import java.text.ParseException; +import java.util.ArrayList; +import java.util.List; + +@RestController +@ResponseBody +@CrossOrigin +@RequestMapping(value = "/deviceLog") +public class DeviceLogController { + private Logger logger = LoggerFactory.getLogger(DeviceLogController.class); + + @Autowired + private DeviceLogService deviceLogService; + + /** + * 查询设备下发命令日志信息 + * + * @param pageNode + * @param pageSize + * @param startTime + * @param endTime + * @param result 下发结果 + * @param imei 设备号 + * @param supplierId 供应商id + * @param companyId 公司id + * @param operator 操作人 + * @param houseId 房间id + * @return + */ + @GetMapping(value = "/getPageDeviceLog") + public Result> getPageDeviceLog(Integer pageNode, Integer pageSize, String startTime, String endTime, String result, String imei, String supplierId, String companyId, String operator, Integer houseId) throws ParseException, BindException { + List list = new ArrayList<>(); + list = deviceLogService.getPageDeviceLog(pageNode, pageSize, startTime, endTime, result, imei, supplierId, companyId, operator, houseId); + return Result.success(list); + } + + /** + * 查询单个设备历史数据(根据设备号查询设备历史数据) + * devices/history/{deviceid} + */ + @RequestMapping(value = "/delete", method = RequestMethod.GET) + public Result delete() throws ParseException, BindException { + deviceLogService.deleteDeviceLog(); + return Result.success(new CodeMsg(0, "success")); + } +} diff --git a/src/main/java/com/topsail/influxdb/entity/DeviceBelongInfo.java b/src/main/java/com/topsail/influxdb/entity/DeviceBelongInfo.java new file mode 100644 index 0000000..f05e76f --- /dev/null +++ b/src/main/java/com/topsail/influxdb/entity/DeviceBelongInfo.java @@ -0,0 +1,25 @@ +package com.topsail.influxdb.entity; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class DeviceBelongInfo { + /** + * 设备id + */ + private String imei; + /** + * 房间id + */ + private Integer houseId; + /** + * 设备所属信息 + */ + private String deviceBelongInfo; +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/entity/DeviceHistoryData.java b/src/main/java/com/topsail/influxdb/entity/DeviceHistoryData.java new file mode 100644 index 0000000..7c3ae15 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/entity/DeviceHistoryData.java @@ -0,0 +1,46 @@ +package com.topsail.influxdb.entity; + + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.List; + +/** + * 设备历史数据 + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class DeviceHistoryData { + private int id; + private int deviceType; + private String Imei; + private int batteryLevel; + private int signalStrength; + private String sampleData; + private int passNum; + private String alarmType; + private String unit; + private String dataBody;//整个数据包体 + private String time; + private String offlineTime;//离线时间 + private Double lon; + private Double lat; + private String address; + private String platformType; + private String value;//原始数据 + private String sendDate; + private String status;//在离线状态 + private Integer isOnline;//0离线1在线 + private String pressure;//添加此字段用来配合前端获取数据值 + private String name; + private String deviceName; + private String deviceModelName; + private List pictureList; + private Integer houseId;//房间id + private String deviceBelongInfo;//设备所属信息 +} diff --git a/src/main/java/com/topsail/influxdb/entity/DeviceLogData.java b/src/main/java/com/topsail/influxdb/entity/DeviceLogData.java new file mode 100644 index 0000000..e3bbb53 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/entity/DeviceLogData.java @@ -0,0 +1,32 @@ +package com.topsail.influxdb.entity; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +import java.util.Date; + +@Data +@AllArgsConstructor +@NoArgsConstructor +@Builder +public class DeviceLogData { + private Integer id; + + private String imei; + + private String operation; + + private String params; + + private Date updatetime; + /** + * 房间id + */ + private Integer houseId; + /** + * 设备所属信息 + */ + private String deviceBelongInfo; +} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java b/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java deleted file mode 100644 index 29d90b8..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.java +++ /dev/null @@ -1,62 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.Alarm; -import com.topsail.influxdb.pojo.AlarmExample; - -import java.util.Date; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface AlarmMapper { - long countByExample(AlarmExample example); - - int deleteByExample(AlarmExample example); - - int deleteByPrimaryKey(Long id); - - int insert(Alarm record); - - int insertAlarmData(@Param("alarmData") Alarm record); - - int updateAlarmData(Alarm record); - - int insertAlarmDataMonth(@Param("alarmData") Alarm record); - - - Alarm findAlarmData(@Param("imei")String imei); - - - int insertSelective(Alarm record); - - List selectByExample(AlarmExample example); - - Alarm selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") Alarm record, @Param("example") AlarmExample example); - - int updateByExample(@Param("record") Alarm record, @Param("example") AlarmExample example); - - int updateByPrimaryKeySelective(Alarm record); - - int updateByPrimaryKey(Alarm record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") Alarm.Column ... selective); - - int deleteAlarmDataMonth(@Param("endTime") Date endTime); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml b/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml deleted file mode 100644 index 2cd44d0..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/AlarmMapper.xml +++ /dev/null @@ -1,553 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime - - - - - delete - from alarm - where id = #{id,jdbcType=BIGINT} - - - delete from alarm - - - - - - insert into alarm (id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime) - values (#{id,jdbcType=BIGINT}, - #{imei,jdbcType=VARCHAR}, - #{alarmtype,jdbcType=VARCHAR}, - #{alarmvalue,jdbcType=VARCHAR}, - #{unit,jdbcType=VARCHAR}, - #{status,jdbcType=INTEGER}, - #{createtime,jdbcType=TIMESTAMP}, - #{updatetime,jdbcType=TIMESTAMP}, - #{endtime,jdbcType=TIMESTAMP}) - - - - - insert into alarm - - - id, - - - Imei, - - - alarmType, - - - alarmValue, - - - unit, - - - status, - - - createtime, - - - updatetime, - - - endtime, - - - - - #{id,jdbcType=BIGINT}, - - - #{imei,jdbcType=VARCHAR}, - - - #{alarmtype,jdbcType=VARCHAR}, - - - #{alarmvalue,jdbcType=VARCHAR}, - - - #{unit,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{createtime,jdbcType=TIMESTAMP}, - - - #{updatetime,jdbcType=TIMESTAMP}, - - - #{endtime,jdbcType=TIMESTAMP}, - - - - - - update alarm - - - id = #{record.id,jdbcType=BIGINT}, - - - Imei = #{record.imei,jdbcType=VARCHAR}, - - - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - - - alarmValue = #{record.alarmvalue,jdbcType=VARCHAR}, - - - unit = #{record.unit,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - createtime = #{record.createtime,jdbcType=TIMESTAMP}, - - - updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, - - - endtime = #{record.endtime,jdbcType=TIMESTAMP}, - - - - - - - - update alarm - set id = #{record.id,jdbcType=BIGINT}, - Imei = #{record.imei,jdbcType=VARCHAR}, - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - alarmValue = #{record.alarmvalue,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - createtime = #{record.createtime,jdbcType=TIMESTAMP}, - updatetime = #{record.updatetime,jdbcType=TIMESTAMP}, - endtime = #{record.endtime,jdbcType=TIMESTAMP} - - - - - - update alarm - - - Imei = #{imei,jdbcType=VARCHAR}, - - - alarmType = #{alarmtype,jdbcType=VARCHAR}, - - - alarmValue = #{alarmvalue,jdbcType=VARCHAR}, - - - unit = #{unit,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - createtime = #{createtime,jdbcType=TIMESTAMP}, - - - updatetime = #{updatetime,jdbcType=TIMESTAMP}, - - - endtime = #{endtime,jdbcType=TIMESTAMP}, - - - where id = #{id,jdbcType=BIGINT} - - - update alarm - set Imei = #{imei,jdbcType=VARCHAR}, - alarmType = #{alarmtype,jdbcType=VARCHAR}, - alarmValue = #{alarmvalue,jdbcType=VARCHAR}, - unit = #{unit,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - createtime = #{createtime,jdbcType=TIMESTAMP}, - updatetime = #{updatetime,jdbcType=TIMESTAMP}, - endtime = #{endtime,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=BIGINT} - - - - insert into alarm - (id, Imei, alarmType, alarmValue, unit, status, createtime, updatetime, endtime) - values - - (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.alarmtype,jdbcType=VARCHAR}, - #{item.alarmvalue,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, - #{item.createtime,jdbcType=TIMESTAMP}, #{item.updatetime,jdbcType=TIMESTAMP}, - #{item.endtime,jdbcType=TIMESTAMP} - ) - - - - - insert into alarm ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=BIGINT} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.alarmtype,jdbcType=VARCHAR} - - - #{item.alarmvalue,jdbcType=VARCHAR} - - - #{item.unit,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.createtime,jdbcType=TIMESTAMP} - - - #{item.updatetime,jdbcType=TIMESTAMP} - - - #{item.endtime,jdbcType=TIMESTAMP} - - - ) - - - - - - - insert into alarm_data - - imei, - alarmtype, - alarmvalue, - unit, - `status`, - createtime, - updatetime, - endtime, - alarm_n, - address, - lon, - lat, - alarmmsg, - descr, - uuid - - - - #{alarmData.imei,jdbcType=VARCHAR}, - #{alarmData.alarmtype,jdbcType=VARCHAR}, - #{alarmData.alarmvalue,jdbcType=VARCHAR}, - #{alarmData.unit,jdbcType=VARCHAR}, - #{alarmData.status,jdbcType=INTEGER}, - #{alarmData.createtime,jdbcType=TIMESTAMP}, - #{alarmData.updatetime,jdbcType=TIMESTAMP}, - #{alarmData.endtime,jdbcType=TIMESTAMP}, - #{alarmData.alarmN,jdbcType=INTEGER}, - #{alarmData.address,jdbcType=VARCHAR}, - #{alarmData.lon,jdbcType=DOUBLE}, - #{alarmData.lat,jdbcType=DOUBLE}, - #{alarmData.alarmMsg,jdbcType=VARCHAR}, - #{alarmData.descr,jdbcType=VARCHAR}, - #{alarmData.uuid,jdbcType=VARCHAR} - - - - - - - insert into alarm_data_month - - imei, - alarmType, - alarmValue, - unit, - `status`, - createtime, - updatetime, - endtime, - address, - lon, - lat, - alarmMsg, - descr, - uuid - - - - #{alarmData.imei,jdbcType=VARCHAR}, - #{alarmData.alarmtype,jdbcType=VARCHAR}, - #{alarmData.alarmvalue,jdbcType=VARCHAR}, - #{alarmData.unit,jdbcType=VARCHAR}, - #{alarmData.status,jdbcType=INTEGER}, - #{alarmData.createtime,jdbcType=TIMESTAMP}, - #{alarmData.updatetime,jdbcType=TIMESTAMP}, - #{alarmData.endtime,jdbcType=TIMESTAMP}, - #{alarmData.address,jdbcType=VARCHAR}, - #{alarmData.lon,jdbcType=DOUBLE}, - #{alarmData.lat,jdbcType=DOUBLE}, - #{alarmData.alarmMsg,jdbcType=VARCHAR}, - #{alarmData.descr,jdbcType=VARCHAR}, - #{alarmData.uuid,jdbcType=VARCHAR} - - - - - - - update alarm_data - - - imei=#{imei,jdbcType=VARCHAR}, - - - alarmType=#{alarmtype,jdbcType=VARCHAR}, - - - alarmValue=#{alarmvalue,jdbcType=VARCHAR}, - - - unit=#{unit,jdbcType=VARCHAR}, - - - `status`=#{status,jdbcType=INTEGER}, - - - createtime=#{createtime,jdbcType=TIMESTAMP}, - - - updatetime=#{updatetime,jdbcType=TIMESTAMP}, - - - endtime=#{endtime,jdbcType=TIMESTAMP}, - - - alarm_n=#{alarmN,jdbcType=INTEGER}, - - - address=#{address,jdbcType=VARCHAR}, - - - lon=#{lon,jdbcType=DOUBLE}, - - - lat=#{lat,jdbcType=DOUBLE}, - - - alarmMsg=#{alarmMsg,jdbcType=VARCHAR}, - - - descr=#{descr,jdbcType=VARCHAR}, - - - uuid=#{uuid,jdbcType=VARCHAR} - - - - where id = #{id} - - - - - - - - - - - - - - - - - - - - - - - - - - ad.id, - - ad.imei, - - ad.alarmType, - - ad.alarmValue, - - ad.unit, - - ad.status, - - ad.createtime, - - ad.updatetime, - - ad.endtime, - - ad.alarm_n, - - ad.address, - - ad.lon, - - ad.lat, - - ad.alarmMsg, - - ad.descr, - - ad.uuid - - - - - - - - - - delete from alarm_data_month where #{endTime,jdbcType=TIMESTAMP} > createtime - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java index 2391b3d..600e39f 100644 --- a/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.java @@ -1,44 +1,14 @@ package com.topsail.influxdb.mapper; -import com.topsail.influxdb.pojo.DeviceInfo; -import com.topsail.influxdb.pojo.DeviceInfoExample; -import java.util.List; +import com.topsail.influxdb.entity.DeviceBelongInfo; import org.apache.ibatis.annotations.Param; public interface DeviceInfoMapper { - long countByExample(DeviceInfoExample example); - - int deleteByExample(DeviceInfoExample example); - - int insert(DeviceInfo record); - - int insertSelective(DeviceInfo record); - - List selectByExampleWithBLOBs(DeviceInfoExample example); - - List selectByExample(DeviceInfoExample example); - - int updateByExampleSelective(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); - - int updateByExampleWithBLOBs(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); - - int updateByExample(@Param("record") DeviceInfo record, @Param("example") DeviceInfoExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_info - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_info + * 查询设备的所属信息 * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin + * @param imei + * @return */ - int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceInfo.Column ... selective); + DeviceBelongInfo queryDeviceBelongInfo(@Param("imei") String imei); } \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml index 2e63535..f061dbd 100644 --- a/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml +++ b/src/main/java/com/topsail/influxdb/mapper/DeviceInfoMapper.xml @@ -1,321 +1,98 @@ - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + - - - - - - - id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid - - - deviceId - - - - - delete from device_info - - - - - - insert into device_info (id, verifyCode, deviceType, - userName, latitude, longitude, - version, fk_pid, deviceId - ) - values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{devicetype,jdbcType=VARCHAR}, - #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, - #{version,jdbcType=VARCHAR}, #{fkPid,jdbcType=INTEGER}, #{deviceid,jdbcType=LONGVARCHAR} - ) - - - insert into device_info - - - id, - - - verifyCode, - - - deviceType, - - - userName, - - - latitude, - - - longitude, - - - version, - - - fk_pid, - - - deviceId, - - - - - #{id,jdbcType=INTEGER}, - - - #{verifycode,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{latitude,jdbcType=VARCHAR}, - - - #{longitude,jdbcType=VARCHAR}, - - - #{version,jdbcType=VARCHAR}, - - - #{fkPid,jdbcType=INTEGER}, - - - #{deviceid,jdbcType=LONGVARCHAR}, - - - - - - update device_info - - - id = #{record.id,jdbcType=INTEGER}, - - - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - latitude = #{record.latitude,jdbcType=VARCHAR}, - - - longitude = #{record.longitude,jdbcType=VARCHAR}, - - - version = #{record.version,jdbcType=VARCHAR}, - - - fk_pid = #{record.fkPid,jdbcType=INTEGER}, - - - deviceId = #{record.deviceid,jdbcType=LONGVARCHAR}, - - - - - - - - update device_info - set id = #{record.id,jdbcType=INTEGER}, - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - latitude = #{record.latitude,jdbcType=VARCHAR}, - longitude = #{record.longitude,jdbcType=VARCHAR}, - version = #{record.version,jdbcType=VARCHAR}, - fk_pid = #{record.fkPid,jdbcType=INTEGER}, - deviceId = #{record.deviceid,jdbcType=LONGVARCHAR} - - - - - - update device_info - set id = #{record.id,jdbcType=INTEGER}, - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - latitude = #{record.latitude,jdbcType=VARCHAR}, - longitude = #{record.longitude,jdbcType=VARCHAR}, - version = #{record.version,jdbcType=VARCHAR}, - fk_pid = #{record.fkPid,jdbcType=INTEGER} - - - - - - - insert into device_info - (id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, deviceId - ) - values - - (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=VARCHAR}, - #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, - #{item.version,jdbcType=VARCHAR}, #{item.fkPid,jdbcType=INTEGER}, #{item.deviceid,jdbcType=LONGVARCHAR} - ) - - - - - insert into device_info ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.verifycode,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.latitude,jdbcType=VARCHAR} - - - #{item.longitude,jdbcType=VARCHAR} - - - #{item.version,jdbcType=VARCHAR} - - - #{item.fkPid,jdbcType=INTEGER} - - - #{item.deviceid,jdbcType=LONGVARCHAR} - - - ) - - + + + + id + , verifyCode, deviceType, userName, latitude, longitude, version, fk_pid + + + deviceId + + \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java deleted file mode 100644 index 4530e6e..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.DeviceProjectView; -import com.topsail.influxdb.pojo.DeviceProjectViewExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface DeviceProjectViewMapper { - long countByExample(DeviceProjectViewExample example); - - int deleteByExample(DeviceProjectViewExample example); - - int insert(DeviceProjectView record); - - int insertSelective(DeviceProjectView record); - - List selectByExample(DeviceProjectViewExample example); - - int updateByExampleSelective(@Param("record") DeviceProjectView record, @Param("example") DeviceProjectViewExample example); - - int updateByExample(@Param("record") DeviceProjectView record, @Param("example") DeviceProjectViewExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceProjectView.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml deleted file mode 100644 index b287d2c..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/DeviceProjectViewMapper.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - imei, deviceType, userName, company_id, project_id, imei2 - - - - delete from device_project_view - - - - - - insert into device_project_view (imei, deviceType, userName, - company_id, project_id, imei2 - ) - values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, - #{companyId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, #{imei2,jdbcType=VARCHAR} - ) - - - insert into device_project_view - - - imei, - - - deviceType, - - - userName, - - - company_id, - - - project_id, - - - imei2, - - - - - #{imei,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{username,jdbcType=VARCHAR}, - - - #{companyId,jdbcType=INTEGER}, - - - #{projectId,jdbcType=INTEGER}, - - - #{imei2,jdbcType=VARCHAR}, - - - - - - update device_project_view - - - imei = #{record.imei,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - project_id = #{record.projectId,jdbcType=INTEGER}, - - - imei2 = #{record.imei2,jdbcType=VARCHAR}, - - - - - - - - update device_project_view - set imei = #{record.imei,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - userName = #{record.username,jdbcType=VARCHAR}, - company_id = #{record.companyId,jdbcType=INTEGER}, - project_id = #{record.projectId,jdbcType=INTEGER}, - imei2 = #{record.imei2,jdbcType=VARCHAR} - - - - - - - insert into device_project_view - (imei, deviceType, userName, company_id, project_id, imei2) - values - - (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, - #{item.companyId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, #{item.imei2,jdbcType=VARCHAR} - ) - - - - - insert into device_project_view ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.companyId,jdbcType=INTEGER} - - - #{item.projectId,jdbcType=INTEGER} - - - #{item.imei2,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java b/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java deleted file mode 100644 index e0f9feb..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.DeviceUser; -import com.topsail.influxdb.pojo.DeviceUserExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface DeviceUserMapper { - long countByExample(DeviceUserExample example); - - int deleteByExample(DeviceUserExample example); - - int insert(DeviceUser record); - - int insertSelective(DeviceUser record); - - List selectByExample(DeviceUserExample example); - - int updateByExampleSelective(@Param("record") DeviceUser record, @Param("example") DeviceUserExample example); - - int updateByExample(@Param("record") DeviceUser record, @Param("example") DeviceUserExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") DeviceUser.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml b/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml deleted file mode 100644 index f8bca25..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/DeviceUserMapper.xml +++ /dev/null @@ -1,483 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, time, offlineTime, address, lon, - lat, value, name, project_id, user_id, STATUS - - - - delete from device_user - - - - - - insert into device_user (Imei, deviceType, batteryLevel, - singalStrength, sampleData, passNum, - batteryState, alarmType, platformType, - userName, unit, sendTime, - time, offlineTime, address, - lon, lat, value, name, - project_id, user_id, STATUS - ) - values (#{imei,jdbcType=VARCHAR}, #{devicetype,jdbcType=INTEGER}, #{batterylevel,jdbcType=INTEGER}, - #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, #{passnum,jdbcType=INTEGER}, - #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, - #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, #{sendtime,jdbcType=VARCHAR}, - #{time,jdbcType=TIMESTAMP}, #{offlinetime,jdbcType=TIMESTAMP}, #{address,jdbcType=VARCHAR}, - #{lon,jdbcType=DOUBLE}, #{lat,jdbcType=DOUBLE}, #{value,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{projectId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{status,jdbcType=VARCHAR} - ) - - - insert into device_user - - - Imei, - - - deviceType, - - - batteryLevel, - - - singalStrength, - - - sampleData, - - - passNum, - - - batteryState, - - - alarmType, - - - platformType, - - - userName, - - - unit, - - - sendTime, - - - time, - - - offlineTime, - - - address, - - - lon, - - - lat, - - - value, - - - name, - - - project_id, - - - user_id, - - - STATUS, - - - - - #{imei,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{batterylevel,jdbcType=INTEGER}, - - - #{singalstrength,jdbcType=INTEGER}, - - - #{sampledata,jdbcType=VARCHAR}, - - - #{passnum,jdbcType=INTEGER}, - - - #{batterystate,jdbcType=INTEGER}, - - - #{alarmtype,jdbcType=VARCHAR}, - - - #{platformtype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{unit,jdbcType=VARCHAR}, - - - #{sendtime,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{offlinetime,jdbcType=TIMESTAMP}, - - - #{address,jdbcType=VARCHAR}, - - - #{lon,jdbcType=DOUBLE}, - - - #{lat,jdbcType=DOUBLE}, - - - #{value,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=INTEGER}, - - - #{userId,jdbcType=INTEGER}, - - - #{status,jdbcType=VARCHAR}, - - - - - - update device_user - - - Imei = #{record.imei,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - - - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - - - passNum = #{record.passnum,jdbcType=INTEGER}, - - - batteryState = #{record.batterystate,jdbcType=INTEGER}, - - - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - - - platformType = #{record.platformtype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - unit = #{record.unit,jdbcType=VARCHAR}, - - - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, - - - address = #{record.address,jdbcType=VARCHAR}, - - - lon = #{record.lon,jdbcType=DOUBLE}, - - - lat = #{record.lat,jdbcType=DOUBLE}, - - - value = #{record.value,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=INTEGER}, - - - user_id = #{record.userId,jdbcType=INTEGER}, - - - STATUS = #{record.status,jdbcType=VARCHAR}, - - - - - - - - update device_user - set Imei = #{record.imei,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - passNum = #{record.passnum,jdbcType=INTEGER}, - batteryState = #{record.batterystate,jdbcType=INTEGER}, - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - offlineTime = #{record.offlinetime,jdbcType=TIMESTAMP}, - address = #{record.address,jdbcType=VARCHAR}, - lon = #{record.lon,jdbcType=DOUBLE}, - lat = #{record.lat,jdbcType=DOUBLE}, - value = #{record.value,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=INTEGER}, - user_id = #{record.userId,jdbcType=INTEGER}, - STATUS = #{record.status,jdbcType=VARCHAR} - - - - - - - insert into device_user - (Imei, deviceType, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, time, offlineTime, address, - lon, lat, value, name, project_id, user_id, STATUS) - values - - (#{item.imei,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=INTEGER}, #{item.batterylevel,jdbcType=INTEGER}, - #{item.singalstrength,jdbcType=INTEGER}, #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, - #{item.batterystate,jdbcType=INTEGER}, #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, - #{item.username,jdbcType=VARCHAR}, #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, - #{item.time,jdbcType=TIMESTAMP}, #{item.offlinetime,jdbcType=TIMESTAMP}, #{item.address,jdbcType=VARCHAR}, - #{item.lon,jdbcType=DOUBLE}, #{item.lat,jdbcType=DOUBLE}, #{item.value,jdbcType=VARCHAR}, - #{item.name,jdbcType=VARCHAR}, #{item.projectId,jdbcType=INTEGER}, #{item.userId,jdbcType=INTEGER}, - #{item.status,jdbcType=VARCHAR}) - - - - - insert into device_user ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.batterylevel,jdbcType=INTEGER} - - - #{item.singalstrength,jdbcType=INTEGER} - - - #{item.sampledata,jdbcType=VARCHAR} - - - #{item.passnum,jdbcType=INTEGER} - - - #{item.batterystate,jdbcType=INTEGER} - - - #{item.alarmtype,jdbcType=VARCHAR} - - - #{item.platformtype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.unit,jdbcType=VARCHAR} - - - #{item.sendtime,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.offlinetime,jdbcType=TIMESTAMP} - - - #{item.address,jdbcType=VARCHAR} - - - #{item.lon,jdbcType=DOUBLE} - - - #{item.lat,jdbcType=DOUBLE} - - - #{item.value,jdbcType=VARCHAR} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=INTEGER} - - - #{item.userId,jdbcType=INTEGER} - - - #{item.status,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java deleted file mode 100644 index 5c85a26..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.GatewayDevice; -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Update; - - -/** - * - * - * @version - *
- * Author	Version		Date		Changes
- * Administrator 	1.0  		2022年04月22日 	Created
- *
- * 
- * @since 1. - */ -public interface GatewayDeviceMapper { - - /** - * 新增 - * - * @param - * @return - */ - int saveGatewayDevice(GatewayDevice gatewayDevice); - - @Update("update gateway_device set bind_status = #{bindStatus} where imei = #{imei}") - int updateGatewayDeviceStatus(@Param("imei") String imei,@Param("bindStatus") Integer bindStatus); - -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml deleted file mode 100644 index f2dfe88..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/GatewayDeviceMapper.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - - insert into gateway_device - (imei,parent_imei,device_id,platform_type,bind_status,create_time) - values - (#{imei},#{parentImei},#{deviceId},#{platformType},#{bindStatus},now()) - ON DUPLICATE KEY UPDATE - device_id = #{deviceId}, - platform_type = #{platformType}, - bind_status = #{bindStatus}, - update_time = now(); - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java b/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java deleted file mode 100644 index 0010337..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.HistoryAll; -import com.topsail.influxdb.pojo.HistoryAllExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface HistoryAllMapper { - long countByExample(HistoryAllExample example); - - int deleteByExample(HistoryAllExample example); - - int deleteByPrimaryKey(Long id); - - int insert(HistoryAll record); - - int insertSelective(HistoryAll record); - - List selectByExample(HistoryAllExample example); - - HistoryAll selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") HistoryAll record, @Param("example") HistoryAllExample example); - - int updateByExample(@Param("record") HistoryAll record, @Param("example") HistoryAllExample example); - - int updateByPrimaryKeySelective(HistoryAll record); - - int updateByPrimaryKey(HistoryAll record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") HistoryAll.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml b/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml deleted file mode 100644 index 8454065..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/HistoryAllMapper.xml +++ /dev/null @@ -1,491 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate - - - - - delete from history_all - where id = #{id,jdbcType=BIGINT} - - - delete from history_all - - - - - - insert into history_all (id, deviceType, Imei, - batteryLevel, singalStrength, sampleData, - passNum, batteryState, alarmType, - platformType, userName, unit, - sendTime, dataBody, time, - value, sendDate) - values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, - #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, - #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, - #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, - #{sendtime,jdbcType=VARCHAR}, #{databody,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, - #{value,jdbcType=VARCHAR}, #{senddate,jdbcType=TIMESTAMP}) - - - insert into history_all - - - id, - - - deviceType, - - - Imei, - - - batteryLevel, - - - singalStrength, - - - sampleData, - - - passNum, - - - batteryState, - - - alarmType, - - - platformType, - - - userName, - - - unit, - - - sendTime, - - - dataBody, - - - time, - - - value, - - - sendDate, - - - - - #{id,jdbcType=BIGINT}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{imei,jdbcType=VARCHAR}, - - - #{batterylevel,jdbcType=INTEGER}, - - - #{singalstrength,jdbcType=INTEGER}, - - - #{sampledata,jdbcType=VARCHAR}, - - - #{passnum,jdbcType=INTEGER}, - - - #{batterystate,jdbcType=INTEGER}, - - - #{alarmtype,jdbcType=VARCHAR}, - - - #{platformtype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{unit,jdbcType=VARCHAR}, - - - #{sendtime,jdbcType=VARCHAR}, - - - #{databody,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{value,jdbcType=VARCHAR}, - - - #{senddate,jdbcType=TIMESTAMP}, - - - - - - update history_all - - - id = #{record.id,jdbcType=BIGINT}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - Imei = #{record.imei,jdbcType=VARCHAR}, - - - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - - - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - - - passNum = #{record.passnum,jdbcType=INTEGER}, - - - batteryState = #{record.batterystate,jdbcType=INTEGER}, - - - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - - - platformType = #{record.platformtype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - unit = #{record.unit,jdbcType=VARCHAR}, - - - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - - - dataBody = #{record.databody,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - value = #{record.value,jdbcType=VARCHAR}, - - - sendDate = #{record.senddate,jdbcType=TIMESTAMP}, - - - - - - - - update history_all - set id = #{record.id,jdbcType=BIGINT}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - Imei = #{record.imei,jdbcType=VARCHAR}, - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - passNum = #{record.passnum,jdbcType=INTEGER}, - batteryState = #{record.batterystate,jdbcType=INTEGER}, - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - dataBody = #{record.databody,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - value = #{record.value,jdbcType=VARCHAR}, - sendDate = #{record.senddate,jdbcType=TIMESTAMP} - - - - - - update history_all - - - deviceType = #{devicetype,jdbcType=INTEGER}, - - - Imei = #{imei,jdbcType=VARCHAR}, - - - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{singalstrength,jdbcType=INTEGER}, - - - sampleData = #{sampledata,jdbcType=VARCHAR}, - - - passNum = #{passnum,jdbcType=INTEGER}, - - - batteryState = #{batterystate,jdbcType=INTEGER}, - - - alarmType = #{alarmtype,jdbcType=VARCHAR}, - - - platformType = #{platformtype,jdbcType=VARCHAR}, - - - userName = #{username,jdbcType=VARCHAR}, - - - unit = #{unit,jdbcType=VARCHAR}, - - - sendTime = #{sendtime,jdbcType=VARCHAR}, - - - dataBody = #{databody,jdbcType=VARCHAR}, - - - time = #{time,jdbcType=TIMESTAMP}, - - - value = #{value,jdbcType=VARCHAR}, - - - sendDate = #{senddate,jdbcType=TIMESTAMP}, - - - where id = #{id,jdbcType=BIGINT} - - - update history_all - set deviceType = #{devicetype,jdbcType=INTEGER}, - Imei = #{imei,jdbcType=VARCHAR}, - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - singalStrength = #{singalstrength,jdbcType=INTEGER}, - sampleData = #{sampledata,jdbcType=VARCHAR}, - passNum = #{passnum,jdbcType=INTEGER}, - batteryState = #{batterystate,jdbcType=INTEGER}, - alarmType = #{alarmtype,jdbcType=VARCHAR}, - platformType = #{platformtype,jdbcType=VARCHAR}, - userName = #{username,jdbcType=VARCHAR}, - unit = #{unit,jdbcType=VARCHAR}, - sendTime = #{sendtime,jdbcType=VARCHAR}, - dataBody = #{databody,jdbcType=VARCHAR}, - time = #{time,jdbcType=TIMESTAMP}, - value = #{value,jdbcType=VARCHAR}, - sendDate = #{senddate,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=BIGINT} - - - - insert into history_all - (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate - ) - values - - (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, - #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, - #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, - #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, - #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.databody,jdbcType=VARCHAR}, - #{item.time,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP} - ) - - - - - insert into history_all ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=BIGINT} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.batterylevel,jdbcType=INTEGER} - - - #{item.singalstrength,jdbcType=INTEGER} - - - #{item.sampledata,jdbcType=VARCHAR} - - - #{item.passnum,jdbcType=INTEGER} - - - #{item.batterystate,jdbcType=INTEGER} - - - #{item.alarmtype,jdbcType=VARCHAR} - - - #{item.platformtype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.unit,jdbcType=VARCHAR} - - - #{item.sendtime,jdbcType=VARCHAR} - - - #{item.databody,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.value,jdbcType=VARCHAR} - - - #{item.senddate,jdbcType=TIMESTAMP} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java b/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java deleted file mode 100644 index de4fd01..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.HistoryErr; -import com.topsail.influxdb.pojo.HistoryErrExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface HistoryErrMapper { - long countByExample(HistoryErrExample example); - - int deleteByExample(HistoryErrExample example); - - int deleteByPrimaryKey(Long id); - - int insert(HistoryErr record); - - int insertSelective(HistoryErr record); - - List selectByExample(HistoryErrExample example); - - HistoryErr selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") HistoryErr record, @Param("example") HistoryErrExample example); - - int updateByExample(@Param("record") HistoryErr record, @Param("example") HistoryErrExample example); - - int updateByPrimaryKeySelective(HistoryErr record); - - int updateByPrimaryKey(HistoryErr record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") HistoryErr.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml b/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml deleted file mode 100644 index a0e7ed9..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/HistoryErrMapper.xml +++ /dev/null @@ -1,491 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate - - - - - delete from history_err - where id = #{id,jdbcType=BIGINT} - - - delete from history_err - - - - - - insert into history_err (id, deviceType, Imei, - batteryLevel, singalStrength, sampleData, - passNum, batteryState, alarmType, - platformType, userName, unit, - sendTime, dataBody, time, - value, sendDate) - values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, - #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, - #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, - #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, - #{sendtime,jdbcType=VARCHAR}, #{databody,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, - #{value,jdbcType=VARCHAR}, #{senddate,jdbcType=TIMESTAMP}) - - - insert into history_err - - - id, - - - deviceType, - - - Imei, - - - batteryLevel, - - - singalStrength, - - - sampleData, - - - passNum, - - - batteryState, - - - alarmType, - - - platformType, - - - userName, - - - unit, - - - sendTime, - - - dataBody, - - - time, - - - value, - - - sendDate, - - - - - #{id,jdbcType=BIGINT}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{imei,jdbcType=VARCHAR}, - - - #{batterylevel,jdbcType=INTEGER}, - - - #{singalstrength,jdbcType=INTEGER}, - - - #{sampledata,jdbcType=VARCHAR}, - - - #{passnum,jdbcType=INTEGER}, - - - #{batterystate,jdbcType=INTEGER}, - - - #{alarmtype,jdbcType=VARCHAR}, - - - #{platformtype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{unit,jdbcType=VARCHAR}, - - - #{sendtime,jdbcType=VARCHAR}, - - - #{databody,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{value,jdbcType=VARCHAR}, - - - #{senddate,jdbcType=TIMESTAMP}, - - - - - - update history_err - - - id = #{record.id,jdbcType=BIGINT}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - Imei = #{record.imei,jdbcType=VARCHAR}, - - - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - - - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - - - passNum = #{record.passnum,jdbcType=INTEGER}, - - - batteryState = #{record.batterystate,jdbcType=INTEGER}, - - - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - - - platformType = #{record.platformtype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - unit = #{record.unit,jdbcType=VARCHAR}, - - - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - - - dataBody = #{record.databody,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - value = #{record.value,jdbcType=VARCHAR}, - - - sendDate = #{record.senddate,jdbcType=TIMESTAMP}, - - - - - - - - update history_err - set id = #{record.id,jdbcType=BIGINT}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - Imei = #{record.imei,jdbcType=VARCHAR}, - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - passNum = #{record.passnum,jdbcType=INTEGER}, - batteryState = #{record.batterystate,jdbcType=INTEGER}, - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - dataBody = #{record.databody,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - value = #{record.value,jdbcType=VARCHAR}, - sendDate = #{record.senddate,jdbcType=TIMESTAMP} - - - - - - update history_err - - - deviceType = #{devicetype,jdbcType=INTEGER}, - - - Imei = #{imei,jdbcType=VARCHAR}, - - - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{singalstrength,jdbcType=INTEGER}, - - - sampleData = #{sampledata,jdbcType=VARCHAR}, - - - passNum = #{passnum,jdbcType=INTEGER}, - - - batteryState = #{batterystate,jdbcType=INTEGER}, - - - alarmType = #{alarmtype,jdbcType=VARCHAR}, - - - platformType = #{platformtype,jdbcType=VARCHAR}, - - - userName = #{username,jdbcType=VARCHAR}, - - - unit = #{unit,jdbcType=VARCHAR}, - - - sendTime = #{sendtime,jdbcType=VARCHAR}, - - - dataBody = #{databody,jdbcType=VARCHAR}, - - - time = #{time,jdbcType=TIMESTAMP}, - - - value = #{value,jdbcType=VARCHAR}, - - - sendDate = #{senddate,jdbcType=TIMESTAMP}, - - - where id = #{id,jdbcType=BIGINT} - - - update history_err - set deviceType = #{devicetype,jdbcType=INTEGER}, - Imei = #{imei,jdbcType=VARCHAR}, - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - singalStrength = #{singalstrength,jdbcType=INTEGER}, - sampleData = #{sampledata,jdbcType=VARCHAR}, - passNum = #{passnum,jdbcType=INTEGER}, - batteryState = #{batterystate,jdbcType=INTEGER}, - alarmType = #{alarmtype,jdbcType=VARCHAR}, - platformType = #{platformtype,jdbcType=VARCHAR}, - userName = #{username,jdbcType=VARCHAR}, - unit = #{unit,jdbcType=VARCHAR}, - sendTime = #{sendtime,jdbcType=VARCHAR}, - dataBody = #{databody,jdbcType=VARCHAR}, - time = #{time,jdbcType=TIMESTAMP}, - value = #{value,jdbcType=VARCHAR}, - sendDate = #{senddate,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=BIGINT} - - - - insert into history_err - (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, dataBody, time, value, sendDate - ) - values - - (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, - #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, - #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, - #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, - #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.databody,jdbcType=VARCHAR}, - #{item.time,jdbcType=TIMESTAMP}, #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP} - ) - - - - - insert into history_err ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=BIGINT} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.batterylevel,jdbcType=INTEGER} - - - #{item.singalstrength,jdbcType=INTEGER} - - - #{item.sampledata,jdbcType=VARCHAR} - - - #{item.passnum,jdbcType=INTEGER} - - - #{item.batterystate,jdbcType=INTEGER} - - - #{item.alarmtype,jdbcType=VARCHAR} - - - #{item.platformtype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.unit,jdbcType=VARCHAR} - - - #{item.sendtime,jdbcType=VARCHAR} - - - #{item.databody,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.value,jdbcType=VARCHAR} - - - #{item.senddate,jdbcType=TIMESTAMP} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java b/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java deleted file mode 100644 index 026c2f7..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.java +++ /dev/null @@ -1,60 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.History; -import com.topsail.influxdb.pojo.HistoryExample; -import java.util.List; -import java.util.Map; - -import org.apache.ibatis.annotations.Param; -import org.apache.ibatis.annotations.Select; - -public interface HistoryMapper { - long countByExample(HistoryExample example); - - int deleteByExample(HistoryExample example); - - int deleteByPrimaryKey(Long id); - - int insert(History record); - - int insertSelective(History record); - - List selectByExampleWithBLOBs(HistoryExample example); - - List selectByExample(HistoryExample example); - - History selectByPrimaryKey(Long id); - - int updateByExampleSelective(@Param("record") History record, @Param("example") HistoryExample example); - - int updateByExampleWithBLOBs(@Param("record") History record, @Param("example") HistoryExample example); - - int updateByExample(@Param("record") History record, @Param("example") HistoryExample example); - - int updateByPrimaryKeySelective(History record); - - int updateByPrimaryKeyWithBLOBs(History record); - - int updateByPrimaryKey(History record); - - @Select("select * from (SELECT imei,count( 1 ) as num FROM history GROUP BY imei ORDER BY count( 1 ) DESC ) m where num>200") - List> getBigImei(); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") History.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml b/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml deleted file mode 100644 index a312468..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/HistoryMapper.xml +++ /dev/null @@ -1,555 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, time, value, sendDate - - - dataBody - - - - - - delete from history - where id = #{id,jdbcType=BIGINT} - - - delete from history - - - - - - insert into history (id, deviceType, Imei, - batteryLevel, singalStrength, sampleData, - passNum, batteryState, alarmType, - platformType, userName, unit, - sendTime, time, value, - sendDate, dataBody,devModel) - values (#{id,jdbcType=BIGINT}, #{devicetype,jdbcType=INTEGER}, #{imei,jdbcType=VARCHAR}, - #{batterylevel,jdbcType=INTEGER}, #{singalstrength,jdbcType=INTEGER}, #{sampledata,jdbcType=VARCHAR}, - #{passnum,jdbcType=INTEGER}, #{batterystate,jdbcType=INTEGER}, #{alarmtype,jdbcType=VARCHAR}, - #{platformtype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{unit,jdbcType=VARCHAR}, - #{sendtime,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, #{value,jdbcType=VARCHAR}, - #{senddate,jdbcType=TIMESTAMP}, #{databody,jdbcType=LONGVARCHAR},#{devModel,jdbcType=INTEGER}) - - - insert into history - - - id, - - - deviceType, - - - Imei, - - - batteryLevel, - - - singalStrength, - - - sampleData, - - - passNum, - - - batteryState, - - - alarmType, - - - platformType, - - - userName, - - - unit, - - - sendTime, - - - time, - - - value, - - - sendDate, - - - dataBody, - - - - - #{id,jdbcType=BIGINT}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{imei,jdbcType=VARCHAR}, - - - #{batterylevel,jdbcType=INTEGER}, - - - #{singalstrength,jdbcType=INTEGER}, - - - #{sampledata,jdbcType=VARCHAR}, - - - #{passnum,jdbcType=INTEGER}, - - - #{batterystate,jdbcType=INTEGER}, - - - #{alarmtype,jdbcType=VARCHAR}, - - - #{platformtype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{unit,jdbcType=VARCHAR}, - - - #{sendtime,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{value,jdbcType=VARCHAR}, - - - #{senddate,jdbcType=TIMESTAMP}, - - - #{databody,jdbcType=LONGVARCHAR}, - - - - - - update history - - - id = #{record.id,jdbcType=BIGINT}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - Imei = #{record.imei,jdbcType=VARCHAR}, - - - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - - - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - - - passNum = #{record.passnum,jdbcType=INTEGER}, - - - batteryState = #{record.batterystate,jdbcType=INTEGER}, - - - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - - - platformType = #{record.platformtype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - unit = #{record.unit,jdbcType=VARCHAR}, - - - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - value = #{record.value,jdbcType=VARCHAR}, - - - sendDate = #{record.senddate,jdbcType=TIMESTAMP}, - - - dataBody = #{record.databody,jdbcType=LONGVARCHAR}, - - - - - - - - update history - set id = #{record.id,jdbcType=BIGINT}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - Imei = #{record.imei,jdbcType=VARCHAR}, - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - passNum = #{record.passnum,jdbcType=INTEGER}, - batteryState = #{record.batterystate,jdbcType=INTEGER}, - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - value = #{record.value,jdbcType=VARCHAR}, - sendDate = #{record.senddate,jdbcType=TIMESTAMP}, - dataBody = #{record.databody,jdbcType=LONGVARCHAR} - - - - - - update history - set id = #{record.id,jdbcType=BIGINT}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - Imei = #{record.imei,jdbcType=VARCHAR}, - batteryLevel = #{record.batterylevel,jdbcType=INTEGER}, - singalStrength = #{record.singalstrength,jdbcType=INTEGER}, - sampleData = #{record.sampledata,jdbcType=VARCHAR}, - passNum = #{record.passnum,jdbcType=INTEGER}, - batteryState = #{record.batterystate,jdbcType=INTEGER}, - alarmType = #{record.alarmtype,jdbcType=VARCHAR}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - unit = #{record.unit,jdbcType=VARCHAR}, - sendTime = #{record.sendtime,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - value = #{record.value,jdbcType=VARCHAR}, - sendDate = #{record.senddate,jdbcType=TIMESTAMP} - - - - - - update history - - - deviceType = #{devicetype,jdbcType=INTEGER}, - - - Imei = #{imei,jdbcType=VARCHAR}, - - - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - - - singalStrength = #{singalstrength,jdbcType=INTEGER}, - - - sampleData = #{sampledata,jdbcType=VARCHAR}, - - - passNum = #{passnum,jdbcType=INTEGER}, - - - batteryState = #{batterystate,jdbcType=INTEGER}, - - - alarmType = #{alarmtype,jdbcType=VARCHAR}, - - - platformType = #{platformtype,jdbcType=VARCHAR}, - - - userName = #{username,jdbcType=VARCHAR}, - - - unit = #{unit,jdbcType=VARCHAR}, - - - sendTime = #{sendtime,jdbcType=VARCHAR}, - - - time = #{time,jdbcType=TIMESTAMP}, - - - value = #{value,jdbcType=VARCHAR}, - - - sendDate = #{senddate,jdbcType=TIMESTAMP}, - - - dataBody = #{databody,jdbcType=LONGVARCHAR}, - - - where id = #{id,jdbcType=BIGINT} - - - update history - set deviceType = #{devicetype,jdbcType=INTEGER}, - Imei = #{imei,jdbcType=VARCHAR}, - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - singalStrength = #{singalstrength,jdbcType=INTEGER}, - sampleData = #{sampledata,jdbcType=VARCHAR}, - passNum = #{passnum,jdbcType=INTEGER}, - batteryState = #{batterystate,jdbcType=INTEGER}, - alarmType = #{alarmtype,jdbcType=VARCHAR}, - platformType = #{platformtype,jdbcType=VARCHAR}, - userName = #{username,jdbcType=VARCHAR}, - unit = #{unit,jdbcType=VARCHAR}, - sendTime = #{sendtime,jdbcType=VARCHAR}, - time = #{time,jdbcType=TIMESTAMP}, - value = #{value,jdbcType=VARCHAR}, - sendDate = #{senddate,jdbcType=TIMESTAMP}, - dataBody = #{databody,jdbcType=LONGVARCHAR} - where id = #{id,jdbcType=BIGINT} - - - update history - set deviceType = #{devicetype,jdbcType=INTEGER}, - Imei = #{imei,jdbcType=VARCHAR}, - batteryLevel = #{batterylevel,jdbcType=INTEGER}, - singalStrength = #{singalstrength,jdbcType=INTEGER}, - sampleData = #{sampledata,jdbcType=VARCHAR}, - passNum = #{passnum,jdbcType=INTEGER}, - batteryState = #{batterystate,jdbcType=INTEGER}, - alarmType = #{alarmtype,jdbcType=VARCHAR}, - platformType = #{platformtype,jdbcType=VARCHAR}, - userName = #{username,jdbcType=VARCHAR}, - unit = #{unit,jdbcType=VARCHAR}, - sendTime = #{sendtime,jdbcType=VARCHAR}, - time = #{time,jdbcType=TIMESTAMP}, - value = #{value,jdbcType=VARCHAR}, - sendDate = #{senddate,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=BIGINT} - - - - insert into history - (id, deviceType, Imei, batteryLevel, singalStrength, sampleData, passNum, batteryState, - alarmType, platformType, userName, unit, sendTime, time, value, sendDate, dataBody - ) - values - - (#{item.id,jdbcType=BIGINT}, #{item.devicetype,jdbcType=INTEGER}, #{item.imei,jdbcType=VARCHAR}, - #{item.batterylevel,jdbcType=INTEGER}, #{item.singalstrength,jdbcType=INTEGER}, - #{item.sampledata,jdbcType=VARCHAR}, #{item.passnum,jdbcType=INTEGER}, #{item.batterystate,jdbcType=INTEGER}, - #{item.alarmtype,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, - #{item.unit,jdbcType=VARCHAR}, #{item.sendtime,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, - #{item.value,jdbcType=VARCHAR}, #{item.senddate,jdbcType=TIMESTAMP}, #{item.databody,jdbcType=LONGVARCHAR} - ) - - - - - insert into history ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=BIGINT} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.batterylevel,jdbcType=INTEGER} - - - #{item.singalstrength,jdbcType=INTEGER} - - - #{item.sampledata,jdbcType=VARCHAR} - - - #{item.passnum,jdbcType=INTEGER} - - - #{item.batterystate,jdbcType=INTEGER} - - - #{item.alarmtype,jdbcType=VARCHAR} - - - #{item.platformtype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.unit,jdbcType=VARCHAR} - - - #{item.sendtime,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.value,jdbcType=VARCHAR} - - - #{item.senddate,jdbcType=TIMESTAMP} - - - #{item.databody,jdbcType=LONGVARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java b/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java deleted file mode 100644 index 82abb01..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.java +++ /dev/null @@ -1,72 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.ImsiImei; -import org.apache.ibatis.annotations.Param; - -import java.util.List; - -/** - * - * imsi和imei关系表Dao - * - * @version - *
- * Author	Version		Date		Changes
- * Administrator 	1.0  		2021年05月31日 	Created
- *
- * 
- * @since 1. - */ -public interface ImsiImeiMapper { - - /** - * imsi和imei关系表 新增 - * - * @param imsiImei - * @return - */ - int saveImsiImei(@Param("imsiImei") ImsiImei imsiImei); - - - /** - * imsi和imei关系表 更新 - * - * @param imsiImei - * @return - */ - int updateImsiImei(ImsiImei imsiImei); - - /** - *imsi和imei关系表 删除 - * - * @param id - * @return - */ - int deleteImsiImei(@Param("imsi") String id); - - /** - * imsi和imei关系表 查询列表 - * - * @param imsiImei - * @param start - * @param pageSize - * @return - */ - List pageListImsiImei(@Param("imsiImei") ImsiImei imsiImei, @Param("start") Integer start, @Param("pageSize") Integer pageSize); - - /** - * imsi和imei关系表 count - * - * @param imsiImei - * @return - */ - Integer findCountImsiImei(@Param("imsiImei") ImsiImei imsiImei); - - /** - * imsi和imei关系表 根据id查询 - * - * @param imsi - * @return - */ - ImsiImei findImsiImei(String imsi); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml deleted file mode 100644 index 49a0469..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/ImsiImeiMapper.xml +++ /dev/null @@ -1,131 +0,0 @@ - - - - - - - - - - - - - - - - ii.imsi, - - ii.imei, - - ii.create_time, - - ii.update_time - - - - - insert into imsi_imei - - imsi, - imei, - create_time - - - #{imsiImei.imsi,jdbcType=VARCHAR}, - #{imsiImei.imei,jdbcType=VARCHAR}, - now() - - ON DUPLICATE KEY UPDATE - imei = #{imsiImei.imei}, - update_time = now(); - - - - - - - - update imsi_imei - - - imsi=#{imsi,jdbcType=VARCHAR}, - - - imei=#{imei,jdbcType=VARCHAR}, - - - update_time=#{updateTime,jdbcType=TIMESTAMP}, - - - where imsi = #{imsi} - - - - - - - delete from imsi_imei where imsi = #{imsi} - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java b/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java deleted file mode 100644 index 40524e1..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.NbiotConfig; -import com.topsail.influxdb.pojo.NbiotConfigExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface NbiotConfigMapper { - long countByExample(NbiotConfigExample example); - - int deleteByExample(NbiotConfigExample example); - - int insert(NbiotConfig record); - - int insertSelective(NbiotConfig record); - - List selectByExample(NbiotConfigExample example); - - int updateByExampleSelective(@Param("record") NbiotConfig record, @Param("example") NbiotConfigExample example); - - int updateByExample(@Param("record") NbiotConfig record, @Param("example") NbiotConfigExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") NbiotConfig.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml b/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml deleted file mode 100644 index 95da0cc..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/NbiotConfigMapper.xml +++ /dev/null @@ -1,688 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, - unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, - multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, - stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, - autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, lora_spreading, - lora_encoding_rate, netType - - - - delete from nbiot_config - - - - - - insert into nbiot_config (id, imei, typeName, - deviceType, collectionGap, sendingGap, - urlAddress, port, unipathThresholdLimit, - unipathThresholdUpper, unipathChangeThreshold, - multipleThresholdLimit, multipleThresholdUpper, - multipleChangeThreshold, controlValveState, - startTime, endTime, numDays, - switchingValue, stopReporting, softwareVersions, - hardwareVersions, IMSI, APN, - time, autoControlPolicy, autoControlTime, - selfCheckTime, collide, lean, - lora_frequency, lora_bandwidth, lora_spreading, - lora_encoding_rate, netType) - values (#{id,jdbcType=BIGINT}, #{imei,jdbcType=VARCHAR}, #{typename,jdbcType=VARCHAR}, - #{devicetype,jdbcType=INTEGER}, #{collectiongap,jdbcType=INTEGER}, #{sendinggap,jdbcType=INTEGER}, - #{urladdress,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{unipaththresholdlimit,jdbcType=INTEGER}, - #{unipaththresholdupper,jdbcType=INTEGER}, #{unipathchangethreshold,jdbcType=INTEGER}, - #{multiplethresholdlimit,jdbcType=INTEGER}, #{multiplethresholdupper,jdbcType=INTEGER}, - #{multiplechangethreshold,jdbcType=INTEGER}, #{controlvalvestate,jdbcType=INTEGER}, - #{starttime,jdbcType=VARCHAR}, #{endtime,jdbcType=VARCHAR}, #{numdays,jdbcType=INTEGER}, - #{switchingvalue,jdbcType=INTEGER}, #{stopreporting,jdbcType=INTEGER}, #{softwareversions,jdbcType=VARCHAR}, - #{hardwareversions,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR}, #{apn,jdbcType=VARCHAR}, - #{time,jdbcType=TIMESTAMP}, #{autocontrolpolicy,jdbcType=VARCHAR}, #{autocontroltime,jdbcType=VARCHAR}, - #{selfchecktime,jdbcType=VARCHAR}, #{collide,jdbcType=INTEGER}, #{lean,jdbcType=INTEGER}, - #{loraFrequency,jdbcType=INTEGER}, #{loraBandwidth,jdbcType=INTEGER}, #{loraSpreading,jdbcType=INTEGER}, - #{loraEncodingRate,jdbcType=INTEGER}, #{nettype,jdbcType=INTEGER}) - - - insert into nbiot_config - - - id, - - - imei, - - - typeName, - - - deviceType, - - - collectionGap, - - - sendingGap, - - - urlAddress, - - - port, - - - unipathThresholdLimit, - - - unipathThresholdUpper, - - - unipathChangeThreshold, - - - multipleThresholdLimit, - - - multipleThresholdUpper, - - - multipleChangeThreshold, - - - controlValveState, - - - startTime, - - - endTime, - - - numDays, - - - switchingValue, - - - stopReporting, - - - softwareVersions, - - - hardwareVersions, - - - IMSI, - - - APN, - - - time, - - - autoControlPolicy, - - - autoControlTime, - - - selfCheckTime, - - - collide, - - - lean, - - - lora_frequency, - - - lora_bandwidth, - - - lora_spreading, - - - lora_encoding_rate, - - - netType, - - - - - #{id,jdbcType=BIGINT}, - - - #{imei,jdbcType=VARCHAR}, - - - #{typename,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{collectiongap,jdbcType=INTEGER}, - - - #{sendinggap,jdbcType=INTEGER}, - - - #{urladdress,jdbcType=VARCHAR}, - - - #{port,jdbcType=VARCHAR}, - - - #{unipaththresholdlimit,jdbcType=INTEGER}, - - - #{unipaththresholdupper,jdbcType=INTEGER}, - - - #{unipathchangethreshold,jdbcType=INTEGER}, - - - #{multiplethresholdlimit,jdbcType=INTEGER}, - - - #{multiplethresholdupper,jdbcType=INTEGER}, - - - #{multiplechangethreshold,jdbcType=INTEGER}, - - - #{controlvalvestate,jdbcType=INTEGER}, - - - #{starttime,jdbcType=VARCHAR}, - - - #{endtime,jdbcType=VARCHAR}, - - - #{numdays,jdbcType=INTEGER}, - - - #{switchingvalue,jdbcType=INTEGER}, - - - #{stopreporting,jdbcType=INTEGER}, - - - #{softwareversions,jdbcType=VARCHAR}, - - - #{hardwareversions,jdbcType=VARCHAR}, - - - #{imsi,jdbcType=VARCHAR}, - - - #{apn,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{autocontrolpolicy,jdbcType=VARCHAR}, - - - #{autocontroltime,jdbcType=VARCHAR}, - - - #{selfchecktime,jdbcType=VARCHAR}, - - - #{collide,jdbcType=INTEGER}, - - - #{lean,jdbcType=INTEGER}, - - - #{loraFrequency,jdbcType=INTEGER}, - - - #{loraBandwidth,jdbcType=INTEGER}, - - - #{loraSpreading,jdbcType=INTEGER}, - - - #{loraEncodingRate,jdbcType=INTEGER}, - - - #{nettype,jdbcType=INTEGER}, - - - - - - update nbiot_config - - - id = #{record.id,jdbcType=BIGINT}, - - - imei = #{record.imei,jdbcType=VARCHAR}, - - - typeName = #{record.typename,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - collectionGap = #{record.collectiongap,jdbcType=INTEGER}, - - - sendingGap = #{record.sendinggap,jdbcType=INTEGER}, - - - urlAddress = #{record.urladdress,jdbcType=VARCHAR}, - - - port = #{record.port,jdbcType=VARCHAR}, - - - unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, - - - unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, - - - unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, - - - multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, - - - multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, - - - multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, - - - controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, - - - startTime = #{record.starttime,jdbcType=VARCHAR}, - - - endTime = #{record.endtime,jdbcType=VARCHAR}, - - - numDays = #{record.numdays,jdbcType=INTEGER}, - - - switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, - - - stopReporting = #{record.stopreporting,jdbcType=INTEGER}, - - - softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, - - - hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, - - - IMSI = #{record.imsi,jdbcType=VARCHAR}, - - - APN = #{record.apn,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, - - - autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, - - - selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, - - - collide = #{record.collide,jdbcType=INTEGER}, - - - lean = #{record.lean,jdbcType=INTEGER}, - - - lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, - - - lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, - - - lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, - - - lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, - - - netType = #{record.nettype,jdbcType=INTEGER}, - - - - - - - - update nbiot_config - set id = #{record.id,jdbcType=BIGINT}, - imei = #{record.imei,jdbcType=VARCHAR}, - typeName = #{record.typename,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - collectionGap = #{record.collectiongap,jdbcType=INTEGER}, - sendingGap = #{record.sendinggap,jdbcType=INTEGER}, - urlAddress = #{record.urladdress,jdbcType=VARCHAR}, - port = #{record.port,jdbcType=VARCHAR}, - unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, - unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, - unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, - multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, - multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, - multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, - controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, - startTime = #{record.starttime,jdbcType=VARCHAR}, - endTime = #{record.endtime,jdbcType=VARCHAR}, - numDays = #{record.numdays,jdbcType=INTEGER}, - switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, - stopReporting = #{record.stopreporting,jdbcType=INTEGER}, - softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, - hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, - IMSI = #{record.imsi,jdbcType=VARCHAR}, - APN = #{record.apn,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, - autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, - selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, - collide = #{record.collide,jdbcType=INTEGER}, - lean = #{record.lean,jdbcType=INTEGER}, - lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, - lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, - lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, - lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, - netType = #{record.nettype,jdbcType=INTEGER} - - - - - - - insert into nbiot_config - (id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, - unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, - multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, - stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, - autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, - lora_spreading, lora_encoding_rate, netType) - values - - (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.typename,jdbcType=VARCHAR}, - #{item.devicetype,jdbcType=INTEGER}, #{item.collectiongap,jdbcType=INTEGER}, #{item.sendinggap,jdbcType=INTEGER}, - #{item.urladdress,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, #{item.unipaththresholdlimit,jdbcType=INTEGER}, - #{item.unipaththresholdupper,jdbcType=INTEGER}, #{item.unipathchangethreshold,jdbcType=INTEGER}, - #{item.multiplethresholdlimit,jdbcType=INTEGER}, #{item.multiplethresholdupper,jdbcType=INTEGER}, - #{item.multiplechangethreshold,jdbcType=INTEGER}, #{item.controlvalvestate,jdbcType=INTEGER}, - #{item.starttime,jdbcType=VARCHAR}, #{item.endtime,jdbcType=VARCHAR}, #{item.numdays,jdbcType=INTEGER}, - #{item.switchingvalue,jdbcType=INTEGER}, #{item.stopreporting,jdbcType=INTEGER}, - #{item.softwareversions,jdbcType=VARCHAR}, #{item.hardwareversions,jdbcType=VARCHAR}, - #{item.imsi,jdbcType=VARCHAR}, #{item.apn,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, - #{item.autocontrolpolicy,jdbcType=VARCHAR}, #{item.autocontroltime,jdbcType=VARCHAR}, - #{item.selfchecktime,jdbcType=VARCHAR}, #{item.collide,jdbcType=INTEGER}, #{item.lean,jdbcType=INTEGER}, - #{item.loraFrequency,jdbcType=INTEGER}, #{item.loraBandwidth,jdbcType=INTEGER}, - #{item.loraSpreading,jdbcType=INTEGER}, #{item.loraEncodingRate,jdbcType=INTEGER}, - #{item.nettype,jdbcType=INTEGER}) - - - - - insert into nbiot_config ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=BIGINT} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.typename,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.collectiongap,jdbcType=INTEGER} - - - #{item.sendinggap,jdbcType=INTEGER} - - - #{item.urladdress,jdbcType=VARCHAR} - - - #{item.port,jdbcType=VARCHAR} - - - #{item.unipaththresholdlimit,jdbcType=INTEGER} - - - #{item.unipaththresholdupper,jdbcType=INTEGER} - - - #{item.unipathchangethreshold,jdbcType=INTEGER} - - - #{item.multiplethresholdlimit,jdbcType=INTEGER} - - - #{item.multiplethresholdupper,jdbcType=INTEGER} - - - #{item.multiplechangethreshold,jdbcType=INTEGER} - - - #{item.controlvalvestate,jdbcType=INTEGER} - - - #{item.starttime,jdbcType=VARCHAR} - - - #{item.endtime,jdbcType=VARCHAR} - - - #{item.numdays,jdbcType=INTEGER} - - - #{item.switchingvalue,jdbcType=INTEGER} - - - #{item.stopreporting,jdbcType=INTEGER} - - - #{item.softwareversions,jdbcType=VARCHAR} - - - #{item.hardwareversions,jdbcType=VARCHAR} - - - #{item.imsi,jdbcType=VARCHAR} - - - #{item.apn,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.autocontrolpolicy,jdbcType=VARCHAR} - - - #{item.autocontroltime,jdbcType=VARCHAR} - - - #{item.selfchecktime,jdbcType=VARCHAR} - - - #{item.collide,jdbcType=INTEGER} - - - #{item.lean,jdbcType=INTEGER} - - - #{item.loraFrequency,jdbcType=INTEGER} - - - #{item.loraBandwidth,jdbcType=INTEGER} - - - #{item.loraSpreading,jdbcType=INTEGER} - - - #{item.loraEncodingRate,jdbcType=INTEGER} - - - #{item.nettype,jdbcType=INTEGER} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java b/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java deleted file mode 100644 index 9e9b4c2..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OcCompany; -import com.topsail.influxdb.pojo.OcCompanyExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OcCompanyMapper { - long countByExample(OcCompanyExample example); - - int deleteByExample(OcCompanyExample example); - - int insert(OcCompany record); - - int insertSelective(OcCompany record); - - List selectByExample(OcCompanyExample example); - - int updateByExampleSelective(@Param("record") OcCompany record, @Param("example") OcCompanyExample example); - - int updateByExample(@Param("record") OcCompany record, @Param("example") OcCompanyExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OcCompany.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml deleted file mode 100644 index 70d07bf..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OcCompanyMapper.xml +++ /dev/null @@ -1,285 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, username, userip, userport, userprot, period, phoneNum, cid, cperiod - - - - delete from oc_company - - - - - - insert into oc_company (id, username, userip, - userport, userprot, period, - phoneNum, cid, cperiod - ) - values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{userip,jdbcType=VARCHAR}, - #{userport,jdbcType=INTEGER}, #{userprot,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, - #{phonenum,jdbcType=VARCHAR}, #{cid,jdbcType=INTEGER}, #{cperiod,jdbcType=VARCHAR} - ) - - - insert into oc_company - - - id, - - - username, - - - userip, - - - userport, - - - userprot, - - - period, - - - phoneNum, - - - cid, - - - cperiod, - - - - - #{id,jdbcType=INTEGER}, - - - #{username,jdbcType=VARCHAR}, - - - #{userip,jdbcType=VARCHAR}, - - - #{userport,jdbcType=INTEGER}, - - - #{userprot,jdbcType=VARCHAR}, - - - #{period,jdbcType=VARCHAR}, - - - #{phonenum,jdbcType=VARCHAR}, - - - #{cid,jdbcType=INTEGER}, - - - #{cperiod,jdbcType=VARCHAR}, - - - - - - update oc_company - - - id = #{record.id,jdbcType=INTEGER}, - - - username = #{record.username,jdbcType=VARCHAR}, - - - userip = #{record.userip,jdbcType=VARCHAR}, - - - userport = #{record.userport,jdbcType=INTEGER}, - - - userprot = #{record.userprot,jdbcType=VARCHAR}, - - - period = #{record.period,jdbcType=VARCHAR}, - - - phoneNum = #{record.phonenum,jdbcType=VARCHAR}, - - - cid = #{record.cid,jdbcType=INTEGER}, - - - cperiod = #{record.cperiod,jdbcType=VARCHAR}, - - - - - - - - update oc_company - set id = #{record.id,jdbcType=INTEGER}, - username = #{record.username,jdbcType=VARCHAR}, - userip = #{record.userip,jdbcType=VARCHAR}, - userport = #{record.userport,jdbcType=INTEGER}, - userprot = #{record.userprot,jdbcType=VARCHAR}, - period = #{record.period,jdbcType=VARCHAR}, - phoneNum = #{record.phonenum,jdbcType=VARCHAR}, - cid = #{record.cid,jdbcType=INTEGER}, - cperiod = #{record.cperiod,jdbcType=VARCHAR} - - - - - - - insert into oc_company - (id, username, userip, userport, userprot, period, phoneNum, cid, cperiod) - values - - (#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.userip,jdbcType=VARCHAR}, - #{item.userport,jdbcType=INTEGER}, #{item.userprot,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, - #{item.phonenum,jdbcType=VARCHAR}, #{item.cid,jdbcType=INTEGER}, #{item.cperiod,jdbcType=VARCHAR} - ) - - - - - insert into oc_company ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.userip,jdbcType=VARCHAR} - - - #{item.userport,jdbcType=INTEGER} - - - #{item.userprot,jdbcType=VARCHAR} - - - #{item.period,jdbcType=VARCHAR} - - - #{item.phonenum,jdbcType=VARCHAR} - - - #{item.cid,jdbcType=INTEGER} - - - #{item.cperiod,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java b/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java deleted file mode 100644 index b7f713b..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OcConfig; -import com.topsail.influxdb.pojo.OcConfigExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OcConfigMapper { - long countByExample(OcConfigExample example); - - int deleteByExample(OcConfigExample example); - - int insert(OcConfig record); - - int insertSelective(OcConfig record); - - List selectByExample(OcConfigExample example); - - int updateByExampleSelective(@Param("record") OcConfig record, @Param("example") OcConfigExample example); - - int updateByExample(@Param("record") OcConfig record, @Param("example") OcConfigExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OcConfig.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml deleted file mode 100644 index 81c0cd8..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OcConfigMapper.xml +++ /dev/null @@ -1,688 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, - unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, - multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, - stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, - autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, lora_spreading, - lora_encoding_rate, cimei - - - - delete from oc_config - - - - - - insert into oc_config (id, imei, typeName, - deviceType, collectionGap, sendingGap, - urlAddress, port, unipathThresholdLimit, - unipathThresholdUpper, unipathChangeThreshold, - multipleThresholdLimit, multipleThresholdUpper, - multipleChangeThreshold, controlValveState, - startTime, endTime, numDays, - switchingValue, stopReporting, softwareVersions, - hardwareVersions, IMSI, APN, - time, autoControlPolicy, autoControlTime, - selfCheckTime, collide, lean, - lora_frequency, lora_bandwidth, lora_spreading, - lora_encoding_rate, cimei) - values (#{id,jdbcType=BIGINT}, #{imei,jdbcType=VARCHAR}, #{typename,jdbcType=VARCHAR}, - #{devicetype,jdbcType=INTEGER}, #{collectiongap,jdbcType=INTEGER}, #{sendinggap,jdbcType=INTEGER}, - #{urladdress,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{unipaththresholdlimit,jdbcType=INTEGER}, - #{unipaththresholdupper,jdbcType=INTEGER}, #{unipathchangethreshold,jdbcType=INTEGER}, - #{multiplethresholdlimit,jdbcType=INTEGER}, #{multiplethresholdupper,jdbcType=INTEGER}, - #{multiplechangethreshold,jdbcType=INTEGER}, #{controlvalvestate,jdbcType=INTEGER}, - #{starttime,jdbcType=VARCHAR}, #{endtime,jdbcType=VARCHAR}, #{numdays,jdbcType=INTEGER}, - #{switchingvalue,jdbcType=INTEGER}, #{stopreporting,jdbcType=INTEGER}, #{softwareversions,jdbcType=VARCHAR}, - #{hardwareversions,jdbcType=VARCHAR}, #{imsi,jdbcType=VARCHAR}, #{apn,jdbcType=VARCHAR}, - #{time,jdbcType=TIMESTAMP}, #{autocontrolpolicy,jdbcType=VARCHAR}, #{autocontroltime,jdbcType=VARCHAR}, - #{selfchecktime,jdbcType=VARCHAR}, #{collide,jdbcType=INTEGER}, #{lean,jdbcType=INTEGER}, - #{loraFrequency,jdbcType=INTEGER}, #{loraBandwidth,jdbcType=INTEGER}, #{loraSpreading,jdbcType=INTEGER}, - #{loraEncodingRate,jdbcType=INTEGER}, #{cimei,jdbcType=VARCHAR}) - - - insert into oc_config - - - id, - - - imei, - - - typeName, - - - deviceType, - - - collectionGap, - - - sendingGap, - - - urlAddress, - - - port, - - - unipathThresholdLimit, - - - unipathThresholdUpper, - - - unipathChangeThreshold, - - - multipleThresholdLimit, - - - multipleThresholdUpper, - - - multipleChangeThreshold, - - - controlValveState, - - - startTime, - - - endTime, - - - numDays, - - - switchingValue, - - - stopReporting, - - - softwareVersions, - - - hardwareVersions, - - - IMSI, - - - APN, - - - time, - - - autoControlPolicy, - - - autoControlTime, - - - selfCheckTime, - - - collide, - - - lean, - - - lora_frequency, - - - lora_bandwidth, - - - lora_spreading, - - - lora_encoding_rate, - - - cimei, - - - - - #{id,jdbcType=BIGINT}, - - - #{imei,jdbcType=VARCHAR}, - - - #{typename,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=INTEGER}, - - - #{collectiongap,jdbcType=INTEGER}, - - - #{sendinggap,jdbcType=INTEGER}, - - - #{urladdress,jdbcType=VARCHAR}, - - - #{port,jdbcType=VARCHAR}, - - - #{unipaththresholdlimit,jdbcType=INTEGER}, - - - #{unipaththresholdupper,jdbcType=INTEGER}, - - - #{unipathchangethreshold,jdbcType=INTEGER}, - - - #{multiplethresholdlimit,jdbcType=INTEGER}, - - - #{multiplethresholdupper,jdbcType=INTEGER}, - - - #{multiplechangethreshold,jdbcType=INTEGER}, - - - #{controlvalvestate,jdbcType=INTEGER}, - - - #{starttime,jdbcType=VARCHAR}, - - - #{endtime,jdbcType=VARCHAR}, - - - #{numdays,jdbcType=INTEGER}, - - - #{switchingvalue,jdbcType=INTEGER}, - - - #{stopreporting,jdbcType=INTEGER}, - - - #{softwareversions,jdbcType=VARCHAR}, - - - #{hardwareversions,jdbcType=VARCHAR}, - - - #{imsi,jdbcType=VARCHAR}, - - - #{apn,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{autocontrolpolicy,jdbcType=VARCHAR}, - - - #{autocontroltime,jdbcType=VARCHAR}, - - - #{selfchecktime,jdbcType=VARCHAR}, - - - #{collide,jdbcType=INTEGER}, - - - #{lean,jdbcType=INTEGER}, - - - #{loraFrequency,jdbcType=INTEGER}, - - - #{loraBandwidth,jdbcType=INTEGER}, - - - #{loraSpreading,jdbcType=INTEGER}, - - - #{loraEncodingRate,jdbcType=INTEGER}, - - - #{cimei,jdbcType=VARCHAR}, - - - - - - update oc_config - - - id = #{record.id,jdbcType=BIGINT}, - - - imei = #{record.imei,jdbcType=VARCHAR}, - - - typeName = #{record.typename,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=INTEGER}, - - - collectionGap = #{record.collectiongap,jdbcType=INTEGER}, - - - sendingGap = #{record.sendinggap,jdbcType=INTEGER}, - - - urlAddress = #{record.urladdress,jdbcType=VARCHAR}, - - - port = #{record.port,jdbcType=VARCHAR}, - - - unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, - - - unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, - - - unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, - - - multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, - - - multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, - - - multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, - - - controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, - - - startTime = #{record.starttime,jdbcType=VARCHAR}, - - - endTime = #{record.endtime,jdbcType=VARCHAR}, - - - numDays = #{record.numdays,jdbcType=INTEGER}, - - - switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, - - - stopReporting = #{record.stopreporting,jdbcType=INTEGER}, - - - softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, - - - hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, - - - IMSI = #{record.imsi,jdbcType=VARCHAR}, - - - APN = #{record.apn,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, - - - autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, - - - selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, - - - collide = #{record.collide,jdbcType=INTEGER}, - - - lean = #{record.lean,jdbcType=INTEGER}, - - - lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, - - - lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, - - - lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, - - - lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, - - - cimei = #{record.cimei,jdbcType=VARCHAR}, - - - - - - - - update oc_config - set id = #{record.id,jdbcType=BIGINT}, - imei = #{record.imei,jdbcType=VARCHAR}, - typeName = #{record.typename,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=INTEGER}, - collectionGap = #{record.collectiongap,jdbcType=INTEGER}, - sendingGap = #{record.sendinggap,jdbcType=INTEGER}, - urlAddress = #{record.urladdress,jdbcType=VARCHAR}, - port = #{record.port,jdbcType=VARCHAR}, - unipathThresholdLimit = #{record.unipaththresholdlimit,jdbcType=INTEGER}, - unipathThresholdUpper = #{record.unipaththresholdupper,jdbcType=INTEGER}, - unipathChangeThreshold = #{record.unipathchangethreshold,jdbcType=INTEGER}, - multipleThresholdLimit = #{record.multiplethresholdlimit,jdbcType=INTEGER}, - multipleThresholdUpper = #{record.multiplethresholdupper,jdbcType=INTEGER}, - multipleChangeThreshold = #{record.multiplechangethreshold,jdbcType=INTEGER}, - controlValveState = #{record.controlvalvestate,jdbcType=INTEGER}, - startTime = #{record.starttime,jdbcType=VARCHAR}, - endTime = #{record.endtime,jdbcType=VARCHAR}, - numDays = #{record.numdays,jdbcType=INTEGER}, - switchingValue = #{record.switchingvalue,jdbcType=INTEGER}, - stopReporting = #{record.stopreporting,jdbcType=INTEGER}, - softwareVersions = #{record.softwareversions,jdbcType=VARCHAR}, - hardwareVersions = #{record.hardwareversions,jdbcType=VARCHAR}, - IMSI = #{record.imsi,jdbcType=VARCHAR}, - APN = #{record.apn,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - autoControlPolicy = #{record.autocontrolpolicy,jdbcType=VARCHAR}, - autoControlTime = #{record.autocontroltime,jdbcType=VARCHAR}, - selfCheckTime = #{record.selfchecktime,jdbcType=VARCHAR}, - collide = #{record.collide,jdbcType=INTEGER}, - lean = #{record.lean,jdbcType=INTEGER}, - lora_frequency = #{record.loraFrequency,jdbcType=INTEGER}, - lora_bandwidth = #{record.loraBandwidth,jdbcType=INTEGER}, - lora_spreading = #{record.loraSpreading,jdbcType=INTEGER}, - lora_encoding_rate = #{record.loraEncodingRate,jdbcType=INTEGER}, - cimei = #{record.cimei,jdbcType=VARCHAR} - - - - - - - insert into oc_config - (id, imei, typeName, deviceType, collectionGap, sendingGap, urlAddress, port, unipathThresholdLimit, - unipathThresholdUpper, unipathChangeThreshold, multipleThresholdLimit, multipleThresholdUpper, - multipleChangeThreshold, controlValveState, startTime, endTime, numDays, switchingValue, - stopReporting, softwareVersions, hardwareVersions, IMSI, APN, time, autoControlPolicy, - autoControlTime, selfCheckTime, collide, lean, lora_frequency, lora_bandwidth, - lora_spreading, lora_encoding_rate, cimei) - values - - (#{item.id,jdbcType=BIGINT}, #{item.imei,jdbcType=VARCHAR}, #{item.typename,jdbcType=VARCHAR}, - #{item.devicetype,jdbcType=INTEGER}, #{item.collectiongap,jdbcType=INTEGER}, #{item.sendinggap,jdbcType=INTEGER}, - #{item.urladdress,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, #{item.unipaththresholdlimit,jdbcType=INTEGER}, - #{item.unipaththresholdupper,jdbcType=INTEGER}, #{item.unipathchangethreshold,jdbcType=INTEGER}, - #{item.multiplethresholdlimit,jdbcType=INTEGER}, #{item.multiplethresholdupper,jdbcType=INTEGER}, - #{item.multiplechangethreshold,jdbcType=INTEGER}, #{item.controlvalvestate,jdbcType=INTEGER}, - #{item.starttime,jdbcType=VARCHAR}, #{item.endtime,jdbcType=VARCHAR}, #{item.numdays,jdbcType=INTEGER}, - #{item.switchingvalue,jdbcType=INTEGER}, #{item.stopreporting,jdbcType=INTEGER}, - #{item.softwareversions,jdbcType=VARCHAR}, #{item.hardwareversions,jdbcType=VARCHAR}, - #{item.imsi,jdbcType=VARCHAR}, #{item.apn,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, - #{item.autocontrolpolicy,jdbcType=VARCHAR}, #{item.autocontroltime,jdbcType=VARCHAR}, - #{item.selfchecktime,jdbcType=VARCHAR}, #{item.collide,jdbcType=INTEGER}, #{item.lean,jdbcType=INTEGER}, - #{item.loraFrequency,jdbcType=INTEGER}, #{item.loraBandwidth,jdbcType=INTEGER}, - #{item.loraSpreading,jdbcType=INTEGER}, #{item.loraEncodingRate,jdbcType=INTEGER}, - #{item.cimei,jdbcType=VARCHAR}) - - - - - insert into oc_config ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=BIGINT} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.typename,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=INTEGER} - - - #{item.collectiongap,jdbcType=INTEGER} - - - #{item.sendinggap,jdbcType=INTEGER} - - - #{item.urladdress,jdbcType=VARCHAR} - - - #{item.port,jdbcType=VARCHAR} - - - #{item.unipaththresholdlimit,jdbcType=INTEGER} - - - #{item.unipaththresholdupper,jdbcType=INTEGER} - - - #{item.unipathchangethreshold,jdbcType=INTEGER} - - - #{item.multiplethresholdlimit,jdbcType=INTEGER} - - - #{item.multiplethresholdupper,jdbcType=INTEGER} - - - #{item.multiplechangethreshold,jdbcType=INTEGER} - - - #{item.controlvalvestate,jdbcType=INTEGER} - - - #{item.starttime,jdbcType=VARCHAR} - - - #{item.endtime,jdbcType=VARCHAR} - - - #{item.numdays,jdbcType=INTEGER} - - - #{item.switchingvalue,jdbcType=INTEGER} - - - #{item.stopreporting,jdbcType=INTEGER} - - - #{item.softwareversions,jdbcType=VARCHAR} - - - #{item.hardwareversions,jdbcType=VARCHAR} - - - #{item.imsi,jdbcType=VARCHAR} - - - #{item.apn,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.autocontrolpolicy,jdbcType=VARCHAR} - - - #{item.autocontroltime,jdbcType=VARCHAR} - - - #{item.selfchecktime,jdbcType=VARCHAR} - - - #{item.collide,jdbcType=INTEGER} - - - #{item.lean,jdbcType=INTEGER} - - - #{item.loraFrequency,jdbcType=INTEGER} - - - #{item.loraBandwidth,jdbcType=INTEGER} - - - #{item.loraSpreading,jdbcType=INTEGER} - - - #{item.loraEncodingRate,jdbcType=INTEGER} - - - #{item.cimei,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java deleted file mode 100644 index 919ed5f..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.java +++ /dev/null @@ -1,44 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OcDevice; -import com.topsail.influxdb.pojo.OcDeviceExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OcDeviceMapper { - long countByExample(OcDeviceExample example); - - int deleteByExample(OcDeviceExample example); - - int insert(OcDevice record); - - int insertSelective(OcDevice record); - - List selectByExampleWithBLOBs(OcDeviceExample example); - - List selectByExample(OcDeviceExample example); - - int updateByExampleSelective(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); - - int updateByExampleWithBLOBs(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); - - int updateByExample(@Param("record") OcDevice record, @Param("example") OcDeviceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OcDevice.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml deleted file mode 100644 index 41acec8..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OcDeviceMapper.xml +++ /dev/null @@ -1,385 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, period, - imei, dperiod, company_id - - - deviceId - - - - - delete from oc_device - - - - - - insert into oc_device (id, verifyCode, deviceType, - userName, latitude, longitude, - version, fk_pid, period, - imei, dperiod, company_id, - deviceId) - values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{devicetype,jdbcType=VARCHAR}, - #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, - #{version,jdbcType=VARCHAR}, #{fkPid,jdbcType=INTEGER}, #{period,jdbcType=VARCHAR}, - #{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, - #{deviceid,jdbcType=LONGVARCHAR}) - - - insert into oc_device - - - id, - - - verifyCode, - - - deviceType, - - - userName, - - - latitude, - - - longitude, - - - version, - - - fk_pid, - - - period, - - - imei, - - - dperiod, - - - company_id, - - - deviceId, - - - - - #{id,jdbcType=INTEGER}, - - - #{verifycode,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{latitude,jdbcType=VARCHAR}, - - - #{longitude,jdbcType=VARCHAR}, - - - #{version,jdbcType=VARCHAR}, - - - #{fkPid,jdbcType=INTEGER}, - - - #{period,jdbcType=VARCHAR}, - - - #{imei,jdbcType=VARCHAR}, - - - #{dperiod,jdbcType=INTEGER}, - - - #{companyId,jdbcType=INTEGER}, - - - #{deviceid,jdbcType=LONGVARCHAR}, - - - - - - update oc_device - - - id = #{record.id,jdbcType=INTEGER}, - - - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - latitude = #{record.latitude,jdbcType=VARCHAR}, - - - longitude = #{record.longitude,jdbcType=VARCHAR}, - - - version = #{record.version,jdbcType=VARCHAR}, - - - fk_pid = #{record.fkPid,jdbcType=INTEGER}, - - - period = #{record.period,jdbcType=VARCHAR}, - - - imei = #{record.imei,jdbcType=VARCHAR}, - - - dperiod = #{record.dperiod,jdbcType=INTEGER}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - deviceId = #{record.deviceid,jdbcType=LONGVARCHAR}, - - - - - - - - update oc_device - set id = #{record.id,jdbcType=INTEGER}, - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - latitude = #{record.latitude,jdbcType=VARCHAR}, - longitude = #{record.longitude,jdbcType=VARCHAR}, - version = #{record.version,jdbcType=VARCHAR}, - fk_pid = #{record.fkPid,jdbcType=INTEGER}, - period = #{record.period,jdbcType=VARCHAR}, - imei = #{record.imei,jdbcType=VARCHAR}, - dperiod = #{record.dperiod,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER}, - deviceId = #{record.deviceid,jdbcType=LONGVARCHAR} - - - - - - update oc_device - set id = #{record.id,jdbcType=INTEGER}, - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - latitude = #{record.latitude,jdbcType=VARCHAR}, - longitude = #{record.longitude,jdbcType=VARCHAR}, - version = #{record.version,jdbcType=VARCHAR}, - fk_pid = #{record.fkPid,jdbcType=INTEGER}, - period = #{record.period,jdbcType=VARCHAR}, - imei = #{record.imei,jdbcType=VARCHAR}, - dperiod = #{record.dperiod,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER} - - - - - - - insert into oc_device - (id, verifyCode, deviceType, userName, latitude, longitude, version, fk_pid, period, - imei, dperiod, company_id, deviceId) - values - - (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.devicetype,jdbcType=VARCHAR}, - #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=VARCHAR}, #{item.longitude,jdbcType=VARCHAR}, - #{item.version,jdbcType=VARCHAR}, #{item.fkPid,jdbcType=INTEGER}, #{item.period,jdbcType=VARCHAR}, - #{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, - #{item.deviceid,jdbcType=LONGVARCHAR}) - - - - - insert into oc_device ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.verifycode,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.latitude,jdbcType=VARCHAR} - - - #{item.longitude,jdbcType=VARCHAR} - - - #{item.version,jdbcType=VARCHAR} - - - #{item.fkPid,jdbcType=INTEGER} - - - #{item.period,jdbcType=VARCHAR} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.dperiod,jdbcType=INTEGER} - - - #{item.companyId,jdbcType=INTEGER} - - - #{item.deviceid,jdbcType=LONGVARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java deleted file mode 100644 index a3b4572..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OnenetCompany; -import com.topsail.influxdb.pojo.OnenetCompanyExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OnenetCompanyMapper { - long countByExample(OnenetCompanyExample example); - - int deleteByExample(OnenetCompanyExample example); - - int insert(OnenetCompany record); - - int insertSelective(OnenetCompany record); - - List selectByExample(OnenetCompanyExample example); - - int updateByExampleSelective(@Param("record") OnenetCompany record, @Param("example") OnenetCompanyExample example); - - int updateByExample(@Param("record") OnenetCompany record, @Param("example") OnenetCompanyExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OnenetCompany.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml deleted file mode 100644 index 1010854..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnenetCompanyMapper.xml +++ /dev/null @@ -1,254 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, username, userip, userport, userprot, period, cperiod - - - - delete from onenet_company - - - - - - insert into onenet_company (id, username, userip, - userport, userprot, period, - cperiod) - values (#{id,jdbcType=INTEGER}, #{username,jdbcType=VARCHAR}, #{userip,jdbcType=VARCHAR}, - #{userport,jdbcType=INTEGER}, #{userprot,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, - #{cperiod,jdbcType=VARCHAR}) - - - insert into onenet_company - - - id, - - - username, - - - userip, - - - userport, - - - userprot, - - - period, - - - cperiod, - - - - - #{id,jdbcType=INTEGER}, - - - #{username,jdbcType=VARCHAR}, - - - #{userip,jdbcType=VARCHAR}, - - - #{userport,jdbcType=INTEGER}, - - - #{userprot,jdbcType=VARCHAR}, - - - #{period,jdbcType=VARCHAR}, - - - #{cperiod,jdbcType=VARCHAR}, - - - - - - update onenet_company - - - id = #{record.id,jdbcType=INTEGER}, - - - username = #{record.username,jdbcType=VARCHAR}, - - - userip = #{record.userip,jdbcType=VARCHAR}, - - - userport = #{record.userport,jdbcType=INTEGER}, - - - userprot = #{record.userprot,jdbcType=VARCHAR}, - - - period = #{record.period,jdbcType=VARCHAR}, - - - cperiod = #{record.cperiod,jdbcType=VARCHAR}, - - - - - - - - update onenet_company - set id = #{record.id,jdbcType=INTEGER}, - username = #{record.username,jdbcType=VARCHAR}, - userip = #{record.userip,jdbcType=VARCHAR}, - userport = #{record.userport,jdbcType=INTEGER}, - userprot = #{record.userprot,jdbcType=VARCHAR}, - period = #{record.period,jdbcType=VARCHAR}, - cperiod = #{record.cperiod,jdbcType=VARCHAR} - - - - - - - insert into onenet_company - (id, username, userip, userport, userprot, period, cperiod) - values - - (#{item.id,jdbcType=INTEGER}, #{item.username,jdbcType=VARCHAR}, #{item.userip,jdbcType=VARCHAR}, - #{item.userport,jdbcType=INTEGER}, #{item.userprot,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, - #{item.cperiod,jdbcType=VARCHAR}) - - - - - insert into onenet_company ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.userip,jdbcType=VARCHAR} - - - #{item.userport,jdbcType=INTEGER} - - - #{item.userprot,jdbcType=VARCHAR} - - - #{item.period,jdbcType=VARCHAR} - - - #{item.cperiod,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java deleted file mode 100644 index 8e88233..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OnenetDevice; -import com.topsail.influxdb.pojo.OnenetDeviceExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OnenetDeviceMapper { - long countByExample(OnenetDeviceExample example); - - int deleteByExample(OnenetDeviceExample example); - - int insert(OnenetDevice record); - - int insertSelective(OnenetDevice record); - - List selectByExample(OnenetDeviceExample example); - - int updateByExampleSelective(@Param("record") OnenetDevice record, @Param("example") OnenetDeviceExample example); - - int updateByExample(@Param("record") OnenetDevice record, @Param("example") OnenetDeviceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OnenetDevice.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml deleted file mode 100644 index f59d7ae..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnenetDeviceMapper.xml +++ /dev/null @@ -1,332 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period, - imei, dperiod, company_id - - - - delete from onenet_device - - - - - - insert into onenet_device (id, verifyCode, deviceId, - deviceType, userName, latitude, - longitude, type, period, - imei, dperiod, company_id - ) - values (#{id,jdbcType=INTEGER}, #{verifycode,jdbcType=VARCHAR}, #{deviceid,jdbcType=VARCHAR}, - #{devicetype,jdbcType=VARCHAR}, #{username,jdbcType=VARCHAR}, #{latitude,jdbcType=DOUBLE}, - #{longitude,jdbcType=DOUBLE}, #{type,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, - #{imei,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER} - ) - - - insert into onenet_device - - - id, - - - verifyCode, - - - deviceId, - - - deviceType, - - - userName, - - - latitude, - - - longitude, - - - type, - - - period, - - - imei, - - - dperiod, - - - company_id, - - - - - #{id,jdbcType=INTEGER}, - - - #{verifycode,jdbcType=VARCHAR}, - - - #{deviceid,jdbcType=VARCHAR}, - - - #{devicetype,jdbcType=VARCHAR}, - - - #{username,jdbcType=VARCHAR}, - - - #{latitude,jdbcType=DOUBLE}, - - - #{longitude,jdbcType=DOUBLE}, - - - #{type,jdbcType=VARCHAR}, - - - #{period,jdbcType=VARCHAR}, - - - #{imei,jdbcType=VARCHAR}, - - - #{dperiod,jdbcType=INTEGER}, - - - #{companyId,jdbcType=INTEGER}, - - - - - - update onenet_device - - - id = #{record.id,jdbcType=INTEGER}, - - - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - - - deviceId = #{record.deviceid,jdbcType=VARCHAR}, - - - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - latitude = #{record.latitude,jdbcType=DOUBLE}, - - - longitude = #{record.longitude,jdbcType=DOUBLE}, - - - type = #{record.type,jdbcType=VARCHAR}, - - - period = #{record.period,jdbcType=VARCHAR}, - - - imei = #{record.imei,jdbcType=VARCHAR}, - - - dperiod = #{record.dperiod,jdbcType=INTEGER}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - - - - - - update onenet_device - set id = #{record.id,jdbcType=INTEGER}, - verifyCode = #{record.verifycode,jdbcType=VARCHAR}, - deviceId = #{record.deviceid,jdbcType=VARCHAR}, - deviceType = #{record.devicetype,jdbcType=VARCHAR}, - userName = #{record.username,jdbcType=VARCHAR}, - latitude = #{record.latitude,jdbcType=DOUBLE}, - longitude = #{record.longitude,jdbcType=DOUBLE}, - type = #{record.type,jdbcType=VARCHAR}, - period = #{record.period,jdbcType=VARCHAR}, - imei = #{record.imei,jdbcType=VARCHAR}, - dperiod = #{record.dperiod,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER} - - - - - - - insert into onenet_device - (id, verifyCode, deviceId, deviceType, userName, latitude, longitude, type, period, - imei, dperiod, company_id) - values - - (#{item.id,jdbcType=INTEGER}, #{item.verifycode,jdbcType=VARCHAR}, #{item.deviceid,jdbcType=VARCHAR}, - #{item.devicetype,jdbcType=VARCHAR}, #{item.username,jdbcType=VARCHAR}, #{item.latitude,jdbcType=DOUBLE}, - #{item.longitude,jdbcType=DOUBLE}, #{item.type,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, - #{item.imei,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER} - ) - - - - - insert into onenet_device ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.verifycode,jdbcType=VARCHAR} - - - #{item.deviceid,jdbcType=VARCHAR} - - - #{item.devicetype,jdbcType=VARCHAR} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.latitude,jdbcType=DOUBLE} - - - #{item.longitude,jdbcType=DOUBLE} - - - #{item.type,jdbcType=VARCHAR} - - - #{item.period,jdbcType=VARCHAR} - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.dperiod,jdbcType=INTEGER} - - - #{item.companyId,jdbcType=INTEGER} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java deleted file mode 100644 index 48b4e60..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OnlineProject; -import com.topsail.influxdb.pojo.OnlineProjectExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OnlineProjectMapper { - long countByExample(OnlineProjectExample example); - - int deleteByExample(OnlineProjectExample example); - - int insert(OnlineProject record); - - int insertSelective(OnlineProject record); - - List selectByExample(OnlineProjectExample example); - - int updateByExampleSelective(@Param("record") OnlineProject record, @Param("example") OnlineProjectExample example); - - int updateByExample(@Param("record") OnlineProject record, @Param("example") OnlineProjectExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OnlineProject.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml deleted file mode 100644 index 610f4dd..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnlineProjectMapper.xml +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - num, project_id, company_id, STATUS - - - - delete from online_project - - - - - - insert into online_project (num, project_id, company_id, - STATUS) - values (#{num,jdbcType=BIGINT}, #{projectId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, - #{status,jdbcType=INTEGER}) - - - insert into online_project - - - num, - - - project_id, - - - company_id, - - - STATUS, - - - - - #{num,jdbcType=BIGINT}, - - - #{projectId,jdbcType=INTEGER}, - - - #{companyId,jdbcType=INTEGER}, - - - #{status,jdbcType=INTEGER}, - - - - - - update online_project - - - num = #{record.num,jdbcType=BIGINT}, - - - project_id = #{record.projectId,jdbcType=INTEGER}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - STATUS = #{record.status,jdbcType=INTEGER}, - - - - - - - - update online_project - set num = #{record.num,jdbcType=BIGINT}, - project_id = #{record.projectId,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER}, - STATUS = #{record.status,jdbcType=INTEGER} - - - - - - - insert into online_project - (num, project_id, company_id, STATUS) - values - - (#{item.num,jdbcType=BIGINT}, #{item.projectId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, - #{item.status,jdbcType=INTEGER}) - - - - - insert into online_project ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.num,jdbcType=BIGINT} - - - #{item.projectId,jdbcType=INTEGER} - - - #{item.companyId,jdbcType=INTEGER} - - - #{item.status,jdbcType=INTEGER} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java deleted file mode 100644 index e6a2073..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OnlineRate; -import com.topsail.influxdb.pojo.OnlineRateExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OnlineRateMapper { - long countByExample(OnlineRateExample example); - - int deleteByExample(OnlineRateExample example); - - int deleteByPrimaryKey(Integer id); - - int insert(OnlineRate record); - - int insertSelective(OnlineRate record); - - List selectByExample(OnlineRateExample example); - - OnlineRate selectByPrimaryKey(Integer id); - - int updateByExampleSelective(@Param("record") OnlineRate record, @Param("example") OnlineRateExample example); - - int updateByExample(@Param("record") OnlineRate record, @Param("example") OnlineRateExample example); - - int updateByPrimaryKeySelective(OnlineRate record); - - int updateByPrimaryKey(OnlineRate record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OnlineRate.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml deleted file mode 100644 index 886667b..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnlineRateMapper.xml +++ /dev/null @@ -1,337 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, online, count, per, platformType, time, userName, project_id, company_id - - - - - delete from online_rate - where id = #{id,jdbcType=INTEGER} - - - delete from online_rate - - - - - - insert into online_rate (id, online, count, - per, platformType, time, - userName, project_id, company_id - ) - values (#{id,jdbcType=INTEGER}, #{online,jdbcType=INTEGER}, #{count,jdbcType=INTEGER}, - #{per,jdbcType=DOUBLE}, #{platformtype,jdbcType=VARCHAR}, #{time,jdbcType=TIMESTAMP}, - #{username,jdbcType=VARCHAR}, #{projectId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER} - ) - - - insert into online_rate - - - id, - - - online, - - - count, - - - per, - - - platformType, - - - time, - - - userName, - - - project_id, - - - company_id, - - - - - #{id,jdbcType=INTEGER}, - - - #{online,jdbcType=INTEGER}, - - - #{count,jdbcType=INTEGER}, - - - #{per,jdbcType=DOUBLE}, - - - #{platformtype,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{username,jdbcType=VARCHAR}, - - - #{projectId,jdbcType=INTEGER}, - - - #{companyId,jdbcType=INTEGER}, - - - - - - update online_rate - - - id = #{record.id,jdbcType=INTEGER}, - - - online = #{record.online,jdbcType=INTEGER}, - - - count = #{record.count,jdbcType=INTEGER}, - - - per = #{record.per,jdbcType=DOUBLE}, - - - platformType = #{record.platformtype,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - userName = #{record.username,jdbcType=VARCHAR}, - - - project_id = #{record.projectId,jdbcType=INTEGER}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - - - - - - update online_rate - set id = #{record.id,jdbcType=INTEGER}, - online = #{record.online,jdbcType=INTEGER}, - count = #{record.count,jdbcType=INTEGER}, - per = #{record.per,jdbcType=DOUBLE}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - userName = #{record.username,jdbcType=VARCHAR}, - project_id = #{record.projectId,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER} - - - - - - update online_rate - - - online = #{online,jdbcType=INTEGER}, - - - count = #{count,jdbcType=INTEGER}, - - - per = #{per,jdbcType=DOUBLE}, - - - platformType = #{platformtype,jdbcType=VARCHAR}, - - - time = #{time,jdbcType=TIMESTAMP}, - - - userName = #{username,jdbcType=VARCHAR}, - - - project_id = #{projectId,jdbcType=INTEGER}, - - - company_id = #{companyId,jdbcType=INTEGER}, - - - where id = #{id,jdbcType=INTEGER} - - - update online_rate - set online = #{online,jdbcType=INTEGER}, - count = #{count,jdbcType=INTEGER}, - per = #{per,jdbcType=DOUBLE}, - platformType = #{platformtype,jdbcType=VARCHAR}, - time = #{time,jdbcType=TIMESTAMP}, - userName = #{username,jdbcType=VARCHAR}, - project_id = #{projectId,jdbcType=INTEGER}, - company_id = #{companyId,jdbcType=INTEGER} - where id = #{id,jdbcType=INTEGER} - - - - insert into online_rate - (id, online, count, per, platformType, time, userName, project_id, company_id) - values - - (#{item.id,jdbcType=INTEGER}, #{item.online,jdbcType=INTEGER}, #{item.count,jdbcType=INTEGER}, - #{item.per,jdbcType=DOUBLE}, #{item.platformtype,jdbcType=VARCHAR}, #{item.time,jdbcType=TIMESTAMP}, - #{item.username,jdbcType=VARCHAR}, #{item.projectId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER} - ) - - - - - insert into online_rate ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.online,jdbcType=INTEGER} - - - #{item.count,jdbcType=INTEGER} - - - #{item.per,jdbcType=DOUBLE} - - - #{item.platformtype,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.username,jdbcType=VARCHAR} - - - #{item.projectId,jdbcType=INTEGER} - - - #{item.companyId,jdbcType=INTEGER} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java b/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java deleted file mode 100644 index 52459e0..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.OnlineRateView; -import com.topsail.influxdb.pojo.OnlineRateViewExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface OnlineRateViewMapper { - long countByExample(OnlineRateViewExample example); - - int deleteByExample(OnlineRateViewExample example); - - int insert(OnlineRateView record); - - int insertSelective(OnlineRateView record); - - List selectByExample(OnlineRateViewExample example); - - int updateByExampleSelective(@Param("record") OnlineRateView record, @Param("example") OnlineRateViewExample example); - - int updateByExample(@Param("record") OnlineRateView record, @Param("example") OnlineRateViewExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") OnlineRateView.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml b/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml deleted file mode 100644 index ed0ac62..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/OnlineRateViewMapper.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - project_id, time, num - - - - delete from online_rate_view - - - - - - insert into online_rate_view (project_id, time, num - ) - values (#{projectId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP}, #{num,jdbcType=BIGINT} - ) - - - insert into online_rate_view - - - project_id, - - - time, - - - num, - - - - - #{projectId,jdbcType=INTEGER}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{num,jdbcType=BIGINT}, - - - - - - update online_rate_view - - - project_id = #{record.projectId,jdbcType=INTEGER}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - num = #{record.num,jdbcType=BIGINT}, - - - - - - - - update online_rate_view - set project_id = #{record.projectId,jdbcType=INTEGER}, - time = #{record.time,jdbcType=TIMESTAMP}, - num = #{record.num,jdbcType=BIGINT} - - - - - - - insert into online_rate_view - (project_id, time, num) - values - - (#{item.projectId,jdbcType=INTEGER}, #{item.time,jdbcType=TIMESTAMP}, #{item.num,jdbcType=BIGINT} - ) - - - - - insert into online_rate_view ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.projectId,jdbcType=INTEGER} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.num,jdbcType=BIGINT} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java b/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java deleted file mode 100644 index 93ac450..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.Project; -import com.topsail.influxdb.pojo.ProjectExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface ProjectMapper { - long countByExample(ProjectExample example); - - int deleteByExample(ProjectExample example); - - int deleteByPrimaryKey(Integer id); - - int insert(Project record); - - int insertSelective(Project record); - - List selectByExample(ProjectExample example); - - Project selectByPrimaryKey(Integer id); - - int updateByExampleSelective(@Param("record") Project record, @Param("example") ProjectExample example); - - int updateByExample(@Param("record") Project record, @Param("example") ProjectExample example); - - int updateByPrimaryKeySelective(Project record); - - int updateByPrimaryKey(Project record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") Project.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml deleted file mode 100644 index 9340fc7..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/ProjectMapper.xml +++ /dev/null @@ -1,355 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, name, platformType, descr, ip, port, protocol, order_id, company_id, time - - - - - delete from project - where id = #{id,jdbcType=INTEGER} - - - delete from project - - - - - - insert into project (id, name, platformType, - descr, ip, port, protocol, - order_id, company_id, time - ) - values (#{id,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{platformtype,jdbcType=VARCHAR}, - #{descr,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, #{protocol,jdbcType=VARCHAR}, - #{orderId,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP} - ) - - - insert into project - - - id, - - - name, - - - platformType, - - - descr, - - - ip, - - - port, - - - protocol, - - - order_id, - - - company_id, - - - time, - - - - - #{id,jdbcType=INTEGER}, - - - #{name,jdbcType=VARCHAR}, - - - #{platformtype,jdbcType=VARCHAR}, - - - #{descr,jdbcType=VARCHAR}, - - - #{ip,jdbcType=VARCHAR}, - - - #{port,jdbcType=VARCHAR}, - - - #{protocol,jdbcType=VARCHAR}, - - - #{orderId,jdbcType=INTEGER}, - - - #{companyId,jdbcType=INTEGER}, - - - #{time,jdbcType=TIMESTAMP}, - - - - - - update project - - - id = #{record.id,jdbcType=INTEGER}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - platformType = #{record.platformtype,jdbcType=VARCHAR}, - - - descr = #{record.descr,jdbcType=VARCHAR}, - - - ip = #{record.ip,jdbcType=VARCHAR}, - - - port = #{record.port,jdbcType=VARCHAR}, - - - protocol = #{record.protocol,jdbcType=VARCHAR}, - - - order_id = #{record.orderId,jdbcType=INTEGER}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - - - - - - update project - set id = #{record.id,jdbcType=INTEGER}, - name = #{record.name,jdbcType=VARCHAR}, - platformType = #{record.platformtype,jdbcType=VARCHAR}, - descr = #{record.descr,jdbcType=VARCHAR}, - ip = #{record.ip,jdbcType=VARCHAR}, - port = #{record.port,jdbcType=VARCHAR}, - protocol = #{record.protocol,jdbcType=VARCHAR}, - order_id = #{record.orderId,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER}, - time = #{record.time,jdbcType=TIMESTAMP} - - - - - - update project - - - name = #{name,jdbcType=VARCHAR}, - - - platformType = #{platformtype,jdbcType=VARCHAR}, - - - descr = #{descr,jdbcType=VARCHAR}, - - - ip = #{ip,jdbcType=VARCHAR}, - - - port = #{port,jdbcType=VARCHAR}, - - - protocol = #{protocol,jdbcType=VARCHAR}, - - - order_id = #{orderId,jdbcType=INTEGER}, - - - company_id = #{companyId,jdbcType=INTEGER}, - - - time = #{time,jdbcType=TIMESTAMP}, - - - where id = #{id,jdbcType=INTEGER} - - - update project - set name = #{name,jdbcType=VARCHAR}, - platformType = #{platformtype,jdbcType=VARCHAR}, - descr = #{descr,jdbcType=VARCHAR}, - ip = #{ip,jdbcType=VARCHAR}, - port = #{port,jdbcType=VARCHAR}, - protocol = #{protocol,jdbcType=VARCHAR}, - order_id = #{orderId,jdbcType=INTEGER}, - company_id = #{companyId,jdbcType=INTEGER}, - time = #{time,jdbcType=TIMESTAMP} - where id = #{id,jdbcType=INTEGER} - - - - insert into project - (id, name, platformType, descr, ip, port, protocol, order_id, company_id, time) - values - - (#{item.id,jdbcType=INTEGER}, #{item.name,jdbcType=VARCHAR}, #{item.platformtype,jdbcType=VARCHAR}, - #{item.descr,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, - #{item.protocol,jdbcType=VARCHAR}, #{item.orderId,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, - #{item.time,jdbcType=TIMESTAMP}) - - - - - insert into project ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.name,jdbcType=VARCHAR} - - - #{item.platformtype,jdbcType=VARCHAR} - - - #{item.descr,jdbcType=VARCHAR} - - - #{item.ip,jdbcType=VARCHAR} - - - #{item.port,jdbcType=VARCHAR} - - - #{item.protocol,jdbcType=VARCHAR} - - - #{item.orderId,jdbcType=INTEGER} - - - #{item.companyId,jdbcType=INTEGER} - - - #{item.time,jdbcType=TIMESTAMP} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java b/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java deleted file mode 100644 index 1790acc..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.ProjectTransmit; -import com.topsail.influxdb.pojo.ProjectTransmitExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface ProjectTransmitMapper { - long countByExample(ProjectTransmitExample example); - - int deleteByExample(ProjectTransmitExample example); - - int deleteByPrimaryKey(Integer id); - - int insert(ProjectTransmit record); - - int insertSelective(ProjectTransmit record); - - List selectByExample(ProjectTransmitExample example); - - ProjectTransmit selectByPrimaryKey(Integer id); - - int updateByExampleSelective(@Param("record") ProjectTransmit record, @Param("example") ProjectTransmitExample example); - - int updateByExample(@Param("record") ProjectTransmit record, @Param("example") ProjectTransmitExample example); - - int updateByPrimaryKeySelective(ProjectTransmit record); - - int updateByPrimaryKey(ProjectTransmit record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") ProjectTransmit.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml b/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml deleted file mode 100644 index e7a1a96..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/ProjectTransmitMapper.xml +++ /dev/null @@ -1,432 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, company_id, project_id, protocol, ip, port, time, type, status, update_time, - total, suc, err, params - - - - - delete from project_transmit - where id = #{id,jdbcType=INTEGER} - - - delete from project_transmit - - - - - - insert into project_transmit (id, company_id, project_id, - protocol, ip, port, - time, type, status, - update_time, total, suc, - err, params) - values (#{id,jdbcType=INTEGER}, #{companyId,jdbcType=INTEGER}, #{projectId,jdbcType=INTEGER}, - #{protocol,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR}, #{port,jdbcType=VARCHAR}, - #{time,jdbcType=TIMESTAMP}, #{type,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, - #{updateTime,jdbcType=TIMESTAMP}, #{total,jdbcType=INTEGER}, #{suc,jdbcType=INTEGER}, - #{err,jdbcType=INTEGER}, #{params,jdbcType=VARCHAR}) - - - insert into project_transmit - - - id, - - - company_id, - - - project_id, - - - protocol, - - - ip, - - - port, - - - time, - - - type, - - - status, - - - update_time, - - - total, - - - suc, - - - err, - - - params, - - - - - #{id,jdbcType=INTEGER}, - - - #{companyId,jdbcType=INTEGER}, - - - #{projectId,jdbcType=INTEGER}, - - - #{protocol,jdbcType=VARCHAR}, - - - #{ip,jdbcType=VARCHAR}, - - - #{port,jdbcType=VARCHAR}, - - - #{time,jdbcType=TIMESTAMP}, - - - #{type,jdbcType=VARCHAR}, - - - #{status,jdbcType=INTEGER}, - - - #{updateTime,jdbcType=TIMESTAMP}, - - - #{total,jdbcType=INTEGER}, - - - #{suc,jdbcType=INTEGER}, - - - #{err,jdbcType=INTEGER}, - - - #{params,jdbcType=VARCHAR}, - - - - - - update project_transmit - - - id = #{record.id,jdbcType=INTEGER}, - - - company_id = #{record.companyId,jdbcType=INTEGER}, - - - project_id = #{record.projectId,jdbcType=INTEGER}, - - - protocol = #{record.protocol,jdbcType=VARCHAR}, - - - ip = #{record.ip,jdbcType=VARCHAR}, - - - port = #{record.port,jdbcType=VARCHAR}, - - - time = #{record.time,jdbcType=TIMESTAMP}, - - - type = #{record.type,jdbcType=VARCHAR}, - - - status = #{record.status,jdbcType=INTEGER}, - - - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - - - total = #{record.total,jdbcType=INTEGER}, - - - suc = #{record.suc,jdbcType=INTEGER}, - - - err = #{record.err,jdbcType=INTEGER}, - - - params = #{record.params,jdbcType=VARCHAR}, - - - - - - - - update project_transmit - set id = #{record.id,jdbcType=INTEGER}, - company_id = #{record.companyId,jdbcType=INTEGER}, - project_id = #{record.projectId,jdbcType=INTEGER}, - protocol = #{record.protocol,jdbcType=VARCHAR}, - ip = #{record.ip,jdbcType=VARCHAR}, - port = #{record.port,jdbcType=VARCHAR}, - time = #{record.time,jdbcType=TIMESTAMP}, - type = #{record.type,jdbcType=VARCHAR}, - status = #{record.status,jdbcType=INTEGER}, - update_time = #{record.updateTime,jdbcType=TIMESTAMP}, - total = #{record.total,jdbcType=INTEGER}, - suc = #{record.suc,jdbcType=INTEGER}, - err = #{record.err,jdbcType=INTEGER}, - params = #{record.params,jdbcType=VARCHAR} - - - - - - update project_transmit - - - company_id = #{companyId,jdbcType=INTEGER}, - - - project_id = #{projectId,jdbcType=INTEGER}, - - - protocol = #{protocol,jdbcType=VARCHAR}, - - - ip = #{ip,jdbcType=VARCHAR}, - - - port = #{port,jdbcType=VARCHAR}, - - - time = #{time,jdbcType=TIMESTAMP}, - - - type = #{type,jdbcType=VARCHAR}, - - - status = #{status,jdbcType=INTEGER}, - - - update_time = #{updateTime,jdbcType=TIMESTAMP}, - - - total = #{total,jdbcType=INTEGER}, - - - suc = #{suc,jdbcType=INTEGER}, - - - err = #{err,jdbcType=INTEGER}, - - - params = #{params,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - update project_transmit - set company_id = #{companyId,jdbcType=INTEGER}, - project_id = #{projectId,jdbcType=INTEGER}, - protocol = #{protocol,jdbcType=VARCHAR}, - ip = #{ip,jdbcType=VARCHAR}, - port = #{port,jdbcType=VARCHAR}, - time = #{time,jdbcType=TIMESTAMP}, - type = #{type,jdbcType=VARCHAR}, - status = #{status,jdbcType=INTEGER}, - update_time = #{updateTime,jdbcType=TIMESTAMP}, - total = #{total,jdbcType=INTEGER}, - suc = #{suc,jdbcType=INTEGER}, - err = #{err,jdbcType=INTEGER}, - params = #{params,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} - - - - insert into project_transmit - (id, company_id, project_id, protocol, ip, port, time, type, status, update_time, - total, suc, err, params) - values - - (#{item.id,jdbcType=INTEGER}, #{item.companyId,jdbcType=INTEGER}, #{item.projectId,jdbcType=INTEGER}, - #{item.protocol,jdbcType=VARCHAR}, #{item.ip,jdbcType=VARCHAR}, #{item.port,jdbcType=VARCHAR}, - #{item.time,jdbcType=TIMESTAMP}, #{item.type,jdbcType=VARCHAR}, #{item.status,jdbcType=INTEGER}, - #{item.updateTime,jdbcType=TIMESTAMP}, #{item.total,jdbcType=INTEGER}, #{item.suc,jdbcType=INTEGER}, - #{item.err,jdbcType=INTEGER}, #{item.params,jdbcType=VARCHAR}) - - - - - insert into project_transmit ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.companyId,jdbcType=INTEGER} - - - #{item.projectId,jdbcType=INTEGER} - - - #{item.protocol,jdbcType=VARCHAR} - - - #{item.ip,jdbcType=VARCHAR} - - - #{item.port,jdbcType=VARCHAR} - - - #{item.time,jdbcType=TIMESTAMP} - - - #{item.type,jdbcType=VARCHAR} - - - #{item.status,jdbcType=INTEGER} - - - #{item.updateTime,jdbcType=TIMESTAMP} - - - #{item.total,jdbcType=INTEGER} - - - #{item.suc,jdbcType=INTEGER} - - - #{item.err,jdbcType=INTEGER} - - - #{item.params,jdbcType=VARCHAR} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java b/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java deleted file mode 100644 index cfd3944..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.java +++ /dev/null @@ -1,48 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.TransmitType; -import com.topsail.influxdb.pojo.TransmitTypeExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface TransmitTypeMapper { - long countByExample(TransmitTypeExample example); - - int deleteByExample(TransmitTypeExample example); - - int deleteByPrimaryKey(Integer id); - - int insert(TransmitType record); - - int insertSelective(TransmitType record); - - List selectByExample(TransmitTypeExample example); - - TransmitType selectByPrimaryKey(Integer id); - - int updateByExampleSelective(@Param("record") TransmitType record, @Param("example") TransmitTypeExample example); - - int updateByExample(@Param("record") TransmitType record, @Param("example") TransmitTypeExample example); - - int updateByPrimaryKeySelective(TransmitType record); - - int updateByPrimaryKey(TransmitType record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") TransmitType.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml b/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml deleted file mode 100644 index bef12bd..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/TransmitTypeMapper.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - id, transmit_id, datatype - - - - - delete from transmit_type - where id = #{id,jdbcType=INTEGER} - - - delete from transmit_type - - - - - - insert into transmit_type (id, transmit_id, datatype - ) - values (#{id,jdbcType=INTEGER}, #{transmitId,jdbcType=INTEGER}, #{datatype,jdbcType=INTEGER} - ) - - - insert into transmit_type - - - id, - - - transmit_id, - - - datatype, - - - - - #{id,jdbcType=INTEGER}, - - - #{transmitId,jdbcType=INTEGER}, - - - #{datatype,jdbcType=INTEGER}, - - - - - - update transmit_type - - - id = #{record.id,jdbcType=INTEGER}, - - - transmit_id = #{record.transmitId,jdbcType=INTEGER}, - - - datatype = #{record.datatype,jdbcType=INTEGER}, - - - - - - - - update transmit_type - set id = #{record.id,jdbcType=INTEGER}, - transmit_id = #{record.transmitId,jdbcType=INTEGER}, - datatype = #{record.datatype,jdbcType=INTEGER} - - - - - - update transmit_type - - - transmit_id = #{transmitId,jdbcType=INTEGER}, - - - datatype = #{datatype,jdbcType=INTEGER}, - - - where id = #{id,jdbcType=INTEGER} - - - update transmit_type - set transmit_id = #{transmitId,jdbcType=INTEGER}, - datatype = #{datatype,jdbcType=INTEGER} - where id = #{id,jdbcType=INTEGER} - - - - insert into transmit_type - (id, transmit_id, datatype) - values - - (#{item.id,jdbcType=INTEGER}, #{item.transmitId,jdbcType=INTEGER}, #{item.datatype,jdbcType=INTEGER} - ) - - - - - insert into transmit_type ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.id,jdbcType=INTEGER} - - - #{item.transmitId,jdbcType=INTEGER} - - - #{item.datatype,jdbcType=INTEGER} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java b/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java deleted file mode 100644 index c07ca37..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.java +++ /dev/null @@ -1,40 +0,0 @@ -package com.topsail.influxdb.mapper; - -import com.topsail.influxdb.pojo.UpdateMsgView; -import com.topsail.influxdb.pojo.UpdateMsgViewExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface UpdateMsgViewMapper { - long countByExample(UpdateMsgViewExample example); - - int deleteByExample(UpdateMsgViewExample example); - - int insert(UpdateMsgView record); - - int insertSelective(UpdateMsgView record); - - List selectByExample(UpdateMsgViewExample example); - - int updateByExampleSelective(@Param("record") UpdateMsgView record, @Param("example") UpdateMsgViewExample example); - - int updateByExample(@Param("record") UpdateMsgView record, @Param("example") UpdateMsgViewExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsert(@Param("list") List list); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - int batchInsertSelective(@Param("list") List list, @Param("selective") UpdateMsgView.Column ... selective); -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml b/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml deleted file mode 100644 index dee2785..0000000 --- a/src/main/java/com/topsail/influxdb/mapper/UpdateMsgViewMapper.xml +++ /dev/null @@ -1,195 +0,0 @@ - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - imei, period, dperiod - - - - delete from update_msg_view - - - - - - insert into update_msg_view (imei, period, dperiod - ) - values (#{imei,jdbcType=VARCHAR}, #{period,jdbcType=VARCHAR}, #{dperiod,jdbcType=INTEGER} - ) - - - insert into update_msg_view - - - imei, - - - period, - - - dperiod, - - - - - #{imei,jdbcType=VARCHAR}, - - - #{period,jdbcType=VARCHAR}, - - - #{dperiod,jdbcType=INTEGER}, - - - - - - update update_msg_view - - - imei = #{record.imei,jdbcType=VARCHAR}, - - - period = #{record.period,jdbcType=VARCHAR}, - - - dperiod = #{record.dperiod,jdbcType=INTEGER}, - - - - - - - - update update_msg_view - set imei = #{record.imei,jdbcType=VARCHAR}, - period = #{record.period,jdbcType=VARCHAR}, - dperiod = #{record.dperiod,jdbcType=INTEGER} - - - - - - - insert into update_msg_view - (imei, period, dperiod) - values - - (#{item.imei,jdbcType=VARCHAR}, #{item.period,jdbcType=VARCHAR}, #{item.dperiod,jdbcType=INTEGER} - ) - - - - - insert into update_msg_view ( - - ${column.escapedColumnName} - - ) - values - - ( - - - #{item.imei,jdbcType=VARCHAR} - - - #{item.period,jdbcType=VARCHAR} - - - #{item.dperiod,jdbcType=INTEGER} - - - ) - - - \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/model/InfluxData.java b/src/main/java/com/topsail/influxdb/model/DeviceDataInfluxData.java similarity index 94% rename from src/main/java/com/topsail/influxdb/model/InfluxData.java rename to src/main/java/com/topsail/influxdb/model/DeviceDataInfluxData.java index 39a530b..159a9b7 100644 --- a/src/main/java/com/topsail/influxdb/model/InfluxData.java +++ b/src/main/java/com/topsail/influxdb/model/DeviceDataInfluxData.java @@ -6,7 +6,7 @@ import com.influxdb.annotations.Measurement; import java.time.Instant; @Measurement(name = "history") -public class InfluxData { +public class DeviceDataInfluxData { @Column(tag = true) public String imei; @Column diff --git a/src/main/java/com/topsail/influxdb/model/DeviceLogInfluxData.java b/src/main/java/com/topsail/influxdb/model/DeviceLogInfluxData.java new file mode 100644 index 0000000..6ac3b9e --- /dev/null +++ b/src/main/java/com/topsail/influxdb/model/DeviceLogInfluxData.java @@ -0,0 +1,34 @@ +package com.topsail.influxdb.model; + +import com.influxdb.annotations.Column; +import com.influxdb.annotations.Measurement; + +import java.time.Instant; + +@Measurement(name = "devicelog") +public class DeviceLogInfluxData { + @Column(tag = true) + public String imei; + @Column + public double value1; + @Column + public double value2; + @Column + public double value3; + @Column + public double value4; + @Column + public Integer battery; + @Column + public Integer sigal; + @Column + public String values; + @Column + public String unit; + @Column + public String alarmtype; + @Column + public String jsondata; + @Column(timestamp = true) + public Instant time; +} diff --git a/src/main/java/com/topsail/influxdb/pojo/Alarm.java b/src/main/java/com/topsail/influxdb/pojo/Alarm.java deleted file mode 100644 index 15ca316..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/Alarm.java +++ /dev/null @@ -1,409 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class Alarm { - - public static void main(String[] args) { - - System.out.println(Integer.parseInt("31",16)+""); - String result=""; - String[] units={"℃","O/F"}; - String[] datas={"27.12","0a"}; - int i = 0; - while (i < 2) { - if (i != 0) { - result += ","; - } - String un = units[i]; - String data = datas[i]; - String newdata = data; - if (un.trim().equals("O/F")) { - String first = data.substring(0, 1); - if (first.equals("1")&&data.length()==2) { - data = data.substring(1, data.length()); - } - /* if (data.equals("0.0000")) { - newdata = "0"; - } else if (data.equals("0a")) { - newdata = "10"; - } else if (data.equals("a")) { - newdata = "10"; - } else { - newdata = String.valueOf((int) Double.parseDouble(data)); - }*/ - if(data.equals("0a")||data.equals("a")){ - newdata = "10"; - } else{ - newdata=Integer.parseInt(String.valueOf((int) Double.parseDouble(data)),16)+""; - } - - } - result += newdata; - i++; - } - System.out.println(result); - } - private Long id; - - private String imei; - - private String alarmtype; - - private String alarmvalue; - - private String unit; - - private Integer status; - - private Date createtime; - - private Date updatetime; - - private Date endtime; - - /** - *告警类型msg - */ - private String alarmMsg; - - /** - *地址 - */ - private String address; - /** - *经度 - */ - private Double lon; - /** - *纬度 - */ - private Double lat; - /** - *uuid - */ - private String uuid; - - /** - *描述 - */ - private String descr; - - /** - * 总告警 - */ - private Integer alarmN; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public String getAlarmtype() { - return alarmtype; - } - - public void setAlarmtype(String alarmtype) { - this.alarmtype = alarmtype == null ? null : alarmtype.trim(); - } - - public String getAlarmvalue() { - return alarmvalue; - } - - public void setAlarmvalue(String alarmvalue) { - this.alarmvalue = alarmvalue == null ? null : alarmvalue.trim(); - } - - public String getUnit() { - return unit; - } - - public void setUnit(String unit) { - this.unit = unit == null ? null : unit.trim(); - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public Date getCreatetime() { - return createtime; - } - - public void setCreatetime(Date createtime) { - this.createtime = createtime; - } - - public Date getUpdatetime() { - return updatetime; - } - - public void setUpdatetime(Date updatetime) { - this.updatetime = updatetime; - } - - public Date getEndtime() { - return endtime; - } - - public void setEndtime(Date endtime) { - this.endtime = endtime; - } - - public String getAlarmMsg() { - return alarmMsg; - } - - public void setAlarmMsg(String alarmMsg) { - this.alarmMsg = alarmMsg; - } - - public String getAddress() { - return address; - } - - public void setAddress(String address) { - this.address = address; - } - - public Double getLon() { - return lon; - } - - public void setLon(Double lon) { - this.lon = lon; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getUuid() { - return uuid; - } - - public void setUuid(String uuid) { - this.uuid = uuid; - } - - public String getDescr() { - return descr; - } - - public void setDescr(String descr) { - this.descr = descr; - } - - public Integer getAlarmN() { - return alarmN; - } - - public void setAlarmN(Integer alarmN) { - this.alarmN = alarmN; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "BIGINT", false), - imei("Imei", "imei", "VARCHAR", false), - alarmtype("alarmType", "alarmtype", "VARCHAR", false), - alarmvalue("alarmValue", "alarmvalue", "VARCHAR", false), - unit("unit", "unit", "VARCHAR", false), - status("status", "status", "INTEGER", false), - createtime("createtime", "createtime", "TIMESTAMP", false), - updatetime("updatetime", "updatetime", "TIMESTAMP", false), - endtime("endtime", "endtime", "TIMESTAMP", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table alarm - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/AlarmExample.java b/src/main/java/com/topsail/influxdb/pojo/AlarmExample.java deleted file mode 100644 index 0878104..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/AlarmExample.java +++ /dev/null @@ -1,781 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class AlarmExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public AlarmExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("Imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("Imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("Imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("Imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("Imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("Imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("Imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("Imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("Imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("Imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("Imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("Imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("Imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("Imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNull() { - addCriterion("alarmType is null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNotNull() { - addCriterion("alarmType is not null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeEqualTo(String value) { - addCriterion("alarmType =", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotEqualTo(String value) { - addCriterion("alarmType <>", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThan(String value) { - addCriterion("alarmType >", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { - addCriterion("alarmType >=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThan(String value) { - addCriterion("alarmType <", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThanOrEqualTo(String value) { - addCriterion("alarmType <=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLike(String value) { - addCriterion("alarmType like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotLike(String value) { - addCriterion("alarmType not like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIn(List values) { - addCriterion("alarmType in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotIn(List values) { - addCriterion("alarmType not in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeBetween(String value1, String value2) { - addCriterion("alarmType between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotBetween(String value1, String value2) { - addCriterion("alarmType not between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmvalueIsNull() { - addCriterion("alarmValue is null"); - return (Criteria) this; - } - - public Criteria andAlarmvalueIsNotNull() { - addCriterion("alarmValue is not null"); - return (Criteria) this; - } - - public Criteria andAlarmvalueEqualTo(String value) { - addCriterion("alarmValue =", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueNotEqualTo(String value) { - addCriterion("alarmValue <>", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueGreaterThan(String value) { - addCriterion("alarmValue >", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueGreaterThanOrEqualTo(String value) { - addCriterion("alarmValue >=", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueLessThan(String value) { - addCriterion("alarmValue <", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueLessThanOrEqualTo(String value) { - addCriterion("alarmValue <=", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueLike(String value) { - addCriterion("alarmValue like", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueNotLike(String value) { - addCriterion("alarmValue not like", value, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueIn(List values) { - addCriterion("alarmValue in", values, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueNotIn(List values) { - addCriterion("alarmValue not in", values, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueBetween(String value1, String value2) { - addCriterion("alarmValue between", value1, value2, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andAlarmvalueNotBetween(String value1, String value2) { - addCriterion("alarmValue not between", value1, value2, "alarmvalue"); - return (Criteria) this; - } - - public Criteria andUnitIsNull() { - addCriterion("unit is null"); - return (Criteria) this; - } - - public Criteria andUnitIsNotNull() { - addCriterion("unit is not null"); - return (Criteria) this; - } - - public Criteria andUnitEqualTo(String value) { - addCriterion("unit =", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotEqualTo(String value) { - addCriterion("unit <>", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThan(String value) { - addCriterion("unit >", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThanOrEqualTo(String value) { - addCriterion("unit >=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThan(String value) { - addCriterion("unit <", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThanOrEqualTo(String value) { - addCriterion("unit <=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLike(String value) { - addCriterion("unit like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotLike(String value) { - addCriterion("unit not like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitIn(List values) { - addCriterion("unit in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotIn(List values) { - addCriterion("unit not in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitBetween(String value1, String value2) { - addCriterion("unit between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotBetween(String value1, String value2) { - addCriterion("unit not between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andStatusIsNull() { - addCriterion("status is null"); - return (Criteria) this; - } - - public Criteria andStatusIsNotNull() { - addCriterion("status is not null"); - return (Criteria) this; - } - - public Criteria andStatusEqualTo(Integer value) { - addCriterion("status =", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotEqualTo(Integer value) { - addCriterion("status <>", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThan(Integer value) { - addCriterion("status >", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThanOrEqualTo(Integer value) { - addCriterion("status >=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThan(Integer value) { - addCriterion("status <", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThanOrEqualTo(Integer value) { - addCriterion("status <=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusIn(List values) { - addCriterion("status in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotIn(List values) { - addCriterion("status not in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusBetween(Integer value1, Integer value2) { - addCriterion("status between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotBetween(Integer value1, Integer value2) { - addCriterion("status not between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andCreatetimeIsNull() { - addCriterion("createtime is null"); - return (Criteria) this; - } - - public Criteria andCreatetimeIsNotNull() { - addCriterion("createtime is not null"); - return (Criteria) this; - } - - public Criteria andCreatetimeEqualTo(Date value) { - addCriterion("createtime =", value, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeNotEqualTo(Date value) { - addCriterion("createtime <>", value, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeGreaterThan(Date value) { - addCriterion("createtime >", value, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) { - addCriterion("createtime >=", value, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeLessThan(Date value) { - addCriterion("createtime <", value, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeLessThanOrEqualTo(Date value) { - addCriterion("createtime <=", value, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeIn(List values) { - addCriterion("createtime in", values, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeNotIn(List values) { - addCriterion("createtime not in", values, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeBetween(Date value1, Date value2) { - addCriterion("createtime between", value1, value2, "createtime"); - return (Criteria) this; - } - - public Criteria andCreatetimeNotBetween(Date value1, Date value2) { - addCriterion("createtime not between", value1, value2, "createtime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeIsNull() { - addCriterion("updatetime is null"); - return (Criteria) this; - } - - public Criteria andUpdatetimeIsNotNull() { - addCriterion("updatetime is not null"); - return (Criteria) this; - } - - public Criteria andUpdatetimeEqualTo(Date value) { - addCriterion("updatetime =", value, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeNotEqualTo(Date value) { - addCriterion("updatetime <>", value, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeGreaterThan(Date value) { - addCriterion("updatetime >", value, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeGreaterThanOrEqualTo(Date value) { - addCriterion("updatetime >=", value, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeLessThan(Date value) { - addCriterion("updatetime <", value, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeLessThanOrEqualTo(Date value) { - addCriterion("updatetime <=", value, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeIn(List values) { - addCriterion("updatetime in", values, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeNotIn(List values) { - addCriterion("updatetime not in", values, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeBetween(Date value1, Date value2) { - addCriterion("updatetime between", value1, value2, "updatetime"); - return (Criteria) this; - } - - public Criteria andUpdatetimeNotBetween(Date value1, Date value2) { - addCriterion("updatetime not between", value1, value2, "updatetime"); - return (Criteria) this; - } - - public Criteria andEndtimeIsNull() { - addCriterion("endtime is null"); - return (Criteria) this; - } - - public Criteria andEndtimeIsNotNull() { - addCriterion("endtime is not null"); - return (Criteria) this; - } - - public Criteria andEndtimeEqualTo(Date value) { - addCriterion("endtime =", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotEqualTo(Date value) { - addCriterion("endtime <>", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeGreaterThan(Date value) { - addCriterion("endtime >", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeGreaterThanOrEqualTo(Date value) { - addCriterion("endtime >=", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLessThan(Date value) { - addCriterion("endtime <", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLessThanOrEqualTo(Date value) { - addCriterion("endtime <=", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeIn(List values) { - addCriterion("endtime in", values, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotIn(List values) { - addCriterion("endtime not in", values, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeBetween(Date value1, Date value2) { - addCriterion("endtime between", value1, value2, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotBetween(Date value1, Date value2) { - addCriterion("endtime not between", value1, value2, "endtime"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java b/src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java deleted file mode 100644 index 3e76dc1..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/DeviceProjectView.java +++ /dev/null @@ -1,246 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class DeviceProjectView { - private String imei; - - private Integer devicetype; - - private String username; - - private Integer companyId; - - private Integer projectId; - - private String imei2; - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public Integer getProjectId() { - return projectId; - } - - public void setProjectId(Integer projectId) { - this.projectId = projectId; - } - - public String getImei2() { - return imei2; - } - - public void setImei2(String imei2) { - this.imei2 = imei2 == null ? null : imei2.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - imei("imei", "imei", "VARCHAR", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - username("userName", "username", "VARCHAR", false), - companyId("company_id", "companyId", "INTEGER", false), - projectId("project_id", "projectId", "INTEGER", false), - imei2("imei2", "imei2", "VARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_project_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java deleted file mode 100644 index 8028820..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/DeviceProjectViewExample.java +++ /dev/null @@ -1,590 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class DeviceProjectViewExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public DeviceProjectViewExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andImeiIsNull() { - addCriterion("imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNull() { - addCriterion("project_id is null"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNotNull() { - addCriterion("project_id is not null"); - return (Criteria) this; - } - - public Criteria andProjectIdEqualTo(Integer value) { - addCriterion("project_id =", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotEqualTo(Integer value) { - addCriterion("project_id <>", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThan(Integer value) { - addCriterion("project_id >", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { - addCriterion("project_id >=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThan(Integer value) { - addCriterion("project_id <", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThanOrEqualTo(Integer value) { - addCriterion("project_id <=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdIn(List values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List values) { - addCriterion("project_id not in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdBetween(Integer value1, Integer value2) { - addCriterion("project_id between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { - addCriterion("project_id not between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andImei2IsNull() { - addCriterion("imei2 is null"); - return (Criteria) this; - } - - public Criteria andImei2IsNotNull() { - addCriterion("imei2 is not null"); - return (Criteria) this; - } - - public Criteria andImei2EqualTo(String value) { - addCriterion("imei2 =", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2NotEqualTo(String value) { - addCriterion("imei2 <>", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2GreaterThan(String value) { - addCriterion("imei2 >", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2GreaterThanOrEqualTo(String value) { - addCriterion("imei2 >=", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2LessThan(String value) { - addCriterion("imei2 <", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2LessThanOrEqualTo(String value) { - addCriterion("imei2 <=", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2Like(String value) { - addCriterion("imei2 like", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2NotLike(String value) { - addCriterion("imei2 not like", value, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2In(List values) { - addCriterion("imei2 in", values, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2NotIn(List values) { - addCriterion("imei2 not in", values, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2Between(String value1, String value2) { - addCriterion("imei2 between", value1, value2, "imei2"); - return (Criteria) this; - } - - public Criteria andImei2NotBetween(String value1, String value2) { - addCriterion("imei2 not between", value1, value2, "imei2"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceUser.java b/src/main/java/com/topsail/influxdb/pojo/DeviceUser.java deleted file mode 100644 index 32f8cb6..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/DeviceUser.java +++ /dev/null @@ -1,423 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class DeviceUser { - private String imei; - - private Integer devicetype; - - private Integer batterylevel; - - private Integer singalstrength; - - private String sampledata; - - private Integer passnum; - - private Integer batterystate; - - private String alarmtype; - - private String platformtype; - - private String username; - - private String unit; - - private String sendtime; - - private Date time; - - private Date offlinetime; - - private String address; - - private Double lon; - - private Double lat; - - private String value; - - private String name; - - private Integer projectId; - - private Integer userId; - - private String status; - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public Integer getBatterylevel() { - return batterylevel; - } - - public void setBatterylevel(Integer batterylevel) { - this.batterylevel = batterylevel; - } - - public Integer getSingalstrength() { - return singalstrength; - } - - public void setSingalstrength(Integer singalstrength) { - this.singalstrength = singalstrength; - } - - public String getSampledata() { - return sampledata; - } - - public void setSampledata(String sampledata) { - this.sampledata = sampledata == null ? null : sampledata.trim(); - } - - public Integer getPassnum() { - return passnum; - } - - public void setPassnum(Integer passnum) { - this.passnum = passnum; - } - - public Integer getBatterystate() { - return batterystate; - } - - public void setBatterystate(Integer batterystate) { - this.batterystate = batterystate; - } - - public String getAlarmtype() { - return alarmtype; - } - - public void setAlarmtype(String alarmtype) { - this.alarmtype = alarmtype == null ? null : alarmtype.trim(); - } - - public String getPlatformtype() { - return platformtype; - } - - public void setPlatformtype(String platformtype) { - this.platformtype = platformtype == null ? null : platformtype.trim(); - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getUnit() { - return unit; - } - - public void setUnit(String unit) { - this.unit = unit == null ? null : unit.trim(); - } - - public String getSendtime() { - return sendtime; - } - - public void setSendtime(String sendtime) { - this.sendtime = sendtime == null ? null : sendtime.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public Date getOfflinetime() { - return offlinetime; - } - - public void setOfflinetime(Date offlinetime) { - this.offlinetime = offlinetime; - } - - public String getAddress() { - return address; - } - - public void setAddress(String address) { - this.address = address == null ? null : address.trim(); - } - - public Double getLon() { - return lon; - } - - public void setLon(Double lon) { - this.lon = lon; - } - - public Double getLat() { - return lat; - } - - public void setLat(Double lat) { - this.lat = lat; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value == null ? null : value.trim(); - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name == null ? null : name.trim(); - } - - public Integer getProjectId() { - return projectId; - } - - public void setProjectId(Integer projectId) { - this.projectId = projectId; - } - - public Integer getUserId() { - return userId; - } - - public void setUserId(Integer userId) { - this.userId = userId; - } - - public String getStatus() { - return status; - } - - public void setStatus(String status) { - this.status = status == null ? null : status.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - imei("Imei", "imei", "VARCHAR", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - batterylevel("batteryLevel", "batterylevel", "INTEGER", false), - singalstrength("singalStrength", "singalstrength", "INTEGER", false), - sampledata("sampleData", "sampledata", "VARCHAR", false), - passnum("passNum", "passnum", "INTEGER", false), - batterystate("batteryState", "batterystate", "INTEGER", false), - alarmtype("alarmType", "alarmtype", "VARCHAR", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - unit("unit", "unit", "VARCHAR", false), - sendtime("sendTime", "sendtime", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - offlinetime("offlineTime", "offlinetime", "TIMESTAMP", false), - address("address", "address", "VARCHAR", false), - lon("lon", "lon", "DOUBLE", false), - lat("lat", "lat", "DOUBLE", false), - value("value", "value", "VARCHAR", false), - name("name", "name", "VARCHAR", false), - projectId("project_id", "projectId", "INTEGER", false), - userId("user_id", "userId", "INTEGER", false), - status("STATUS", "status", "VARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table device_user - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java b/src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java deleted file mode 100644 index 78ee4de..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/DeviceUserExample.java +++ /dev/null @@ -1,1631 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class DeviceUserExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public DeviceUserExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andImeiIsNull() { - addCriterion("Imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("Imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("Imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("Imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("Imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("Imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("Imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("Imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("Imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("Imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("Imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("Imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("Imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("Imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNull() { - addCriterion("batteryLevel is null"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNotNull() { - addCriterion("batteryLevel is not null"); - return (Criteria) this; - } - - public Criteria andBatterylevelEqualTo(Integer value) { - addCriterion("batteryLevel =", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotEqualTo(Integer value) { - addCriterion("batteryLevel <>", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThan(Integer value) { - addCriterion("batteryLevel >", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryLevel >=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThan(Integer value) { - addCriterion("batteryLevel <", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { - addCriterion("batteryLevel <=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelIn(List values) { - addCriterion("batteryLevel in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotIn(List values) { - addCriterion("batteryLevel not in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel not between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNull() { - addCriterion("singalStrength is null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNotNull() { - addCriterion("singalStrength is not null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthEqualTo(Integer value) { - addCriterion("singalStrength =", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotEqualTo(Integer value) { - addCriterion("singalStrength <>", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThan(Integer value) { - addCriterion("singalStrength >", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { - addCriterion("singalStrength >=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThan(Integer value) { - addCriterion("singalStrength <", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { - addCriterion("singalStrength <=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIn(List values) { - addCriterion("singalStrength in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotIn(List values) { - addCriterion("singalStrength not in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { - addCriterion("singalStrength between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { - addCriterion("singalStrength not between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSampledataIsNull() { - addCriterion("sampleData is null"); - return (Criteria) this; - } - - public Criteria andSampledataIsNotNull() { - addCriterion("sampleData is not null"); - return (Criteria) this; - } - - public Criteria andSampledataEqualTo(String value) { - addCriterion("sampleData =", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotEqualTo(String value) { - addCriterion("sampleData <>", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThan(String value) { - addCriterion("sampleData >", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThanOrEqualTo(String value) { - addCriterion("sampleData >=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThan(String value) { - addCriterion("sampleData <", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThanOrEqualTo(String value) { - addCriterion("sampleData <=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLike(String value) { - addCriterion("sampleData like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotLike(String value) { - addCriterion("sampleData not like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataIn(List values) { - addCriterion("sampleData in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotIn(List values) { - addCriterion("sampleData not in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataBetween(String value1, String value2) { - addCriterion("sampleData between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotBetween(String value1, String value2) { - addCriterion("sampleData not between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andPassnumIsNull() { - addCriterion("passNum is null"); - return (Criteria) this; - } - - public Criteria andPassnumIsNotNull() { - addCriterion("passNum is not null"); - return (Criteria) this; - } - - public Criteria andPassnumEqualTo(Integer value) { - addCriterion("passNum =", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotEqualTo(Integer value) { - addCriterion("passNum <>", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThan(Integer value) { - addCriterion("passNum >", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { - addCriterion("passNum >=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThan(Integer value) { - addCriterion("passNum <", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThanOrEqualTo(Integer value) { - addCriterion("passNum <=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumIn(List values) { - addCriterion("passNum in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotIn(List values) { - addCriterion("passNum not in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumBetween(Integer value1, Integer value2) { - addCriterion("passNum between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotBetween(Integer value1, Integer value2) { - addCriterion("passNum not between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNull() { - addCriterion("batteryState is null"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNotNull() { - addCriterion("batteryState is not null"); - return (Criteria) this; - } - - public Criteria andBatterystateEqualTo(Integer value) { - addCriterion("batteryState =", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotEqualTo(Integer value) { - addCriterion("batteryState <>", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThan(Integer value) { - addCriterion("batteryState >", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryState >=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThan(Integer value) { - addCriterion("batteryState <", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThanOrEqualTo(Integer value) { - addCriterion("batteryState <=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateIn(List values) { - addCriterion("batteryState in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotIn(List values) { - addCriterion("batteryState not in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateBetween(Integer value1, Integer value2) { - addCriterion("batteryState between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { - addCriterion("batteryState not between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNull() { - addCriterion("alarmType is null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNotNull() { - addCriterion("alarmType is not null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeEqualTo(String value) { - addCriterion("alarmType =", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotEqualTo(String value) { - addCriterion("alarmType <>", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThan(String value) { - addCriterion("alarmType >", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { - addCriterion("alarmType >=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThan(String value) { - addCriterion("alarmType <", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThanOrEqualTo(String value) { - addCriterion("alarmType <=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLike(String value) { - addCriterion("alarmType like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotLike(String value) { - addCriterion("alarmType not like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIn(List values) { - addCriterion("alarmType in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotIn(List values) { - addCriterion("alarmType not in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeBetween(String value1, String value2) { - addCriterion("alarmType between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotBetween(String value1, String value2) { - addCriterion("alarmType not between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNull() { - addCriterion("platformType is null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNotNull() { - addCriterion("platformType is not null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeEqualTo(String value) { - addCriterion("platformType =", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotEqualTo(String value) { - addCriterion("platformType <>", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThan(String value) { - addCriterion("platformType >", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { - addCriterion("platformType >=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThan(String value) { - addCriterion("platformType <", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThanOrEqualTo(String value) { - addCriterion("platformType <=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLike(String value) { - addCriterion("platformType like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotLike(String value) { - addCriterion("platformType not like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIn(List values) { - addCriterion("platformType in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotIn(List values) { - addCriterion("platformType not in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeBetween(String value1, String value2) { - addCriterion("platformType between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotBetween(String value1, String value2) { - addCriterion("platformType not between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUnitIsNull() { - addCriterion("unit is null"); - return (Criteria) this; - } - - public Criteria andUnitIsNotNull() { - addCriterion("unit is not null"); - return (Criteria) this; - } - - public Criteria andUnitEqualTo(String value) { - addCriterion("unit =", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotEqualTo(String value) { - addCriterion("unit <>", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThan(String value) { - addCriterion("unit >", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThanOrEqualTo(String value) { - addCriterion("unit >=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThan(String value) { - addCriterion("unit <", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThanOrEqualTo(String value) { - addCriterion("unit <=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLike(String value) { - addCriterion("unit like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotLike(String value) { - addCriterion("unit not like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitIn(List values) { - addCriterion("unit in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotIn(List values) { - addCriterion("unit not in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitBetween(String value1, String value2) { - addCriterion("unit between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotBetween(String value1, String value2) { - addCriterion("unit not between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNull() { - addCriterion("sendTime is null"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNotNull() { - addCriterion("sendTime is not null"); - return (Criteria) this; - } - - public Criteria andSendtimeEqualTo(String value) { - addCriterion("sendTime =", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotEqualTo(String value) { - addCriterion("sendTime <>", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThan(String value) { - addCriterion("sendTime >", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThanOrEqualTo(String value) { - addCriterion("sendTime >=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThan(String value) { - addCriterion("sendTime <", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThanOrEqualTo(String value) { - addCriterion("sendTime <=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLike(String value) { - addCriterion("sendTime like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotLike(String value) { - addCriterion("sendTime not like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeIn(List values) { - addCriterion("sendTime in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotIn(List values) { - addCriterion("sendTime not in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeBetween(String value1, String value2) { - addCriterion("sendTime between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotBetween(String value1, String value2) { - addCriterion("sendTime not between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andOfflinetimeIsNull() { - addCriterion("offlineTime is null"); - return (Criteria) this; - } - - public Criteria andOfflinetimeIsNotNull() { - addCriterion("offlineTime is not null"); - return (Criteria) this; - } - - public Criteria andOfflinetimeEqualTo(Date value) { - addCriterion("offlineTime =", value, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeNotEqualTo(Date value) { - addCriterion("offlineTime <>", value, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeGreaterThan(Date value) { - addCriterion("offlineTime >", value, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeGreaterThanOrEqualTo(Date value) { - addCriterion("offlineTime >=", value, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeLessThan(Date value) { - addCriterion("offlineTime <", value, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeLessThanOrEqualTo(Date value) { - addCriterion("offlineTime <=", value, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeIn(List values) { - addCriterion("offlineTime in", values, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeNotIn(List values) { - addCriterion("offlineTime not in", values, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeBetween(Date value1, Date value2) { - addCriterion("offlineTime between", value1, value2, "offlinetime"); - return (Criteria) this; - } - - public Criteria andOfflinetimeNotBetween(Date value1, Date value2) { - addCriterion("offlineTime not between", value1, value2, "offlinetime"); - return (Criteria) this; - } - - public Criteria andAddressIsNull() { - addCriterion("address is null"); - return (Criteria) this; - } - - public Criteria andAddressIsNotNull() { - addCriterion("address is not null"); - return (Criteria) this; - } - - public Criteria andAddressEqualTo(String value) { - addCriterion("address =", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressNotEqualTo(String value) { - addCriterion("address <>", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressGreaterThan(String value) { - addCriterion("address >", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressGreaterThanOrEqualTo(String value) { - addCriterion("address >=", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressLessThan(String value) { - addCriterion("address <", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressLessThanOrEqualTo(String value) { - addCriterion("address <=", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressLike(String value) { - addCriterion("address like", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressNotLike(String value) { - addCriterion("address not like", value, "address"); - return (Criteria) this; - } - - public Criteria andAddressIn(List values) { - addCriterion("address in", values, "address"); - return (Criteria) this; - } - - public Criteria andAddressNotIn(List values) { - addCriterion("address not in", values, "address"); - return (Criteria) this; - } - - public Criteria andAddressBetween(String value1, String value2) { - addCriterion("address between", value1, value2, "address"); - return (Criteria) this; - } - - public Criteria andAddressNotBetween(String value1, String value2) { - addCriterion("address not between", value1, value2, "address"); - return (Criteria) this; - } - - public Criteria andLonIsNull() { - addCriterion("lon is null"); - return (Criteria) this; - } - - public Criteria andLonIsNotNull() { - addCriterion("lon is not null"); - return (Criteria) this; - } - - public Criteria andLonEqualTo(Double value) { - addCriterion("lon =", value, "lon"); - return (Criteria) this; - } - - public Criteria andLonNotEqualTo(Double value) { - addCriterion("lon <>", value, "lon"); - return (Criteria) this; - } - - public Criteria andLonGreaterThan(Double value) { - addCriterion("lon >", value, "lon"); - return (Criteria) this; - } - - public Criteria andLonGreaterThanOrEqualTo(Double value) { - addCriterion("lon >=", value, "lon"); - return (Criteria) this; - } - - public Criteria andLonLessThan(Double value) { - addCriterion("lon <", value, "lon"); - return (Criteria) this; - } - - public Criteria andLonLessThanOrEqualTo(Double value) { - addCriterion("lon <=", value, "lon"); - return (Criteria) this; - } - - public Criteria andLonIn(List values) { - addCriterion("lon in", values, "lon"); - return (Criteria) this; - } - - public Criteria andLonNotIn(List values) { - addCriterion("lon not in", values, "lon"); - return (Criteria) this; - } - - public Criteria andLonBetween(Double value1, Double value2) { - addCriterion("lon between", value1, value2, "lon"); - return (Criteria) this; - } - - public Criteria andLonNotBetween(Double value1, Double value2) { - addCriterion("lon not between", value1, value2, "lon"); - return (Criteria) this; - } - - public Criteria andLatIsNull() { - addCriterion("lat is null"); - return (Criteria) this; - } - - public Criteria andLatIsNotNull() { - addCriterion("lat is not null"); - return (Criteria) this; - } - - public Criteria andLatEqualTo(Double value) { - addCriterion("lat =", value, "lat"); - return (Criteria) this; - } - - public Criteria andLatNotEqualTo(Double value) { - addCriterion("lat <>", value, "lat"); - return (Criteria) this; - } - - public Criteria andLatGreaterThan(Double value) { - addCriterion("lat >", value, "lat"); - return (Criteria) this; - } - - public Criteria andLatGreaterThanOrEqualTo(Double value) { - addCriterion("lat >=", value, "lat"); - return (Criteria) this; - } - - public Criteria andLatLessThan(Double value) { - addCriterion("lat <", value, "lat"); - return (Criteria) this; - } - - public Criteria andLatLessThanOrEqualTo(Double value) { - addCriterion("lat <=", value, "lat"); - return (Criteria) this; - } - - public Criteria andLatIn(List values) { - addCriterion("lat in", values, "lat"); - return (Criteria) this; - } - - public Criteria andLatNotIn(List values) { - addCriterion("lat not in", values, "lat"); - return (Criteria) this; - } - - public Criteria andLatBetween(Double value1, Double value2) { - addCriterion("lat between", value1, value2, "lat"); - return (Criteria) this; - } - - public Criteria andLatNotBetween(Double value1, Double value2) { - addCriterion("lat not between", value1, value2, "lat"); - return (Criteria) this; - } - - public Criteria andValueIsNull() { - addCriterion("value is null"); - return (Criteria) this; - } - - public Criteria andValueIsNotNull() { - addCriterion("value is not null"); - return (Criteria) this; - } - - public Criteria andValueEqualTo(String value) { - addCriterion("value =", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotEqualTo(String value) { - addCriterion("value <>", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThan(String value) { - addCriterion("value >", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("value >=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThan(String value) { - addCriterion("value <", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("value <=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLike(String value) { - addCriterion("value like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotLike(String value) { - addCriterion("value not like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueIn(List values) { - addCriterion("value in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueNotIn(List values) { - addCriterion("value not in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueBetween(String value1, String value2) { - addCriterion("value between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("value not between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andNameIsNull() { - addCriterion("name is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("name is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("name =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("name <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("name >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("name >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("name <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("name <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("name like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("name not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("name in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("name not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("name between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("name not between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNull() { - addCriterion("project_id is null"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNotNull() { - addCriterion("project_id is not null"); - return (Criteria) this; - } - - public Criteria andProjectIdEqualTo(Integer value) { - addCriterion("project_id =", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotEqualTo(Integer value) { - addCriterion("project_id <>", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThan(Integer value) { - addCriterion("project_id >", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { - addCriterion("project_id >=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThan(Integer value) { - addCriterion("project_id <", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThanOrEqualTo(Integer value) { - addCriterion("project_id <=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdIn(List values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List values) { - addCriterion("project_id not in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdBetween(Integer value1, Integer value2) { - addCriterion("project_id between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { - addCriterion("project_id not between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andUserIdIsNull() { - addCriterion("user_id is null"); - return (Criteria) this; - } - - public Criteria andUserIdIsNotNull() { - addCriterion("user_id is not null"); - return (Criteria) this; - } - - public Criteria andUserIdEqualTo(Integer value) { - addCriterion("user_id =", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotEqualTo(Integer value) { - addCriterion("user_id <>", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThan(Integer value) { - addCriterion("user_id >", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdGreaterThanOrEqualTo(Integer value) { - addCriterion("user_id >=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThan(Integer value) { - addCriterion("user_id <", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdLessThanOrEqualTo(Integer value) { - addCriterion("user_id <=", value, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdIn(List values) { - addCriterion("user_id in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotIn(List values) { - addCriterion("user_id not in", values, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdBetween(Integer value1, Integer value2) { - addCriterion("user_id between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andUserIdNotBetween(Integer value1, Integer value2) { - addCriterion("user_id not between", value1, value2, "userId"); - return (Criteria) this; - } - - public Criteria andStatusIsNull() { - addCriterion("STATUS is null"); - return (Criteria) this; - } - - public Criteria andStatusIsNotNull() { - addCriterion("STATUS is not null"); - return (Criteria) this; - } - - public Criteria andStatusEqualTo(String value) { - addCriterion("STATUS =", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotEqualTo(String value) { - addCriterion("STATUS <>", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThan(String value) { - addCriterion("STATUS >", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThanOrEqualTo(String value) { - addCriterion("STATUS >=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThan(String value) { - addCriterion("STATUS <", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThanOrEqualTo(String value) { - addCriterion("STATUS <=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLike(String value) { - addCriterion("STATUS like", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotLike(String value) { - addCriterion("STATUS not like", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusIn(List values) { - addCriterion("STATUS in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotIn(List values) { - addCriterion("STATUS not in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusBetween(String value1, String value2) { - addCriterion("STATUS between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotBetween(String value1, String value2) { - addCriterion("STATUS not between", value1, value2, "status"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java b/src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java deleted file mode 100644 index 37f7dd8..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/GatewayDevice.java +++ /dev/null @@ -1,125 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.Date; - -/** - * @ClassName GatewayDevice - * @Deacription TODO - * @Author Administrator - * @Date 2022/4/22 14:45 - * @Version 1.0 - **/ - -public class GatewayDevice { - /** - * id - */ - private Integer id; - /** - * imei - */ - private String imei; - /** - * 父imei - */ - private String parentImei; - /** - * 父设备id - */ - private String deviceId; - /** - * 平台类型 - */ - private String platformType; - - /** - * 绑定状态(0 废除 1 启用 ) - */ - private Integer bindStatus = 1; - /** - * 修改时间 - */ - private Date updateTime; - /** - * 创建时间 - */ - private Date createTime; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei; - } - - public String getParentImei() { - return parentImei; - } - - public void setParentImei(String parentImei) { - this.parentImei = parentImei; - } - - public String getDeviceId() { - return deviceId; - } - - public void setDeviceId(String deviceId) { - this.deviceId = deviceId; - } - - public String getPlatformType() { - return platformType; - } - - public void setPlatformType(String platformType) { - this.platformType = platformType; - } - - public Date getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Date updateTime) { - this.updateTime = updateTime; - } - - public Date getCreateTime() { - return createTime; - } - - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } - - public Integer getBindStatus() { - return bindStatus; - } - - public void setBindStatus(Integer bindStatus) { - this.bindStatus = bindStatus; - } - - @Override - public String toString() { - return "GatewayDevice{" + - "id=" + id + - ", imei='" + imei + '\'' + - ", parentImei='" + parentImei + '\'' + - ", deviceId='" + deviceId + '\'' + - ", platformType='" + platformType + '\'' + - ", bindStatus=" + bindStatus + - ", updateTime=" + updateTime + - ", createTime=" + createTime + - '}'; - } -} diff --git a/src/main/java/com/topsail/influxdb/pojo/History.java b/src/main/java/com/topsail/influxdb/pojo/History.java index f7be486..184b9a3 100644 --- a/src/main/java/com/topsail/influxdb/pojo/History.java +++ b/src/main/java/com/topsail/influxdb/pojo/History.java @@ -1,9 +1,16 @@ package com.topsail.influxdb.pojo; -import java.util.ArrayList; -import java.util.Arrays; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + import java.util.Date; +@Data +@NoArgsConstructor +@AllArgsConstructor +@Builder public class History { private Long id; @@ -39,344 +46,13 @@ public class History { private String databody; - private Integer devModel; - - public Integer getDevModel() { - return devModel; - } - - public void setDevModel(Integer devModel) { - this.devModel = devModel; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getBatterylevel() { - return batterylevel; - } - - public void setBatterylevel(Integer batterylevel) { - this.batterylevel = batterylevel; - } - - public Integer getSingalstrength() { - return singalstrength; - } - - public void setSingalstrength(Integer singalstrength) { - this.singalstrength = singalstrength; - } - - public String getSampledata() { - return sampledata; - } - - public void setSampledata(String sampledata) { - this.sampledata = sampledata == null ? null : sampledata.trim(); - } - - public Integer getPassnum() { - return passnum; - } - - public void setPassnum(Integer passnum) { - this.passnum = passnum; - } - - public Integer getBatterystate() { - return batterystate; - } - - public void setBatterystate(Integer batterystate) { - this.batterystate = batterystate; - } - - public String getAlarmtype() { - return alarmtype; - } - - public void setAlarmtype(String alarmtype) { - this.alarmtype = alarmtype == null ? null : alarmtype.trim(); - } - - public String getPlatformtype() { - return platformtype; - } - - public void setPlatformtype(String platformtype) { - this.platformtype = platformtype == null ? null : platformtype.trim(); - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getUnit() { - return unit; - } - - public void setUnit(String unit) { - this.unit = unit == null ? null : unit.trim(); - } - - public String getSendtime() { - return sendtime; - } - - public void setSendtime(String sendtime) { - this.sendtime = sendtime == null ? null : sendtime.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value == null ? null : value.trim(); - } - - public Date getSenddate() { - return senddate; - } - - public void setSenddate(Date senddate) { - this.senddate = senddate; - } - - public String getDatabody() { - return databody; - } - - public void setDatabody(String databody) { - this.databody = databody == null ? null : databody.trim(); - } - + private Integer devModel; /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin + * 房间id */ - public enum Column { - id("id", "id", "BIGINT", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - imei("Imei", "imei", "VARCHAR", false), - batterylevel("batteryLevel", "batterylevel", "INTEGER", false), - singalstrength("singalStrength", "singalstrength", "INTEGER", false), - sampledata("sampleData", "sampledata", "VARCHAR", false), - passnum("passNum", "passnum", "INTEGER", false), - batterystate("batteryState", "batterystate", "INTEGER", false), - alarmtype("alarmType", "alarmtype", "VARCHAR", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - unit("unit", "unit", "VARCHAR", false), - sendtime("sendTime", "sendtime", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - value("value", "value", "VARCHAR", false), - senddate("sendDate", "senddate", "TIMESTAMP", false), - databody("dataBody", "databody", "LONGVARCHAR", false), - devModel("devModel", "devModel", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } - - - + private Integer houseId; + /** + * 设备所属信息 + */ + private String deviceBelongInfo; } \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryAll.java b/src/main/java/com/topsail/influxdb/pojo/HistoryAll.java deleted file mode 100644 index 2237b1a..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/HistoryAll.java +++ /dev/null @@ -1,368 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class HistoryAll { - private Long id; - - private Integer devicetype; - - private String imei; - - private Integer batterylevel; - - private Integer singalstrength; - - private String sampledata; - - private Integer passnum; - - private Integer batterystate; - - private String alarmtype; - - private String platformtype; - - private String username; - - private String unit; - - private String sendtime; - - private String databody; - - private Date time; - - private String value; - - private Date senddate; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getBatterylevel() { - return batterylevel; - } - - public void setBatterylevel(Integer batterylevel) { - this.batterylevel = batterylevel; - } - - public Integer getSingalstrength() { - return singalstrength; - } - - public void setSingalstrength(Integer singalstrength) { - this.singalstrength = singalstrength; - } - - public String getSampledata() { - return sampledata; - } - - public void setSampledata(String sampledata) { - this.sampledata = sampledata == null ? null : sampledata.trim(); - } - - public Integer getPassnum() { - return passnum; - } - - public void setPassnum(Integer passnum) { - this.passnum = passnum; - } - - public Integer getBatterystate() { - return batterystate; - } - - public void setBatterystate(Integer batterystate) { - this.batterystate = batterystate; - } - - public String getAlarmtype() { - return alarmtype; - } - - public void setAlarmtype(String alarmtype) { - this.alarmtype = alarmtype == null ? null : alarmtype.trim(); - } - - public String getPlatformtype() { - return platformtype; - } - - public void setPlatformtype(String platformtype) { - this.platformtype = platformtype == null ? null : platformtype.trim(); - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getUnit() { - return unit; - } - - public void setUnit(String unit) { - this.unit = unit == null ? null : unit.trim(); - } - - public String getSendtime() { - return sendtime; - } - - public void setSendtime(String sendtime) { - this.sendtime = sendtime == null ? null : sendtime.trim(); - } - - public String getDatabody() { - return databody; - } - - public void setDatabody(String databody) { - this.databody = databody == null ? null : databody.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value == null ? null : value.trim(); - } - - public Date getSenddate() { - return senddate; - } - - public void setSenddate(Date senddate) { - this.senddate = senddate; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "BIGINT", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - imei("Imei", "imei", "VARCHAR", false), - batterylevel("batteryLevel", "batterylevel", "INTEGER", false), - singalstrength("singalStrength", "singalstrength", "INTEGER", false), - sampledata("sampleData", "sampledata", "VARCHAR", false), - passnum("passNum", "passnum", "INTEGER", false), - batterystate("batteryState", "batterystate", "INTEGER", false), - alarmtype("alarmType", "alarmtype", "VARCHAR", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - unit("unit", "unit", "VARCHAR", false), - sendtime("sendTime", "sendtime", "VARCHAR", false), - databody("dataBody", "databody", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - value("value", "value", "VARCHAR", false), - senddate("sendDate", "senddate", "TIMESTAMP", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_all - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java b/src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java deleted file mode 100644 index 4c1575a..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/HistoryAllExample.java +++ /dev/null @@ -1,1311 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class HistoryAllExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public HistoryAllExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("Imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("Imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("Imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("Imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("Imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("Imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("Imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("Imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("Imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("Imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("Imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("Imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("Imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("Imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNull() { - addCriterion("batteryLevel is null"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNotNull() { - addCriterion("batteryLevel is not null"); - return (Criteria) this; - } - - public Criteria andBatterylevelEqualTo(Integer value) { - addCriterion("batteryLevel =", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotEqualTo(Integer value) { - addCriterion("batteryLevel <>", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThan(Integer value) { - addCriterion("batteryLevel >", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryLevel >=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThan(Integer value) { - addCriterion("batteryLevel <", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { - addCriterion("batteryLevel <=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelIn(List values) { - addCriterion("batteryLevel in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotIn(List values) { - addCriterion("batteryLevel not in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel not between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNull() { - addCriterion("singalStrength is null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNotNull() { - addCriterion("singalStrength is not null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthEqualTo(Integer value) { - addCriterion("singalStrength =", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotEqualTo(Integer value) { - addCriterion("singalStrength <>", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThan(Integer value) { - addCriterion("singalStrength >", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { - addCriterion("singalStrength >=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThan(Integer value) { - addCriterion("singalStrength <", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { - addCriterion("singalStrength <=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIn(List values) { - addCriterion("singalStrength in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotIn(List values) { - addCriterion("singalStrength not in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { - addCriterion("singalStrength between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { - addCriterion("singalStrength not between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSampledataIsNull() { - addCriterion("sampleData is null"); - return (Criteria) this; - } - - public Criteria andSampledataIsNotNull() { - addCriterion("sampleData is not null"); - return (Criteria) this; - } - - public Criteria andSampledataEqualTo(String value) { - addCriterion("sampleData =", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotEqualTo(String value) { - addCriterion("sampleData <>", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThan(String value) { - addCriterion("sampleData >", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThanOrEqualTo(String value) { - addCriterion("sampleData >=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThan(String value) { - addCriterion("sampleData <", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThanOrEqualTo(String value) { - addCriterion("sampleData <=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLike(String value) { - addCriterion("sampleData like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotLike(String value) { - addCriterion("sampleData not like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataIn(List values) { - addCriterion("sampleData in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotIn(List values) { - addCriterion("sampleData not in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataBetween(String value1, String value2) { - addCriterion("sampleData between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotBetween(String value1, String value2) { - addCriterion("sampleData not between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andPassnumIsNull() { - addCriterion("passNum is null"); - return (Criteria) this; - } - - public Criteria andPassnumIsNotNull() { - addCriterion("passNum is not null"); - return (Criteria) this; - } - - public Criteria andPassnumEqualTo(Integer value) { - addCriterion("passNum =", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotEqualTo(Integer value) { - addCriterion("passNum <>", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThan(Integer value) { - addCriterion("passNum >", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { - addCriterion("passNum >=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThan(Integer value) { - addCriterion("passNum <", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThanOrEqualTo(Integer value) { - addCriterion("passNum <=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumIn(List values) { - addCriterion("passNum in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotIn(List values) { - addCriterion("passNum not in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumBetween(Integer value1, Integer value2) { - addCriterion("passNum between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotBetween(Integer value1, Integer value2) { - addCriterion("passNum not between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNull() { - addCriterion("batteryState is null"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNotNull() { - addCriterion("batteryState is not null"); - return (Criteria) this; - } - - public Criteria andBatterystateEqualTo(Integer value) { - addCriterion("batteryState =", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotEqualTo(Integer value) { - addCriterion("batteryState <>", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThan(Integer value) { - addCriterion("batteryState >", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryState >=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThan(Integer value) { - addCriterion("batteryState <", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThanOrEqualTo(Integer value) { - addCriterion("batteryState <=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateIn(List values) { - addCriterion("batteryState in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotIn(List values) { - addCriterion("batteryState not in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateBetween(Integer value1, Integer value2) { - addCriterion("batteryState between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { - addCriterion("batteryState not between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNull() { - addCriterion("alarmType is null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNotNull() { - addCriterion("alarmType is not null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeEqualTo(String value) { - addCriterion("alarmType =", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotEqualTo(String value) { - addCriterion("alarmType <>", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThan(String value) { - addCriterion("alarmType >", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { - addCriterion("alarmType >=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThan(String value) { - addCriterion("alarmType <", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThanOrEqualTo(String value) { - addCriterion("alarmType <=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLike(String value) { - addCriterion("alarmType like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotLike(String value) { - addCriterion("alarmType not like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIn(List values) { - addCriterion("alarmType in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotIn(List values) { - addCriterion("alarmType not in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeBetween(String value1, String value2) { - addCriterion("alarmType between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotBetween(String value1, String value2) { - addCriterion("alarmType not between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNull() { - addCriterion("platformType is null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNotNull() { - addCriterion("platformType is not null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeEqualTo(String value) { - addCriterion("platformType =", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotEqualTo(String value) { - addCriterion("platformType <>", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThan(String value) { - addCriterion("platformType >", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { - addCriterion("platformType >=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThan(String value) { - addCriterion("platformType <", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThanOrEqualTo(String value) { - addCriterion("platformType <=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLike(String value) { - addCriterion("platformType like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotLike(String value) { - addCriterion("platformType not like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIn(List values) { - addCriterion("platformType in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotIn(List values) { - addCriterion("platformType not in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeBetween(String value1, String value2) { - addCriterion("platformType between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotBetween(String value1, String value2) { - addCriterion("platformType not between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUnitIsNull() { - addCriterion("unit is null"); - return (Criteria) this; - } - - public Criteria andUnitIsNotNull() { - addCriterion("unit is not null"); - return (Criteria) this; - } - - public Criteria andUnitEqualTo(String value) { - addCriterion("unit =", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotEqualTo(String value) { - addCriterion("unit <>", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThan(String value) { - addCriterion("unit >", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThanOrEqualTo(String value) { - addCriterion("unit >=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThan(String value) { - addCriterion("unit <", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThanOrEqualTo(String value) { - addCriterion("unit <=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLike(String value) { - addCriterion("unit like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotLike(String value) { - addCriterion("unit not like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitIn(List values) { - addCriterion("unit in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotIn(List values) { - addCriterion("unit not in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitBetween(String value1, String value2) { - addCriterion("unit between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotBetween(String value1, String value2) { - addCriterion("unit not between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNull() { - addCriterion("sendTime is null"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNotNull() { - addCriterion("sendTime is not null"); - return (Criteria) this; - } - - public Criteria andSendtimeEqualTo(String value) { - addCriterion("sendTime =", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotEqualTo(String value) { - addCriterion("sendTime <>", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThan(String value) { - addCriterion("sendTime >", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThanOrEqualTo(String value) { - addCriterion("sendTime >=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThan(String value) { - addCriterion("sendTime <", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThanOrEqualTo(String value) { - addCriterion("sendTime <=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLike(String value) { - addCriterion("sendTime like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotLike(String value) { - addCriterion("sendTime not like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeIn(List values) { - addCriterion("sendTime in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotIn(List values) { - addCriterion("sendTime not in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeBetween(String value1, String value2) { - addCriterion("sendTime between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotBetween(String value1, String value2) { - addCriterion("sendTime not between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andDatabodyIsNull() { - addCriterion("dataBody is null"); - return (Criteria) this; - } - - public Criteria andDatabodyIsNotNull() { - addCriterion("dataBody is not null"); - return (Criteria) this; - } - - public Criteria andDatabodyEqualTo(String value) { - addCriterion("dataBody =", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotEqualTo(String value) { - addCriterion("dataBody <>", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyGreaterThan(String value) { - addCriterion("dataBody >", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyGreaterThanOrEqualTo(String value) { - addCriterion("dataBody >=", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyLessThan(String value) { - addCriterion("dataBody <", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyLessThanOrEqualTo(String value) { - addCriterion("dataBody <=", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyLike(String value) { - addCriterion("dataBody like", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotLike(String value) { - addCriterion("dataBody not like", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyIn(List values) { - addCriterion("dataBody in", values, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotIn(List values) { - addCriterion("dataBody not in", values, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyBetween(String value1, String value2) { - addCriterion("dataBody between", value1, value2, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotBetween(String value1, String value2) { - addCriterion("dataBody not between", value1, value2, "databody"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andValueIsNull() { - addCriterion("value is null"); - return (Criteria) this; - } - - public Criteria andValueIsNotNull() { - addCriterion("value is not null"); - return (Criteria) this; - } - - public Criteria andValueEqualTo(String value) { - addCriterion("value =", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotEqualTo(String value) { - addCriterion("value <>", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThan(String value) { - addCriterion("value >", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("value >=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThan(String value) { - addCriterion("value <", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("value <=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLike(String value) { - addCriterion("value like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotLike(String value) { - addCriterion("value not like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueIn(List values) { - addCriterion("value in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueNotIn(List values) { - addCriterion("value not in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueBetween(String value1, String value2) { - addCriterion("value between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("value not between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andSenddateIsNull() { - addCriterion("sendDate is null"); - return (Criteria) this; - } - - public Criteria andSenddateIsNotNull() { - addCriterion("sendDate is not null"); - return (Criteria) this; - } - - public Criteria andSenddateEqualTo(Date value) { - addCriterion("sendDate =", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotEqualTo(Date value) { - addCriterion("sendDate <>", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateGreaterThan(Date value) { - addCriterion("sendDate >", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateGreaterThanOrEqualTo(Date value) { - addCriterion("sendDate >=", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateLessThan(Date value) { - addCriterion("sendDate <", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateLessThanOrEqualTo(Date value) { - addCriterion("sendDate <=", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateIn(List values) { - addCriterion("sendDate in", values, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotIn(List values) { - addCriterion("sendDate not in", values, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateBetween(Date value1, Date value2) { - addCriterion("sendDate between", value1, value2, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotBetween(Date value1, Date value2) { - addCriterion("sendDate not between", value1, value2, "senddate"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryErr.java b/src/main/java/com/topsail/influxdb/pojo/HistoryErr.java deleted file mode 100644 index e4783d8..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/HistoryErr.java +++ /dev/null @@ -1,368 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class HistoryErr { - private Long id; - - private Integer devicetype; - - private String imei; - - private Integer batterylevel; - - private Integer singalstrength; - - private String sampledata; - - private Integer passnum; - - private Integer batterystate; - - private String alarmtype; - - private String platformtype; - - private String username; - - private String unit; - - private String sendtime; - - private String databody; - - private Date time; - - private String value; - - private Date senddate; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getBatterylevel() { - return batterylevel; - } - - public void setBatterylevel(Integer batterylevel) { - this.batterylevel = batterylevel; - } - - public Integer getSingalstrength() { - return singalstrength; - } - - public void setSingalstrength(Integer singalstrength) { - this.singalstrength = singalstrength; - } - - public String getSampledata() { - return sampledata; - } - - public void setSampledata(String sampledata) { - this.sampledata = sampledata == null ? null : sampledata.trim(); - } - - public Integer getPassnum() { - return passnum; - } - - public void setPassnum(Integer passnum) { - this.passnum = passnum; - } - - public Integer getBatterystate() { - return batterystate; - } - - public void setBatterystate(Integer batterystate) { - this.batterystate = batterystate; - } - - public String getAlarmtype() { - return alarmtype; - } - - public void setAlarmtype(String alarmtype) { - this.alarmtype = alarmtype == null ? null : alarmtype.trim(); - } - - public String getPlatformtype() { - return platformtype; - } - - public void setPlatformtype(String platformtype) { - this.platformtype = platformtype == null ? null : platformtype.trim(); - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getUnit() { - return unit; - } - - public void setUnit(String unit) { - this.unit = unit == null ? null : unit.trim(); - } - - public String getSendtime() { - return sendtime; - } - - public void setSendtime(String sendtime) { - this.sendtime = sendtime == null ? null : sendtime.trim(); - } - - public String getDatabody() { - return databody; - } - - public void setDatabody(String databody) { - this.databody = databody == null ? null : databody.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value == null ? null : value.trim(); - } - - public Date getSenddate() { - return senddate; - } - - public void setSenddate(Date senddate) { - this.senddate = senddate; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "BIGINT", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - imei("Imei", "imei", "VARCHAR", false), - batterylevel("batteryLevel", "batterylevel", "INTEGER", false), - singalstrength("singalStrength", "singalstrength", "INTEGER", false), - sampledata("sampleData", "sampledata", "VARCHAR", false), - passnum("passNum", "passnum", "INTEGER", false), - batterystate("batteryState", "batterystate", "INTEGER", false), - alarmtype("alarmType", "alarmtype", "VARCHAR", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - unit("unit", "unit", "VARCHAR", false), - sendtime("sendTime", "sendtime", "VARCHAR", false), - databody("dataBody", "databody", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - value("value", "value", "VARCHAR", false), - senddate("sendDate", "senddate", "TIMESTAMP", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history_err - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java b/src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java deleted file mode 100644 index fddab54..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/HistoryErrExample.java +++ /dev/null @@ -1,1311 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class HistoryErrExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public HistoryErrExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("Imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("Imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("Imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("Imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("Imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("Imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("Imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("Imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("Imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("Imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("Imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("Imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("Imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("Imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNull() { - addCriterion("batteryLevel is null"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNotNull() { - addCriterion("batteryLevel is not null"); - return (Criteria) this; - } - - public Criteria andBatterylevelEqualTo(Integer value) { - addCriterion("batteryLevel =", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotEqualTo(Integer value) { - addCriterion("batteryLevel <>", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThan(Integer value) { - addCriterion("batteryLevel >", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryLevel >=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThan(Integer value) { - addCriterion("batteryLevel <", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { - addCriterion("batteryLevel <=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelIn(List values) { - addCriterion("batteryLevel in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotIn(List values) { - addCriterion("batteryLevel not in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel not between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNull() { - addCriterion("singalStrength is null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNotNull() { - addCriterion("singalStrength is not null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthEqualTo(Integer value) { - addCriterion("singalStrength =", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotEqualTo(Integer value) { - addCriterion("singalStrength <>", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThan(Integer value) { - addCriterion("singalStrength >", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { - addCriterion("singalStrength >=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThan(Integer value) { - addCriterion("singalStrength <", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { - addCriterion("singalStrength <=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIn(List values) { - addCriterion("singalStrength in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotIn(List values) { - addCriterion("singalStrength not in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { - addCriterion("singalStrength between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { - addCriterion("singalStrength not between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSampledataIsNull() { - addCriterion("sampleData is null"); - return (Criteria) this; - } - - public Criteria andSampledataIsNotNull() { - addCriterion("sampleData is not null"); - return (Criteria) this; - } - - public Criteria andSampledataEqualTo(String value) { - addCriterion("sampleData =", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotEqualTo(String value) { - addCriterion("sampleData <>", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThan(String value) { - addCriterion("sampleData >", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThanOrEqualTo(String value) { - addCriterion("sampleData >=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThan(String value) { - addCriterion("sampleData <", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThanOrEqualTo(String value) { - addCriterion("sampleData <=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLike(String value) { - addCriterion("sampleData like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotLike(String value) { - addCriterion("sampleData not like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataIn(List values) { - addCriterion("sampleData in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotIn(List values) { - addCriterion("sampleData not in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataBetween(String value1, String value2) { - addCriterion("sampleData between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotBetween(String value1, String value2) { - addCriterion("sampleData not between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andPassnumIsNull() { - addCriterion("passNum is null"); - return (Criteria) this; - } - - public Criteria andPassnumIsNotNull() { - addCriterion("passNum is not null"); - return (Criteria) this; - } - - public Criteria andPassnumEqualTo(Integer value) { - addCriterion("passNum =", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotEqualTo(Integer value) { - addCriterion("passNum <>", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThan(Integer value) { - addCriterion("passNum >", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { - addCriterion("passNum >=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThan(Integer value) { - addCriterion("passNum <", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThanOrEqualTo(Integer value) { - addCriterion("passNum <=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumIn(List values) { - addCriterion("passNum in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotIn(List values) { - addCriterion("passNum not in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumBetween(Integer value1, Integer value2) { - addCriterion("passNum between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotBetween(Integer value1, Integer value2) { - addCriterion("passNum not between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNull() { - addCriterion("batteryState is null"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNotNull() { - addCriterion("batteryState is not null"); - return (Criteria) this; - } - - public Criteria andBatterystateEqualTo(Integer value) { - addCriterion("batteryState =", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotEqualTo(Integer value) { - addCriterion("batteryState <>", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThan(Integer value) { - addCriterion("batteryState >", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryState >=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThan(Integer value) { - addCriterion("batteryState <", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThanOrEqualTo(Integer value) { - addCriterion("batteryState <=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateIn(List values) { - addCriterion("batteryState in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotIn(List values) { - addCriterion("batteryState not in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateBetween(Integer value1, Integer value2) { - addCriterion("batteryState between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { - addCriterion("batteryState not between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNull() { - addCriterion("alarmType is null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNotNull() { - addCriterion("alarmType is not null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeEqualTo(String value) { - addCriterion("alarmType =", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotEqualTo(String value) { - addCriterion("alarmType <>", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThan(String value) { - addCriterion("alarmType >", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { - addCriterion("alarmType >=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThan(String value) { - addCriterion("alarmType <", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThanOrEqualTo(String value) { - addCriterion("alarmType <=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLike(String value) { - addCriterion("alarmType like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotLike(String value) { - addCriterion("alarmType not like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIn(List values) { - addCriterion("alarmType in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotIn(List values) { - addCriterion("alarmType not in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeBetween(String value1, String value2) { - addCriterion("alarmType between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotBetween(String value1, String value2) { - addCriterion("alarmType not between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNull() { - addCriterion("platformType is null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNotNull() { - addCriterion("platformType is not null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeEqualTo(String value) { - addCriterion("platformType =", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotEqualTo(String value) { - addCriterion("platformType <>", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThan(String value) { - addCriterion("platformType >", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { - addCriterion("platformType >=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThan(String value) { - addCriterion("platformType <", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThanOrEqualTo(String value) { - addCriterion("platformType <=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLike(String value) { - addCriterion("platformType like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotLike(String value) { - addCriterion("platformType not like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIn(List values) { - addCriterion("platformType in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotIn(List values) { - addCriterion("platformType not in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeBetween(String value1, String value2) { - addCriterion("platformType between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotBetween(String value1, String value2) { - addCriterion("platformType not between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUnitIsNull() { - addCriterion("unit is null"); - return (Criteria) this; - } - - public Criteria andUnitIsNotNull() { - addCriterion("unit is not null"); - return (Criteria) this; - } - - public Criteria andUnitEqualTo(String value) { - addCriterion("unit =", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotEqualTo(String value) { - addCriterion("unit <>", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThan(String value) { - addCriterion("unit >", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThanOrEqualTo(String value) { - addCriterion("unit >=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThan(String value) { - addCriterion("unit <", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThanOrEqualTo(String value) { - addCriterion("unit <=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLike(String value) { - addCriterion("unit like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotLike(String value) { - addCriterion("unit not like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitIn(List values) { - addCriterion("unit in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotIn(List values) { - addCriterion("unit not in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitBetween(String value1, String value2) { - addCriterion("unit between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotBetween(String value1, String value2) { - addCriterion("unit not between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNull() { - addCriterion("sendTime is null"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNotNull() { - addCriterion("sendTime is not null"); - return (Criteria) this; - } - - public Criteria andSendtimeEqualTo(String value) { - addCriterion("sendTime =", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotEqualTo(String value) { - addCriterion("sendTime <>", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThan(String value) { - addCriterion("sendTime >", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThanOrEqualTo(String value) { - addCriterion("sendTime >=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThan(String value) { - addCriterion("sendTime <", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThanOrEqualTo(String value) { - addCriterion("sendTime <=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLike(String value) { - addCriterion("sendTime like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotLike(String value) { - addCriterion("sendTime not like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeIn(List values) { - addCriterion("sendTime in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotIn(List values) { - addCriterion("sendTime not in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeBetween(String value1, String value2) { - addCriterion("sendTime between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotBetween(String value1, String value2) { - addCriterion("sendTime not between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andDatabodyIsNull() { - addCriterion("dataBody is null"); - return (Criteria) this; - } - - public Criteria andDatabodyIsNotNull() { - addCriterion("dataBody is not null"); - return (Criteria) this; - } - - public Criteria andDatabodyEqualTo(String value) { - addCriterion("dataBody =", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotEqualTo(String value) { - addCriterion("dataBody <>", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyGreaterThan(String value) { - addCriterion("dataBody >", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyGreaterThanOrEqualTo(String value) { - addCriterion("dataBody >=", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyLessThan(String value) { - addCriterion("dataBody <", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyLessThanOrEqualTo(String value) { - addCriterion("dataBody <=", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyLike(String value) { - addCriterion("dataBody like", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotLike(String value) { - addCriterion("dataBody not like", value, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyIn(List values) { - addCriterion("dataBody in", values, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotIn(List values) { - addCriterion("dataBody not in", values, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyBetween(String value1, String value2) { - addCriterion("dataBody between", value1, value2, "databody"); - return (Criteria) this; - } - - public Criteria andDatabodyNotBetween(String value1, String value2) { - addCriterion("dataBody not between", value1, value2, "databody"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andValueIsNull() { - addCriterion("value is null"); - return (Criteria) this; - } - - public Criteria andValueIsNotNull() { - addCriterion("value is not null"); - return (Criteria) this; - } - - public Criteria andValueEqualTo(String value) { - addCriterion("value =", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotEqualTo(String value) { - addCriterion("value <>", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThan(String value) { - addCriterion("value >", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("value >=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThan(String value) { - addCriterion("value <", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("value <=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLike(String value) { - addCriterion("value like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotLike(String value) { - addCriterion("value not like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueIn(List values) { - addCriterion("value in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueNotIn(List values) { - addCriterion("value not in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueBetween(String value1, String value2) { - addCriterion("value between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("value not between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andSenddateIsNull() { - addCriterion("sendDate is null"); - return (Criteria) this; - } - - public Criteria andSenddateIsNotNull() { - addCriterion("sendDate is not null"); - return (Criteria) this; - } - - public Criteria andSenddateEqualTo(Date value) { - addCriterion("sendDate =", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotEqualTo(Date value) { - addCriterion("sendDate <>", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateGreaterThan(Date value) { - addCriterion("sendDate >", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateGreaterThanOrEqualTo(Date value) { - addCriterion("sendDate >=", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateLessThan(Date value) { - addCriterion("sendDate <", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateLessThanOrEqualTo(Date value) { - addCriterion("sendDate <=", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateIn(List values) { - addCriterion("sendDate in", values, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotIn(List values) { - addCriterion("sendDate not in", values, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateBetween(Date value1, Date value2) { - addCriterion("sendDate between", value1, value2, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotBetween(Date value1, Date value2) { - addCriterion("sendDate not between", value1, value2, "senddate"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryExample.java b/src/main/java/com/topsail/influxdb/pojo/HistoryExample.java deleted file mode 100644 index ca0455e..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/HistoryExample.java +++ /dev/null @@ -1,1241 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class HistoryExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public HistoryExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("Imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("Imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("Imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("Imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("Imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("Imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("Imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("Imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("Imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("Imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("Imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("Imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("Imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("Imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNull() { - addCriterion("batteryLevel is null"); - return (Criteria) this; - } - - public Criteria andBatterylevelIsNotNull() { - addCriterion("batteryLevel is not null"); - return (Criteria) this; - } - - public Criteria andBatterylevelEqualTo(Integer value) { - addCriterion("batteryLevel =", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotEqualTo(Integer value) { - addCriterion("batteryLevel <>", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThan(Integer value) { - addCriterion("batteryLevel >", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryLevel >=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThan(Integer value) { - addCriterion("batteryLevel <", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelLessThanOrEqualTo(Integer value) { - addCriterion("batteryLevel <=", value, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelIn(List values) { - addCriterion("batteryLevel in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotIn(List values) { - addCriterion("batteryLevel not in", values, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andBatterylevelNotBetween(Integer value1, Integer value2) { - addCriterion("batteryLevel not between", value1, value2, "batterylevel"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNull() { - addCriterion("singalStrength is null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIsNotNull() { - addCriterion("singalStrength is not null"); - return (Criteria) this; - } - - public Criteria andSingalstrengthEqualTo(Integer value) { - addCriterion("singalStrength =", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotEqualTo(Integer value) { - addCriterion("singalStrength <>", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThan(Integer value) { - addCriterion("singalStrength >", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthGreaterThanOrEqualTo(Integer value) { - addCriterion("singalStrength >=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThan(Integer value) { - addCriterion("singalStrength <", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthLessThanOrEqualTo(Integer value) { - addCriterion("singalStrength <=", value, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthIn(List values) { - addCriterion("singalStrength in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotIn(List values) { - addCriterion("singalStrength not in", values, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthBetween(Integer value1, Integer value2) { - addCriterion("singalStrength between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSingalstrengthNotBetween(Integer value1, Integer value2) { - addCriterion("singalStrength not between", value1, value2, "singalstrength"); - return (Criteria) this; - } - - public Criteria andSampledataIsNull() { - addCriterion("sampleData is null"); - return (Criteria) this; - } - - public Criteria andSampledataIsNotNull() { - addCriterion("sampleData is not null"); - return (Criteria) this; - } - - public Criteria andSampledataEqualTo(String value) { - addCriterion("sampleData =", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotEqualTo(String value) { - addCriterion("sampleData <>", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThan(String value) { - addCriterion("sampleData >", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataGreaterThanOrEqualTo(String value) { - addCriterion("sampleData >=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThan(String value) { - addCriterion("sampleData <", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLessThanOrEqualTo(String value) { - addCriterion("sampleData <=", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataLike(String value) { - addCriterion("sampleData like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotLike(String value) { - addCriterion("sampleData not like", value, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataIn(List values) { - addCriterion("sampleData in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotIn(List values) { - addCriterion("sampleData not in", values, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataBetween(String value1, String value2) { - addCriterion("sampleData between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andSampledataNotBetween(String value1, String value2) { - addCriterion("sampleData not between", value1, value2, "sampledata"); - return (Criteria) this; - } - - public Criteria andPassnumIsNull() { - addCriterion("passNum is null"); - return (Criteria) this; - } - - public Criteria andPassnumIsNotNull() { - addCriterion("passNum is not null"); - return (Criteria) this; - } - - public Criteria andPassnumEqualTo(Integer value) { - addCriterion("passNum =", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotEqualTo(Integer value) { - addCriterion("passNum <>", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThan(Integer value) { - addCriterion("passNum >", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumGreaterThanOrEqualTo(Integer value) { - addCriterion("passNum >=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThan(Integer value) { - addCriterion("passNum <", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumLessThanOrEqualTo(Integer value) { - addCriterion("passNum <=", value, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumIn(List values) { - addCriterion("passNum in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotIn(List values) { - addCriterion("passNum not in", values, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumBetween(Integer value1, Integer value2) { - addCriterion("passNum between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andPassnumNotBetween(Integer value1, Integer value2) { - addCriterion("passNum not between", value1, value2, "passnum"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNull() { - addCriterion("batteryState is null"); - return (Criteria) this; - } - - public Criteria andBatterystateIsNotNull() { - addCriterion("batteryState is not null"); - return (Criteria) this; - } - - public Criteria andBatterystateEqualTo(Integer value) { - addCriterion("batteryState =", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotEqualTo(Integer value) { - addCriterion("batteryState <>", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThan(Integer value) { - addCriterion("batteryState >", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateGreaterThanOrEqualTo(Integer value) { - addCriterion("batteryState >=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThan(Integer value) { - addCriterion("batteryState <", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateLessThanOrEqualTo(Integer value) { - addCriterion("batteryState <=", value, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateIn(List values) { - addCriterion("batteryState in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotIn(List values) { - addCriterion("batteryState not in", values, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateBetween(Integer value1, Integer value2) { - addCriterion("batteryState between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andBatterystateNotBetween(Integer value1, Integer value2) { - addCriterion("batteryState not between", value1, value2, "batterystate"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNull() { - addCriterion("alarmType is null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIsNotNull() { - addCriterion("alarmType is not null"); - return (Criteria) this; - } - - public Criteria andAlarmtypeEqualTo(String value) { - addCriterion("alarmType =", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotEqualTo(String value) { - addCriterion("alarmType <>", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThan(String value) { - addCriterion("alarmType >", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeGreaterThanOrEqualTo(String value) { - addCriterion("alarmType >=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThan(String value) { - addCriterion("alarmType <", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLessThanOrEqualTo(String value) { - addCriterion("alarmType <=", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeLike(String value) { - addCriterion("alarmType like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotLike(String value) { - addCriterion("alarmType not like", value, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeIn(List values) { - addCriterion("alarmType in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotIn(List values) { - addCriterion("alarmType not in", values, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeBetween(String value1, String value2) { - addCriterion("alarmType between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andAlarmtypeNotBetween(String value1, String value2) { - addCriterion("alarmType not between", value1, value2, "alarmtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNull() { - addCriterion("platformType is null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNotNull() { - addCriterion("platformType is not null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeEqualTo(String value) { - addCriterion("platformType =", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotEqualTo(String value) { - addCriterion("platformType <>", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThan(String value) { - addCriterion("platformType >", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { - addCriterion("platformType >=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThan(String value) { - addCriterion("platformType <", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThanOrEqualTo(String value) { - addCriterion("platformType <=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLike(String value) { - addCriterion("platformType like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotLike(String value) { - addCriterion("platformType not like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIn(List values) { - addCriterion("platformType in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotIn(List values) { - addCriterion("platformType not in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeBetween(String value1, String value2) { - addCriterion("platformType between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotBetween(String value1, String value2) { - addCriterion("platformType not between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUnitIsNull() { - addCriterion("unit is null"); - return (Criteria) this; - } - - public Criteria andUnitIsNotNull() { - addCriterion("unit is not null"); - return (Criteria) this; - } - - public Criteria andUnitEqualTo(String value) { - addCriterion("unit =", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotEqualTo(String value) { - addCriterion("unit <>", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThan(String value) { - addCriterion("unit >", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitGreaterThanOrEqualTo(String value) { - addCriterion("unit >=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThan(String value) { - addCriterion("unit <", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLessThanOrEqualTo(String value) { - addCriterion("unit <=", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitLike(String value) { - addCriterion("unit like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotLike(String value) { - addCriterion("unit not like", value, "unit"); - return (Criteria) this; - } - - public Criteria andUnitIn(List values) { - addCriterion("unit in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotIn(List values) { - addCriterion("unit not in", values, "unit"); - return (Criteria) this; - } - - public Criteria andUnitBetween(String value1, String value2) { - addCriterion("unit between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andUnitNotBetween(String value1, String value2) { - addCriterion("unit not between", value1, value2, "unit"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNull() { - addCriterion("sendTime is null"); - return (Criteria) this; - } - - public Criteria andSendtimeIsNotNull() { - addCriterion("sendTime is not null"); - return (Criteria) this; - } - - public Criteria andSendtimeEqualTo(String value) { - addCriterion("sendTime =", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotEqualTo(String value) { - addCriterion("sendTime <>", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThan(String value) { - addCriterion("sendTime >", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeGreaterThanOrEqualTo(String value) { - addCriterion("sendTime >=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThan(String value) { - addCriterion("sendTime <", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLessThanOrEqualTo(String value) { - addCriterion("sendTime <=", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeLike(String value) { - addCriterion("sendTime like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotLike(String value) { - addCriterion("sendTime not like", value, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeIn(List values) { - addCriterion("sendTime in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotIn(List values) { - addCriterion("sendTime not in", values, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeBetween(String value1, String value2) { - addCriterion("sendTime between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andSendtimeNotBetween(String value1, String value2) { - addCriterion("sendTime not between", value1, value2, "sendtime"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andValueIsNull() { - addCriterion("value is null"); - return (Criteria) this; - } - - public Criteria andValueIsNotNull() { - addCriterion("value is not null"); - return (Criteria) this; - } - - public Criteria andValueEqualTo(String value) { - addCriterion("value =", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotEqualTo(String value) { - addCriterion("value <>", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThan(String value) { - addCriterion("value >", value, "value"); - return (Criteria) this; - } - - public Criteria andValueGreaterThanOrEqualTo(String value) { - addCriterion("value >=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThan(String value) { - addCriterion("value <", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLessThanOrEqualTo(String value) { - addCriterion("value <=", value, "value"); - return (Criteria) this; - } - - public Criteria andValueLike(String value) { - addCriterion("value like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueNotLike(String value) { - addCriterion("value not like", value, "value"); - return (Criteria) this; - } - - public Criteria andValueIn(List values) { - addCriterion("value in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueNotIn(List values) { - addCriterion("value not in", values, "value"); - return (Criteria) this; - } - - public Criteria andValueBetween(String value1, String value2) { - addCriterion("value between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andValueNotBetween(String value1, String value2) { - addCriterion("value not between", value1, value2, "value"); - return (Criteria) this; - } - - public Criteria andSenddateIsNull() { - addCriterion("sendDate is null"); - return (Criteria) this; - } - - public Criteria andSenddateIsNotNull() { - addCriterion("sendDate is not null"); - return (Criteria) this; - } - - public Criteria andSenddateEqualTo(Date value) { - addCriterion("sendDate =", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotEqualTo(Date value) { - addCriterion("sendDate <>", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateGreaterThan(Date value) { - addCriterion("sendDate >", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateGreaterThanOrEqualTo(Date value) { - addCriterion("sendDate >=", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateLessThan(Date value) { - addCriterion("sendDate <", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateLessThanOrEqualTo(Date value) { - addCriterion("sendDate <=", value, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateIn(List values) { - addCriterion("sendDate in", values, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotIn(List values) { - addCriterion("sendDate not in", values, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateBetween(Date value1, Date value2) { - addCriterion("sendDate between", value1, value2, "senddate"); - return (Criteria) this; - } - - public Criteria andSenddateNotBetween(Date value1, Date value2) { - addCriterion("sendDate not between", value1, value2, "senddate"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java b/src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java deleted file mode 100644 index 5dd0796..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/HistoryWithBLOBs.java +++ /dev/null @@ -1,215 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class HistoryWithBLOBs extends History { - private String sampledata; - - private String databody; - - public String getSampledata() { - return sampledata; - } - - public void setSampledata(String sampledata) { - this.sampledata = sampledata == null ? null : sampledata.trim(); - } - - public String getDatabody() { - return databody; - } - - public void setDatabody(String databody) { - this.databody = databody == null ? null : databody.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "BIGINT", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - imei("Imei", "imei", "VARCHAR", false), - batterylevel("batteryLevel", "batterylevel", "INTEGER", false), - singalstrength("singalStrength", "singalstrength", "INTEGER", false), - passnum("passNum", "passnum", "INTEGER", false), - batterystate("batteryState", "batterystate", "INTEGER", false), - alarmtype("alarmType", "alarmtype", "VARCHAR", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - unit("unit", "unit", "VARCHAR", false), - sendtime("sendTime", "sendtime", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - sampledata("sampleData", "sampledata", "LONGVARCHAR", false), - databody("dataBody", "databody", "LONGVARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table history - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ImsiImei.java b/src/main/java/com/topsail/influxdb/pojo/ImsiImei.java deleted file mode 100644 index bd28198..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/ImsiImei.java +++ /dev/null @@ -1,75 +0,0 @@ -package com.topsail.influxdb.pojo; - -import org.springframework.format.annotation.DateTimeFormat; - -import java.io.Serializable; -import java.util.Date; - - -/** - * - * imsi和imei关系表实体 - * - * @version - * -
- * Author	Version		Date		Changes
- * Administrator 	1.0  2021年05月31日 Created
- *
- * 
- * @since 1. - */ -public class ImsiImei implements Serializable { - private static final long serialVersionUID = 197866838149659L; - - /** - * - */ - private String imsi; - /** - *imei - */ - private String imei; - /** - *创建时间 - */ - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date createTime; - /** - *修改时间 - */ - @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") - private Date updateTime; - - public String getImsi() { - return imsi; - } - - public void setImsi(String imsi) { - this.imsi = imsi; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei; - } - - public Date getCreateTime() { - return createTime; - } - - public void setCreateTime(Date createTime) { - this.createTime = createTime; - } - - public Date getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Date updateTime) { - this.updateTime = updateTime; - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java b/src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java deleted file mode 100644 index c87c814..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/NbiotConfig.java +++ /dev/null @@ -1,566 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class NbiotConfig { - private Long id; - - private String imei; - - private String typename; - - private Integer devicetype; - - private Integer collectiongap; - - private Integer sendinggap; - - private String urladdress; - - private String port; - - private Integer unipaththresholdlimit; - - private Integer unipaththresholdupper; - - private Integer unipathchangethreshold; - - private Integer multiplethresholdlimit; - - private Integer multiplethresholdupper; - - private Integer multiplechangethreshold; - - private Integer controlvalvestate; - - private String starttime; - - private String endtime; - - private Integer numdays; - - private Integer switchingvalue; - - private Integer stopreporting; - - private String softwareversions; - - private String hardwareversions; - - private String imsi; - - private String apn; - - private Date time; - - private String autocontrolpolicy; - - private String autocontroltime; - - private String selfchecktime; - - private Integer collide; - - private Integer lean; - - private Integer loraFrequency; - - private Integer loraBandwidth; - - private Integer loraSpreading; - - private Integer loraEncodingRate; - - private Integer nettype; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public String getTypename() { - return typename; - } - - public void setTypename(String typename) { - this.typename = typename == null ? null : typename.trim(); - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public Integer getCollectiongap() { - return collectiongap; - } - - public void setCollectiongap(Integer collectiongap) { - this.collectiongap = collectiongap; - } - - public Integer getSendinggap() { - return sendinggap; - } - - public void setSendinggap(Integer sendinggap) { - this.sendinggap = sendinggap; - } - - public String getUrladdress() { - return urladdress; - } - - public void setUrladdress(String urladdress) { - this.urladdress = urladdress == null ? null : urladdress.trim(); - } - - public String getPort() { - return port; - } - - public void setPort(String port) { - this.port = port == null ? null : port.trim(); - } - - public Integer getUnipaththresholdlimit() { - return unipaththresholdlimit; - } - - public void setUnipaththresholdlimit(Integer unipaththresholdlimit) { - this.unipaththresholdlimit = unipaththresholdlimit; - } - - public Integer getUnipaththresholdupper() { - return unipaththresholdupper; - } - - public void setUnipaththresholdupper(Integer unipaththresholdupper) { - this.unipaththresholdupper = unipaththresholdupper; - } - - public Integer getUnipathchangethreshold() { - return unipathchangethreshold; - } - - public void setUnipathchangethreshold(Integer unipathchangethreshold) { - this.unipathchangethreshold = unipathchangethreshold; - } - - public Integer getMultiplethresholdlimit() { - return multiplethresholdlimit; - } - - public void setMultiplethresholdlimit(Integer multiplethresholdlimit) { - this.multiplethresholdlimit = multiplethresholdlimit; - } - - public Integer getMultiplethresholdupper() { - return multiplethresholdupper; - } - - public void setMultiplethresholdupper(Integer multiplethresholdupper) { - this.multiplethresholdupper = multiplethresholdupper; - } - - public Integer getMultiplechangethreshold() { - return multiplechangethreshold; - } - - public void setMultiplechangethreshold(Integer multiplechangethreshold) { - this.multiplechangethreshold = multiplechangethreshold; - } - - public Integer getControlvalvestate() { - return controlvalvestate; - } - - public void setControlvalvestate(Integer controlvalvestate) { - this.controlvalvestate = controlvalvestate; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime == null ? null : starttime.trim(); - } - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime == null ? null : endtime.trim(); - } - - public Integer getNumdays() { - return numdays; - } - - public void setNumdays(Integer numdays) { - this.numdays = numdays; - } - - public Integer getSwitchingvalue() { - return switchingvalue; - } - - public void setSwitchingvalue(Integer switchingvalue) { - this.switchingvalue = switchingvalue; - } - - public Integer getStopreporting() { - return stopreporting; - } - - public void setStopreporting(Integer stopreporting) { - this.stopreporting = stopreporting; - } - - public String getSoftwareversions() { - return softwareversions; - } - - public void setSoftwareversions(String softwareversions) { - this.softwareversions = softwareversions == null ? null : softwareversions.trim(); - } - - public String getHardwareversions() { - return hardwareversions; - } - - public void setHardwareversions(String hardwareversions) { - this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim(); - } - - public String getImsi() { - return imsi; - } - - public void setImsi(String imsi) { - this.imsi = imsi == null ? null : imsi.trim(); - } - - public String getApn() { - return apn; - } - - public void setApn(String apn) { - this.apn = apn == null ? null : apn.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getAutocontrolpolicy() { - return autocontrolpolicy; - } - - public void setAutocontrolpolicy(String autocontrolpolicy) { - this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim(); - } - - public String getAutocontroltime() { - return autocontroltime; - } - - public void setAutocontroltime(String autocontroltime) { - this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim(); - } - - public String getSelfchecktime() { - return selfchecktime; - } - - public void setSelfchecktime(String selfchecktime) { - this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim(); - } - - public Integer getCollide() { - return collide; - } - - public void setCollide(Integer collide) { - this.collide = collide; - } - - public Integer getLean() { - return lean; - } - - public void setLean(Integer lean) { - this.lean = lean; - } - - public Integer getLoraFrequency() { - return loraFrequency; - } - - public void setLoraFrequency(Integer loraFrequency) { - this.loraFrequency = loraFrequency; - } - - public Integer getLoraBandwidth() { - return loraBandwidth; - } - - public void setLoraBandwidth(Integer loraBandwidth) { - this.loraBandwidth = loraBandwidth; - } - - public Integer getLoraSpreading() { - return loraSpreading; - } - - public void setLoraSpreading(Integer loraSpreading) { - this.loraSpreading = loraSpreading; - } - - public Integer getLoraEncodingRate() { - return loraEncodingRate; - } - - public void setLoraEncodingRate(Integer loraEncodingRate) { - this.loraEncodingRate = loraEncodingRate; - } - - public Integer getNettype() { - return nettype; - } - - public void setNettype(Integer nettype) { - this.nettype = nettype; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "BIGINT", false), - imei("imei", "imei", "VARCHAR", false), - typename("typeName", "typename", "VARCHAR", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - collectiongap("collectionGap", "collectiongap", "INTEGER", false), - sendinggap("sendingGap", "sendinggap", "INTEGER", false), - urladdress("urlAddress", "urladdress", "VARCHAR", false), - port("port", "port", "VARCHAR", false), - unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false), - unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false), - unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false), - multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false), - multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false), - multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false), - controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false), - starttime("startTime", "starttime", "VARCHAR", false), - endtime("endTime", "endtime", "VARCHAR", false), - numdays("numDays", "numdays", "INTEGER", false), - switchingvalue("switchingValue", "switchingvalue", "INTEGER", false), - stopreporting("stopReporting", "stopreporting", "INTEGER", false), - softwareversions("softwareVersions", "softwareversions", "VARCHAR", false), - hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false), - imsi("IMSI", "imsi", "VARCHAR", false), - apn("APN", "apn", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false), - autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false), - selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false), - collide("collide", "collide", "INTEGER", false), - lean("lean", "lean", "INTEGER", false), - loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false), - loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false), - loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false), - loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false), - nettype("netType", "nettype", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table nbiot_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java b/src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java deleted file mode 100644 index 7b651fc..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/NbiotConfigExample.java +++ /dev/null @@ -1,2431 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class NbiotConfigExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public NbiotConfigExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andTypenameIsNull() { - addCriterion("typeName is null"); - return (Criteria) this; - } - - public Criteria andTypenameIsNotNull() { - addCriterion("typeName is not null"); - return (Criteria) this; - } - - public Criteria andTypenameEqualTo(String value) { - addCriterion("typeName =", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotEqualTo(String value) { - addCriterion("typeName <>", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameGreaterThan(String value) { - addCriterion("typeName >", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameGreaterThanOrEqualTo(String value) { - addCriterion("typeName >=", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameLessThan(String value) { - addCriterion("typeName <", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameLessThanOrEqualTo(String value) { - addCriterion("typeName <=", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameLike(String value) { - addCriterion("typeName like", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotLike(String value) { - addCriterion("typeName not like", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameIn(List values) { - addCriterion("typeName in", values, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotIn(List values) { - addCriterion("typeName not in", values, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameBetween(String value1, String value2) { - addCriterion("typeName between", value1, value2, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotBetween(String value1, String value2) { - addCriterion("typeName not between", value1, value2, "typename"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andCollectiongapIsNull() { - addCriterion("collectionGap is null"); - return (Criteria) this; - } - - public Criteria andCollectiongapIsNotNull() { - addCriterion("collectionGap is not null"); - return (Criteria) this; - } - - public Criteria andCollectiongapEqualTo(Integer value) { - addCriterion("collectionGap =", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapNotEqualTo(Integer value) { - addCriterion("collectionGap <>", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapGreaterThan(Integer value) { - addCriterion("collectionGap >", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapGreaterThanOrEqualTo(Integer value) { - addCriterion("collectionGap >=", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapLessThan(Integer value) { - addCriterion("collectionGap <", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapLessThanOrEqualTo(Integer value) { - addCriterion("collectionGap <=", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapIn(List values) { - addCriterion("collectionGap in", values, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapNotIn(List values) { - addCriterion("collectionGap not in", values, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapBetween(Integer value1, Integer value2) { - addCriterion("collectionGap between", value1, value2, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapNotBetween(Integer value1, Integer value2) { - addCriterion("collectionGap not between", value1, value2, "collectiongap"); - return (Criteria) this; - } - - public Criteria andSendinggapIsNull() { - addCriterion("sendingGap is null"); - return (Criteria) this; - } - - public Criteria andSendinggapIsNotNull() { - addCriterion("sendingGap is not null"); - return (Criteria) this; - } - - public Criteria andSendinggapEqualTo(Integer value) { - addCriterion("sendingGap =", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapNotEqualTo(Integer value) { - addCriterion("sendingGap <>", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapGreaterThan(Integer value) { - addCriterion("sendingGap >", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapGreaterThanOrEqualTo(Integer value) { - addCriterion("sendingGap >=", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapLessThan(Integer value) { - addCriterion("sendingGap <", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapLessThanOrEqualTo(Integer value) { - addCriterion("sendingGap <=", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapIn(List values) { - addCriterion("sendingGap in", values, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapNotIn(List values) { - addCriterion("sendingGap not in", values, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapBetween(Integer value1, Integer value2) { - addCriterion("sendingGap between", value1, value2, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapNotBetween(Integer value1, Integer value2) { - addCriterion("sendingGap not between", value1, value2, "sendinggap"); - return (Criteria) this; - } - - public Criteria andUrladdressIsNull() { - addCriterion("urlAddress is null"); - return (Criteria) this; - } - - public Criteria andUrladdressIsNotNull() { - addCriterion("urlAddress is not null"); - return (Criteria) this; - } - - public Criteria andUrladdressEqualTo(String value) { - addCriterion("urlAddress =", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotEqualTo(String value) { - addCriterion("urlAddress <>", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressGreaterThan(String value) { - addCriterion("urlAddress >", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressGreaterThanOrEqualTo(String value) { - addCriterion("urlAddress >=", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressLessThan(String value) { - addCriterion("urlAddress <", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressLessThanOrEqualTo(String value) { - addCriterion("urlAddress <=", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressLike(String value) { - addCriterion("urlAddress like", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotLike(String value) { - addCriterion("urlAddress not like", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressIn(List values) { - addCriterion("urlAddress in", values, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotIn(List values) { - addCriterion("urlAddress not in", values, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressBetween(String value1, String value2) { - addCriterion("urlAddress between", value1, value2, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotBetween(String value1, String value2) { - addCriterion("urlAddress not between", value1, value2, "urladdress"); - return (Criteria) this; - } - - public Criteria andPortIsNull() { - addCriterion("port is null"); - return (Criteria) this; - } - - public Criteria andPortIsNotNull() { - addCriterion("port is not null"); - return (Criteria) this; - } - - public Criteria andPortEqualTo(String value) { - addCriterion("port =", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotEqualTo(String value) { - addCriterion("port <>", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThan(String value) { - addCriterion("port >", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThanOrEqualTo(String value) { - addCriterion("port >=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThan(String value) { - addCriterion("port <", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThanOrEqualTo(String value) { - addCriterion("port <=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLike(String value) { - addCriterion("port like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotLike(String value) { - addCriterion("port not like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortIn(List values) { - addCriterion("port in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortNotIn(List values) { - addCriterion("port not in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortBetween(String value1, String value2) { - addCriterion("port between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andPortNotBetween(String value1, String value2) { - addCriterion("port not between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitIsNull() { - addCriterion("unipathThresholdLimit is null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitIsNotNull() { - addCriterion("unipathThresholdLimit is not null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitEqualTo(Integer value) { - addCriterion("unipathThresholdLimit =", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitNotEqualTo(Integer value) { - addCriterion("unipathThresholdLimit <>", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitGreaterThan(Integer value) { - addCriterion("unipathThresholdLimit >", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitGreaterThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdLimit >=", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitLessThan(Integer value) { - addCriterion("unipathThresholdLimit <", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitLessThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdLimit <=", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitIn(List values) { - addCriterion("unipathThresholdLimit in", values, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitNotIn(List values) { - addCriterion("unipathThresholdLimit not in", values, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdLimit between", value1, value2, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitNotBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdLimit not between", value1, value2, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperIsNull() { - addCriterion("unipathThresholdUpper is null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperIsNotNull() { - addCriterion("unipathThresholdUpper is not null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperEqualTo(Integer value) { - addCriterion("unipathThresholdUpper =", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperNotEqualTo(Integer value) { - addCriterion("unipathThresholdUpper <>", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperGreaterThan(Integer value) { - addCriterion("unipathThresholdUpper >", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperGreaterThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdUpper >=", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperLessThan(Integer value) { - addCriterion("unipathThresholdUpper <", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperLessThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdUpper <=", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperIn(List values) { - addCriterion("unipathThresholdUpper in", values, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperNotIn(List values) { - addCriterion("unipathThresholdUpper not in", values, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdUpper between", value1, value2, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperNotBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdUpper not between", value1, value2, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdIsNull() { - addCriterion("unipathChangeThreshold is null"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdIsNotNull() { - addCriterion("unipathChangeThreshold is not null"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdEqualTo(Integer value) { - addCriterion("unipathChangeThreshold =", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdNotEqualTo(Integer value) { - addCriterion("unipathChangeThreshold <>", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdGreaterThan(Integer value) { - addCriterion("unipathChangeThreshold >", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdGreaterThanOrEqualTo(Integer value) { - addCriterion("unipathChangeThreshold >=", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdLessThan(Integer value) { - addCriterion("unipathChangeThreshold <", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdLessThanOrEqualTo(Integer value) { - addCriterion("unipathChangeThreshold <=", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdIn(List values) { - addCriterion("unipathChangeThreshold in", values, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdNotIn(List values) { - addCriterion("unipathChangeThreshold not in", values, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdBetween(Integer value1, Integer value2) { - addCriterion("unipathChangeThreshold between", value1, value2, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdNotBetween(Integer value1, Integer value2) { - addCriterion("unipathChangeThreshold not between", value1, value2, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitIsNull() { - addCriterion("multipleThresholdLimit is null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitIsNotNull() { - addCriterion("multipleThresholdLimit is not null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitEqualTo(Integer value) { - addCriterion("multipleThresholdLimit =", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitNotEqualTo(Integer value) { - addCriterion("multipleThresholdLimit <>", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitGreaterThan(Integer value) { - addCriterion("multipleThresholdLimit >", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitGreaterThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdLimit >=", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitLessThan(Integer value) { - addCriterion("multipleThresholdLimit <", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitLessThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdLimit <=", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitIn(List values) { - addCriterion("multipleThresholdLimit in", values, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitNotIn(List values) { - addCriterion("multipleThresholdLimit not in", values, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdLimit between", value1, value2, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitNotBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdLimit not between", value1, value2, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperIsNull() { - addCriterion("multipleThresholdUpper is null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperIsNotNull() { - addCriterion("multipleThresholdUpper is not null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperEqualTo(Integer value) { - addCriterion("multipleThresholdUpper =", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperNotEqualTo(Integer value) { - addCriterion("multipleThresholdUpper <>", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperGreaterThan(Integer value) { - addCriterion("multipleThresholdUpper >", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperGreaterThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdUpper >=", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperLessThan(Integer value) { - addCriterion("multipleThresholdUpper <", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperLessThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdUpper <=", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperIn(List values) { - addCriterion("multipleThresholdUpper in", values, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperNotIn(List values) { - addCriterion("multipleThresholdUpper not in", values, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdUpper between", value1, value2, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperNotBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdUpper not between", value1, value2, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdIsNull() { - addCriterion("multipleChangeThreshold is null"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdIsNotNull() { - addCriterion("multipleChangeThreshold is not null"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdEqualTo(Integer value) { - addCriterion("multipleChangeThreshold =", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdNotEqualTo(Integer value) { - addCriterion("multipleChangeThreshold <>", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdGreaterThan(Integer value) { - addCriterion("multipleChangeThreshold >", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdGreaterThanOrEqualTo(Integer value) { - addCriterion("multipleChangeThreshold >=", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdLessThan(Integer value) { - addCriterion("multipleChangeThreshold <", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdLessThanOrEqualTo(Integer value) { - addCriterion("multipleChangeThreshold <=", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdIn(List values) { - addCriterion("multipleChangeThreshold in", values, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdNotIn(List values) { - addCriterion("multipleChangeThreshold not in", values, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdBetween(Integer value1, Integer value2) { - addCriterion("multipleChangeThreshold between", value1, value2, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdNotBetween(Integer value1, Integer value2) { - addCriterion("multipleChangeThreshold not between", value1, value2, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andControlvalvestateIsNull() { - addCriterion("controlValveState is null"); - return (Criteria) this; - } - - public Criteria andControlvalvestateIsNotNull() { - addCriterion("controlValveState is not null"); - return (Criteria) this; - } - - public Criteria andControlvalvestateEqualTo(Integer value) { - addCriterion("controlValveState =", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateNotEqualTo(Integer value) { - addCriterion("controlValveState <>", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateGreaterThan(Integer value) { - addCriterion("controlValveState >", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateGreaterThanOrEqualTo(Integer value) { - addCriterion("controlValveState >=", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateLessThan(Integer value) { - addCriterion("controlValveState <", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateLessThanOrEqualTo(Integer value) { - addCriterion("controlValveState <=", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateIn(List values) { - addCriterion("controlValveState in", values, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateNotIn(List values) { - addCriterion("controlValveState not in", values, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateBetween(Integer value1, Integer value2) { - addCriterion("controlValveState between", value1, value2, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateNotBetween(Integer value1, Integer value2) { - addCriterion("controlValveState not between", value1, value2, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andStarttimeIsNull() { - addCriterion("startTime is null"); - return (Criteria) this; - } - - public Criteria andStarttimeIsNotNull() { - addCriterion("startTime is not null"); - return (Criteria) this; - } - - public Criteria andStarttimeEqualTo(String value) { - addCriterion("startTime =", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotEqualTo(String value) { - addCriterion("startTime <>", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeGreaterThan(String value) { - addCriterion("startTime >", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeGreaterThanOrEqualTo(String value) { - addCriterion("startTime >=", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeLessThan(String value) { - addCriterion("startTime <", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeLessThanOrEqualTo(String value) { - addCriterion("startTime <=", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeLike(String value) { - addCriterion("startTime like", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotLike(String value) { - addCriterion("startTime not like", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeIn(List values) { - addCriterion("startTime in", values, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotIn(List values) { - addCriterion("startTime not in", values, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeBetween(String value1, String value2) { - addCriterion("startTime between", value1, value2, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotBetween(String value1, String value2) { - addCriterion("startTime not between", value1, value2, "starttime"); - return (Criteria) this; - } - - public Criteria andEndtimeIsNull() { - addCriterion("endTime is null"); - return (Criteria) this; - } - - public Criteria andEndtimeIsNotNull() { - addCriterion("endTime is not null"); - return (Criteria) this; - } - - public Criteria andEndtimeEqualTo(String value) { - addCriterion("endTime =", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotEqualTo(String value) { - addCriterion("endTime <>", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeGreaterThan(String value) { - addCriterion("endTime >", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeGreaterThanOrEqualTo(String value) { - addCriterion("endTime >=", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLessThan(String value) { - addCriterion("endTime <", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLessThanOrEqualTo(String value) { - addCriterion("endTime <=", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLike(String value) { - addCriterion("endTime like", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotLike(String value) { - addCriterion("endTime not like", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeIn(List values) { - addCriterion("endTime in", values, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotIn(List values) { - addCriterion("endTime not in", values, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeBetween(String value1, String value2) { - addCriterion("endTime between", value1, value2, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotBetween(String value1, String value2) { - addCriterion("endTime not between", value1, value2, "endtime"); - return (Criteria) this; - } - - public Criteria andNumdaysIsNull() { - addCriterion("numDays is null"); - return (Criteria) this; - } - - public Criteria andNumdaysIsNotNull() { - addCriterion("numDays is not null"); - return (Criteria) this; - } - - public Criteria andNumdaysEqualTo(Integer value) { - addCriterion("numDays =", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysNotEqualTo(Integer value) { - addCriterion("numDays <>", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysGreaterThan(Integer value) { - addCriterion("numDays >", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysGreaterThanOrEqualTo(Integer value) { - addCriterion("numDays >=", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysLessThan(Integer value) { - addCriterion("numDays <", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysLessThanOrEqualTo(Integer value) { - addCriterion("numDays <=", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysIn(List values) { - addCriterion("numDays in", values, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysNotIn(List values) { - addCriterion("numDays not in", values, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysBetween(Integer value1, Integer value2) { - addCriterion("numDays between", value1, value2, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysNotBetween(Integer value1, Integer value2) { - addCriterion("numDays not between", value1, value2, "numdays"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueIsNull() { - addCriterion("switchingValue is null"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueIsNotNull() { - addCriterion("switchingValue is not null"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueEqualTo(Integer value) { - addCriterion("switchingValue =", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueNotEqualTo(Integer value) { - addCriterion("switchingValue <>", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueGreaterThan(Integer value) { - addCriterion("switchingValue >", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueGreaterThanOrEqualTo(Integer value) { - addCriterion("switchingValue >=", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueLessThan(Integer value) { - addCriterion("switchingValue <", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueLessThanOrEqualTo(Integer value) { - addCriterion("switchingValue <=", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueIn(List values) { - addCriterion("switchingValue in", values, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueNotIn(List values) { - addCriterion("switchingValue not in", values, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueBetween(Integer value1, Integer value2) { - addCriterion("switchingValue between", value1, value2, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueNotBetween(Integer value1, Integer value2) { - addCriterion("switchingValue not between", value1, value2, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andStopreportingIsNull() { - addCriterion("stopReporting is null"); - return (Criteria) this; - } - - public Criteria andStopreportingIsNotNull() { - addCriterion("stopReporting is not null"); - return (Criteria) this; - } - - public Criteria andStopreportingEqualTo(Integer value) { - addCriterion("stopReporting =", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingNotEqualTo(Integer value) { - addCriterion("stopReporting <>", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingGreaterThan(Integer value) { - addCriterion("stopReporting >", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingGreaterThanOrEqualTo(Integer value) { - addCriterion("stopReporting >=", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingLessThan(Integer value) { - addCriterion("stopReporting <", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingLessThanOrEqualTo(Integer value) { - addCriterion("stopReporting <=", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingIn(List values) { - addCriterion("stopReporting in", values, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingNotIn(List values) { - addCriterion("stopReporting not in", values, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingBetween(Integer value1, Integer value2) { - addCriterion("stopReporting between", value1, value2, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingNotBetween(Integer value1, Integer value2) { - addCriterion("stopReporting not between", value1, value2, "stopreporting"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsIsNull() { - addCriterion("softwareVersions is null"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsIsNotNull() { - addCriterion("softwareVersions is not null"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsEqualTo(String value) { - addCriterion("softwareVersions =", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotEqualTo(String value) { - addCriterion("softwareVersions <>", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsGreaterThan(String value) { - addCriterion("softwareVersions >", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsGreaterThanOrEqualTo(String value) { - addCriterion("softwareVersions >=", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsLessThan(String value) { - addCriterion("softwareVersions <", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsLessThanOrEqualTo(String value) { - addCriterion("softwareVersions <=", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsLike(String value) { - addCriterion("softwareVersions like", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotLike(String value) { - addCriterion("softwareVersions not like", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsIn(List values) { - addCriterion("softwareVersions in", values, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotIn(List values) { - addCriterion("softwareVersions not in", values, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsBetween(String value1, String value2) { - addCriterion("softwareVersions between", value1, value2, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotBetween(String value1, String value2) { - addCriterion("softwareVersions not between", value1, value2, "softwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsIsNull() { - addCriterion("hardwareVersions is null"); - return (Criteria) this; - } - - public Criteria andHardwareversionsIsNotNull() { - addCriterion("hardwareVersions is not null"); - return (Criteria) this; - } - - public Criteria andHardwareversionsEqualTo(String value) { - addCriterion("hardwareVersions =", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotEqualTo(String value) { - addCriterion("hardwareVersions <>", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsGreaterThan(String value) { - addCriterion("hardwareVersions >", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsGreaterThanOrEqualTo(String value) { - addCriterion("hardwareVersions >=", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsLessThan(String value) { - addCriterion("hardwareVersions <", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsLessThanOrEqualTo(String value) { - addCriterion("hardwareVersions <=", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsLike(String value) { - addCriterion("hardwareVersions like", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotLike(String value) { - addCriterion("hardwareVersions not like", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsIn(List values) { - addCriterion("hardwareVersions in", values, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotIn(List values) { - addCriterion("hardwareVersions not in", values, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsBetween(String value1, String value2) { - addCriterion("hardwareVersions between", value1, value2, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotBetween(String value1, String value2) { - addCriterion("hardwareVersions not between", value1, value2, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andImsiIsNull() { - addCriterion("IMSI is null"); - return (Criteria) this; - } - - public Criteria andImsiIsNotNull() { - addCriterion("IMSI is not null"); - return (Criteria) this; - } - - public Criteria andImsiEqualTo(String value) { - addCriterion("IMSI =", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotEqualTo(String value) { - addCriterion("IMSI <>", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiGreaterThan(String value) { - addCriterion("IMSI >", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiGreaterThanOrEqualTo(String value) { - addCriterion("IMSI >=", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiLessThan(String value) { - addCriterion("IMSI <", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiLessThanOrEqualTo(String value) { - addCriterion("IMSI <=", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiLike(String value) { - addCriterion("IMSI like", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotLike(String value) { - addCriterion("IMSI not like", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiIn(List values) { - addCriterion("IMSI in", values, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotIn(List values) { - addCriterion("IMSI not in", values, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiBetween(String value1, String value2) { - addCriterion("IMSI between", value1, value2, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotBetween(String value1, String value2) { - addCriterion("IMSI not between", value1, value2, "imsi"); - return (Criteria) this; - } - - public Criteria andApnIsNull() { - addCriterion("APN is null"); - return (Criteria) this; - } - - public Criteria andApnIsNotNull() { - addCriterion("APN is not null"); - return (Criteria) this; - } - - public Criteria andApnEqualTo(String value) { - addCriterion("APN =", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotEqualTo(String value) { - addCriterion("APN <>", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnGreaterThan(String value) { - addCriterion("APN >", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnGreaterThanOrEqualTo(String value) { - addCriterion("APN >=", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnLessThan(String value) { - addCriterion("APN <", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnLessThanOrEqualTo(String value) { - addCriterion("APN <=", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnLike(String value) { - addCriterion("APN like", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotLike(String value) { - addCriterion("APN not like", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnIn(List values) { - addCriterion("APN in", values, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotIn(List values) { - addCriterion("APN not in", values, "apn"); - return (Criteria) this; - } - - public Criteria andApnBetween(String value1, String value2) { - addCriterion("APN between", value1, value2, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotBetween(String value1, String value2) { - addCriterion("APN not between", value1, value2, "apn"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyIsNull() { - addCriterion("autoControlPolicy is null"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyIsNotNull() { - addCriterion("autoControlPolicy is not null"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyEqualTo(String value) { - addCriterion("autoControlPolicy =", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotEqualTo(String value) { - addCriterion("autoControlPolicy <>", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyGreaterThan(String value) { - addCriterion("autoControlPolicy >", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyGreaterThanOrEqualTo(String value) { - addCriterion("autoControlPolicy >=", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyLessThan(String value) { - addCriterion("autoControlPolicy <", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyLessThanOrEqualTo(String value) { - addCriterion("autoControlPolicy <=", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyLike(String value) { - addCriterion("autoControlPolicy like", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotLike(String value) { - addCriterion("autoControlPolicy not like", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyIn(List values) { - addCriterion("autoControlPolicy in", values, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotIn(List values) { - addCriterion("autoControlPolicy not in", values, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyBetween(String value1, String value2) { - addCriterion("autoControlPolicy between", value1, value2, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotBetween(String value1, String value2) { - addCriterion("autoControlPolicy not between", value1, value2, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeIsNull() { - addCriterion("autoControlTime is null"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeIsNotNull() { - addCriterion("autoControlTime is not null"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeEqualTo(String value) { - addCriterion("autoControlTime =", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotEqualTo(String value) { - addCriterion("autoControlTime <>", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeGreaterThan(String value) { - addCriterion("autoControlTime >", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeGreaterThanOrEqualTo(String value) { - addCriterion("autoControlTime >=", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeLessThan(String value) { - addCriterion("autoControlTime <", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeLessThanOrEqualTo(String value) { - addCriterion("autoControlTime <=", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeLike(String value) { - addCriterion("autoControlTime like", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotLike(String value) { - addCriterion("autoControlTime not like", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeIn(List values) { - addCriterion("autoControlTime in", values, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotIn(List values) { - addCriterion("autoControlTime not in", values, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeBetween(String value1, String value2) { - addCriterion("autoControlTime between", value1, value2, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotBetween(String value1, String value2) { - addCriterion("autoControlTime not between", value1, value2, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeIsNull() { - addCriterion("selfCheckTime is null"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeIsNotNull() { - addCriterion("selfCheckTime is not null"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeEqualTo(String value) { - addCriterion("selfCheckTime =", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotEqualTo(String value) { - addCriterion("selfCheckTime <>", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeGreaterThan(String value) { - addCriterion("selfCheckTime >", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeGreaterThanOrEqualTo(String value) { - addCriterion("selfCheckTime >=", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeLessThan(String value) { - addCriterion("selfCheckTime <", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeLessThanOrEqualTo(String value) { - addCriterion("selfCheckTime <=", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeLike(String value) { - addCriterion("selfCheckTime like", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotLike(String value) { - addCriterion("selfCheckTime not like", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeIn(List values) { - addCriterion("selfCheckTime in", values, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotIn(List values) { - addCriterion("selfCheckTime not in", values, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeBetween(String value1, String value2) { - addCriterion("selfCheckTime between", value1, value2, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotBetween(String value1, String value2) { - addCriterion("selfCheckTime not between", value1, value2, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andCollideIsNull() { - addCriterion("collide is null"); - return (Criteria) this; - } - - public Criteria andCollideIsNotNull() { - addCriterion("collide is not null"); - return (Criteria) this; - } - - public Criteria andCollideEqualTo(Integer value) { - addCriterion("collide =", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideNotEqualTo(Integer value) { - addCriterion("collide <>", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideGreaterThan(Integer value) { - addCriterion("collide >", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideGreaterThanOrEqualTo(Integer value) { - addCriterion("collide >=", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideLessThan(Integer value) { - addCriterion("collide <", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideLessThanOrEqualTo(Integer value) { - addCriterion("collide <=", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideIn(List values) { - addCriterion("collide in", values, "collide"); - return (Criteria) this; - } - - public Criteria andCollideNotIn(List values) { - addCriterion("collide not in", values, "collide"); - return (Criteria) this; - } - - public Criteria andCollideBetween(Integer value1, Integer value2) { - addCriterion("collide between", value1, value2, "collide"); - return (Criteria) this; - } - - public Criteria andCollideNotBetween(Integer value1, Integer value2) { - addCriterion("collide not between", value1, value2, "collide"); - return (Criteria) this; - } - - public Criteria andLeanIsNull() { - addCriterion("lean is null"); - return (Criteria) this; - } - - public Criteria andLeanIsNotNull() { - addCriterion("lean is not null"); - return (Criteria) this; - } - - public Criteria andLeanEqualTo(Integer value) { - addCriterion("lean =", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanNotEqualTo(Integer value) { - addCriterion("lean <>", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanGreaterThan(Integer value) { - addCriterion("lean >", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanGreaterThanOrEqualTo(Integer value) { - addCriterion("lean >=", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanLessThan(Integer value) { - addCriterion("lean <", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanLessThanOrEqualTo(Integer value) { - addCriterion("lean <=", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanIn(List values) { - addCriterion("lean in", values, "lean"); - return (Criteria) this; - } - - public Criteria andLeanNotIn(List values) { - addCriterion("lean not in", values, "lean"); - return (Criteria) this; - } - - public Criteria andLeanBetween(Integer value1, Integer value2) { - addCriterion("lean between", value1, value2, "lean"); - return (Criteria) this; - } - - public Criteria andLeanNotBetween(Integer value1, Integer value2) { - addCriterion("lean not between", value1, value2, "lean"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyIsNull() { - addCriterion("lora_frequency is null"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyIsNotNull() { - addCriterion("lora_frequency is not null"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyEqualTo(Integer value) { - addCriterion("lora_frequency =", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyNotEqualTo(Integer value) { - addCriterion("lora_frequency <>", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyGreaterThan(Integer value) { - addCriterion("lora_frequency >", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_frequency >=", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyLessThan(Integer value) { - addCriterion("lora_frequency <", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyLessThanOrEqualTo(Integer value) { - addCriterion("lora_frequency <=", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyIn(List values) { - addCriterion("lora_frequency in", values, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyNotIn(List values) { - addCriterion("lora_frequency not in", values, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyBetween(Integer value1, Integer value2) { - addCriterion("lora_frequency between", value1, value2, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyNotBetween(Integer value1, Integer value2) { - addCriterion("lora_frequency not between", value1, value2, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthIsNull() { - addCriterion("lora_bandwidth is null"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthIsNotNull() { - addCriterion("lora_bandwidth is not null"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthEqualTo(Integer value) { - addCriterion("lora_bandwidth =", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthNotEqualTo(Integer value) { - addCriterion("lora_bandwidth <>", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthGreaterThan(Integer value) { - addCriterion("lora_bandwidth >", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_bandwidth >=", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthLessThan(Integer value) { - addCriterion("lora_bandwidth <", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthLessThanOrEqualTo(Integer value) { - addCriterion("lora_bandwidth <=", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthIn(List values) { - addCriterion("lora_bandwidth in", values, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthNotIn(List values) { - addCriterion("lora_bandwidth not in", values, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthBetween(Integer value1, Integer value2) { - addCriterion("lora_bandwidth between", value1, value2, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthNotBetween(Integer value1, Integer value2) { - addCriterion("lora_bandwidth not between", value1, value2, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingIsNull() { - addCriterion("lora_spreading is null"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingIsNotNull() { - addCriterion("lora_spreading is not null"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingEqualTo(Integer value) { - addCriterion("lora_spreading =", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingNotEqualTo(Integer value) { - addCriterion("lora_spreading <>", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingGreaterThan(Integer value) { - addCriterion("lora_spreading >", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_spreading >=", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingLessThan(Integer value) { - addCriterion("lora_spreading <", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingLessThanOrEqualTo(Integer value) { - addCriterion("lora_spreading <=", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingIn(List values) { - addCriterion("lora_spreading in", values, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingNotIn(List values) { - addCriterion("lora_spreading not in", values, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingBetween(Integer value1, Integer value2) { - addCriterion("lora_spreading between", value1, value2, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingNotBetween(Integer value1, Integer value2) { - addCriterion("lora_spreading not between", value1, value2, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateIsNull() { - addCriterion("lora_encoding_rate is null"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateIsNotNull() { - addCriterion("lora_encoding_rate is not null"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateEqualTo(Integer value) { - addCriterion("lora_encoding_rate =", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateNotEqualTo(Integer value) { - addCriterion("lora_encoding_rate <>", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateGreaterThan(Integer value) { - addCriterion("lora_encoding_rate >", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_encoding_rate >=", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateLessThan(Integer value) { - addCriterion("lora_encoding_rate <", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateLessThanOrEqualTo(Integer value) { - addCriterion("lora_encoding_rate <=", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateIn(List values) { - addCriterion("lora_encoding_rate in", values, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateNotIn(List values) { - addCriterion("lora_encoding_rate not in", values, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateBetween(Integer value1, Integer value2) { - addCriterion("lora_encoding_rate between", value1, value2, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateNotBetween(Integer value1, Integer value2) { - addCriterion("lora_encoding_rate not between", value1, value2, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andNettypeIsNull() { - addCriterion("netType is null"); - return (Criteria) this; - } - - public Criteria andNettypeIsNotNull() { - addCriterion("netType is not null"); - return (Criteria) this; - } - - public Criteria andNettypeEqualTo(Integer value) { - addCriterion("netType =", value, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeNotEqualTo(Integer value) { - addCriterion("netType <>", value, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeGreaterThan(Integer value) { - addCriterion("netType >", value, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeGreaterThanOrEqualTo(Integer value) { - addCriterion("netType >=", value, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeLessThan(Integer value) { - addCriterion("netType <", value, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeLessThanOrEqualTo(Integer value) { - addCriterion("netType <=", value, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeIn(List values) { - addCriterion("netType in", values, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeNotIn(List values) { - addCriterion("netType not in", values, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeBetween(Integer value1, Integer value2) { - addCriterion("netType between", value1, value2, "nettype"); - return (Criteria) this; - } - - public Criteria andNettypeNotBetween(Integer value1, Integer value2) { - addCriterion("netType not between", value1, value2, "nettype"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcCompany.java b/src/main/java/com/topsail/influxdb/pojo/OcCompany.java deleted file mode 100644 index 940e2b9..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OcCompany.java +++ /dev/null @@ -1,279 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class OcCompany { - private Integer id; - - private String username; - - private String userip; - - private Integer userport; - - private String userprot; - - private String period; - - private String phonenum; - - private Integer cid; - - private String cperiod; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getUserip() { - return userip; - } - - public void setUserip(String userip) { - this.userip = userip == null ? null : userip.trim(); - } - - public Integer getUserport() { - return userport; - } - - public void setUserport(Integer userport) { - this.userport = userport; - } - - public String getUserprot() { - return userprot; - } - - public void setUserprot(String userprot) { - this.userprot = userprot == null ? null : userprot.trim(); - } - - public String getPeriod() { - return period; - } - - public void setPeriod(String period) { - this.period = period == null ? null : period.trim(); - } - - public String getPhonenum() { - return phonenum; - } - - public void setPhonenum(String phonenum) { - this.phonenum = phonenum == null ? null : phonenum.trim(); - } - - public Integer getCid() { - return cid; - } - - public void setCid(Integer cid) { - this.cid = cid; - } - - public String getCperiod() { - return cperiod; - } - - public void setCperiod(String cperiod) { - this.cperiod = cperiod == null ? null : cperiod.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - username("username", "username", "VARCHAR", false), - userip("userip", "userip", "VARCHAR", false), - userport("userport", "userport", "INTEGER", false), - userprot("userprot", "userprot", "VARCHAR", false), - period("period", "period", "VARCHAR", false), - phonenum("phoneNum", "phonenum", "VARCHAR", false), - cid("cid", "cid", "INTEGER", false), - cperiod("cperiod", "cperiod", "VARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java b/src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java deleted file mode 100644 index 98ffa23..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OcCompanyExample.java +++ /dev/null @@ -1,800 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class OcCompanyExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OcCompanyExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("username is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("username is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("username =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("username <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("username >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("username >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("username <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("username <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("username like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("username not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("username in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("username not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("username between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("username not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUseripIsNull() { - addCriterion("userip is null"); - return (Criteria) this; - } - - public Criteria andUseripIsNotNull() { - addCriterion("userip is not null"); - return (Criteria) this; - } - - public Criteria andUseripEqualTo(String value) { - addCriterion("userip =", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotEqualTo(String value) { - addCriterion("userip <>", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripGreaterThan(String value) { - addCriterion("userip >", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripGreaterThanOrEqualTo(String value) { - addCriterion("userip >=", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripLessThan(String value) { - addCriterion("userip <", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripLessThanOrEqualTo(String value) { - addCriterion("userip <=", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripLike(String value) { - addCriterion("userip like", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotLike(String value) { - addCriterion("userip not like", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripIn(List values) { - addCriterion("userip in", values, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotIn(List values) { - addCriterion("userip not in", values, "userip"); - return (Criteria) this; - } - - public Criteria andUseripBetween(String value1, String value2) { - addCriterion("userip between", value1, value2, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotBetween(String value1, String value2) { - addCriterion("userip not between", value1, value2, "userip"); - return (Criteria) this; - } - - public Criteria andUserportIsNull() { - addCriterion("userport is null"); - return (Criteria) this; - } - - public Criteria andUserportIsNotNull() { - addCriterion("userport is not null"); - return (Criteria) this; - } - - public Criteria andUserportEqualTo(Integer value) { - addCriterion("userport =", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportNotEqualTo(Integer value) { - addCriterion("userport <>", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportGreaterThan(Integer value) { - addCriterion("userport >", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportGreaterThanOrEqualTo(Integer value) { - addCriterion("userport >=", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportLessThan(Integer value) { - addCriterion("userport <", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportLessThanOrEqualTo(Integer value) { - addCriterion("userport <=", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportIn(List values) { - addCriterion("userport in", values, "userport"); - return (Criteria) this; - } - - public Criteria andUserportNotIn(List values) { - addCriterion("userport not in", values, "userport"); - return (Criteria) this; - } - - public Criteria andUserportBetween(Integer value1, Integer value2) { - addCriterion("userport between", value1, value2, "userport"); - return (Criteria) this; - } - - public Criteria andUserportNotBetween(Integer value1, Integer value2) { - addCriterion("userport not between", value1, value2, "userport"); - return (Criteria) this; - } - - public Criteria andUserprotIsNull() { - addCriterion("userprot is null"); - return (Criteria) this; - } - - public Criteria andUserprotIsNotNull() { - addCriterion("userprot is not null"); - return (Criteria) this; - } - - public Criteria andUserprotEqualTo(String value) { - addCriterion("userprot =", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotEqualTo(String value) { - addCriterion("userprot <>", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotGreaterThan(String value) { - addCriterion("userprot >", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotGreaterThanOrEqualTo(String value) { - addCriterion("userprot >=", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotLessThan(String value) { - addCriterion("userprot <", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotLessThanOrEqualTo(String value) { - addCriterion("userprot <=", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotLike(String value) { - addCriterion("userprot like", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotLike(String value) { - addCriterion("userprot not like", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotIn(List values) { - addCriterion("userprot in", values, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotIn(List values) { - addCriterion("userprot not in", values, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotBetween(String value1, String value2) { - addCriterion("userprot between", value1, value2, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotBetween(String value1, String value2) { - addCriterion("userprot not between", value1, value2, "userprot"); - return (Criteria) this; - } - - public Criteria andPeriodIsNull() { - addCriterion("period is null"); - return (Criteria) this; - } - - public Criteria andPeriodIsNotNull() { - addCriterion("period is not null"); - return (Criteria) this; - } - - public Criteria andPeriodEqualTo(String value) { - addCriterion("period =", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotEqualTo(String value) { - addCriterion("period <>", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThan(String value) { - addCriterion("period >", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThanOrEqualTo(String value) { - addCriterion("period >=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThan(String value) { - addCriterion("period <", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThanOrEqualTo(String value) { - addCriterion("period <=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLike(String value) { - addCriterion("period like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotLike(String value) { - addCriterion("period not like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodIn(List values) { - addCriterion("period in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotIn(List values) { - addCriterion("period not in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodBetween(String value1, String value2) { - addCriterion("period between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotBetween(String value1, String value2) { - addCriterion("period not between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andPhonenumIsNull() { - addCriterion("phoneNum is null"); - return (Criteria) this; - } - - public Criteria andPhonenumIsNotNull() { - addCriterion("phoneNum is not null"); - return (Criteria) this; - } - - public Criteria andPhonenumEqualTo(String value) { - addCriterion("phoneNum =", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumNotEqualTo(String value) { - addCriterion("phoneNum <>", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumGreaterThan(String value) { - addCriterion("phoneNum >", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumGreaterThanOrEqualTo(String value) { - addCriterion("phoneNum >=", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumLessThan(String value) { - addCriterion("phoneNum <", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumLessThanOrEqualTo(String value) { - addCriterion("phoneNum <=", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumLike(String value) { - addCriterion("phoneNum like", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumNotLike(String value) { - addCriterion("phoneNum not like", value, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumIn(List values) { - addCriterion("phoneNum in", values, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumNotIn(List values) { - addCriterion("phoneNum not in", values, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumBetween(String value1, String value2) { - addCriterion("phoneNum between", value1, value2, "phonenum"); - return (Criteria) this; - } - - public Criteria andPhonenumNotBetween(String value1, String value2) { - addCriterion("phoneNum not between", value1, value2, "phonenum"); - return (Criteria) this; - } - - public Criteria andCidIsNull() { - addCriterion("cid is null"); - return (Criteria) this; - } - - public Criteria andCidIsNotNull() { - addCriterion("cid is not null"); - return (Criteria) this; - } - - public Criteria andCidEqualTo(Integer value) { - addCriterion("cid =", value, "cid"); - return (Criteria) this; - } - - public Criteria andCidNotEqualTo(Integer value) { - addCriterion("cid <>", value, "cid"); - return (Criteria) this; - } - - public Criteria andCidGreaterThan(Integer value) { - addCriterion("cid >", value, "cid"); - return (Criteria) this; - } - - public Criteria andCidGreaterThanOrEqualTo(Integer value) { - addCriterion("cid >=", value, "cid"); - return (Criteria) this; - } - - public Criteria andCidLessThan(Integer value) { - addCriterion("cid <", value, "cid"); - return (Criteria) this; - } - - public Criteria andCidLessThanOrEqualTo(Integer value) { - addCriterion("cid <=", value, "cid"); - return (Criteria) this; - } - - public Criteria andCidIn(List values) { - addCriterion("cid in", values, "cid"); - return (Criteria) this; - } - - public Criteria andCidNotIn(List values) { - addCriterion("cid not in", values, "cid"); - return (Criteria) this; - } - - public Criteria andCidBetween(Integer value1, Integer value2) { - addCriterion("cid between", value1, value2, "cid"); - return (Criteria) this; - } - - public Criteria andCidNotBetween(Integer value1, Integer value2) { - addCriterion("cid not between", value1, value2, "cid"); - return (Criteria) this; - } - - public Criteria andCperiodIsNull() { - addCriterion("cperiod is null"); - return (Criteria) this; - } - - public Criteria andCperiodIsNotNull() { - addCriterion("cperiod is not null"); - return (Criteria) this; - } - - public Criteria andCperiodEqualTo(String value) { - addCriterion("cperiod =", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotEqualTo(String value) { - addCriterion("cperiod <>", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodGreaterThan(String value) { - addCriterion("cperiod >", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodGreaterThanOrEqualTo(String value) { - addCriterion("cperiod >=", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodLessThan(String value) { - addCriterion("cperiod <", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodLessThanOrEqualTo(String value) { - addCriterion("cperiod <=", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodLike(String value) { - addCriterion("cperiod like", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotLike(String value) { - addCriterion("cperiod not like", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodIn(List values) { - addCriterion("cperiod in", values, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotIn(List values) { - addCriterion("cperiod not in", values, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodBetween(String value1, String value2) { - addCriterion("cperiod between", value1, value2, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotBetween(String value1, String value2) { - addCriterion("cperiod not between", value1, value2, "cperiod"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcConfig.java b/src/main/java/com/topsail/influxdb/pojo/OcConfig.java deleted file mode 100644 index b1a3da3..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OcConfig.java +++ /dev/null @@ -1,566 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class OcConfig { - private Long id; - - private String imei; - - private String typename; - - private Integer devicetype; - - private Integer collectiongap; - - private Integer sendinggap; - - private String urladdress; - - private String port; - - private Integer unipaththresholdlimit; - - private Integer unipaththresholdupper; - - private Integer unipathchangethreshold; - - private Integer multiplethresholdlimit; - - private Integer multiplethresholdupper; - - private Integer multiplechangethreshold; - - private Integer controlvalvestate; - - private String starttime; - - private String endtime; - - private Integer numdays; - - private Integer switchingvalue; - - private Integer stopreporting; - - private String softwareversions; - - private String hardwareversions; - - private String imsi; - - private String apn; - - private Date time; - - private String autocontrolpolicy; - - private String autocontroltime; - - private String selfchecktime; - - private Integer collide; - - private Integer lean; - - private Integer loraFrequency; - - private Integer loraBandwidth; - - private Integer loraSpreading; - - private Integer loraEncodingRate; - - private String cimei; - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public String getTypename() { - return typename; - } - - public void setTypename(String typename) { - this.typename = typename == null ? null : typename.trim(); - } - - public Integer getDevicetype() { - return devicetype; - } - - public void setDevicetype(Integer devicetype) { - this.devicetype = devicetype; - } - - public Integer getCollectiongap() { - return collectiongap; - } - - public void setCollectiongap(Integer collectiongap) { - this.collectiongap = collectiongap; - } - - public Integer getSendinggap() { - return sendinggap; - } - - public void setSendinggap(Integer sendinggap) { - this.sendinggap = sendinggap; - } - - public String getUrladdress() { - return urladdress; - } - - public void setUrladdress(String urladdress) { - this.urladdress = urladdress == null ? null : urladdress.trim(); - } - - public String getPort() { - return port; - } - - public void setPort(String port) { - this.port = port == null ? null : port.trim(); - } - - public Integer getUnipaththresholdlimit() { - return unipaththresholdlimit; - } - - public void setUnipaththresholdlimit(Integer unipaththresholdlimit) { - this.unipaththresholdlimit = unipaththresholdlimit; - } - - public Integer getUnipaththresholdupper() { - return unipaththresholdupper; - } - - public void setUnipaththresholdupper(Integer unipaththresholdupper) { - this.unipaththresholdupper = unipaththresholdupper; - } - - public Integer getUnipathchangethreshold() { - return unipathchangethreshold; - } - - public void setUnipathchangethreshold(Integer unipathchangethreshold) { - this.unipathchangethreshold = unipathchangethreshold; - } - - public Integer getMultiplethresholdlimit() { - return multiplethresholdlimit; - } - - public void setMultiplethresholdlimit(Integer multiplethresholdlimit) { - this.multiplethresholdlimit = multiplethresholdlimit; - } - - public Integer getMultiplethresholdupper() { - return multiplethresholdupper; - } - - public void setMultiplethresholdupper(Integer multiplethresholdupper) { - this.multiplethresholdupper = multiplethresholdupper; - } - - public Integer getMultiplechangethreshold() { - return multiplechangethreshold; - } - - public void setMultiplechangethreshold(Integer multiplechangethreshold) { - this.multiplechangethreshold = multiplechangethreshold; - } - - public Integer getControlvalvestate() { - return controlvalvestate; - } - - public void setControlvalvestate(Integer controlvalvestate) { - this.controlvalvestate = controlvalvestate; - } - - public String getStarttime() { - return starttime; - } - - public void setStarttime(String starttime) { - this.starttime = starttime == null ? null : starttime.trim(); - } - - public String getEndtime() { - return endtime; - } - - public void setEndtime(String endtime) { - this.endtime = endtime == null ? null : endtime.trim(); - } - - public Integer getNumdays() { - return numdays; - } - - public void setNumdays(Integer numdays) { - this.numdays = numdays; - } - - public Integer getSwitchingvalue() { - return switchingvalue; - } - - public void setSwitchingvalue(Integer switchingvalue) { - this.switchingvalue = switchingvalue; - } - - public Integer getStopreporting() { - return stopreporting; - } - - public void setStopreporting(Integer stopreporting) { - this.stopreporting = stopreporting; - } - - public String getSoftwareversions() { - return softwareversions; - } - - public void setSoftwareversions(String softwareversions) { - this.softwareversions = softwareversions == null ? null : softwareversions.trim(); - } - - public String getHardwareversions() { - return hardwareversions; - } - - public void setHardwareversions(String hardwareversions) { - this.hardwareversions = hardwareversions == null ? null : hardwareversions.trim(); - } - - public String getImsi() { - return imsi; - } - - public void setImsi(String imsi) { - this.imsi = imsi == null ? null : imsi.trim(); - } - - public String getApn() { - return apn; - } - - public void setApn(String apn) { - this.apn = apn == null ? null : apn.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getAutocontrolpolicy() { - return autocontrolpolicy; - } - - public void setAutocontrolpolicy(String autocontrolpolicy) { - this.autocontrolpolicy = autocontrolpolicy == null ? null : autocontrolpolicy.trim(); - } - - public String getAutocontroltime() { - return autocontroltime; - } - - public void setAutocontroltime(String autocontroltime) { - this.autocontroltime = autocontroltime == null ? null : autocontroltime.trim(); - } - - public String getSelfchecktime() { - return selfchecktime; - } - - public void setSelfchecktime(String selfchecktime) { - this.selfchecktime = selfchecktime == null ? null : selfchecktime.trim(); - } - - public Integer getCollide() { - return collide; - } - - public void setCollide(Integer collide) { - this.collide = collide; - } - - public Integer getLean() { - return lean; - } - - public void setLean(Integer lean) { - this.lean = lean; - } - - public Integer getLoraFrequency() { - return loraFrequency; - } - - public void setLoraFrequency(Integer loraFrequency) { - this.loraFrequency = loraFrequency; - } - - public Integer getLoraBandwidth() { - return loraBandwidth; - } - - public void setLoraBandwidth(Integer loraBandwidth) { - this.loraBandwidth = loraBandwidth; - } - - public Integer getLoraSpreading() { - return loraSpreading; - } - - public void setLoraSpreading(Integer loraSpreading) { - this.loraSpreading = loraSpreading; - } - - public Integer getLoraEncodingRate() { - return loraEncodingRate; - } - - public void setLoraEncodingRate(Integer loraEncodingRate) { - this.loraEncodingRate = loraEncodingRate; - } - - public String getCimei() { - return cimei; - } - - public void setCimei(String cimei) { - this.cimei = cimei == null ? null : cimei.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "BIGINT", false), - imei("imei", "imei", "VARCHAR", false), - typename("typeName", "typename", "VARCHAR", false), - devicetype("deviceType", "devicetype", "INTEGER", false), - collectiongap("collectionGap", "collectiongap", "INTEGER", false), - sendinggap("sendingGap", "sendinggap", "INTEGER", false), - urladdress("urlAddress", "urladdress", "VARCHAR", false), - port("port", "port", "VARCHAR", false), - unipaththresholdlimit("unipathThresholdLimit", "unipaththresholdlimit", "INTEGER", false), - unipaththresholdupper("unipathThresholdUpper", "unipaththresholdupper", "INTEGER", false), - unipathchangethreshold("unipathChangeThreshold", "unipathchangethreshold", "INTEGER", false), - multiplethresholdlimit("multipleThresholdLimit", "multiplethresholdlimit", "INTEGER", false), - multiplethresholdupper("multipleThresholdUpper", "multiplethresholdupper", "INTEGER", false), - multiplechangethreshold("multipleChangeThreshold", "multiplechangethreshold", "INTEGER", false), - controlvalvestate("controlValveState", "controlvalvestate", "INTEGER", false), - starttime("startTime", "starttime", "VARCHAR", false), - endtime("endTime", "endtime", "VARCHAR", false), - numdays("numDays", "numdays", "INTEGER", false), - switchingvalue("switchingValue", "switchingvalue", "INTEGER", false), - stopreporting("stopReporting", "stopreporting", "INTEGER", false), - softwareversions("softwareVersions", "softwareversions", "VARCHAR", false), - hardwareversions("hardwareVersions", "hardwareversions", "VARCHAR", false), - imsi("IMSI", "imsi", "VARCHAR", false), - apn("APN", "apn", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - autocontrolpolicy("autoControlPolicy", "autocontrolpolicy", "VARCHAR", false), - autocontroltime("autoControlTime", "autocontroltime", "VARCHAR", false), - selfchecktime("selfCheckTime", "selfchecktime", "VARCHAR", false), - collide("collide", "collide", "INTEGER", false), - lean("lean", "lean", "INTEGER", false), - loraFrequency("lora_frequency", "loraFrequency", "INTEGER", false), - loraBandwidth("lora_bandwidth", "loraBandwidth", "INTEGER", false), - loraSpreading("lora_spreading", "loraSpreading", "INTEGER", false), - loraEncodingRate("lora_encoding_rate", "loraEncodingRate", "INTEGER", false), - cimei("cimei", "cimei", "VARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_config - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java b/src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java deleted file mode 100644 index 80bcc31..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OcConfigExample.java +++ /dev/null @@ -1,2441 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class OcConfigExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OcConfigExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Long value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Long value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Long value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Long value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Long value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Long value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Long value1, Long value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Long value1, Long value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andTypenameIsNull() { - addCriterion("typeName is null"); - return (Criteria) this; - } - - public Criteria andTypenameIsNotNull() { - addCriterion("typeName is not null"); - return (Criteria) this; - } - - public Criteria andTypenameEqualTo(String value) { - addCriterion("typeName =", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotEqualTo(String value) { - addCriterion("typeName <>", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameGreaterThan(String value) { - addCriterion("typeName >", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameGreaterThanOrEqualTo(String value) { - addCriterion("typeName >=", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameLessThan(String value) { - addCriterion("typeName <", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameLessThanOrEqualTo(String value) { - addCriterion("typeName <=", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameLike(String value) { - addCriterion("typeName like", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotLike(String value) { - addCriterion("typeName not like", value, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameIn(List values) { - addCriterion("typeName in", values, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotIn(List values) { - addCriterion("typeName not in", values, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameBetween(String value1, String value2) { - addCriterion("typeName between", value1, value2, "typename"); - return (Criteria) this; - } - - public Criteria andTypenameNotBetween(String value1, String value2) { - addCriterion("typeName not between", value1, value2, "typename"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(Integer value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(Integer value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(Integer value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(Integer value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(Integer value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(Integer value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(Integer value1, Integer value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(Integer value1, Integer value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andCollectiongapIsNull() { - addCriterion("collectionGap is null"); - return (Criteria) this; - } - - public Criteria andCollectiongapIsNotNull() { - addCriterion("collectionGap is not null"); - return (Criteria) this; - } - - public Criteria andCollectiongapEqualTo(Integer value) { - addCriterion("collectionGap =", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapNotEqualTo(Integer value) { - addCriterion("collectionGap <>", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapGreaterThan(Integer value) { - addCriterion("collectionGap >", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapGreaterThanOrEqualTo(Integer value) { - addCriterion("collectionGap >=", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapLessThan(Integer value) { - addCriterion("collectionGap <", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapLessThanOrEqualTo(Integer value) { - addCriterion("collectionGap <=", value, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapIn(List values) { - addCriterion("collectionGap in", values, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapNotIn(List values) { - addCriterion("collectionGap not in", values, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapBetween(Integer value1, Integer value2) { - addCriterion("collectionGap between", value1, value2, "collectiongap"); - return (Criteria) this; - } - - public Criteria andCollectiongapNotBetween(Integer value1, Integer value2) { - addCriterion("collectionGap not between", value1, value2, "collectiongap"); - return (Criteria) this; - } - - public Criteria andSendinggapIsNull() { - addCriterion("sendingGap is null"); - return (Criteria) this; - } - - public Criteria andSendinggapIsNotNull() { - addCriterion("sendingGap is not null"); - return (Criteria) this; - } - - public Criteria andSendinggapEqualTo(Integer value) { - addCriterion("sendingGap =", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapNotEqualTo(Integer value) { - addCriterion("sendingGap <>", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapGreaterThan(Integer value) { - addCriterion("sendingGap >", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapGreaterThanOrEqualTo(Integer value) { - addCriterion("sendingGap >=", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapLessThan(Integer value) { - addCriterion("sendingGap <", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapLessThanOrEqualTo(Integer value) { - addCriterion("sendingGap <=", value, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapIn(List values) { - addCriterion("sendingGap in", values, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapNotIn(List values) { - addCriterion("sendingGap not in", values, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapBetween(Integer value1, Integer value2) { - addCriterion("sendingGap between", value1, value2, "sendinggap"); - return (Criteria) this; - } - - public Criteria andSendinggapNotBetween(Integer value1, Integer value2) { - addCriterion("sendingGap not between", value1, value2, "sendinggap"); - return (Criteria) this; - } - - public Criteria andUrladdressIsNull() { - addCriterion("urlAddress is null"); - return (Criteria) this; - } - - public Criteria andUrladdressIsNotNull() { - addCriterion("urlAddress is not null"); - return (Criteria) this; - } - - public Criteria andUrladdressEqualTo(String value) { - addCriterion("urlAddress =", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotEqualTo(String value) { - addCriterion("urlAddress <>", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressGreaterThan(String value) { - addCriterion("urlAddress >", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressGreaterThanOrEqualTo(String value) { - addCriterion("urlAddress >=", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressLessThan(String value) { - addCriterion("urlAddress <", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressLessThanOrEqualTo(String value) { - addCriterion("urlAddress <=", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressLike(String value) { - addCriterion("urlAddress like", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotLike(String value) { - addCriterion("urlAddress not like", value, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressIn(List values) { - addCriterion("urlAddress in", values, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotIn(List values) { - addCriterion("urlAddress not in", values, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressBetween(String value1, String value2) { - addCriterion("urlAddress between", value1, value2, "urladdress"); - return (Criteria) this; - } - - public Criteria andUrladdressNotBetween(String value1, String value2) { - addCriterion("urlAddress not between", value1, value2, "urladdress"); - return (Criteria) this; - } - - public Criteria andPortIsNull() { - addCriterion("port is null"); - return (Criteria) this; - } - - public Criteria andPortIsNotNull() { - addCriterion("port is not null"); - return (Criteria) this; - } - - public Criteria andPortEqualTo(String value) { - addCriterion("port =", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotEqualTo(String value) { - addCriterion("port <>", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThan(String value) { - addCriterion("port >", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThanOrEqualTo(String value) { - addCriterion("port >=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThan(String value) { - addCriterion("port <", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThanOrEqualTo(String value) { - addCriterion("port <=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLike(String value) { - addCriterion("port like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotLike(String value) { - addCriterion("port not like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortIn(List values) { - addCriterion("port in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortNotIn(List values) { - addCriterion("port not in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortBetween(String value1, String value2) { - addCriterion("port between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andPortNotBetween(String value1, String value2) { - addCriterion("port not between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitIsNull() { - addCriterion("unipathThresholdLimit is null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitIsNotNull() { - addCriterion("unipathThresholdLimit is not null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitEqualTo(Integer value) { - addCriterion("unipathThresholdLimit =", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitNotEqualTo(Integer value) { - addCriterion("unipathThresholdLimit <>", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitGreaterThan(Integer value) { - addCriterion("unipathThresholdLimit >", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitGreaterThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdLimit >=", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitLessThan(Integer value) { - addCriterion("unipathThresholdLimit <", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitLessThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdLimit <=", value, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitIn(List values) { - addCriterion("unipathThresholdLimit in", values, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitNotIn(List values) { - addCriterion("unipathThresholdLimit not in", values, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdLimit between", value1, value2, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdlimitNotBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdLimit not between", value1, value2, "unipaththresholdlimit"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperIsNull() { - addCriterion("unipathThresholdUpper is null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperIsNotNull() { - addCriterion("unipathThresholdUpper is not null"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperEqualTo(Integer value) { - addCriterion("unipathThresholdUpper =", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperNotEqualTo(Integer value) { - addCriterion("unipathThresholdUpper <>", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperGreaterThan(Integer value) { - addCriterion("unipathThresholdUpper >", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperGreaterThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdUpper >=", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperLessThan(Integer value) { - addCriterion("unipathThresholdUpper <", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperLessThanOrEqualTo(Integer value) { - addCriterion("unipathThresholdUpper <=", value, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperIn(List values) { - addCriterion("unipathThresholdUpper in", values, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperNotIn(List values) { - addCriterion("unipathThresholdUpper not in", values, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdUpper between", value1, value2, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipaththresholdupperNotBetween(Integer value1, Integer value2) { - addCriterion("unipathThresholdUpper not between", value1, value2, "unipaththresholdupper"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdIsNull() { - addCriterion("unipathChangeThreshold is null"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdIsNotNull() { - addCriterion("unipathChangeThreshold is not null"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdEqualTo(Integer value) { - addCriterion("unipathChangeThreshold =", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdNotEqualTo(Integer value) { - addCriterion("unipathChangeThreshold <>", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdGreaterThan(Integer value) { - addCriterion("unipathChangeThreshold >", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdGreaterThanOrEqualTo(Integer value) { - addCriterion("unipathChangeThreshold >=", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdLessThan(Integer value) { - addCriterion("unipathChangeThreshold <", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdLessThanOrEqualTo(Integer value) { - addCriterion("unipathChangeThreshold <=", value, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdIn(List values) { - addCriterion("unipathChangeThreshold in", values, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdNotIn(List values) { - addCriterion("unipathChangeThreshold not in", values, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdBetween(Integer value1, Integer value2) { - addCriterion("unipathChangeThreshold between", value1, value2, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andUnipathchangethresholdNotBetween(Integer value1, Integer value2) { - addCriterion("unipathChangeThreshold not between", value1, value2, "unipathchangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitIsNull() { - addCriterion("multipleThresholdLimit is null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitIsNotNull() { - addCriterion("multipleThresholdLimit is not null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitEqualTo(Integer value) { - addCriterion("multipleThresholdLimit =", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitNotEqualTo(Integer value) { - addCriterion("multipleThresholdLimit <>", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitGreaterThan(Integer value) { - addCriterion("multipleThresholdLimit >", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitGreaterThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdLimit >=", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitLessThan(Integer value) { - addCriterion("multipleThresholdLimit <", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitLessThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdLimit <=", value, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitIn(List values) { - addCriterion("multipleThresholdLimit in", values, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitNotIn(List values) { - addCriterion("multipleThresholdLimit not in", values, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdLimit between", value1, value2, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdlimitNotBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdLimit not between", value1, value2, "multiplethresholdlimit"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperIsNull() { - addCriterion("multipleThresholdUpper is null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperIsNotNull() { - addCriterion("multipleThresholdUpper is not null"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperEqualTo(Integer value) { - addCriterion("multipleThresholdUpper =", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperNotEqualTo(Integer value) { - addCriterion("multipleThresholdUpper <>", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperGreaterThan(Integer value) { - addCriterion("multipleThresholdUpper >", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperGreaterThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdUpper >=", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperLessThan(Integer value) { - addCriterion("multipleThresholdUpper <", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperLessThanOrEqualTo(Integer value) { - addCriterion("multipleThresholdUpper <=", value, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperIn(List values) { - addCriterion("multipleThresholdUpper in", values, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperNotIn(List values) { - addCriterion("multipleThresholdUpper not in", values, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdUpper between", value1, value2, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplethresholdupperNotBetween(Integer value1, Integer value2) { - addCriterion("multipleThresholdUpper not between", value1, value2, "multiplethresholdupper"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdIsNull() { - addCriterion("multipleChangeThreshold is null"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdIsNotNull() { - addCriterion("multipleChangeThreshold is not null"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdEqualTo(Integer value) { - addCriterion("multipleChangeThreshold =", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdNotEqualTo(Integer value) { - addCriterion("multipleChangeThreshold <>", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdGreaterThan(Integer value) { - addCriterion("multipleChangeThreshold >", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdGreaterThanOrEqualTo(Integer value) { - addCriterion("multipleChangeThreshold >=", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdLessThan(Integer value) { - addCriterion("multipleChangeThreshold <", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdLessThanOrEqualTo(Integer value) { - addCriterion("multipleChangeThreshold <=", value, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdIn(List values) { - addCriterion("multipleChangeThreshold in", values, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdNotIn(List values) { - addCriterion("multipleChangeThreshold not in", values, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdBetween(Integer value1, Integer value2) { - addCriterion("multipleChangeThreshold between", value1, value2, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andMultiplechangethresholdNotBetween(Integer value1, Integer value2) { - addCriterion("multipleChangeThreshold not between", value1, value2, "multiplechangethreshold"); - return (Criteria) this; - } - - public Criteria andControlvalvestateIsNull() { - addCriterion("controlValveState is null"); - return (Criteria) this; - } - - public Criteria andControlvalvestateIsNotNull() { - addCriterion("controlValveState is not null"); - return (Criteria) this; - } - - public Criteria andControlvalvestateEqualTo(Integer value) { - addCriterion("controlValveState =", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateNotEqualTo(Integer value) { - addCriterion("controlValveState <>", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateGreaterThan(Integer value) { - addCriterion("controlValveState >", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateGreaterThanOrEqualTo(Integer value) { - addCriterion("controlValveState >=", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateLessThan(Integer value) { - addCriterion("controlValveState <", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateLessThanOrEqualTo(Integer value) { - addCriterion("controlValveState <=", value, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateIn(List values) { - addCriterion("controlValveState in", values, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateNotIn(List values) { - addCriterion("controlValveState not in", values, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateBetween(Integer value1, Integer value2) { - addCriterion("controlValveState between", value1, value2, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andControlvalvestateNotBetween(Integer value1, Integer value2) { - addCriterion("controlValveState not between", value1, value2, "controlvalvestate"); - return (Criteria) this; - } - - public Criteria andStarttimeIsNull() { - addCriterion("startTime is null"); - return (Criteria) this; - } - - public Criteria andStarttimeIsNotNull() { - addCriterion("startTime is not null"); - return (Criteria) this; - } - - public Criteria andStarttimeEqualTo(String value) { - addCriterion("startTime =", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotEqualTo(String value) { - addCriterion("startTime <>", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeGreaterThan(String value) { - addCriterion("startTime >", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeGreaterThanOrEqualTo(String value) { - addCriterion("startTime >=", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeLessThan(String value) { - addCriterion("startTime <", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeLessThanOrEqualTo(String value) { - addCriterion("startTime <=", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeLike(String value) { - addCriterion("startTime like", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotLike(String value) { - addCriterion("startTime not like", value, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeIn(List values) { - addCriterion("startTime in", values, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotIn(List values) { - addCriterion("startTime not in", values, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeBetween(String value1, String value2) { - addCriterion("startTime between", value1, value2, "starttime"); - return (Criteria) this; - } - - public Criteria andStarttimeNotBetween(String value1, String value2) { - addCriterion("startTime not between", value1, value2, "starttime"); - return (Criteria) this; - } - - public Criteria andEndtimeIsNull() { - addCriterion("endTime is null"); - return (Criteria) this; - } - - public Criteria andEndtimeIsNotNull() { - addCriterion("endTime is not null"); - return (Criteria) this; - } - - public Criteria andEndtimeEqualTo(String value) { - addCriterion("endTime =", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotEqualTo(String value) { - addCriterion("endTime <>", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeGreaterThan(String value) { - addCriterion("endTime >", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeGreaterThanOrEqualTo(String value) { - addCriterion("endTime >=", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLessThan(String value) { - addCriterion("endTime <", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLessThanOrEqualTo(String value) { - addCriterion("endTime <=", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeLike(String value) { - addCriterion("endTime like", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotLike(String value) { - addCriterion("endTime not like", value, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeIn(List values) { - addCriterion("endTime in", values, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotIn(List values) { - addCriterion("endTime not in", values, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeBetween(String value1, String value2) { - addCriterion("endTime between", value1, value2, "endtime"); - return (Criteria) this; - } - - public Criteria andEndtimeNotBetween(String value1, String value2) { - addCriterion("endTime not between", value1, value2, "endtime"); - return (Criteria) this; - } - - public Criteria andNumdaysIsNull() { - addCriterion("numDays is null"); - return (Criteria) this; - } - - public Criteria andNumdaysIsNotNull() { - addCriterion("numDays is not null"); - return (Criteria) this; - } - - public Criteria andNumdaysEqualTo(Integer value) { - addCriterion("numDays =", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysNotEqualTo(Integer value) { - addCriterion("numDays <>", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysGreaterThan(Integer value) { - addCriterion("numDays >", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysGreaterThanOrEqualTo(Integer value) { - addCriterion("numDays >=", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysLessThan(Integer value) { - addCriterion("numDays <", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysLessThanOrEqualTo(Integer value) { - addCriterion("numDays <=", value, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysIn(List values) { - addCriterion("numDays in", values, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysNotIn(List values) { - addCriterion("numDays not in", values, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysBetween(Integer value1, Integer value2) { - addCriterion("numDays between", value1, value2, "numdays"); - return (Criteria) this; - } - - public Criteria andNumdaysNotBetween(Integer value1, Integer value2) { - addCriterion("numDays not between", value1, value2, "numdays"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueIsNull() { - addCriterion("switchingValue is null"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueIsNotNull() { - addCriterion("switchingValue is not null"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueEqualTo(Integer value) { - addCriterion("switchingValue =", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueNotEqualTo(Integer value) { - addCriterion("switchingValue <>", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueGreaterThan(Integer value) { - addCriterion("switchingValue >", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueGreaterThanOrEqualTo(Integer value) { - addCriterion("switchingValue >=", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueLessThan(Integer value) { - addCriterion("switchingValue <", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueLessThanOrEqualTo(Integer value) { - addCriterion("switchingValue <=", value, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueIn(List values) { - addCriterion("switchingValue in", values, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueNotIn(List values) { - addCriterion("switchingValue not in", values, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueBetween(Integer value1, Integer value2) { - addCriterion("switchingValue between", value1, value2, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andSwitchingvalueNotBetween(Integer value1, Integer value2) { - addCriterion("switchingValue not between", value1, value2, "switchingvalue"); - return (Criteria) this; - } - - public Criteria andStopreportingIsNull() { - addCriterion("stopReporting is null"); - return (Criteria) this; - } - - public Criteria andStopreportingIsNotNull() { - addCriterion("stopReporting is not null"); - return (Criteria) this; - } - - public Criteria andStopreportingEqualTo(Integer value) { - addCriterion("stopReporting =", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingNotEqualTo(Integer value) { - addCriterion("stopReporting <>", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingGreaterThan(Integer value) { - addCriterion("stopReporting >", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingGreaterThanOrEqualTo(Integer value) { - addCriterion("stopReporting >=", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingLessThan(Integer value) { - addCriterion("stopReporting <", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingLessThanOrEqualTo(Integer value) { - addCriterion("stopReporting <=", value, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingIn(List values) { - addCriterion("stopReporting in", values, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingNotIn(List values) { - addCriterion("stopReporting not in", values, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingBetween(Integer value1, Integer value2) { - addCriterion("stopReporting between", value1, value2, "stopreporting"); - return (Criteria) this; - } - - public Criteria andStopreportingNotBetween(Integer value1, Integer value2) { - addCriterion("stopReporting not between", value1, value2, "stopreporting"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsIsNull() { - addCriterion("softwareVersions is null"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsIsNotNull() { - addCriterion("softwareVersions is not null"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsEqualTo(String value) { - addCriterion("softwareVersions =", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotEqualTo(String value) { - addCriterion("softwareVersions <>", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsGreaterThan(String value) { - addCriterion("softwareVersions >", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsGreaterThanOrEqualTo(String value) { - addCriterion("softwareVersions >=", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsLessThan(String value) { - addCriterion("softwareVersions <", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsLessThanOrEqualTo(String value) { - addCriterion("softwareVersions <=", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsLike(String value) { - addCriterion("softwareVersions like", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotLike(String value) { - addCriterion("softwareVersions not like", value, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsIn(List values) { - addCriterion("softwareVersions in", values, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotIn(List values) { - addCriterion("softwareVersions not in", values, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsBetween(String value1, String value2) { - addCriterion("softwareVersions between", value1, value2, "softwareversions"); - return (Criteria) this; - } - - public Criteria andSoftwareversionsNotBetween(String value1, String value2) { - addCriterion("softwareVersions not between", value1, value2, "softwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsIsNull() { - addCriterion("hardwareVersions is null"); - return (Criteria) this; - } - - public Criteria andHardwareversionsIsNotNull() { - addCriterion("hardwareVersions is not null"); - return (Criteria) this; - } - - public Criteria andHardwareversionsEqualTo(String value) { - addCriterion("hardwareVersions =", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotEqualTo(String value) { - addCriterion("hardwareVersions <>", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsGreaterThan(String value) { - addCriterion("hardwareVersions >", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsGreaterThanOrEqualTo(String value) { - addCriterion("hardwareVersions >=", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsLessThan(String value) { - addCriterion("hardwareVersions <", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsLessThanOrEqualTo(String value) { - addCriterion("hardwareVersions <=", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsLike(String value) { - addCriterion("hardwareVersions like", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotLike(String value) { - addCriterion("hardwareVersions not like", value, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsIn(List values) { - addCriterion("hardwareVersions in", values, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotIn(List values) { - addCriterion("hardwareVersions not in", values, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsBetween(String value1, String value2) { - addCriterion("hardwareVersions between", value1, value2, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andHardwareversionsNotBetween(String value1, String value2) { - addCriterion("hardwareVersions not between", value1, value2, "hardwareversions"); - return (Criteria) this; - } - - public Criteria andImsiIsNull() { - addCriterion("IMSI is null"); - return (Criteria) this; - } - - public Criteria andImsiIsNotNull() { - addCriterion("IMSI is not null"); - return (Criteria) this; - } - - public Criteria andImsiEqualTo(String value) { - addCriterion("IMSI =", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotEqualTo(String value) { - addCriterion("IMSI <>", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiGreaterThan(String value) { - addCriterion("IMSI >", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiGreaterThanOrEqualTo(String value) { - addCriterion("IMSI >=", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiLessThan(String value) { - addCriterion("IMSI <", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiLessThanOrEqualTo(String value) { - addCriterion("IMSI <=", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiLike(String value) { - addCriterion("IMSI like", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotLike(String value) { - addCriterion("IMSI not like", value, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiIn(List values) { - addCriterion("IMSI in", values, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotIn(List values) { - addCriterion("IMSI not in", values, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiBetween(String value1, String value2) { - addCriterion("IMSI between", value1, value2, "imsi"); - return (Criteria) this; - } - - public Criteria andImsiNotBetween(String value1, String value2) { - addCriterion("IMSI not between", value1, value2, "imsi"); - return (Criteria) this; - } - - public Criteria andApnIsNull() { - addCriterion("APN is null"); - return (Criteria) this; - } - - public Criteria andApnIsNotNull() { - addCriterion("APN is not null"); - return (Criteria) this; - } - - public Criteria andApnEqualTo(String value) { - addCriterion("APN =", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotEqualTo(String value) { - addCriterion("APN <>", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnGreaterThan(String value) { - addCriterion("APN >", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnGreaterThanOrEqualTo(String value) { - addCriterion("APN >=", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnLessThan(String value) { - addCriterion("APN <", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnLessThanOrEqualTo(String value) { - addCriterion("APN <=", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnLike(String value) { - addCriterion("APN like", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotLike(String value) { - addCriterion("APN not like", value, "apn"); - return (Criteria) this; - } - - public Criteria andApnIn(List values) { - addCriterion("APN in", values, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotIn(List values) { - addCriterion("APN not in", values, "apn"); - return (Criteria) this; - } - - public Criteria andApnBetween(String value1, String value2) { - addCriterion("APN between", value1, value2, "apn"); - return (Criteria) this; - } - - public Criteria andApnNotBetween(String value1, String value2) { - addCriterion("APN not between", value1, value2, "apn"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyIsNull() { - addCriterion("autoControlPolicy is null"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyIsNotNull() { - addCriterion("autoControlPolicy is not null"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyEqualTo(String value) { - addCriterion("autoControlPolicy =", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotEqualTo(String value) { - addCriterion("autoControlPolicy <>", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyGreaterThan(String value) { - addCriterion("autoControlPolicy >", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyGreaterThanOrEqualTo(String value) { - addCriterion("autoControlPolicy >=", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyLessThan(String value) { - addCriterion("autoControlPolicy <", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyLessThanOrEqualTo(String value) { - addCriterion("autoControlPolicy <=", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyLike(String value) { - addCriterion("autoControlPolicy like", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotLike(String value) { - addCriterion("autoControlPolicy not like", value, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyIn(List values) { - addCriterion("autoControlPolicy in", values, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotIn(List values) { - addCriterion("autoControlPolicy not in", values, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyBetween(String value1, String value2) { - addCriterion("autoControlPolicy between", value1, value2, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontrolpolicyNotBetween(String value1, String value2) { - addCriterion("autoControlPolicy not between", value1, value2, "autocontrolpolicy"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeIsNull() { - addCriterion("autoControlTime is null"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeIsNotNull() { - addCriterion("autoControlTime is not null"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeEqualTo(String value) { - addCriterion("autoControlTime =", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotEqualTo(String value) { - addCriterion("autoControlTime <>", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeGreaterThan(String value) { - addCriterion("autoControlTime >", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeGreaterThanOrEqualTo(String value) { - addCriterion("autoControlTime >=", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeLessThan(String value) { - addCriterion("autoControlTime <", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeLessThanOrEqualTo(String value) { - addCriterion("autoControlTime <=", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeLike(String value) { - addCriterion("autoControlTime like", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotLike(String value) { - addCriterion("autoControlTime not like", value, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeIn(List values) { - addCriterion("autoControlTime in", values, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotIn(List values) { - addCriterion("autoControlTime not in", values, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeBetween(String value1, String value2) { - addCriterion("autoControlTime between", value1, value2, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andAutocontroltimeNotBetween(String value1, String value2) { - addCriterion("autoControlTime not between", value1, value2, "autocontroltime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeIsNull() { - addCriterion("selfCheckTime is null"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeIsNotNull() { - addCriterion("selfCheckTime is not null"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeEqualTo(String value) { - addCriterion("selfCheckTime =", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotEqualTo(String value) { - addCriterion("selfCheckTime <>", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeGreaterThan(String value) { - addCriterion("selfCheckTime >", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeGreaterThanOrEqualTo(String value) { - addCriterion("selfCheckTime >=", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeLessThan(String value) { - addCriterion("selfCheckTime <", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeLessThanOrEqualTo(String value) { - addCriterion("selfCheckTime <=", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeLike(String value) { - addCriterion("selfCheckTime like", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotLike(String value) { - addCriterion("selfCheckTime not like", value, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeIn(List values) { - addCriterion("selfCheckTime in", values, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotIn(List values) { - addCriterion("selfCheckTime not in", values, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeBetween(String value1, String value2) { - addCriterion("selfCheckTime between", value1, value2, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andSelfchecktimeNotBetween(String value1, String value2) { - addCriterion("selfCheckTime not between", value1, value2, "selfchecktime"); - return (Criteria) this; - } - - public Criteria andCollideIsNull() { - addCriterion("collide is null"); - return (Criteria) this; - } - - public Criteria andCollideIsNotNull() { - addCriterion("collide is not null"); - return (Criteria) this; - } - - public Criteria andCollideEqualTo(Integer value) { - addCriterion("collide =", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideNotEqualTo(Integer value) { - addCriterion("collide <>", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideGreaterThan(Integer value) { - addCriterion("collide >", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideGreaterThanOrEqualTo(Integer value) { - addCriterion("collide >=", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideLessThan(Integer value) { - addCriterion("collide <", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideLessThanOrEqualTo(Integer value) { - addCriterion("collide <=", value, "collide"); - return (Criteria) this; - } - - public Criteria andCollideIn(List values) { - addCriterion("collide in", values, "collide"); - return (Criteria) this; - } - - public Criteria andCollideNotIn(List values) { - addCriterion("collide not in", values, "collide"); - return (Criteria) this; - } - - public Criteria andCollideBetween(Integer value1, Integer value2) { - addCriterion("collide between", value1, value2, "collide"); - return (Criteria) this; - } - - public Criteria andCollideNotBetween(Integer value1, Integer value2) { - addCriterion("collide not between", value1, value2, "collide"); - return (Criteria) this; - } - - public Criteria andLeanIsNull() { - addCriterion("lean is null"); - return (Criteria) this; - } - - public Criteria andLeanIsNotNull() { - addCriterion("lean is not null"); - return (Criteria) this; - } - - public Criteria andLeanEqualTo(Integer value) { - addCriterion("lean =", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanNotEqualTo(Integer value) { - addCriterion("lean <>", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanGreaterThan(Integer value) { - addCriterion("lean >", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanGreaterThanOrEqualTo(Integer value) { - addCriterion("lean >=", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanLessThan(Integer value) { - addCriterion("lean <", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanLessThanOrEqualTo(Integer value) { - addCriterion("lean <=", value, "lean"); - return (Criteria) this; - } - - public Criteria andLeanIn(List values) { - addCriterion("lean in", values, "lean"); - return (Criteria) this; - } - - public Criteria andLeanNotIn(List values) { - addCriterion("lean not in", values, "lean"); - return (Criteria) this; - } - - public Criteria andLeanBetween(Integer value1, Integer value2) { - addCriterion("lean between", value1, value2, "lean"); - return (Criteria) this; - } - - public Criteria andLeanNotBetween(Integer value1, Integer value2) { - addCriterion("lean not between", value1, value2, "lean"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyIsNull() { - addCriterion("lora_frequency is null"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyIsNotNull() { - addCriterion("lora_frequency is not null"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyEqualTo(Integer value) { - addCriterion("lora_frequency =", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyNotEqualTo(Integer value) { - addCriterion("lora_frequency <>", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyGreaterThan(Integer value) { - addCriterion("lora_frequency >", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_frequency >=", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyLessThan(Integer value) { - addCriterion("lora_frequency <", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyLessThanOrEqualTo(Integer value) { - addCriterion("lora_frequency <=", value, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyIn(List values) { - addCriterion("lora_frequency in", values, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyNotIn(List values) { - addCriterion("lora_frequency not in", values, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyBetween(Integer value1, Integer value2) { - addCriterion("lora_frequency between", value1, value2, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraFrequencyNotBetween(Integer value1, Integer value2) { - addCriterion("lora_frequency not between", value1, value2, "loraFrequency"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthIsNull() { - addCriterion("lora_bandwidth is null"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthIsNotNull() { - addCriterion("lora_bandwidth is not null"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthEqualTo(Integer value) { - addCriterion("lora_bandwidth =", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthNotEqualTo(Integer value) { - addCriterion("lora_bandwidth <>", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthGreaterThan(Integer value) { - addCriterion("lora_bandwidth >", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_bandwidth >=", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthLessThan(Integer value) { - addCriterion("lora_bandwidth <", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthLessThanOrEqualTo(Integer value) { - addCriterion("lora_bandwidth <=", value, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthIn(List values) { - addCriterion("lora_bandwidth in", values, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthNotIn(List values) { - addCriterion("lora_bandwidth not in", values, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthBetween(Integer value1, Integer value2) { - addCriterion("lora_bandwidth between", value1, value2, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraBandwidthNotBetween(Integer value1, Integer value2) { - addCriterion("lora_bandwidth not between", value1, value2, "loraBandwidth"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingIsNull() { - addCriterion("lora_spreading is null"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingIsNotNull() { - addCriterion("lora_spreading is not null"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingEqualTo(Integer value) { - addCriterion("lora_spreading =", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingNotEqualTo(Integer value) { - addCriterion("lora_spreading <>", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingGreaterThan(Integer value) { - addCriterion("lora_spreading >", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_spreading >=", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingLessThan(Integer value) { - addCriterion("lora_spreading <", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingLessThanOrEqualTo(Integer value) { - addCriterion("lora_spreading <=", value, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingIn(List values) { - addCriterion("lora_spreading in", values, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingNotIn(List values) { - addCriterion("lora_spreading not in", values, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingBetween(Integer value1, Integer value2) { - addCriterion("lora_spreading between", value1, value2, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraSpreadingNotBetween(Integer value1, Integer value2) { - addCriterion("lora_spreading not between", value1, value2, "loraSpreading"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateIsNull() { - addCriterion("lora_encoding_rate is null"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateIsNotNull() { - addCriterion("lora_encoding_rate is not null"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateEqualTo(Integer value) { - addCriterion("lora_encoding_rate =", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateNotEqualTo(Integer value) { - addCriterion("lora_encoding_rate <>", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateGreaterThan(Integer value) { - addCriterion("lora_encoding_rate >", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateGreaterThanOrEqualTo(Integer value) { - addCriterion("lora_encoding_rate >=", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateLessThan(Integer value) { - addCriterion("lora_encoding_rate <", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateLessThanOrEqualTo(Integer value) { - addCriterion("lora_encoding_rate <=", value, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateIn(List values) { - addCriterion("lora_encoding_rate in", values, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateNotIn(List values) { - addCriterion("lora_encoding_rate not in", values, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateBetween(Integer value1, Integer value2) { - addCriterion("lora_encoding_rate between", value1, value2, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andLoraEncodingRateNotBetween(Integer value1, Integer value2) { - addCriterion("lora_encoding_rate not between", value1, value2, "loraEncodingRate"); - return (Criteria) this; - } - - public Criteria andCimeiIsNull() { - addCriterion("cimei is null"); - return (Criteria) this; - } - - public Criteria andCimeiIsNotNull() { - addCriterion("cimei is not null"); - return (Criteria) this; - } - - public Criteria andCimeiEqualTo(String value) { - addCriterion("cimei =", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiNotEqualTo(String value) { - addCriterion("cimei <>", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiGreaterThan(String value) { - addCriterion("cimei >", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiGreaterThanOrEqualTo(String value) { - addCriterion("cimei >=", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiLessThan(String value) { - addCriterion("cimei <", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiLessThanOrEqualTo(String value) { - addCriterion("cimei <=", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiLike(String value) { - addCriterion("cimei like", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiNotLike(String value) { - addCriterion("cimei not like", value, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiIn(List values) { - addCriterion("cimei in", values, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiNotIn(List values) { - addCriterion("cimei not in", values, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiBetween(String value1, String value2) { - addCriterion("cimei between", value1, value2, "cimei"); - return (Criteria) this; - } - - public Criteria andCimeiNotBetween(String value1, String value2) { - addCriterion("cimei not between", value1, value2, "cimei"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcDevice.java b/src/main/java/com/topsail/influxdb/pojo/OcDevice.java deleted file mode 100644 index 79bcfe9..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OcDevice.java +++ /dev/null @@ -1,323 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class OcDevice { - private Integer id; - - private String verifycode; - - private String devicetype; - - private String username; - - private String latitude; - - private String longitude; - - private String version; - - private Integer fkPid; - - private String period; - - private String imei; - - private Integer dperiod; - - private Integer companyId; - - private String deviceid; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getVerifycode() { - return verifycode; - } - - public void setVerifycode(String verifycode) { - this.verifycode = verifycode == null ? null : verifycode.trim(); - } - - public String getDevicetype() { - return devicetype; - } - - public void setDevicetype(String devicetype) { - this.devicetype = devicetype == null ? null : devicetype.trim(); - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getLatitude() { - return latitude; - } - - public void setLatitude(String latitude) { - this.latitude = latitude == null ? null : latitude.trim(); - } - - public String getLongitude() { - return longitude; - } - - public void setLongitude(String longitude) { - this.longitude = longitude == null ? null : longitude.trim(); - } - - public String getVersion() { - return version; - } - - public void setVersion(String version) { - this.version = version == null ? null : version.trim(); - } - - public Integer getFkPid() { - return fkPid; - } - - public void setFkPid(Integer fkPid) { - this.fkPid = fkPid; - } - - public String getPeriod() { - return period; - } - - public void setPeriod(String period) { - this.period = period == null ? null : period.trim(); - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getDperiod() { - return dperiod; - } - - public void setDperiod(Integer dperiod) { - this.dperiod = dperiod; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public String getDeviceid() { - return deviceid; - } - - public void setDeviceid(String deviceid) { - this.deviceid = deviceid == null ? null : deviceid.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - verifycode("verifyCode", "verifycode", "VARCHAR", false), - devicetype("deviceType", "devicetype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - latitude("latitude", "latitude", "VARCHAR", false), - longitude("longitude", "longitude", "VARCHAR", false), - version("version", "version", "VARCHAR", false), - fkPid("fk_pid", "fkPid", "INTEGER", false), - period("period", "period", "VARCHAR", false), - imei("imei", "imei", "VARCHAR", false), - dperiod("dperiod", "dperiod", "INTEGER", false), - companyId("company_id", "companyId", "INTEGER", false), - deviceid("deviceId", "deviceid", "LONGVARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table oc_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java b/src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java deleted file mode 100644 index 75729f1..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OcDeviceExample.java +++ /dev/null @@ -1,1000 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class OcDeviceExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OcDeviceExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andVerifycodeIsNull() { - addCriterion("verifyCode is null"); - return (Criteria) this; - } - - public Criteria andVerifycodeIsNotNull() { - addCriterion("verifyCode is not null"); - return (Criteria) this; - } - - public Criteria andVerifycodeEqualTo(String value) { - addCriterion("verifyCode =", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotEqualTo(String value) { - addCriterion("verifyCode <>", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeGreaterThan(String value) { - addCriterion("verifyCode >", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeGreaterThanOrEqualTo(String value) { - addCriterion("verifyCode >=", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeLessThan(String value) { - addCriterion("verifyCode <", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeLessThanOrEqualTo(String value) { - addCriterion("verifyCode <=", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeLike(String value) { - addCriterion("verifyCode like", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotLike(String value) { - addCriterion("verifyCode not like", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeIn(List values) { - addCriterion("verifyCode in", values, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotIn(List values) { - addCriterion("verifyCode not in", values, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeBetween(String value1, String value2) { - addCriterion("verifyCode between", value1, value2, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotBetween(String value1, String value2) { - addCriterion("verifyCode not between", value1, value2, "verifycode"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(String value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(String value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(String value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(String value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(String value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(String value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLike(String value) { - addCriterion("deviceType like", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotLike(String value) { - addCriterion("deviceType not like", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(String value1, String value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(String value1, String value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andLatitudeIsNull() { - addCriterion("latitude is null"); - return (Criteria) this; - } - - public Criteria andLatitudeIsNotNull() { - addCriterion("latitude is not null"); - return (Criteria) this; - } - - public Criteria andLatitudeEqualTo(String value) { - addCriterion("latitude =", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotEqualTo(String value) { - addCriterion("latitude <>", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeGreaterThan(String value) { - addCriterion("latitude >", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeGreaterThanOrEqualTo(String value) { - addCriterion("latitude >=", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeLessThan(String value) { - addCriterion("latitude <", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeLessThanOrEqualTo(String value) { - addCriterion("latitude <=", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeLike(String value) { - addCriterion("latitude like", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotLike(String value) { - addCriterion("latitude not like", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeIn(List values) { - addCriterion("latitude in", values, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotIn(List values) { - addCriterion("latitude not in", values, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeBetween(String value1, String value2) { - addCriterion("latitude between", value1, value2, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotBetween(String value1, String value2) { - addCriterion("latitude not between", value1, value2, "latitude"); - return (Criteria) this; - } - - public Criteria andLongitudeIsNull() { - addCriterion("longitude is null"); - return (Criteria) this; - } - - public Criteria andLongitudeIsNotNull() { - addCriterion("longitude is not null"); - return (Criteria) this; - } - - public Criteria andLongitudeEqualTo(String value) { - addCriterion("longitude =", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotEqualTo(String value) { - addCriterion("longitude <>", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeGreaterThan(String value) { - addCriterion("longitude >", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeGreaterThanOrEqualTo(String value) { - addCriterion("longitude >=", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeLessThan(String value) { - addCriterion("longitude <", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeLessThanOrEqualTo(String value) { - addCriterion("longitude <=", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeLike(String value) { - addCriterion("longitude like", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotLike(String value) { - addCriterion("longitude not like", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeIn(List values) { - addCriterion("longitude in", values, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotIn(List values) { - addCriterion("longitude not in", values, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeBetween(String value1, String value2) { - addCriterion("longitude between", value1, value2, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotBetween(String value1, String value2) { - addCriterion("longitude not between", value1, value2, "longitude"); - return (Criteria) this; - } - - public Criteria andVersionIsNull() { - addCriterion("version is null"); - return (Criteria) this; - } - - public Criteria andVersionIsNotNull() { - addCriterion("version is not null"); - return (Criteria) this; - } - - public Criteria andVersionEqualTo(String value) { - addCriterion("version =", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionNotEqualTo(String value) { - addCriterion("version <>", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionGreaterThan(String value) { - addCriterion("version >", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionGreaterThanOrEqualTo(String value) { - addCriterion("version >=", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionLessThan(String value) { - addCriterion("version <", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionLessThanOrEqualTo(String value) { - addCriterion("version <=", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionLike(String value) { - addCriterion("version like", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionNotLike(String value) { - addCriterion("version not like", value, "version"); - return (Criteria) this; - } - - public Criteria andVersionIn(List values) { - addCriterion("version in", values, "version"); - return (Criteria) this; - } - - public Criteria andVersionNotIn(List values) { - addCriterion("version not in", values, "version"); - return (Criteria) this; - } - - public Criteria andVersionBetween(String value1, String value2) { - addCriterion("version between", value1, value2, "version"); - return (Criteria) this; - } - - public Criteria andVersionNotBetween(String value1, String value2) { - addCriterion("version not between", value1, value2, "version"); - return (Criteria) this; - } - - public Criteria andFkPidIsNull() { - addCriterion("fk_pid is null"); - return (Criteria) this; - } - - public Criteria andFkPidIsNotNull() { - addCriterion("fk_pid is not null"); - return (Criteria) this; - } - - public Criteria andFkPidEqualTo(Integer value) { - addCriterion("fk_pid =", value, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidNotEqualTo(Integer value) { - addCriterion("fk_pid <>", value, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidGreaterThan(Integer value) { - addCriterion("fk_pid >", value, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidGreaterThanOrEqualTo(Integer value) { - addCriterion("fk_pid >=", value, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidLessThan(Integer value) { - addCriterion("fk_pid <", value, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidLessThanOrEqualTo(Integer value) { - addCriterion("fk_pid <=", value, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidIn(List values) { - addCriterion("fk_pid in", values, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidNotIn(List values) { - addCriterion("fk_pid not in", values, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidBetween(Integer value1, Integer value2) { - addCriterion("fk_pid between", value1, value2, "fkPid"); - return (Criteria) this; - } - - public Criteria andFkPidNotBetween(Integer value1, Integer value2) { - addCriterion("fk_pid not between", value1, value2, "fkPid"); - return (Criteria) this; - } - - public Criteria andPeriodIsNull() { - addCriterion("period is null"); - return (Criteria) this; - } - - public Criteria andPeriodIsNotNull() { - addCriterion("period is not null"); - return (Criteria) this; - } - - public Criteria andPeriodEqualTo(String value) { - addCriterion("period =", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotEqualTo(String value) { - addCriterion("period <>", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThan(String value) { - addCriterion("period >", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThanOrEqualTo(String value) { - addCriterion("period >=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThan(String value) { - addCriterion("period <", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThanOrEqualTo(String value) { - addCriterion("period <=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLike(String value) { - addCriterion("period like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotLike(String value) { - addCriterion("period not like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodIn(List values) { - addCriterion("period in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotIn(List values) { - addCriterion("period not in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodBetween(String value1, String value2) { - addCriterion("period between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotBetween(String value1, String value2) { - addCriterion("period not between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andDperiodIsNull() { - addCriterion("dperiod is null"); - return (Criteria) this; - } - - public Criteria andDperiodIsNotNull() { - addCriterion("dperiod is not null"); - return (Criteria) this; - } - - public Criteria andDperiodEqualTo(Integer value) { - addCriterion("dperiod =", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotEqualTo(Integer value) { - addCriterion("dperiod <>", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodGreaterThan(Integer value) { - addCriterion("dperiod >", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { - addCriterion("dperiod >=", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodLessThan(Integer value) { - addCriterion("dperiod <", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodLessThanOrEqualTo(Integer value) { - addCriterion("dperiod <=", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodIn(List values) { - addCriterion("dperiod in", values, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotIn(List values) { - addCriterion("dperiod not in", values, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodBetween(Integer value1, Integer value2) { - addCriterion("dperiod between", value1, value2, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotBetween(Integer value1, Integer value2) { - addCriterion("dperiod not between", value1, value2, "dperiod"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java b/src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java deleted file mode 100644 index 79ef88a..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnenetCompany.java +++ /dev/null @@ -1,257 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class OnenetCompany { - private Integer id; - - private String username; - - private String userip; - - private Integer userport; - - private String userprot; - - private String period; - - private String cperiod; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public String getUserip() { - return userip; - } - - public void setUserip(String userip) { - this.userip = userip == null ? null : userip.trim(); - } - - public Integer getUserport() { - return userport; - } - - public void setUserport(Integer userport) { - this.userport = userport; - } - - public String getUserprot() { - return userprot; - } - - public void setUserprot(String userprot) { - this.userprot = userprot == null ? null : userprot.trim(); - } - - public String getPeriod() { - return period; - } - - public void setPeriod(String period) { - this.period = period == null ? null : period.trim(); - } - - public String getCperiod() { - return cperiod; - } - - public void setCperiod(String cperiod) { - this.cperiod = cperiod == null ? null : cperiod.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - username("username", "username", "VARCHAR", false), - userip("userip", "userip", "VARCHAR", false), - userport("userport", "userport", "INTEGER", false), - userprot("userprot", "userprot", "VARCHAR", false), - period("period", "period", "VARCHAR", false), - cperiod("cperiod", "cperiod", "VARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_company - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java b/src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java deleted file mode 100644 index ca4aa66..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnenetCompanyExample.java +++ /dev/null @@ -1,670 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class OnenetCompanyExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OnenetCompanyExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("username is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("username is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("username =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("username <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("username >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("username >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("username <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("username <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("username like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("username not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("username in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("username not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("username between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("username not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUseripIsNull() { - addCriterion("userip is null"); - return (Criteria) this; - } - - public Criteria andUseripIsNotNull() { - addCriterion("userip is not null"); - return (Criteria) this; - } - - public Criteria andUseripEqualTo(String value) { - addCriterion("userip =", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotEqualTo(String value) { - addCriterion("userip <>", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripGreaterThan(String value) { - addCriterion("userip >", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripGreaterThanOrEqualTo(String value) { - addCriterion("userip >=", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripLessThan(String value) { - addCriterion("userip <", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripLessThanOrEqualTo(String value) { - addCriterion("userip <=", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripLike(String value) { - addCriterion("userip like", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotLike(String value) { - addCriterion("userip not like", value, "userip"); - return (Criteria) this; - } - - public Criteria andUseripIn(List values) { - addCriterion("userip in", values, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotIn(List values) { - addCriterion("userip not in", values, "userip"); - return (Criteria) this; - } - - public Criteria andUseripBetween(String value1, String value2) { - addCriterion("userip between", value1, value2, "userip"); - return (Criteria) this; - } - - public Criteria andUseripNotBetween(String value1, String value2) { - addCriterion("userip not between", value1, value2, "userip"); - return (Criteria) this; - } - - public Criteria andUserportIsNull() { - addCriterion("userport is null"); - return (Criteria) this; - } - - public Criteria andUserportIsNotNull() { - addCriterion("userport is not null"); - return (Criteria) this; - } - - public Criteria andUserportEqualTo(Integer value) { - addCriterion("userport =", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportNotEqualTo(Integer value) { - addCriterion("userport <>", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportGreaterThan(Integer value) { - addCriterion("userport >", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportGreaterThanOrEqualTo(Integer value) { - addCriterion("userport >=", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportLessThan(Integer value) { - addCriterion("userport <", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportLessThanOrEqualTo(Integer value) { - addCriterion("userport <=", value, "userport"); - return (Criteria) this; - } - - public Criteria andUserportIn(List values) { - addCriterion("userport in", values, "userport"); - return (Criteria) this; - } - - public Criteria andUserportNotIn(List values) { - addCriterion("userport not in", values, "userport"); - return (Criteria) this; - } - - public Criteria andUserportBetween(Integer value1, Integer value2) { - addCriterion("userport between", value1, value2, "userport"); - return (Criteria) this; - } - - public Criteria andUserportNotBetween(Integer value1, Integer value2) { - addCriterion("userport not between", value1, value2, "userport"); - return (Criteria) this; - } - - public Criteria andUserprotIsNull() { - addCriterion("userprot is null"); - return (Criteria) this; - } - - public Criteria andUserprotIsNotNull() { - addCriterion("userprot is not null"); - return (Criteria) this; - } - - public Criteria andUserprotEqualTo(String value) { - addCriterion("userprot =", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotEqualTo(String value) { - addCriterion("userprot <>", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotGreaterThan(String value) { - addCriterion("userprot >", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotGreaterThanOrEqualTo(String value) { - addCriterion("userprot >=", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotLessThan(String value) { - addCriterion("userprot <", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotLessThanOrEqualTo(String value) { - addCriterion("userprot <=", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotLike(String value) { - addCriterion("userprot like", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotLike(String value) { - addCriterion("userprot not like", value, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotIn(List values) { - addCriterion("userprot in", values, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotIn(List values) { - addCriterion("userprot not in", values, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotBetween(String value1, String value2) { - addCriterion("userprot between", value1, value2, "userprot"); - return (Criteria) this; - } - - public Criteria andUserprotNotBetween(String value1, String value2) { - addCriterion("userprot not between", value1, value2, "userprot"); - return (Criteria) this; - } - - public Criteria andPeriodIsNull() { - addCriterion("period is null"); - return (Criteria) this; - } - - public Criteria andPeriodIsNotNull() { - addCriterion("period is not null"); - return (Criteria) this; - } - - public Criteria andPeriodEqualTo(String value) { - addCriterion("period =", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotEqualTo(String value) { - addCriterion("period <>", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThan(String value) { - addCriterion("period >", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThanOrEqualTo(String value) { - addCriterion("period >=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThan(String value) { - addCriterion("period <", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThanOrEqualTo(String value) { - addCriterion("period <=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLike(String value) { - addCriterion("period like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotLike(String value) { - addCriterion("period not like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodIn(List values) { - addCriterion("period in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotIn(List values) { - addCriterion("period not in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodBetween(String value1, String value2) { - addCriterion("period between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotBetween(String value1, String value2) { - addCriterion("period not between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andCperiodIsNull() { - addCriterion("cperiod is null"); - return (Criteria) this; - } - - public Criteria andCperiodIsNotNull() { - addCriterion("cperiod is not null"); - return (Criteria) this; - } - - public Criteria andCperiodEqualTo(String value) { - addCriterion("cperiod =", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotEqualTo(String value) { - addCriterion("cperiod <>", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodGreaterThan(String value) { - addCriterion("cperiod >", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodGreaterThanOrEqualTo(String value) { - addCriterion("cperiod >=", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodLessThan(String value) { - addCriterion("cperiod <", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodLessThanOrEqualTo(String value) { - addCriterion("cperiod <=", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodLike(String value) { - addCriterion("cperiod like", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotLike(String value) { - addCriterion("cperiod not like", value, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodIn(List values) { - addCriterion("cperiod in", values, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotIn(List values) { - addCriterion("cperiod not in", values, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodBetween(String value1, String value2) { - addCriterion("cperiod between", value1, value2, "cperiod"); - return (Criteria) this; - } - - public Criteria andCperiodNotBetween(String value1, String value2) { - addCriterion("cperiod not between", value1, value2, "cperiod"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java b/src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java deleted file mode 100644 index 72c5cb4..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnenetDevice.java +++ /dev/null @@ -1,312 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class OnenetDevice { - private Integer id; - - private String verifycode; - - private String deviceid; - - private String devicetype; - - private String username; - - private Double latitude; - - private Double longitude; - - private String type; - - private String period; - - private String imei; - - private Integer dperiod; - - private Integer companyId; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getVerifycode() { - return verifycode; - } - - public void setVerifycode(String verifycode) { - this.verifycode = verifycode == null ? null : verifycode.trim(); - } - - public String getDeviceid() { - return deviceid; - } - - public void setDeviceid(String deviceid) { - this.deviceid = deviceid == null ? null : deviceid.trim(); - } - - public String getDevicetype() { - return devicetype; - } - - public void setDevicetype(String devicetype) { - this.devicetype = devicetype == null ? null : devicetype.trim(); - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public Double getLatitude() { - return latitude; - } - - public void setLatitude(Double latitude) { - this.latitude = latitude; - } - - public Double getLongitude() { - return longitude; - } - - public void setLongitude(Double longitude) { - this.longitude = longitude; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type == null ? null : type.trim(); - } - - public String getPeriod() { - return period; - } - - public void setPeriod(String period) { - this.period = period == null ? null : period.trim(); - } - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public Integer getDperiod() { - return dperiod; - } - - public void setDperiod(Integer dperiod) { - this.dperiod = dperiod; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - verifycode("verifyCode", "verifycode", "VARCHAR", false), - deviceid("deviceId", "deviceid", "VARCHAR", false), - devicetype("deviceType", "devicetype", "VARCHAR", false), - username("userName", "username", "VARCHAR", false), - latitude("latitude", "latitude", "DOUBLE", false), - longitude("longitude", "longitude", "DOUBLE", false), - type("type", "type", "VARCHAR", false), - period("period", "period", "VARCHAR", false), - imei("imei", "imei", "VARCHAR", false), - dperiod("dperiod", "dperiod", "INTEGER", false), - companyId("company_id", "companyId", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table onenet_device - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java b/src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java deleted file mode 100644 index 1b5e63f..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnenetDeviceExample.java +++ /dev/null @@ -1,990 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class OnenetDeviceExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OnenetDeviceExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andVerifycodeIsNull() { - addCriterion("verifyCode is null"); - return (Criteria) this; - } - - public Criteria andVerifycodeIsNotNull() { - addCriterion("verifyCode is not null"); - return (Criteria) this; - } - - public Criteria andVerifycodeEqualTo(String value) { - addCriterion("verifyCode =", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotEqualTo(String value) { - addCriterion("verifyCode <>", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeGreaterThan(String value) { - addCriterion("verifyCode >", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeGreaterThanOrEqualTo(String value) { - addCriterion("verifyCode >=", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeLessThan(String value) { - addCriterion("verifyCode <", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeLessThanOrEqualTo(String value) { - addCriterion("verifyCode <=", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeLike(String value) { - addCriterion("verifyCode like", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotLike(String value) { - addCriterion("verifyCode not like", value, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeIn(List values) { - addCriterion("verifyCode in", values, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotIn(List values) { - addCriterion("verifyCode not in", values, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeBetween(String value1, String value2) { - addCriterion("verifyCode between", value1, value2, "verifycode"); - return (Criteria) this; - } - - public Criteria andVerifycodeNotBetween(String value1, String value2) { - addCriterion("verifyCode not between", value1, value2, "verifycode"); - return (Criteria) this; - } - - public Criteria andDeviceidIsNull() { - addCriterion("deviceId is null"); - return (Criteria) this; - } - - public Criteria andDeviceidIsNotNull() { - addCriterion("deviceId is not null"); - return (Criteria) this; - } - - public Criteria andDeviceidEqualTo(String value) { - addCriterion("deviceId =", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidNotEqualTo(String value) { - addCriterion("deviceId <>", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidGreaterThan(String value) { - addCriterion("deviceId >", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidGreaterThanOrEqualTo(String value) { - addCriterion("deviceId >=", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidLessThan(String value) { - addCriterion("deviceId <", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidLessThanOrEqualTo(String value) { - addCriterion("deviceId <=", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidLike(String value) { - addCriterion("deviceId like", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidNotLike(String value) { - addCriterion("deviceId not like", value, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidIn(List values) { - addCriterion("deviceId in", values, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidNotIn(List values) { - addCriterion("deviceId not in", values, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidBetween(String value1, String value2) { - addCriterion("deviceId between", value1, value2, "deviceid"); - return (Criteria) this; - } - - public Criteria andDeviceidNotBetween(String value1, String value2) { - addCriterion("deviceId not between", value1, value2, "deviceid"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNull() { - addCriterion("deviceType is null"); - return (Criteria) this; - } - - public Criteria andDevicetypeIsNotNull() { - addCriterion("deviceType is not null"); - return (Criteria) this; - } - - public Criteria andDevicetypeEqualTo(String value) { - addCriterion("deviceType =", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotEqualTo(String value) { - addCriterion("deviceType <>", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThan(String value) { - addCriterion("deviceType >", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeGreaterThanOrEqualTo(String value) { - addCriterion("deviceType >=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThan(String value) { - addCriterion("deviceType <", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLessThanOrEqualTo(String value) { - addCriterion("deviceType <=", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeLike(String value) { - addCriterion("deviceType like", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotLike(String value) { - addCriterion("deviceType not like", value, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeIn(List values) { - addCriterion("deviceType in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotIn(List values) { - addCriterion("deviceType not in", values, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeBetween(String value1, String value2) { - addCriterion("deviceType between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andDevicetypeNotBetween(String value1, String value2) { - addCriterion("deviceType not between", value1, value2, "devicetype"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andLatitudeIsNull() { - addCriterion("latitude is null"); - return (Criteria) this; - } - - public Criteria andLatitudeIsNotNull() { - addCriterion("latitude is not null"); - return (Criteria) this; - } - - public Criteria andLatitudeEqualTo(Double value) { - addCriterion("latitude =", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotEqualTo(Double value) { - addCriterion("latitude <>", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeGreaterThan(Double value) { - addCriterion("latitude >", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeGreaterThanOrEqualTo(Double value) { - addCriterion("latitude >=", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeLessThan(Double value) { - addCriterion("latitude <", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeLessThanOrEqualTo(Double value) { - addCriterion("latitude <=", value, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeIn(List values) { - addCriterion("latitude in", values, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotIn(List values) { - addCriterion("latitude not in", values, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeBetween(Double value1, Double value2) { - addCriterion("latitude between", value1, value2, "latitude"); - return (Criteria) this; - } - - public Criteria andLatitudeNotBetween(Double value1, Double value2) { - addCriterion("latitude not between", value1, value2, "latitude"); - return (Criteria) this; - } - - public Criteria andLongitudeIsNull() { - addCriterion("longitude is null"); - return (Criteria) this; - } - - public Criteria andLongitudeIsNotNull() { - addCriterion("longitude is not null"); - return (Criteria) this; - } - - public Criteria andLongitudeEqualTo(Double value) { - addCriterion("longitude =", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotEqualTo(Double value) { - addCriterion("longitude <>", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeGreaterThan(Double value) { - addCriterion("longitude >", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeGreaterThanOrEqualTo(Double value) { - addCriterion("longitude >=", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeLessThan(Double value) { - addCriterion("longitude <", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeLessThanOrEqualTo(Double value) { - addCriterion("longitude <=", value, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeIn(List values) { - addCriterion("longitude in", values, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotIn(List values) { - addCriterion("longitude not in", values, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeBetween(Double value1, Double value2) { - addCriterion("longitude between", value1, value2, "longitude"); - return (Criteria) this; - } - - public Criteria andLongitudeNotBetween(Double value1, Double value2) { - addCriterion("longitude not between", value1, value2, "longitude"); - return (Criteria) this; - } - - public Criteria andTypeIsNull() { - addCriterion("type is null"); - return (Criteria) this; - } - - public Criteria andTypeIsNotNull() { - addCriterion("type is not null"); - return (Criteria) this; - } - - public Criteria andTypeEqualTo(String value) { - addCriterion("type =", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotEqualTo(String value) { - addCriterion("type <>", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThan(String value) { - addCriterion("type >", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("type >=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThan(String value) { - addCriterion("type <", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("type <=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLike(String value) { - addCriterion("type like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotLike(String value) { - addCriterion("type not like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeIn(List values) { - addCriterion("type in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotIn(List values) { - addCriterion("type not in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeBetween(String value1, String value2) { - addCriterion("type between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("type not between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andPeriodIsNull() { - addCriterion("period is null"); - return (Criteria) this; - } - - public Criteria andPeriodIsNotNull() { - addCriterion("period is not null"); - return (Criteria) this; - } - - public Criteria andPeriodEqualTo(String value) { - addCriterion("period =", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotEqualTo(String value) { - addCriterion("period <>", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThan(String value) { - addCriterion("period >", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThanOrEqualTo(String value) { - addCriterion("period >=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThan(String value) { - addCriterion("period <", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThanOrEqualTo(String value) { - addCriterion("period <=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLike(String value) { - addCriterion("period like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotLike(String value) { - addCriterion("period not like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodIn(List values) { - addCriterion("period in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotIn(List values) { - addCriterion("period not in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodBetween(String value1, String value2) { - addCriterion("period between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotBetween(String value1, String value2) { - addCriterion("period not between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andImeiIsNull() { - addCriterion("imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andDperiodIsNull() { - addCriterion("dperiod is null"); - return (Criteria) this; - } - - public Criteria andDperiodIsNotNull() { - addCriterion("dperiod is not null"); - return (Criteria) this; - } - - public Criteria andDperiodEqualTo(Integer value) { - addCriterion("dperiod =", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotEqualTo(Integer value) { - addCriterion("dperiod <>", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodGreaterThan(Integer value) { - addCriterion("dperiod >", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { - addCriterion("dperiod >=", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodLessThan(Integer value) { - addCriterion("dperiod <", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodLessThanOrEqualTo(Integer value) { - addCriterion("dperiod <=", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodIn(List values) { - addCriterion("dperiod in", values, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotIn(List values) { - addCriterion("dperiod not in", values, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodBetween(Integer value1, Integer value2) { - addCriterion("dperiod between", value1, value2, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotBetween(Integer value1, Integer value2) { - addCriterion("dperiod not between", value1, value2, "dperiod"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineProject.java b/src/main/java/com/topsail/influxdb/pojo/OnlineProject.java deleted file mode 100644 index ef50167..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnlineProject.java +++ /dev/null @@ -1,224 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class OnlineProject { - private Long num; - - private Integer projectId; - - private Integer companyId; - - private Integer status; - - public Long getNum() { - return num; - } - - public void setNum(Long num) { - this.num = num; - } - - public Integer getProjectId() { - return projectId; - } - - public void setProjectId(Integer projectId) { - this.projectId = projectId; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - num("num", "num", "BIGINT", false), - projectId("project_id", "projectId", "INTEGER", false), - companyId("company_id", "companyId", "INTEGER", false), - status("STATUS", "status", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java b/src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java deleted file mode 100644 index f574d8e..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnlineProjectExample.java +++ /dev/null @@ -1,440 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class OnlineProjectExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OnlineProjectExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andNumIsNull() { - addCriterion("num is null"); - return (Criteria) this; - } - - public Criteria andNumIsNotNull() { - addCriterion("num is not null"); - return (Criteria) this; - } - - public Criteria andNumEqualTo(Long value) { - addCriterion("num =", value, "num"); - return (Criteria) this; - } - - public Criteria andNumNotEqualTo(Long value) { - addCriterion("num <>", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThan(Long value) { - addCriterion("num >", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThanOrEqualTo(Long value) { - addCriterion("num >=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThan(Long value) { - addCriterion("num <", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThanOrEqualTo(Long value) { - addCriterion("num <=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumIn(List values) { - addCriterion("num in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumNotIn(List values) { - addCriterion("num not in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumBetween(Long value1, Long value2) { - addCriterion("num between", value1, value2, "num"); - return (Criteria) this; - } - - public Criteria andNumNotBetween(Long value1, Long value2) { - addCriterion("num not between", value1, value2, "num"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNull() { - addCriterion("project_id is null"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNotNull() { - addCriterion("project_id is not null"); - return (Criteria) this; - } - - public Criteria andProjectIdEqualTo(Integer value) { - addCriterion("project_id =", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotEqualTo(Integer value) { - addCriterion("project_id <>", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThan(Integer value) { - addCriterion("project_id >", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { - addCriterion("project_id >=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThan(Integer value) { - addCriterion("project_id <", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThanOrEqualTo(Integer value) { - addCriterion("project_id <=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdIn(List values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List values) { - addCriterion("project_id not in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdBetween(Integer value1, Integer value2) { - addCriterion("project_id between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { - addCriterion("project_id not between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andStatusIsNull() { - addCriterion("STATUS is null"); - return (Criteria) this; - } - - public Criteria andStatusIsNotNull() { - addCriterion("STATUS is not null"); - return (Criteria) this; - } - - public Criteria andStatusEqualTo(Integer value) { - addCriterion("STATUS =", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotEqualTo(Integer value) { - addCriterion("STATUS <>", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThan(Integer value) { - addCriterion("STATUS >", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThanOrEqualTo(Integer value) { - addCriterion("STATUS >=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThan(Integer value) { - addCriterion("STATUS <", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThanOrEqualTo(Integer value) { - addCriterion("STATUS <=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusIn(List values) { - addCriterion("STATUS in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotIn(List values) { - addCriterion("STATUS not in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusBetween(Integer value1, Integer value2) { - addCriterion("STATUS between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotBetween(Integer value1, Integer value2) { - addCriterion("STATUS not between", value1, value2, "status"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineRate.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRate.java deleted file mode 100644 index b5596db..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnlineRate.java +++ /dev/null @@ -1,280 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class OnlineRate { - private Integer id; - - private Integer online; - - private Integer count; - - private Double per; - - private String platformtype; - - private Date time; - - private String username; - - private Integer projectId; - - private Integer companyId; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getOnline() { - return online; - } - - public void setOnline(Integer online) { - this.online = online; - } - - public Integer getCount() { - return count; - } - - public void setCount(Integer count) { - this.count = count; - } - - public Double getPer() { - return per; - } - - public void setPer(Double per) { - this.per = per; - } - - public String getPlatformtype() { - return platformtype; - } - - public void setPlatformtype(String platformtype) { - this.platformtype = platformtype == null ? null : platformtype.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getUsername() { - return username; - } - - public void setUsername(String username) { - this.username = username == null ? null : username.trim(); - } - - public Integer getProjectId() { - return projectId; - } - - public void setProjectId(Integer projectId) { - this.projectId = projectId; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - online("online", "online", "INTEGER", false), - count("count", "count", "INTEGER", false), - per("per", "per", "DOUBLE", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - username("userName", "username", "VARCHAR", false), - projectId("project_id", "projectId", "INTEGER", false), - companyId("company_id", "companyId", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java deleted file mode 100644 index 8a7d3b1..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnlineRateExample.java +++ /dev/null @@ -1,761 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class OnlineRateExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OnlineRateExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andOnlineIsNull() { - addCriterion("online is null"); - return (Criteria) this; - } - - public Criteria andOnlineIsNotNull() { - addCriterion("online is not null"); - return (Criteria) this; - } - - public Criteria andOnlineEqualTo(Integer value) { - addCriterion("online =", value, "online"); - return (Criteria) this; - } - - public Criteria andOnlineNotEqualTo(Integer value) { - addCriterion("online <>", value, "online"); - return (Criteria) this; - } - - public Criteria andOnlineGreaterThan(Integer value) { - addCriterion("online >", value, "online"); - return (Criteria) this; - } - - public Criteria andOnlineGreaterThanOrEqualTo(Integer value) { - addCriterion("online >=", value, "online"); - return (Criteria) this; - } - - public Criteria andOnlineLessThan(Integer value) { - addCriterion("online <", value, "online"); - return (Criteria) this; - } - - public Criteria andOnlineLessThanOrEqualTo(Integer value) { - addCriterion("online <=", value, "online"); - return (Criteria) this; - } - - public Criteria andOnlineIn(List values) { - addCriterion("online in", values, "online"); - return (Criteria) this; - } - - public Criteria andOnlineNotIn(List values) { - addCriterion("online not in", values, "online"); - return (Criteria) this; - } - - public Criteria andOnlineBetween(Integer value1, Integer value2) { - addCriterion("online between", value1, value2, "online"); - return (Criteria) this; - } - - public Criteria andOnlineNotBetween(Integer value1, Integer value2) { - addCriterion("online not between", value1, value2, "online"); - return (Criteria) this; - } - - public Criteria andCountIsNull() { - addCriterion("count is null"); - return (Criteria) this; - } - - public Criteria andCountIsNotNull() { - addCriterion("count is not null"); - return (Criteria) this; - } - - public Criteria andCountEqualTo(Integer value) { - addCriterion("count =", value, "count"); - return (Criteria) this; - } - - public Criteria andCountNotEqualTo(Integer value) { - addCriterion("count <>", value, "count"); - return (Criteria) this; - } - - public Criteria andCountGreaterThan(Integer value) { - addCriterion("count >", value, "count"); - return (Criteria) this; - } - - public Criteria andCountGreaterThanOrEqualTo(Integer value) { - addCriterion("count >=", value, "count"); - return (Criteria) this; - } - - public Criteria andCountLessThan(Integer value) { - addCriterion("count <", value, "count"); - return (Criteria) this; - } - - public Criteria andCountLessThanOrEqualTo(Integer value) { - addCriterion("count <=", value, "count"); - return (Criteria) this; - } - - public Criteria andCountIn(List values) { - addCriterion("count in", values, "count"); - return (Criteria) this; - } - - public Criteria andCountNotIn(List values) { - addCriterion("count not in", values, "count"); - return (Criteria) this; - } - - public Criteria andCountBetween(Integer value1, Integer value2) { - addCriterion("count between", value1, value2, "count"); - return (Criteria) this; - } - - public Criteria andCountNotBetween(Integer value1, Integer value2) { - addCriterion("count not between", value1, value2, "count"); - return (Criteria) this; - } - - public Criteria andPerIsNull() { - addCriterion("per is null"); - return (Criteria) this; - } - - public Criteria andPerIsNotNull() { - addCriterion("per is not null"); - return (Criteria) this; - } - - public Criteria andPerEqualTo(Double value) { - addCriterion("per =", value, "per"); - return (Criteria) this; - } - - public Criteria andPerNotEqualTo(Double value) { - addCriterion("per <>", value, "per"); - return (Criteria) this; - } - - public Criteria andPerGreaterThan(Double value) { - addCriterion("per >", value, "per"); - return (Criteria) this; - } - - public Criteria andPerGreaterThanOrEqualTo(Double value) { - addCriterion("per >=", value, "per"); - return (Criteria) this; - } - - public Criteria andPerLessThan(Double value) { - addCriterion("per <", value, "per"); - return (Criteria) this; - } - - public Criteria andPerLessThanOrEqualTo(Double value) { - addCriterion("per <=", value, "per"); - return (Criteria) this; - } - - public Criteria andPerIn(List values) { - addCriterion("per in", values, "per"); - return (Criteria) this; - } - - public Criteria andPerNotIn(List values) { - addCriterion("per not in", values, "per"); - return (Criteria) this; - } - - public Criteria andPerBetween(Double value1, Double value2) { - addCriterion("per between", value1, value2, "per"); - return (Criteria) this; - } - - public Criteria andPerNotBetween(Double value1, Double value2) { - addCriterion("per not between", value1, value2, "per"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNull() { - addCriterion("platformType is null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNotNull() { - addCriterion("platformType is not null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeEqualTo(String value) { - addCriterion("platformType =", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotEqualTo(String value) { - addCriterion("platformType <>", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThan(String value) { - addCriterion("platformType >", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { - addCriterion("platformType >=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThan(String value) { - addCriterion("platformType <", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThanOrEqualTo(String value) { - addCriterion("platformType <=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLike(String value) { - addCriterion("platformType like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotLike(String value) { - addCriterion("platformType not like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIn(List values) { - addCriterion("platformType in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotIn(List values) { - addCriterion("platformType not in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeBetween(String value1, String value2) { - addCriterion("platformType between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotBetween(String value1, String value2) { - addCriterion("platformType not between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andUsernameIsNull() { - addCriterion("userName is null"); - return (Criteria) this; - } - - public Criteria andUsernameIsNotNull() { - addCriterion("userName is not null"); - return (Criteria) this; - } - - public Criteria andUsernameEqualTo(String value) { - addCriterion("userName =", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotEqualTo(String value) { - addCriterion("userName <>", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThan(String value) { - addCriterion("userName >", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameGreaterThanOrEqualTo(String value) { - addCriterion("userName >=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThan(String value) { - addCriterion("userName <", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLessThanOrEqualTo(String value) { - addCriterion("userName <=", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameLike(String value) { - addCriterion("userName like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotLike(String value) { - addCriterion("userName not like", value, "username"); - return (Criteria) this; - } - - public Criteria andUsernameIn(List values) { - addCriterion("userName in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotIn(List values) { - addCriterion("userName not in", values, "username"); - return (Criteria) this; - } - - public Criteria andUsernameBetween(String value1, String value2) { - addCriterion("userName between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andUsernameNotBetween(String value1, String value2) { - addCriterion("userName not between", value1, value2, "username"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNull() { - addCriterion("project_id is null"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNotNull() { - addCriterion("project_id is not null"); - return (Criteria) this; - } - - public Criteria andProjectIdEqualTo(Integer value) { - addCriterion("project_id =", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotEqualTo(Integer value) { - addCriterion("project_id <>", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThan(Integer value) { - addCriterion("project_id >", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { - addCriterion("project_id >=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThan(Integer value) { - addCriterion("project_id <", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThanOrEqualTo(Integer value) { - addCriterion("project_id <=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdIn(List values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List values) { - addCriterion("project_id not in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdBetween(Integer value1, Integer value2) { - addCriterion("project_id between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { - addCriterion("project_id not between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java deleted file mode 100644 index 0f1833e..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnlineRateView.java +++ /dev/null @@ -1,214 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class OnlineRateView { - private Integer projectId; - - private Date time; - - private Long num; - - public Integer getProjectId() { - return projectId; - } - - public void setProjectId(Integer projectId) { - this.projectId = projectId; - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public Long getNum() { - return num; - } - - public void setNum(Long num) { - this.num = num; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - projectId("project_id", "projectId", "INTEGER", false), - time("time", "time", "TIMESTAMP", false), - num("num", "num", "BIGINT", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table online_rate_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java b/src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java deleted file mode 100644 index d70c588..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/OnlineRateViewExample.java +++ /dev/null @@ -1,381 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class OnlineRateViewExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public OnlineRateViewExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andProjectIdIsNull() { - addCriterion("project_id is null"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNotNull() { - addCriterion("project_id is not null"); - return (Criteria) this; - } - - public Criteria andProjectIdEqualTo(Integer value) { - addCriterion("project_id =", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotEqualTo(Integer value) { - addCriterion("project_id <>", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThan(Integer value) { - addCriterion("project_id >", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { - addCriterion("project_id >=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThan(Integer value) { - addCriterion("project_id <", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThanOrEqualTo(Integer value) { - addCriterion("project_id <=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdIn(List values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List values) { - addCriterion("project_id not in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdBetween(Integer value1, Integer value2) { - addCriterion("project_id between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { - addCriterion("project_id not between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andNumIsNull() { - addCriterion("num is null"); - return (Criteria) this; - } - - public Criteria andNumIsNotNull() { - addCriterion("num is not null"); - return (Criteria) this; - } - - public Criteria andNumEqualTo(Long value) { - addCriterion("num =", value, "num"); - return (Criteria) this; - } - - public Criteria andNumNotEqualTo(Long value) { - addCriterion("num <>", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThan(Long value) { - addCriterion("num >", value, "num"); - return (Criteria) this; - } - - public Criteria andNumGreaterThanOrEqualTo(Long value) { - addCriterion("num >=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThan(Long value) { - addCriterion("num <", value, "num"); - return (Criteria) this; - } - - public Criteria andNumLessThanOrEqualTo(Long value) { - addCriterion("num <=", value, "num"); - return (Criteria) this; - } - - public Criteria andNumIn(List values) { - addCriterion("num in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumNotIn(List values) { - addCriterion("num not in", values, "num"); - return (Criteria) this; - } - - public Criteria andNumBetween(Long value1, Long value2) { - addCriterion("num between", value1, value2, "num"); - return (Criteria) this; - } - - public Criteria andNumNotBetween(Long value1, Long value2) { - addCriterion("num not between", value1, value2, "num"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/Project.java b/src/main/java/com/topsail/influxdb/pojo/Project.java deleted file mode 100644 index 17a71fe..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/Project.java +++ /dev/null @@ -1,291 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class Project { - private Integer id; - - private String name; - - private String platformtype; - - private String descr; - - private String ip; - - private String port; - - private String protocol; - - private Integer orderId; - - private Integer companyId; - - private Date time; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name == null ? null : name.trim(); - } - - public String getPlatformtype() { - return platformtype; - } - - public void setPlatformtype(String platformtype) { - this.platformtype = platformtype == null ? null : platformtype.trim(); - } - - public String getDescr() { - return descr; - } - - public void setDescr(String descr) { - this.descr = descr == null ? null : descr.trim(); - } - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip == null ? null : ip.trim(); - } - - public String getPort() { - return port; - } - - public void setPort(String port) { - this.port = port == null ? null : port.trim(); - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol == null ? null : protocol.trim(); - } - - public Integer getOrderId() { - return orderId; - } - - public void setOrderId(Integer orderId) { - this.orderId = orderId; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - name("name", "name", "VARCHAR", false), - platformtype("platformType", "platformtype", "VARCHAR", false), - descr("descr", "descr", "VARCHAR", false), - ip("ip", "ip", "VARCHAR", false), - port("port", "port", "VARCHAR", false), - protocol("protocol", "protocol", "VARCHAR", false), - orderId("order_id", "orderId", "INTEGER", false), - companyId("company_id", "companyId", "INTEGER", false), - time("time", "time", "TIMESTAMP", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ProjectExample.java b/src/main/java/com/topsail/influxdb/pojo/ProjectExample.java deleted file mode 100644 index 7234686..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/ProjectExample.java +++ /dev/null @@ -1,861 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class ProjectExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public ProjectExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andNameIsNull() { - addCriterion("name is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("name is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("name =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("name <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("name >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("name >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("name <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("name <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("name like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("name not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("name in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("name not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("name between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("name not between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNull() { - addCriterion("platformType is null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIsNotNull() { - addCriterion("platformType is not null"); - return (Criteria) this; - } - - public Criteria andPlatformtypeEqualTo(String value) { - addCriterion("platformType =", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotEqualTo(String value) { - addCriterion("platformType <>", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThan(String value) { - addCriterion("platformType >", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeGreaterThanOrEqualTo(String value) { - addCriterion("platformType >=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThan(String value) { - addCriterion("platformType <", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLessThanOrEqualTo(String value) { - addCriterion("platformType <=", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeLike(String value) { - addCriterion("platformType like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotLike(String value) { - addCriterion("platformType not like", value, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeIn(List values) { - addCriterion("platformType in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotIn(List values) { - addCriterion("platformType not in", values, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeBetween(String value1, String value2) { - addCriterion("platformType between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andPlatformtypeNotBetween(String value1, String value2) { - addCriterion("platformType not between", value1, value2, "platformtype"); - return (Criteria) this; - } - - public Criteria andDescrIsNull() { - addCriterion("descr is null"); - return (Criteria) this; - } - - public Criteria andDescrIsNotNull() { - addCriterion("descr is not null"); - return (Criteria) this; - } - - public Criteria andDescrEqualTo(String value) { - addCriterion("descr =", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrNotEqualTo(String value) { - addCriterion("descr <>", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrGreaterThan(String value) { - addCriterion("descr >", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrGreaterThanOrEqualTo(String value) { - addCriterion("descr >=", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrLessThan(String value) { - addCriterion("descr <", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrLessThanOrEqualTo(String value) { - addCriterion("descr <=", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrLike(String value) { - addCriterion("descr like", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrNotLike(String value) { - addCriterion("descr not like", value, "descr"); - return (Criteria) this; - } - - public Criteria andDescrIn(List values) { - addCriterion("descr in", values, "descr"); - return (Criteria) this; - } - - public Criteria andDescrNotIn(List values) { - addCriterion("descr not in", values, "descr"); - return (Criteria) this; - } - - public Criteria andDescrBetween(String value1, String value2) { - addCriterion("descr between", value1, value2, "descr"); - return (Criteria) this; - } - - public Criteria andDescrNotBetween(String value1, String value2) { - addCriterion("descr not between", value1, value2, "descr"); - return (Criteria) this; - } - - public Criteria andIpIsNull() { - addCriterion("ip is null"); - return (Criteria) this; - } - - public Criteria andIpIsNotNull() { - addCriterion("ip is not null"); - return (Criteria) this; - } - - public Criteria andIpEqualTo(String value) { - addCriterion("ip =", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotEqualTo(String value) { - addCriterion("ip <>", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThan(String value) { - addCriterion("ip >", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThanOrEqualTo(String value) { - addCriterion("ip >=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThan(String value) { - addCriterion("ip <", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThanOrEqualTo(String value) { - addCriterion("ip <=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLike(String value) { - addCriterion("ip like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotLike(String value) { - addCriterion("ip not like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpIn(List values) { - addCriterion("ip in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotIn(List values) { - addCriterion("ip not in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpBetween(String value1, String value2) { - addCriterion("ip between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotBetween(String value1, String value2) { - addCriterion("ip not between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andPortIsNull() { - addCriterion("port is null"); - return (Criteria) this; - } - - public Criteria andPortIsNotNull() { - addCriterion("port is not null"); - return (Criteria) this; - } - - public Criteria andPortEqualTo(String value) { - addCriterion("port =", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotEqualTo(String value) { - addCriterion("port <>", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThan(String value) { - addCriterion("port >", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThanOrEqualTo(String value) { - addCriterion("port >=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThan(String value) { - addCriterion("port <", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThanOrEqualTo(String value) { - addCriterion("port <=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLike(String value) { - addCriterion("port like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotLike(String value) { - addCriterion("port not like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortIn(List values) { - addCriterion("port in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortNotIn(List values) { - addCriterion("port not in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortBetween(String value1, String value2) { - addCriterion("port between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andPortNotBetween(String value1, String value2) { - addCriterion("port not between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andProtocolIsNull() { - addCriterion("protocol is null"); - return (Criteria) this; - } - - public Criteria andProtocolIsNotNull() { - addCriterion("protocol is not null"); - return (Criteria) this; - } - - public Criteria andProtocolEqualTo(String value) { - addCriterion("protocol =", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotEqualTo(String value) { - addCriterion("protocol <>", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolGreaterThan(String value) { - addCriterion("protocol >", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolGreaterThanOrEqualTo(String value) { - addCriterion("protocol >=", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolLessThan(String value) { - addCriterion("protocol <", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolLessThanOrEqualTo(String value) { - addCriterion("protocol <=", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolLike(String value) { - addCriterion("protocol like", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotLike(String value) { - addCriterion("protocol not like", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolIn(List values) { - addCriterion("protocol in", values, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotIn(List values) { - addCriterion("protocol not in", values, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolBetween(String value1, String value2) { - addCriterion("protocol between", value1, value2, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotBetween(String value1, String value2) { - addCriterion("protocol not between", value1, value2, "protocol"); - return (Criteria) this; - } - - public Criteria andOrderIdIsNull() { - addCriterion("order_id is null"); - return (Criteria) this; - } - - public Criteria andOrderIdIsNotNull() { - addCriterion("order_id is not null"); - return (Criteria) this; - } - - public Criteria andOrderIdEqualTo(Integer value) { - addCriterion("order_id =", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdNotEqualTo(Integer value) { - addCriterion("order_id <>", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdGreaterThan(Integer value) { - addCriterion("order_id >", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdGreaterThanOrEqualTo(Integer value) { - addCriterion("order_id >=", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdLessThan(Integer value) { - addCriterion("order_id <", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdLessThanOrEqualTo(Integer value) { - addCriterion("order_id <=", value, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdIn(List values) { - addCriterion("order_id in", values, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdNotIn(List values) { - addCriterion("order_id not in", values, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdBetween(Integer value1, Integer value2) { - addCriterion("order_id between", value1, value2, "orderId"); - return (Criteria) this; - } - - public Criteria andOrderIdNotBetween(Integer value1, Integer value2) { - addCriterion("order_id not between", value1, value2, "orderId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java b/src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java deleted file mode 100644 index 6bb4587..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/ProjectTransmit.java +++ /dev/null @@ -1,335 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; -import java.util.Date; - -public class ProjectTransmit { - private Integer id; - - private Integer companyId; - - private Integer projectId; - - private String protocol; - - private String ip; - - private String port; - - private Date time; - - private String type; - - private Integer status; - - private Date updateTime; - - private Integer total; - - private Integer suc; - - private Integer err; - - private String params; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getCompanyId() { - return companyId; - } - - public void setCompanyId(Integer companyId) { - this.companyId = companyId; - } - - public Integer getProjectId() { - return projectId; - } - - public void setProjectId(Integer projectId) { - this.projectId = projectId; - } - - public String getProtocol() { - return protocol; - } - - public void setProtocol(String protocol) { - this.protocol = protocol == null ? null : protocol.trim(); - } - - public String getIp() { - return ip; - } - - public void setIp(String ip) { - this.ip = ip == null ? null : ip.trim(); - } - - public String getPort() { - return port; - } - - public void setPort(String port) { - this.port = port == null ? null : port.trim(); - } - - public Date getTime() { - return time; - } - - public void setTime(Date time) { - this.time = time; - } - - public String getType() { - return type; - } - - public void setType(String type) { - this.type = type == null ? null : type.trim(); - } - - public Integer getStatus() { - return status; - } - - public void setStatus(Integer status) { - this.status = status; - } - - public Date getUpdateTime() { - return updateTime; - } - - public void setUpdateTime(Date updateTime) { - this.updateTime = updateTime; - } - - public Integer getTotal() { - return total; - } - - public void setTotal(Integer total) { - this.total = total; - } - - public Integer getSuc() { - return suc; - } - - public void setSuc(Integer suc) { - this.suc = suc; - } - - public Integer getErr() { - return err; - } - - public void setErr(Integer err) { - this.err = err; - } - - public String getParams() { - return params; - } - - public void setParams(String params) { - this.params = params == null ? null : params.trim(); - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - companyId("company_id", "companyId", "INTEGER", false), - projectId("project_id", "projectId", "INTEGER", false), - protocol("protocol", "protocol", "VARCHAR", false), - ip("ip", "ip", "VARCHAR", false), - port("port", "port", "VARCHAR", false), - time("time", "time", "TIMESTAMP", false), - type("type", "type", "VARCHAR", false), - status("status", "status", "INTEGER", false), - updateTime("update_time", "updateTime", "TIMESTAMP", false), - total("total", "total", "INTEGER", false), - suc("suc", "suc", "INTEGER", false), - err("err", "err", "INTEGER", false), - params("params", "params", "VARCHAR", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table project_transmit - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java b/src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java deleted file mode 100644 index 309ed01..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/ProjectTransmitExample.java +++ /dev/null @@ -1,1091 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Date; -import java.util.List; - -public class ProjectTransmitExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public ProjectTransmitExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNull() { - addCriterion("company_id is null"); - return (Criteria) this; - } - - public Criteria andCompanyIdIsNotNull() { - addCriterion("company_id is not null"); - return (Criteria) this; - } - - public Criteria andCompanyIdEqualTo(Integer value) { - addCriterion("company_id =", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotEqualTo(Integer value) { - addCriterion("company_id <>", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThan(Integer value) { - addCriterion("company_id >", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdGreaterThanOrEqualTo(Integer value) { - addCriterion("company_id >=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThan(Integer value) { - addCriterion("company_id <", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdLessThanOrEqualTo(Integer value) { - addCriterion("company_id <=", value, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdIn(List values) { - addCriterion("company_id in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotIn(List values) { - addCriterion("company_id not in", values, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdBetween(Integer value1, Integer value2) { - addCriterion("company_id between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andCompanyIdNotBetween(Integer value1, Integer value2) { - addCriterion("company_id not between", value1, value2, "companyId"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNull() { - addCriterion("project_id is null"); - return (Criteria) this; - } - - public Criteria andProjectIdIsNotNull() { - addCriterion("project_id is not null"); - return (Criteria) this; - } - - public Criteria andProjectIdEqualTo(Integer value) { - addCriterion("project_id =", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotEqualTo(Integer value) { - addCriterion("project_id <>", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThan(Integer value) { - addCriterion("project_id >", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdGreaterThanOrEqualTo(Integer value) { - addCriterion("project_id >=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThan(Integer value) { - addCriterion("project_id <", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdLessThanOrEqualTo(Integer value) { - addCriterion("project_id <=", value, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdIn(List values) { - addCriterion("project_id in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotIn(List values) { - addCriterion("project_id not in", values, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdBetween(Integer value1, Integer value2) { - addCriterion("project_id between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProjectIdNotBetween(Integer value1, Integer value2) { - addCriterion("project_id not between", value1, value2, "projectId"); - return (Criteria) this; - } - - public Criteria andProtocolIsNull() { - addCriterion("protocol is null"); - return (Criteria) this; - } - - public Criteria andProtocolIsNotNull() { - addCriterion("protocol is not null"); - return (Criteria) this; - } - - public Criteria andProtocolEqualTo(String value) { - addCriterion("protocol =", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotEqualTo(String value) { - addCriterion("protocol <>", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolGreaterThan(String value) { - addCriterion("protocol >", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolGreaterThanOrEqualTo(String value) { - addCriterion("protocol >=", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolLessThan(String value) { - addCriterion("protocol <", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolLessThanOrEqualTo(String value) { - addCriterion("protocol <=", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolLike(String value) { - addCriterion("protocol like", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotLike(String value) { - addCriterion("protocol not like", value, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolIn(List values) { - addCriterion("protocol in", values, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotIn(List values) { - addCriterion("protocol not in", values, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolBetween(String value1, String value2) { - addCriterion("protocol between", value1, value2, "protocol"); - return (Criteria) this; - } - - public Criteria andProtocolNotBetween(String value1, String value2) { - addCriterion("protocol not between", value1, value2, "protocol"); - return (Criteria) this; - } - - public Criteria andIpIsNull() { - addCriterion("ip is null"); - return (Criteria) this; - } - - public Criteria andIpIsNotNull() { - addCriterion("ip is not null"); - return (Criteria) this; - } - - public Criteria andIpEqualTo(String value) { - addCriterion("ip =", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotEqualTo(String value) { - addCriterion("ip <>", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThan(String value) { - addCriterion("ip >", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpGreaterThanOrEqualTo(String value) { - addCriterion("ip >=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThan(String value) { - addCriterion("ip <", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLessThanOrEqualTo(String value) { - addCriterion("ip <=", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpLike(String value) { - addCriterion("ip like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotLike(String value) { - addCriterion("ip not like", value, "ip"); - return (Criteria) this; - } - - public Criteria andIpIn(List values) { - addCriterion("ip in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotIn(List values) { - addCriterion("ip not in", values, "ip"); - return (Criteria) this; - } - - public Criteria andIpBetween(String value1, String value2) { - addCriterion("ip between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andIpNotBetween(String value1, String value2) { - addCriterion("ip not between", value1, value2, "ip"); - return (Criteria) this; - } - - public Criteria andPortIsNull() { - addCriterion("port is null"); - return (Criteria) this; - } - - public Criteria andPortIsNotNull() { - addCriterion("port is not null"); - return (Criteria) this; - } - - public Criteria andPortEqualTo(String value) { - addCriterion("port =", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotEqualTo(String value) { - addCriterion("port <>", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThan(String value) { - addCriterion("port >", value, "port"); - return (Criteria) this; - } - - public Criteria andPortGreaterThanOrEqualTo(String value) { - addCriterion("port >=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThan(String value) { - addCriterion("port <", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLessThanOrEqualTo(String value) { - addCriterion("port <=", value, "port"); - return (Criteria) this; - } - - public Criteria andPortLike(String value) { - addCriterion("port like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortNotLike(String value) { - addCriterion("port not like", value, "port"); - return (Criteria) this; - } - - public Criteria andPortIn(List values) { - addCriterion("port in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortNotIn(List values) { - addCriterion("port not in", values, "port"); - return (Criteria) this; - } - - public Criteria andPortBetween(String value1, String value2) { - addCriterion("port between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andPortNotBetween(String value1, String value2) { - addCriterion("port not between", value1, value2, "port"); - return (Criteria) this; - } - - public Criteria andTimeIsNull() { - addCriterion("time is null"); - return (Criteria) this; - } - - public Criteria andTimeIsNotNull() { - addCriterion("time is not null"); - return (Criteria) this; - } - - public Criteria andTimeEqualTo(Date value) { - addCriterion("time =", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotEqualTo(Date value) { - addCriterion("time <>", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThan(Date value) { - addCriterion("time >", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeGreaterThanOrEqualTo(Date value) { - addCriterion("time >=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThan(Date value) { - addCriterion("time <", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeLessThanOrEqualTo(Date value) { - addCriterion("time <=", value, "time"); - return (Criteria) this; - } - - public Criteria andTimeIn(List values) { - addCriterion("time in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotIn(List values) { - addCriterion("time not in", values, "time"); - return (Criteria) this; - } - - public Criteria andTimeBetween(Date value1, Date value2) { - addCriterion("time between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTimeNotBetween(Date value1, Date value2) { - addCriterion("time not between", value1, value2, "time"); - return (Criteria) this; - } - - public Criteria andTypeIsNull() { - addCriterion("type is null"); - return (Criteria) this; - } - - public Criteria andTypeIsNotNull() { - addCriterion("type is not null"); - return (Criteria) this; - } - - public Criteria andTypeEqualTo(String value) { - addCriterion("type =", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotEqualTo(String value) { - addCriterion("type <>", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThan(String value) { - addCriterion("type >", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeGreaterThanOrEqualTo(String value) { - addCriterion("type >=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThan(String value) { - addCriterion("type <", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLessThanOrEqualTo(String value) { - addCriterion("type <=", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeLike(String value) { - addCriterion("type like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotLike(String value) { - addCriterion("type not like", value, "type"); - return (Criteria) this; - } - - public Criteria andTypeIn(List values) { - addCriterion("type in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotIn(List values) { - addCriterion("type not in", values, "type"); - return (Criteria) this; - } - - public Criteria andTypeBetween(String value1, String value2) { - addCriterion("type between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andTypeNotBetween(String value1, String value2) { - addCriterion("type not between", value1, value2, "type"); - return (Criteria) this; - } - - public Criteria andStatusIsNull() { - addCriterion("status is null"); - return (Criteria) this; - } - - public Criteria andStatusIsNotNull() { - addCriterion("status is not null"); - return (Criteria) this; - } - - public Criteria andStatusEqualTo(Integer value) { - addCriterion("status =", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotEqualTo(Integer value) { - addCriterion("status <>", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThan(Integer value) { - addCriterion("status >", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusGreaterThanOrEqualTo(Integer value) { - addCriterion("status >=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThan(Integer value) { - addCriterion("status <", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusLessThanOrEqualTo(Integer value) { - addCriterion("status <=", value, "status"); - return (Criteria) this; - } - - public Criteria andStatusIn(List values) { - addCriterion("status in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotIn(List values) { - addCriterion("status not in", values, "status"); - return (Criteria) this; - } - - public Criteria andStatusBetween(Integer value1, Integer value2) { - addCriterion("status between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andStatusNotBetween(Integer value1, Integer value2) { - addCriterion("status not between", value1, value2, "status"); - return (Criteria) this; - } - - public Criteria andUpdateTimeIsNull() { - addCriterion("update_time is null"); - return (Criteria) this; - } - - public Criteria andUpdateTimeIsNotNull() { - addCriterion("update_time is not null"); - return (Criteria) this; - } - - public Criteria andUpdateTimeEqualTo(Date value) { - addCriterion("update_time =", value, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeNotEqualTo(Date value) { - addCriterion("update_time <>", value, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeGreaterThan(Date value) { - addCriterion("update_time >", value, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { - addCriterion("update_time >=", value, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeLessThan(Date value) { - addCriterion("update_time <", value, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { - addCriterion("update_time <=", value, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeIn(List values) { - addCriterion("update_time in", values, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeNotIn(List values) { - addCriterion("update_time not in", values, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeBetween(Date value1, Date value2) { - addCriterion("update_time between", value1, value2, "updateTime"); - return (Criteria) this; - } - - public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { - addCriterion("update_time not between", value1, value2, "updateTime"); - return (Criteria) this; - } - - public Criteria andTotalIsNull() { - addCriterion("total is null"); - return (Criteria) this; - } - - public Criteria andTotalIsNotNull() { - addCriterion("total is not null"); - return (Criteria) this; - } - - public Criteria andTotalEqualTo(Integer value) { - addCriterion("total =", value, "total"); - return (Criteria) this; - } - - public Criteria andTotalNotEqualTo(Integer value) { - addCriterion("total <>", value, "total"); - return (Criteria) this; - } - - public Criteria andTotalGreaterThan(Integer value) { - addCriterion("total >", value, "total"); - return (Criteria) this; - } - - public Criteria andTotalGreaterThanOrEqualTo(Integer value) { - addCriterion("total >=", value, "total"); - return (Criteria) this; - } - - public Criteria andTotalLessThan(Integer value) { - addCriterion("total <", value, "total"); - return (Criteria) this; - } - - public Criteria andTotalLessThanOrEqualTo(Integer value) { - addCriterion("total <=", value, "total"); - return (Criteria) this; - } - - public Criteria andTotalIn(List values) { - addCriterion("total in", values, "total"); - return (Criteria) this; - } - - public Criteria andTotalNotIn(List values) { - addCriterion("total not in", values, "total"); - return (Criteria) this; - } - - public Criteria andTotalBetween(Integer value1, Integer value2) { - addCriterion("total between", value1, value2, "total"); - return (Criteria) this; - } - - public Criteria andTotalNotBetween(Integer value1, Integer value2) { - addCriterion("total not between", value1, value2, "total"); - return (Criteria) this; - } - - public Criteria andSucIsNull() { - addCriterion("suc is null"); - return (Criteria) this; - } - - public Criteria andSucIsNotNull() { - addCriterion("suc is not null"); - return (Criteria) this; - } - - public Criteria andSucEqualTo(Integer value) { - addCriterion("suc =", value, "suc"); - return (Criteria) this; - } - - public Criteria andSucNotEqualTo(Integer value) { - addCriterion("suc <>", value, "suc"); - return (Criteria) this; - } - - public Criteria andSucGreaterThan(Integer value) { - addCriterion("suc >", value, "suc"); - return (Criteria) this; - } - - public Criteria andSucGreaterThanOrEqualTo(Integer value) { - addCriterion("suc >=", value, "suc"); - return (Criteria) this; - } - - public Criteria andSucLessThan(Integer value) { - addCriterion("suc <", value, "suc"); - return (Criteria) this; - } - - public Criteria andSucLessThanOrEqualTo(Integer value) { - addCriterion("suc <=", value, "suc"); - return (Criteria) this; - } - - public Criteria andSucIn(List values) { - addCriterion("suc in", values, "suc"); - return (Criteria) this; - } - - public Criteria andSucNotIn(List values) { - addCriterion("suc not in", values, "suc"); - return (Criteria) this; - } - - public Criteria andSucBetween(Integer value1, Integer value2) { - addCriterion("suc between", value1, value2, "suc"); - return (Criteria) this; - } - - public Criteria andSucNotBetween(Integer value1, Integer value2) { - addCriterion("suc not between", value1, value2, "suc"); - return (Criteria) this; - } - - public Criteria andErrIsNull() { - addCriterion("err is null"); - return (Criteria) this; - } - - public Criteria andErrIsNotNull() { - addCriterion("err is not null"); - return (Criteria) this; - } - - public Criteria andErrEqualTo(Integer value) { - addCriterion("err =", value, "err"); - return (Criteria) this; - } - - public Criteria andErrNotEqualTo(Integer value) { - addCriterion("err <>", value, "err"); - return (Criteria) this; - } - - public Criteria andErrGreaterThan(Integer value) { - addCriterion("err >", value, "err"); - return (Criteria) this; - } - - public Criteria andErrGreaterThanOrEqualTo(Integer value) { - addCriterion("err >=", value, "err"); - return (Criteria) this; - } - - public Criteria andErrLessThan(Integer value) { - addCriterion("err <", value, "err"); - return (Criteria) this; - } - - public Criteria andErrLessThanOrEqualTo(Integer value) { - addCriterion("err <=", value, "err"); - return (Criteria) this; - } - - public Criteria andErrIn(List values) { - addCriterion("err in", values, "err"); - return (Criteria) this; - } - - public Criteria andErrNotIn(List values) { - addCriterion("err not in", values, "err"); - return (Criteria) this; - } - - public Criteria andErrBetween(Integer value1, Integer value2) { - addCriterion("err between", value1, value2, "err"); - return (Criteria) this; - } - - public Criteria andErrNotBetween(Integer value1, Integer value2) { - addCriterion("err not between", value1, value2, "err"); - return (Criteria) this; - } - - public Criteria andParamsIsNull() { - addCriterion("params is null"); - return (Criteria) this; - } - - public Criteria andParamsIsNotNull() { - addCriterion("params is not null"); - return (Criteria) this; - } - - public Criteria andParamsEqualTo(String value) { - addCriterion("params =", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsNotEqualTo(String value) { - addCriterion("params <>", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsGreaterThan(String value) { - addCriterion("params >", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsGreaterThanOrEqualTo(String value) { - addCriterion("params >=", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsLessThan(String value) { - addCriterion("params <", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsLessThanOrEqualTo(String value) { - addCriterion("params <=", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsLike(String value) { - addCriterion("params like", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsNotLike(String value) { - addCriterion("params not like", value, "params"); - return (Criteria) this; - } - - public Criteria andParamsIn(List values) { - addCriterion("params in", values, "params"); - return (Criteria) this; - } - - public Criteria andParamsNotIn(List values) { - addCriterion("params not in", values, "params"); - return (Criteria) this; - } - - public Criteria andParamsBetween(String value1, String value2) { - addCriterion("params between", value1, value2, "params"); - return (Criteria) this; - } - - public Criteria andParamsNotBetween(String value1, String value2) { - addCriterion("params not between", value1, value2, "params"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/TransmitType.java b/src/main/java/com/topsail/influxdb/pojo/TransmitType.java deleted file mode 100644 index 31bde93..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/TransmitType.java +++ /dev/null @@ -1,213 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class TransmitType { - private Integer id; - - private Integer transmitId; - - private Integer datatype; - - public Integer getId() { - return id; - } - - public void setId(Integer id) { - this.id = id; - } - - public Integer getTransmitId() { - return transmitId; - } - - public void setTransmitId(Integer transmitId) { - this.transmitId = transmitId; - } - - public Integer getDatatype() { - return datatype; - } - - public void setDatatype(Integer datatype) { - this.datatype = datatype; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - id("id", "id", "INTEGER", false), - transmitId("transmit_id", "transmitId", "INTEGER", false), - datatype("datatype", "datatype", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table transmit_type - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java b/src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java deleted file mode 100644 index 771896b..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/TransmitTypeExample.java +++ /dev/null @@ -1,380 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class TransmitTypeExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public TransmitTypeExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andIdIsNull() { - addCriterion("id is null"); - return (Criteria) this; - } - - public Criteria andIdIsNotNull() { - addCriterion("id is not null"); - return (Criteria) this; - } - - public Criteria andIdEqualTo(Integer value) { - addCriterion("id =", value, "id"); - return (Criteria) this; - } - - public Criteria andIdNotEqualTo(Integer value) { - addCriterion("id <>", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThan(Integer value) { - addCriterion("id >", value, "id"); - return (Criteria) this; - } - - public Criteria andIdGreaterThanOrEqualTo(Integer value) { - addCriterion("id >=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThan(Integer value) { - addCriterion("id <", value, "id"); - return (Criteria) this; - } - - public Criteria andIdLessThanOrEqualTo(Integer value) { - addCriterion("id <=", value, "id"); - return (Criteria) this; - } - - public Criteria andIdIn(List values) { - addCriterion("id in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdNotIn(List values) { - addCriterion("id not in", values, "id"); - return (Criteria) this; - } - - public Criteria andIdBetween(Integer value1, Integer value2) { - addCriterion("id between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andIdNotBetween(Integer value1, Integer value2) { - addCriterion("id not between", value1, value2, "id"); - return (Criteria) this; - } - - public Criteria andTransmitIdIsNull() { - addCriterion("transmit_id is null"); - return (Criteria) this; - } - - public Criteria andTransmitIdIsNotNull() { - addCriterion("transmit_id is not null"); - return (Criteria) this; - } - - public Criteria andTransmitIdEqualTo(Integer value) { - addCriterion("transmit_id =", value, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdNotEqualTo(Integer value) { - addCriterion("transmit_id <>", value, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdGreaterThan(Integer value) { - addCriterion("transmit_id >", value, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdGreaterThanOrEqualTo(Integer value) { - addCriterion("transmit_id >=", value, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdLessThan(Integer value) { - addCriterion("transmit_id <", value, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdLessThanOrEqualTo(Integer value) { - addCriterion("transmit_id <=", value, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdIn(List values) { - addCriterion("transmit_id in", values, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdNotIn(List values) { - addCriterion("transmit_id not in", values, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdBetween(Integer value1, Integer value2) { - addCriterion("transmit_id between", value1, value2, "transmitId"); - return (Criteria) this; - } - - public Criteria andTransmitIdNotBetween(Integer value1, Integer value2) { - addCriterion("transmit_id not between", value1, value2, "transmitId"); - return (Criteria) this; - } - - public Criteria andDatatypeIsNull() { - addCriterion("datatype is null"); - return (Criteria) this; - } - - public Criteria andDatatypeIsNotNull() { - addCriterion("datatype is not null"); - return (Criteria) this; - } - - public Criteria andDatatypeEqualTo(Integer value) { - addCriterion("datatype =", value, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeNotEqualTo(Integer value) { - addCriterion("datatype <>", value, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeGreaterThan(Integer value) { - addCriterion("datatype >", value, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeGreaterThanOrEqualTo(Integer value) { - addCriterion("datatype >=", value, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeLessThan(Integer value) { - addCriterion("datatype <", value, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeLessThanOrEqualTo(Integer value) { - addCriterion("datatype <=", value, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeIn(List values) { - addCriterion("datatype in", values, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeNotIn(List values) { - addCriterion("datatype not in", values, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeBetween(Integer value1, Integer value2) { - addCriterion("datatype between", value1, value2, "datatype"); - return (Criteria) this; - } - - public Criteria andDatatypeNotBetween(Integer value1, Integer value2) { - addCriterion("datatype not between", value1, value2, "datatype"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java b/src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java deleted file mode 100644 index c97fbc0..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/UpdateMsgView.java +++ /dev/null @@ -1,213 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.Arrays; - -public class UpdateMsgView { - private String imei; - - private String period; - - private Integer dperiod; - - public String getImei() { - return imei; - } - - public void setImei(String imei) { - this.imei = imei == null ? null : imei.trim(); - } - - public String getPeriod() { - return period; - } - - public void setPeriod(String period) { - this.period = period == null ? null : period.trim(); - } - - public Integer getDperiod() { - return dperiod; - } - - public void setDperiod(Integer dperiod) { - this.dperiod = dperiod; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - imei("imei", "imei", "VARCHAR", false), - period("period", "period", "VARCHAR", false), - dperiod("dperiod", "dperiod", "INTEGER", false); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String BEGINNING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private static final String ENDING_DELIMITER = "\""; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final boolean isColumnNameDelimited; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String javaProperty; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String jdbcType; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJavaProperty() { - return this.javaProperty; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getJdbcType() { - return this.jdbcType; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column, String javaProperty, String jdbcType, boolean isColumnNameDelimited) { - this.column = column; - this.javaProperty = javaProperty; - this.jdbcType = jdbcType; - this.isColumnNameDelimited = isColumnNameDelimited; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.getEscapedColumnName() + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.getEscapedColumnName() + " ASC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public static Column[] excludes(Column ... excludes) { - ArrayList columns = new ArrayList<>(Arrays.asList(Column.values())); - if (excludes != null && excludes.length > 0) { - columns.removeAll(new ArrayList<>(Arrays.asList(excludes))); - } - return columns.toArray(new Column[]{}); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table update_msg_view - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getEscapedColumnName() { - if (this.isColumnNameDelimited) { - return new StringBuilder().append(BEGINNING_DELIMITER).append(this.column).append(ENDING_DELIMITER).toString(); - } else { - return this.column; - } - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java b/src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java deleted file mode 100644 index cba6d97..0000000 --- a/src/main/java/com/topsail/influxdb/pojo/UpdateMsgViewExample.java +++ /dev/null @@ -1,400 +0,0 @@ -package com.topsail.influxdb.pojo; - -import java.util.ArrayList; -import java.util.List; - -public class UpdateMsgViewExample { - protected String orderByClause; - - protected boolean distinct; - - protected List oredCriteria; - - public UpdateMsgViewExample() { - oredCriteria = new ArrayList(); - } - - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - public String getOrderByClause() { - return orderByClause; - } - - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - public boolean isDistinct() { - return distinct; - } - - public List getOredCriteria() { - return oredCriteria; - } - - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(); - return criteria; - } - - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - protected abstract static class GeneratedCriteria { - protected List criteria; - - protected GeneratedCriteria() { - super(); - criteria = new ArrayList(); - } - - public boolean isValid() { - return criteria.size() > 0; - } - - public List getAllCriteria() { - return criteria; - } - - public List getCriteria() { - return criteria; - } - - protected void addCriterion(String condition) { - if (condition == null) { - throw new RuntimeException("Value for condition cannot be null"); - } - criteria.add(new Criterion(condition)); - } - - protected void addCriterion(String condition, Object value, String property) { - if (value == null) { - throw new RuntimeException("Value for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value)); - } - - protected void addCriterion(String condition, Object value1, Object value2, String property) { - if (value1 == null || value2 == null) { - throw new RuntimeException("Between values for " + property + " cannot be null"); - } - criteria.add(new Criterion(condition, value1, value2)); - } - - public Criteria andImeiIsNull() { - addCriterion("imei is null"); - return (Criteria) this; - } - - public Criteria andImeiIsNotNull() { - addCriterion("imei is not null"); - return (Criteria) this; - } - - public Criteria andImeiEqualTo(String value) { - addCriterion("imei =", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotEqualTo(String value) { - addCriterion("imei <>", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThan(String value) { - addCriterion("imei >", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiGreaterThanOrEqualTo(String value) { - addCriterion("imei >=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThan(String value) { - addCriterion("imei <", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLessThanOrEqualTo(String value) { - addCriterion("imei <=", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiLike(String value) { - addCriterion("imei like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotLike(String value) { - addCriterion("imei not like", value, "imei"); - return (Criteria) this; - } - - public Criteria andImeiIn(List values) { - addCriterion("imei in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotIn(List values) { - addCriterion("imei not in", values, "imei"); - return (Criteria) this; - } - - public Criteria andImeiBetween(String value1, String value2) { - addCriterion("imei between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andImeiNotBetween(String value1, String value2) { - addCriterion("imei not between", value1, value2, "imei"); - return (Criteria) this; - } - - public Criteria andPeriodIsNull() { - addCriterion("period is null"); - return (Criteria) this; - } - - public Criteria andPeriodIsNotNull() { - addCriterion("period is not null"); - return (Criteria) this; - } - - public Criteria andPeriodEqualTo(String value) { - addCriterion("period =", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotEqualTo(String value) { - addCriterion("period <>", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThan(String value) { - addCriterion("period >", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodGreaterThanOrEqualTo(String value) { - addCriterion("period >=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThan(String value) { - addCriterion("period <", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLessThanOrEqualTo(String value) { - addCriterion("period <=", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodLike(String value) { - addCriterion("period like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotLike(String value) { - addCriterion("period not like", value, "period"); - return (Criteria) this; - } - - public Criteria andPeriodIn(List values) { - addCriterion("period in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotIn(List values) { - addCriterion("period not in", values, "period"); - return (Criteria) this; - } - - public Criteria andPeriodBetween(String value1, String value2) { - addCriterion("period between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andPeriodNotBetween(String value1, String value2) { - addCriterion("period not between", value1, value2, "period"); - return (Criteria) this; - } - - public Criteria andDperiodIsNull() { - addCriterion("dperiod is null"); - return (Criteria) this; - } - - public Criteria andDperiodIsNotNull() { - addCriterion("dperiod is not null"); - return (Criteria) this; - } - - public Criteria andDperiodEqualTo(Integer value) { - addCriterion("dperiod =", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotEqualTo(Integer value) { - addCriterion("dperiod <>", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodGreaterThan(Integer value) { - addCriterion("dperiod >", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodGreaterThanOrEqualTo(Integer value) { - addCriterion("dperiod >=", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodLessThan(Integer value) { - addCriterion("dperiod <", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodLessThanOrEqualTo(Integer value) { - addCriterion("dperiod <=", value, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodIn(List values) { - addCriterion("dperiod in", values, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotIn(List values) { - addCriterion("dperiod not in", values, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodBetween(Integer value1, Integer value2) { - addCriterion("dperiod between", value1, value2, "dperiod"); - return (Criteria) this; - } - - public Criteria andDperiodNotBetween(Integer value1, Integer value2) { - addCriterion("dperiod not between", value1, value2, "dperiod"); - return (Criteria) this; - } - } - - public static class Criteria extends GeneratedCriteria { - - protected Criteria() { - super(); - } - } - - public static class Criterion { - private String condition; - - private Object value; - - private Object secondValue; - - private boolean noValue; - - private boolean singleValue; - - private boolean betweenValue; - - private boolean listValue; - - private String typeHandler; - - public String getCondition() { - return condition; - } - - public Object getValue() { - return value; - } - - public Object getSecondValue() { - return secondValue; - } - - public boolean isNoValue() { - return noValue; - } - - public boolean isSingleValue() { - return singleValue; - } - - public boolean isBetweenValue() { - return betweenValue; - } - - public boolean isListValue() { - return listValue; - } - - public String getTypeHandler() { - return typeHandler; - } - - protected Criterion(String condition) { - super(); - this.condition = condition; - this.typeHandler = null; - this.noValue = true; - } - - protected Criterion(String condition, Object value, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.typeHandler = typeHandler; - if (value instanceof List) { - this.listValue = true; - } else { - this.singleValue = true; - } - } - - protected Criterion(String condition, Object value) { - this(condition, value, null); - } - - protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { - super(); - this.condition = condition; - this.value = value; - this.secondValue = secondValue; - this.typeHandler = typeHandler; - this.betweenValue = true; - } - - protected Criterion(String condition, Object value, Object secondValue) { - this(condition, value, secondValue, null); - } - } -} \ No newline at end of file diff --git a/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java b/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java index 4eae2ba..e3250cc 100644 --- a/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java +++ b/src/main/java/com/topsail/influxdb/rabbitmq/AmqpListener.java @@ -1,15 +1,10 @@ package com.topsail.influxdb.rabbitmq; import com.alibaba.fastjson.JSON; -import com.alibaba.fastjson.JSONObject; import com.rabbitmq.client.Channel; -import com.topsail.influxdb.model.AepModel; -import com.topsail.influxdb.model.NewtopData; -import com.topsail.influxdb.model.NewtopParam; import com.topsail.influxdb.pojo.History; import com.topsail.influxdb.rabbitmq.service.AmqpService; -import com.topsail.influxdb.rabbitmq.service.IotService; -import okhttp3.*; +import com.topsail.influxdb.service.DeviceDataService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.amqp.rabbit.annotation.RabbitListener; @@ -18,34 +13,33 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.messaging.handler.annotation.Header; import org.springframework.messaging.handler.annotation.Payload; import org.springframework.stereotype.Component; - -import java.text.SimpleDateFormat; -import java.time.LocalDateTime; -import java.util.Date; -import java.util.HashMap; -import java.util.Map; +import org.springframework.util.StringUtils; @Component public class AmqpListener { public static final Logger LOG = LoggerFactory.getLogger(AmqpListener.class); @Autowired - IotService iotService; + DeviceDataService deviceDataService; @Autowired AmqpService amqpService; - @RabbitListener(queues = "savehistoryall") +// @RabbitListener(queues = "shengdilandevicedata2") public void processsavehistoryall(@Payload String message, @Header(AmqpHeaders.DELIVERY_TAG) long deliveryTag, Channel channel) throws Exception { - JSONObject jsonObject = JSONObject.parseObject(message); + if (StringUtils.isEmpty(message)) { + channel.basicAck(deliveryTag, false); + return; + } try { History history = JSON.parseObject(message, History.class); - iotService.saveHistoryall(history); - LOG.info("savehistory OK:" + history.getImei()); + deviceDataService.saveDeviceDataToInfluxdb(history); + amqpService.SendMessage("shengdilandevicedataall", message); + LOG.info("saveDeviceDataToInfluxdb OK:" + history.getImei()); channel.basicAck(deliveryTag, false); } catch (Exception e) { channel.basicNack(deliveryTag, false, true); - LOG.info("savehistoryall Error:(" + e + ")-" + message); + LOG.info("saveDeviceDataToInfluxdb Error:(" + e + ")-" + message); } } } diff --git a/src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java b/src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java deleted file mode 100644 index bbaa07a..0000000 --- a/src/main/java/com/topsail/influxdb/rabbitmq/service/IotService.java +++ /dev/null @@ -1,258 +0,0 @@ -package com.topsail.influxdb.rabbitmq.service; - -import com.alibaba.fastjson.JSON; -import com.influxdb.annotations.Column; -import com.influxdb.annotations.Measurement; -import com.influxdb.client.InfluxDBClient; -import com.influxdb.client.InfluxDBClientFactory; -import com.influxdb.client.WriteApi; -import com.influxdb.client.domain.WritePrecision; -import com.topsail.influxdb.mapper.*; -import com.topsail.influxdb.model.InfluxData; -import com.topsail.influxdb.pojo.DeviceLog; -import com.topsail.influxdb.pojo.History; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.time.Instant; -import java.util.Date; - -@Service -public class IotService { - public static final Logger LOG = LoggerFactory.getLogger(IotService.class); - - @Autowired - DeviceMapper deviceMapper; - - @Autowired - HistoryMapper historyMapper; - - @Autowired - HistoryAllMapper historyAllMapper; - - @Autowired - ConfigMapper configMapper; - - @Autowired - AlarmMapper alarmMapper; - - @Autowired - OnlineRateMapper onlineRateMapper; - - @Autowired - OnlineProjectMapper onlineProjectMapper; - - @Autowired - AmqpService amqpService; - - //@Autowired - //OnlineProjectMapper onlineProjectMapper; - - @Autowired - ProjectMapper projectMapper; - - @Autowired - DeviceDetailMapper deviceDetailMapper; - - @Autowired - DeviceLogMapper deviceLogMapper; - - @Autowired - DeviceInfoMapper deviceInfoMapper; - - @Autowired - OcDeviceMapper ocDeviceMapper; - - @Autowired - OnenetDeviceMapper onenetDeviceMapper; - - @Autowired - OcConfigMapper ocConfigMapper; - - @Autowired - OcCompanyMapper ocCompanyMapper; - - @Autowired - OnenetCompanyMapper onenetCompanyMapper; - - @Autowired - UpdateMsgViewMapper updateMsgViewMapper; - - @Autowired - DataFilterMapper dataFilterMapper; - - @Autowired - OnlineRateViewMapper onlineRateViewMapper; - - @Autowired - ProjectTransmitMapper projectTransmitMapper; - - @Autowired - TransmitTypeMapper transmitTypeMapper; - - @Autowired - ImsiImeiMapper imsiImeiMapper; - - @Autowired - GatewayDeviceMapper gatewayDeviceMapper; - @Autowired - DeviceProjectViewMapper deviceProjectViewMapper; - @Autowired - CompanyMapper companyMapper; - - private static char[] token = "bNY4wG2fmWh5SC8NirfnRIn8zR7Cg8BIbkJztI7jhOeNhbteeGGGR0ysEKNA1pi1fEMaXNkqh06nmqnag6nedA==".toCharArray(); - - //@Autowired - //@Qualifier("inInfluxdbMetricsRepository") - //private MetricsRepository metricStore; - - //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); - - @Measurement(name = "iot") - private static class Temperature { - - @Column(tag = true) - String imei; - - @Column - String value; - - @Column - Integer devicetype; - - @Column - Integer batterylevel; - - @Column - Integer singalstrength; - - @Column - Integer passnum; - - @Column - Integer batterystate; - - @Column - String alarmtype; - - @Column - String platformtype; - - @Column - String username; - - @Column - String unit; - - @Column - String sendtime; - - @Column - String sampledata; - - @Column - String databody; - - @Column(timestamp = true) - Instant time; - } - - public void saveHistoryall(History history) { - //HistoryAll historyAll=JSON.parseObject(JSON.toJSONString(history),HistoryAll.class); - //historyAllMapper.insert(historyAll); - - //historyMapper.insert(history); - - //CheckHistory(history.getImei(),history.getTime()); - if (history.getSenddate() == null) { - return; - } - - String influxvalue = "iot,imei=" + history.getImei() + " press=" + history.getSampledata() + " " + history.getTime().getTime(); - String token = "k7dtXN5boSf9gbnUC75ekSJqILCMIcJ_nxxHLgxAYKqEtFSqqIfnELc2xHxuimdRYZgtbReQFs7qq_XWh04Z2w=="; - String bucket = "iot"; - String org = "topsail"; - - InfluxDBClient client = InfluxDBClientFactory.create("http://182.92.218.150:8086", token.toCharArray()); - InfluxData mem = new InfluxData(); - mem.imei = history.getImei(); - String value = history.getValue(); - if (value != null && !value.equals("")) { - String[] values = value.split(","); - mem.value1 = 0; - mem.value2 = 0; - mem.value3 = 0; - mem.value4 = 0; - try { - if (values.length > 0) { - mem.value1 = Double.parseDouble(values[0]); - } - if (values.length > 1) { - mem.value2 = Double.parseDouble(values[1]); - } - if (values.length > 2) { - mem.value3 = Double.parseDouble(values[2]); - } - if (values.length > 3) { - mem.value4 = Double.parseDouble(values[4]); - } - } catch (Exception e) { - LOG.info(e.getMessage()); - } - /* mem.battery = history.getBatterylevel(); - mem.sigal = history.getSingalstrength(); - mem.jsondata=JSON.toJSONString(history); - mem.values=history.getValue(); - mem.unit=history.getUnit(); - mem.alarmtype=history.getAlarmtype(); - //mem.sampleData = history.getSampledata(); - //mem.time = Instant.now(); - mem.time = history.getSenddate().toInstant(); - System.out.println("写入中==========》"); - try (WriteApi writeApi = client.getWriteApi()) { - writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); - System.out.println("写入成功==========》"); - }*/ - } -//从内部移动处出来,value有没有数值都进行插入 - mem.battery = history.getBatterylevel(); - mem.sigal = history.getSingalstrength(); - mem.jsondata = JSON.toJSONString(history); - mem.values = history.getValue(); - mem.unit = history.getUnit(); - mem.alarmtype = history.getAlarmtype(); - //mem.sampleData = history.getSampledata(); - mem.time = Instant.now(); -// mem.time = history.getSenddate().toInstant(); - try (WriteApi writeApi = client.getWriteApi()) { - writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); - } - //amqpService.SendMessage("telegraf",influxvalue); -// InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); -// Point point = Point -// .measurement("topsail4") -// .addTag("imei", history.getImei()) -// .addField("batterylevel", history.getBatterylevel()) -// .time(Instant.now().toEpochMilli(), WritePrecision.MS); -// WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); -// Gson gson=new Gson(); -// history.setTime(null); -// Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); -// temperature.time=Instant.now(); -// writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); -// influxDBClient.close(); - } - - public void AddDeviceLog(String imei, String type, String params) { - DeviceLog deviceLog = new DeviceLog(); - deviceLog.setImei(imei); - deviceLog.setOperation(type); - deviceLog.setParams(params); - deviceLog.setUpdatetime(new Date()); - deviceLogMapper.insert(deviceLog); - } - - -} diff --git a/src/main/java/com/topsail/influxdb/result/CodeMsg.java b/src/main/java/com/topsail/influxdb/result/CodeMsg.java new file mode 100644 index 0000000..488aa43 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/result/CodeMsg.java @@ -0,0 +1,58 @@ +package com.topsail.influxdb.result; + +public class CodeMsg { + + private int code; + private String msg; + + //通用的错误码 + public static CodeMsg SUCCESS = new CodeMsg(0, "success"); + public static CodeMsg SERVER_ERROR = new CodeMsg(500, "服务端异常"); + public static CodeMsg MISSING_ERROR = new CodeMsg(500, "参数缺失"); + public static CodeMsg BIND_ERROR = new CodeMsg(501, "参数校验异常: %s"); + public static CodeMsg TIME_ERROR = new CodeMsg(502, "时间格式错误,应为 yyyy-MM-dd HH:mm:ss"); + public static CodeMsg TIMEMISS_ERROR = new CodeMsg(503, "查询时间缺失,应为 yyyy-MM-dd HH:mm:ss"); + public static CodeMsg CONTROL_ERROR = new CodeMsg(505, "命令下发失败,请检查设备相关信息是否存在或正确以及参数输入是否正确"); + + private CodeMsg() { + } + + public CodeMsg(int code, String msg) { + this.code = code; + this.msg = msg; + } + + public int getCode() { + return code; + } + + public void setCode(int code) { + this.code = code; + } + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + /** + * 返回带参数的错误码 + * @param args + * @return + */ + public CodeMsg fillArgs(Object... args) { + int code = this.code; + String message = String.format(this.msg, args); + return new CodeMsg(code, message); + } + + @Override + public String toString() { + return "CodeMsg [code=" + code + ", msg=" + msg + "]"; + } + + +} diff --git a/src/main/java/com/topsail/influxdb/result/Result.java b/src/main/java/com/topsail/influxdb/result/Result.java new file mode 100644 index 0000000..0dc4f48 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/result/Result.java @@ -0,0 +1,95 @@ +package com.topsail.influxdb.result; + + +import com.github.pagehelper.PageInfo; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +public class Result { + + private int code; + private String msg="success"; + private T data; + + + public static void main(String[] args) { + CodeMsg codeMsg = new CodeMsg(1, "this is a test"); + //Result result = Result.success(codeMsg);//输出Result [code=0, msg=null, data=CodeMsg [code=1, msg=this is a test]] + Result result1 = new Result(codeMsg);//输出Result [code=1, msg=this is a test, data=null] + System.out.println(result1.toString()); + } + + /** + * 成功时候的调用 + * */ + public static Result success(T data){ + return new Result(data); + } + + /** + * 失败时候的调用 + * */ + public static Result error(CodeMsg codeMsg){ + return new Result(codeMsg); + } + + private Result(T data) { + this.data = data; + } + + private Result(int code, String msg) { + this.code = code; + this.msg = msg; + } + + private Result(CodeMsg codeMsg) { + if(codeMsg != null) { + this.code = codeMsg.getCode(); + this.msg = codeMsg.getMsg(); + } + } + + /** + *分页之后的统一返回对象 + * @param t + * @param + * @return + */ + public static Map returnPageMap(List t){ + PageInfo pageInfo=new PageInfo(t); + int count=(int)pageInfo.getTotal(); + Map map=new HashMap<>(); + map.put("list", new ArrayList(pageInfo.getList())); + map.put("count",count); + return map; + } + + + public int getCode() { + return code; + } + public void setCode(int code) { + this.code = code; + } + public String getMsg() { + return msg; + } + public void setMsg(String msg) { + this.msg = msg; + } + public T getData() { + return data; + } + public void setData(T data) { + this.data = data; + } + + @Override + public String toString() { + return "Result [code=" + code + ", msg=" + msg + ", data=" + data + "]"; + } + +} diff --git a/src/main/java/com/topsail/influxdb/service/DeviceDataService.java b/src/main/java/com/topsail/influxdb/service/DeviceDataService.java new file mode 100644 index 0000000..dc40925 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/service/DeviceDataService.java @@ -0,0 +1,238 @@ +package com.topsail.influxdb.service; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.influxdb.client.InfluxDBClient; +import com.influxdb.client.InfluxDBClientFactory; +import com.influxdb.client.WriteApi; +import com.influxdb.client.domain.WritePrecision; +import com.influxdb.query.FluxRecord; +import com.influxdb.query.FluxTable; +import com.topsail.influxdb.entity.DeviceBelongInfo; +import com.topsail.influxdb.entity.DeviceHistoryData; +import com.topsail.influxdb.mapper.DeviceInfoMapper; +import com.topsail.influxdb.model.DeviceDataInfluxData; +import com.topsail.influxdb.pojo.History; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.Instant; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.TimeZone; + +@Service +public class DeviceDataService { + public static final Logger LOG = LoggerFactory.getLogger(DeviceDataService.class); + @Autowired + DeviceInfoMapper deviceInfoMapper; + + /** + * 根据设备号查询设备历史数据 + * + * @param uid + * @param pageNo + * @param pageSize + * @param startTime + * @param endTime + * @param imei + * @return + */ + public List getDeviceHistoryData(String uid, Integer pageNo, Integer pageSize, String startTime, String endTime, String imei) { + String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; + String bucket = "iot"; + String org = "shengdilan"; + InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); + StringBuffer query = new StringBuffer(); + query.append("from(bucket: \"iot\") "); + if (startTime != null && endTime != null) { + SimpleDateFormat oldFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + newFormat.setTimeZone(TimeZone.getTimeZone("UTC"));//时区转换 + String start = null; + try { + start = newFormat.format(oldFormat.parse(startTime)); + String stop = newFormat.format(oldFormat.parse(endTime)); + query.append(String.format(" |> range(start:%s, stop:%s)", start, stop)); + } catch (ParseException e) { + e.printStackTrace(); + } + } else { + query.append("|> range(start: -36h)"); + } + query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"history\") |> filter(fn: (r) => r[\"imei\"] == \"%s\") |> filter(fn: (r) => r[\"_field\"] == \"jsondata\" ) |> sort(columns:[\"_time\"], desc:true) ", imei)); + if (pageNo != null && pageSize != null) { + query.append(String.format(" |> limit(n: %s,offset:%s)", pageSize, pageNo - 1)); + } + query.append(" |> yield(name: \"last\")"); + System.out.println("查询语句==========:" + query); + List tables = client.getQueryApi().query(query.toString(), org); + List rerurnList = new ArrayList<>(); + for (FluxTable fluxTable : tables) { + List records = fluxTable.getRecords(); + for (FluxRecord fluxRecord : records) { + String value = (String) fluxRecord.getValueByKey("_value"); + DeviceHistoryData data = JSONObject.parseObject(value, DeviceHistoryData.class); + Integer singalstrength = (Integer) JSONObject.parseObject(value).get("singalstrength"); + data.setSignalStrength(singalstrength); + data.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format((Double.parseDouble(data.getTime())))); + rerurnList.add(data); + } + } + client.close(); + Collections.reverse(rerurnList); + return rerurnList; + } + //@Autowired + //@Qualifier("inInfluxdbMetricsRepository") + //private MetricsRepository metricStore; + + //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); + + /** + * 存储设备数据到influxdb + * + * @param history + */ + public void saveDeviceDataToInfluxdb(History history) { + if (history.getSenddate() == null) { + return; + } + if (history == null || (StringUtils.isEmpty(history.getImei()))) { + return; + } + //查询设备的所属信息 + DeviceBelongInfo deviceBelongInfo = getDeviceBelongInfo(history.getImei().trim()); + if (deviceBelongInfo == null) { + return; + } + history.setDeviceBelongInfo(deviceBelongInfo.getDeviceBelongInfo()); + history.setHouseId(deviceBelongInfo.getHouseId()); + System.out.println("设备所属信息111111111111==========:" + deviceBelongInfo); + String influxvalue = "iot,imei=" + history.getImei() + " press=" + history.getSampledata() + " " + history.getTime().getTime(); + String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; + String bucket = "iot"; + String org = "shengdilan"; + + InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); + DeviceDataInfluxData mem = new DeviceDataInfluxData(); + mem.imei = history.getImei(); + String value = history.getValue(); + if (value != null && !value.equals("")) { + String[] values = value.split(","); + mem.value1 = 0; + mem.value2 = 0; + mem.value3 = 0; + mem.value4 = 0; + try { + if (values.length > 0) { + mem.value1 = Double.parseDouble(values[0]); + } + if (values.length > 1) { + mem.value2 = Double.parseDouble(values[1]); + } + if (values.length > 2) { + mem.value3 = Double.parseDouble(values[2]); + } + if (values.length > 3) { + mem.value4 = Double.parseDouble(values[4]); + } + } catch (Exception e) { + LOG.info(e.getMessage()); + } + /* mem.battery = history.getBatterylevel(); + mem.sigal = history.getSingalstrength(); + mem.jsondata=JSON.toJSONString(history); + mem.values=history.getValue(); + mem.unit=history.getUnit(); + mem.alarmtype=history.getAlarmtype(); + //mem.sampleData = history.getSampledata(); + //mem.time = Instant.now(); + mem.time = history.getSenddate().toInstant(); + System.out.println("写入中==========》"); + try (WriteApi writeApi = client.getWriteApi()) { + writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); + System.out.println("写入成功==========》"); + }*/ + } + //从内部移动处出来,value有没有数值都进行插入 + mem.battery = history.getBatterylevel(); + mem.sigal = history.getSingalstrength(); + mem.jsondata = JSON.toJSONString(history); + mem.values = history.getValue(); + mem.unit = history.getUnit(); + mem.alarmtype = history.getAlarmtype(); + //mem.sampleData = history.getSampledata(); + mem.time = Instant.now(); +// mem.houseId = deviceBelongInfo != null ? deviceBelongInfo.getHouseId() : null; +// mem.deviceBelongInfo = deviceBelongInfo != null ? deviceBelongInfo.getDeviceBelongInfo() : null; + //mem.time = history.getSenddate().toInstant(); + try (WriteApi writeApi = client.getWriteApi()) { + writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); + } + System.out.println("写入成功==========》" + history.getImei()); + //amqpService.SendMessage("telegraf",influxvalue); +// InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); +// Point point = Point +// .measurement("topsail4") +// .addTag("imei", history.getImei()) +// .addField("batterylevel", history.getBatterylevel()) +// .time(Instant.now().toEpochMilli(), WritePrecision.MS); +// WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); +// Gson gson=new Gson(); +// history.setTime(null); +// Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); +// temperature.time=Instant.now(); +// writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); +// influxDBClient.close(); + } + +// public void AddDeviceLog(String imei, String type, String params) { +// DeviceLog deviceLog = new DeviceLog(); +// deviceLog.setImei(imei); +// deviceLog.setOperation(type); +// deviceLog.setParams(params); +// deviceLog.setUpdatetime(new Date()); +// deviceLogMapper.insert(deviceLog); +// } + + /** + * 查询设备的所属信息 + */ + public DeviceBelongInfo getDeviceBelongInfo(String imei) { + return deviceInfoMapper.queryDeviceBelongInfo(imei); + } + + /** + * 删除掉所有的Influxdb数据 + */ + public void deleteDeviceData() { +// String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; +// String bucket = "iot"; +// String org = "shengdilan"; +// InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); +// StringBuffer query = new StringBuffer(); +// query.append("from(bucket: \"iot\") "); +// query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"history\")")); +// query.append("|> range(start: -36d)"); +// System.out.println("查询语句==========:" + query); +// DeleteApi deleteApi = client.getDeleteApi(); +// OffsetDateTime start = OffsetDateTime.of(2020, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); +// OffsetDateTime stop = OffsetDateTime.of(2026, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); +// try { +// // Delete data with specific time range +// deleteApi.delete(start, stop, "", bucket, org); +// System.out.println("Data deleted successfully"); +// } catch (Exception e) { +// e.printStackTrace(); +// } finally { +// client.close(); +// } + } +} diff --git a/src/main/java/com/topsail/influxdb/service/DeviceLogService.java b/src/main/java/com/topsail/influxdb/service/DeviceLogService.java new file mode 100644 index 0000000..1bf0ef9 --- /dev/null +++ b/src/main/java/com/topsail/influxdb/service/DeviceLogService.java @@ -0,0 +1,285 @@ +package com.topsail.influxdb.service; + +import com.alibaba.fastjson.JSON; +import com.alibaba.fastjson.JSONObject; +import com.influxdb.client.InfluxDBClient; +import com.influxdb.client.InfluxDBClientFactory; +import com.influxdb.client.WriteApi; +import com.influxdb.client.domain.WritePrecision; +import com.influxdb.query.FluxRecord; +import com.influxdb.query.FluxTable; +import com.topsail.influxdb.entity.DeviceBelongInfo; +import com.topsail.influxdb.entity.DeviceHistoryData; +import com.topsail.influxdb.entity.DeviceLogData; +import com.topsail.influxdb.mapper.DeviceInfoMapper; +import com.topsail.influxdb.model.DeviceDataInfluxData; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import org.springframework.util.StringUtils; + +import java.text.ParseException; +import java.text.SimpleDateFormat; +import java.time.Instant; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.TimeZone; + +@Service +public class DeviceLogService { + public static final Logger LOG = LoggerFactory.getLogger(DeviceLogService.class); + @Autowired + DeviceInfoMapper deviceInfoMapper; + + /** + * 根据设备号查询设备历史数据 + * + * @param uid + * @param pageNo + * @param pageSize + * @param startTime + * @param endTime + * @param imei + * @return + */ + public List getDeviceHistoryData(String uid, Integer pageNo, Integer pageSize, String startTime, String endTime, String imei) { + String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; + String bucket = "iot"; + String org = "shengdilan"; + InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); + StringBuffer query = new StringBuffer(); + query.append("from(bucket: \"iot\") "); + if (startTime != null && endTime != null) { + SimpleDateFormat oldFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + newFormat.setTimeZone(TimeZone.getTimeZone("UTC"));//时区转换 + String start = null; + try { + start = newFormat.format(oldFormat.parse(startTime)); + String stop = newFormat.format(oldFormat.parse(endTime)); + query.append(String.format(" |> range(start:%s, stop:%s)", start, stop)); + } catch (ParseException e) { + e.printStackTrace(); + } + } else { + query.append("|> range(start: -36h)"); + } + query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"history\") |> filter(fn: (r) => r[\"imei\"] == \"%s\") |> filter(fn: (r) => r[\"_field\"] == \"jsondata\" ) |> sort(columns:[\"_time\"], desc:true) ", imei)); + if (pageNo != null && pageSize != null) { + query.append(String.format(" |> limit(n: %s,offset:%s)", pageSize, pageNo - 1)); + } + query.append(" |> yield(name: \"last\")"); + System.out.println("查询语句==========:" + query); + List tables = client.getQueryApi().query(query.toString(), org); + List rerurnList = new ArrayList<>(); + for (FluxTable fluxTable : tables) { + List records = fluxTable.getRecords(); + for (FluxRecord fluxRecord : records) { + String value = (String) fluxRecord.getValueByKey("_value"); + DeviceHistoryData data = JSONObject.parseObject(value, DeviceHistoryData.class); + Integer singalstrength = (Integer) JSONObject.parseObject(value).get("singalstrength"); + data.setSignalStrength(singalstrength); + data.setTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format((Double.parseDouble(data.getTime())))); + rerurnList.add(data); + } + } + client.close(); + Collections.reverse(rerurnList); + return rerurnList; + } + //@Autowired + //@Qualifier("inInfluxdbMetricsRepository") + //private MetricsRepository metricStore; + + //InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", "uhr8-DJ10oDa1ZaQALDY5tmWhJ1r0sRYWkc00wUDM6o5MpKP4yB_dclU7ZDbaAfApOY0tAud1YEujsZWh9YohA==".toCharArray()); + + /** + * 存储设备数据到influxdb + * + * @param deviceLogData + */ + public void saveDeviceLogToInfluxdb(DeviceLogData deviceLogData) { + if (deviceLogData == null || (StringUtils.isEmpty(deviceLogData.getImei()))) { + return; + } + String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; + String bucket = "devicelog"; + String org = "shengdilan"; + + InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); + DeviceDataInfluxData mem = new DeviceDataInfluxData(); + mem.imei = history.getImei(); + String value = history.getValue(); + if (value != null && !value.equals("")) { + String[] values = value.split(","); + mem.value1 = 0; + mem.value2 = 0; + mem.value3 = 0; + mem.value4 = 0; + try { + if (values.length > 0) { + mem.value1 = Double.parseDouble(values[0]); + } + if (values.length > 1) { + mem.value2 = Double.parseDouble(values[1]); + } + if (values.length > 2) { + mem.value3 = Double.parseDouble(values[2]); + } + if (values.length > 3) { + mem.value4 = Double.parseDouble(values[4]); + } + } catch (Exception e) { + LOG.info(e.getMessage()); + } + /* mem.battery = history.getBatterylevel(); + mem.sigal = history.getSingalstrength(); + mem.jsondata=JSON.toJSONString(history); + mem.values=history.getValue(); + mem.unit=history.getUnit(); + mem.alarmtype=history.getAlarmtype(); + //mem.sampleData = history.getSampledata(); + //mem.time = Instant.now(); + mem.time = history.getSenddate().toInstant(); + System.out.println("写入中==========》"); + try (WriteApi writeApi = client.getWriteApi()) { + writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); + System.out.println("写入成功==========》"); + }*/ + } + //从内部移动处出来,value有没有数值都进行插入 + mem.battery = history.getBatterylevel(); + mem.sigal = history.getSingalstrength(); + mem.jsondata = JSON.toJSONString(history); + mem.values = history.getValue(); + mem.unit = history.getUnit(); + mem.alarmtype = history.getAlarmtype(); + //mem.sampleData = history.getSampledata(); + mem.time = Instant.now(); +// mem.houseId = deviceBelongInfo != null ? deviceBelongInfo.getHouseId() : null; +// mem.deviceBelongInfo = deviceBelongInfo != null ? deviceBelongInfo.getDeviceBelongInfo() : null; + //mem.time = history.getSenddate().toInstant(); + try (WriteApi writeApi = client.getWriteApi()) { + writeApi.writeMeasurement(bucket, org, WritePrecision.NS, mem); + } + System.out.println("写入成功==========》" + history.getImei()); + //amqpService.SendMessage("telegraf",influxvalue); +// InfluxDBClient influxDBClient = InfluxDBClientFactory.create("http://47.97.117.253:9999", token); +// Point point = Point +// .measurement("topsail4") +// .addTag("imei", history.getImei()) +// .addField("batterylevel", history.getBatterylevel()) +// .time(Instant.now().toEpochMilli(), WritePrecision.MS); +// WriteApiBlocking writeApi = influxDBClient.getWriteApiBlocking(); +// Gson gson=new Gson(); +// history.setTime(null); +// Temperature temperature =gson.fromJson(gson.toJson(history),Temperature.class); +// temperature.time=Instant.now(); +// writeApi.writeMeasurement("iot", "topsail", WritePrecision.NS, temperature); +// influxDBClient.close(); + } + +// public void AddDeviceLog(String imei, String type, String params) { +// DeviceLog deviceLog = new DeviceLog(); +// deviceLog.setImei(imei); +// deviceLog.setOperation(type); +// deviceLog.setParams(params); +// deviceLog.setUpdatetime(new Date()); +// deviceLogMapper.insert(deviceLog); +// } + + /** + * 查询设备的所属信息 + */ + public DeviceBelongInfo getDeviceBelongInfo(String imei) { + return deviceInfoMapper.queryDeviceBelongInfo(imei); + } + + /** + * 删除掉所有的Influxdb数据 + */ + public void deleteDeviceLog() { +// String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; +// String bucket = "devicelog"; +// String org = "shengdilan"; +// InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); +// StringBuffer query = new StringBuffer(); +// query.append("from(bucket: \"devicelog\") "); +// query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"devicelog\")")); +// query.append("|> range(start: -36d)"); +// System.out.println("查询语句==========:" + query); +// DeleteApi deleteApi = client.getDeleteApi(); +// OffsetDateTime start = OffsetDateTime.of(2020, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); +// OffsetDateTime stop = OffsetDateTime.of(2026, 1, 1, 0, 0, 0, 0, ZoneOffset.UTC); +// try { +// // Delete data with specific time range +// deleteApi.delete(start, stop, "", bucket, org); +// System.out.println("Data deleted successfully"); +// } catch (Exception e) { +// e.printStackTrace(); +// } finally { +// client.close(); +// } + } + + /** + * 查询设备下发命令日志信息 + * + * @param pageNode + * @param pageSize + * @param startTime + * @param endTime + * @param result 下发结果 + * @param imei 设备号 + * @param supplierId 供应商id + * @param companyId 公司id + * @param operator 操作人 + * @param houseId 房间id + * @return + */ + public List getPageDeviceLog(Integer pageNode, Integer pageSize, String startTime, String endTime, String result, String imei, String supplierId, String companyId, String operator, Integer houseId) { + String token = "_HeUSb3p4M0iesYrbegw3KokEhAPFzqzGEB3DNC6f6f46DPlaiU29PXFbhtkhFuVVearVSLfcSAK8ubu3eYyug=="; + String bucket = "devicelog"; + String org = "shengdilan"; + InfluxDBClient client = InfluxDBClientFactory.create("http://172.16.1.124:8086", token.toCharArray()); + StringBuffer query = new StringBuffer(); + query.append("from(bucket: \"devicelog\") "); + if (startTime != null && endTime != null) { + SimpleDateFormat oldFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat newFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); + newFormat.setTimeZone(TimeZone.getTimeZone("UTC"));//时区转换 + String start = null; + try { + start = newFormat.format(oldFormat.parse(startTime)); + String stop = newFormat.format(oldFormat.parse(endTime)); + query.append(String.format(" |> range(start:%s, stop:%s)", start, stop)); + } catch (ParseException e) { + e.printStackTrace(); + } + } else { + query.append("|> range(start: -36h)"); + } + query.append(String.format(" |> filter(fn: (r) => r[\"_measurement\"] == \"devicelog\") |> filter(fn: (r) => r[\"imei\"] == \"%s\") |> filter(fn: (r) => r[\"_field\"] == \"logjson\" ) |> sort(columns:[\"_time\"], desc:true) ", imei)); + if (pageNode != null && pageSize != null) { + query.append(String.format(" |> limit(n: %s,offset:%s)", pageSize, pageNode - 1)); + } + query.append(" |> yield(name: \"last\")"); + System.out.println("查询语句==========:" + query); + List tables = client.getQueryApi().query(query.toString(), org); + List rerurnList = new ArrayList<>(); + for (FluxTable fluxTable : tables) { + List records = fluxTable.getRecords(); + for (FluxRecord fluxRecord : records) { + String value = (String) fluxRecord.getValueByKey("_value"); + DeviceLogData data = JSONObject.parseObject(value, DeviceLogData.class); + rerurnList.add(data); + } + } + client.close(); + Collections.reverse(rerurnList); + return rerurnList; + } + +} diff --git a/src/main/java/com/topsail/influxdb/task/CostRunner.java b/src/main/java/com/topsail/influxdb/task/CostRunner.java index 156e285..9de3e1a 100644 --- a/src/main/java/com/topsail/influxdb/task/CostRunner.java +++ b/src/main/java/com/topsail/influxdb/task/CostRunner.java @@ -4,13 +4,13 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.ApplicationArguments; import org.springframework.boot.ApplicationRunner; import org.springframework.stereotype.Component; -import com.topsail.influxdb.rabbitmq.service.IotService; +import com.topsail.influxdb.service.DeviceDataService; @Component public class CostRunner implements ApplicationRunner { @Autowired - IotService iotService; + DeviceDataService deviceDataService; @Override diff --git a/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java b/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java index 500ee08..0f2d260 100644 --- a/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java +++ b/src/main/java/com/topsail/influxdb/task/OnlineScheduleTask.java @@ -1,6 +1,6 @@ package com.topsail.influxdb.task; -import com.topsail.influxdb.rabbitmq.service.IotService; +import com.topsail.influxdb.service.DeviceDataService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.annotation.Configuration; import org.springframework.core.env.Environment; @@ -16,7 +16,7 @@ import java.time.LocalDateTime; public class OnlineScheduleTask { @Autowired - IotService iotService; + DeviceDataService deviceDataService; @Autowired private Environment env; diff --git a/src/main/resources/application-prod.properties b/src/main/resources/application-prod.properties deleted file mode 100644 index 1bd8324..0000000 --- a/src/main/resources/application-prod.properties +++ /dev/null @@ -1,6 +0,0 @@ -spring.rabbitmq.host=182.92.218.150 -spring.rabbitmq.username=topsail -spring.rabbitmq.password=topsail -#spring.datasource.url=jdbc:mysql://localhost:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 -#spring.datasource.username=topsail -#spring.datasource.password=topsail2020 \ No newline at end of file diff --git a/src/main/resources/application-rds.properties b/src/main/resources/application-rds.properties index 92b7783..9150f6d 100644 --- a/src/main/resources/application-rds.properties +++ b/src/main/resources/application-rds.properties @@ -3,9 +3,7 @@ spring.rabbitmq.host=182.92.218.150 spring.rabbitmq.username=topsail spring.rabbitmq.password=topsail -spring.datasource.url=jdbc:mysql://rm-2ze77qng1ddlfur9g4o.mysql.rds.aliyuncs.com/iot?useUnicode=true&characterEncoding=UTF-8&zeroDateTimeBehavior=convertToNull&serverTimezone=Asia/Shanghai +spring.datasource.url=jdbc:mysql://rm-2ze77qng1ddlfur9g4o.mysql.rds.aliyuncs.com:3306/zhrl?useSSL=false&serverTimezone=UTC&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&zeroDateTimeBehavior=convertToNull +spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver spring.datasource.username=topsail -spring.datasource.password=Topsail2020 -#spring.datasource.url=jdbc:mysql://localhost:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 -#spring.datasource.username=topsail -#spring.datasource.password=topsail2020 \ No newline at end of file +spring.datasource.password=Topsail2020 \ No newline at end of file diff --git a/src/main/resources/application-test.properties b/src/main/resources/application-test.properties deleted file mode 100644 index 7cf8979..0000000 --- a/src/main/resources/application-test.properties +++ /dev/null @@ -1,6 +0,0 @@ -spring.rabbitmq.host=47.97.117.253 -#spring.rabbitmq.username=topsail -#spring.rabbitmq.password=top -#spring.datasource.url=jdbc:mysql://localhost:3306/iot?useSSL=false&useUnicode=true&characterEncoding=utf-8 -#spring.datasource.username=topsail -#spring.datasource.password=topsail2020 \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 8f0c652..9da3c08 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -1,3 +1,4 @@ +server.port=8898 spring.rabbitmq.host=localhost spring.rabbitmq.port=5672 spring.rabbitmq.username=topsail diff --git a/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java b/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java index 48bfc9f..97fe87a 100644 --- a/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java +++ b/src/test/java/com/topsail/influxdb/OperateInfluxdbApplicationTests.java @@ -2,7 +2,7 @@ package com.topsail.influxdb; import com.topsail.influxdb.mapper.DeviceDetailMapper; import com.topsail.influxdb.pojo.DeviceDetail; -import com.topsail.influxdb.rabbitmq.service.IotService; +import com.topsail.influxdb.service.DeviceDataService; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; @@ -13,7 +13,7 @@ import org.springframework.test.context.junit4.SpringRunner; public class OperateInfluxdbApplicationTests { @Autowired - IotService iotService; + DeviceDataService deviceDataService; @Autowired DeviceDetailMapper deviceDetailMapper;