设备信息新增

dev
liuguijing 1 year ago
parent 5acba6b715
commit 1629f3e061

@ -1,13 +1,11 @@
package com.shxy.xymanager_admin.controller;
import cn.hutool.core.date.DateTime;
import com.shxy.xymanager_common.annotation.Log;
import com.shxy.xymanager_common.base.BaseController;
import com.shxy.xymanager_common.base.ResponseReult;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.bean.ServiceStatus;
import com.shxy.xymanager_common.entity.TerminalFaults;
import com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals;
import com.shxy.xymanager_common.entity.*;
import com.shxy.xymanager_common.excelbean.TerminalAndLastPicListExcelModel;
import com.shxy.xymanager_common.excelbean.TerminalListExcelModel;
import com.shxy.xymanager_common.model.*;
@ -249,8 +247,8 @@ public class TerminalController extends BaseController {
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getWorkingStatusHistory")
@Log(title = "工作状态历史", type = "查询")
public ResponseReult<TerminalStatusInfoModel> getWorkingStatusHistory(TermFaultsVo vo) {
ServiceBody<TerminalStatusInfoModel> serviceBody = terminalService.getWorkingStatusHistory(vo);
public ResponseReult<TableDataInfo<TerminalWorkingStatusHistory>> getWorkingStatusHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalWorkingStatusHistory>> serviceBody = terminalService.getWorkingStatusHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
@ -258,6 +256,15 @@ public class TerminalController extends BaseController {
}
}
@ApiOperation(value = "工作状态历史Excel", notes = "工作状态历史Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getWorkingStatusHistoryExcel")
@Log(title = "工作状态历史Excel", type = "查询")
public void getWorkingStatusHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalWorkingStatusHistory>> serviceBody = terminalService.getWorkingStatusHistory(vo);
EasyExcelUtil.createExcel(response, "设备工作状态列表", serviceBody.getData().getList(), TerminalWorkingStatusHistory.class);
}
@ApiOperation(value = "装置统计", notes = "装置统计", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermStatistics")
@ -368,4 +375,71 @@ public class TerminalController extends BaseController {
EasyExcelUtil.createExcel(response, "设备故障列表", serviceBody.getData().getList(), TerminalFaults.class);
}
@ApiOperation(value = "获取设备运行状态历史", notes = "获取设备运行状态历史", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermRunningHistory")
@Log(title = "获取设备运行状态历史", type = "查询")
public ResponseReult<TableDataInfo<TerminalRunningStatusHistory>> getTermRunningHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalRunningStatusHistory>> serviceBody = terminalService.getTermRunningHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取设备运行状态历史Excel", notes = "获取设备运行状态历史Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermRunningHistoryExcel")
@Log(title = "获取设备运行状态历史", type = "查询")
public void getTermRunningHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalRunningStatusHistory>> serviceBody = terminalService.getTermRunningHistory(vo);
EasyExcelUtil.createExcel(response, "设备运行列表", serviceBody.getData().getList(), TerminalRunningStatusHistory.class);
}
@ApiOperation(value = "获取设备Gps历史", notes = "获取设备Gps历史", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermGpsHistory")
@Log(title = "获取设备Gps历史", type = "查询")
public ResponseReult<TableDataInfo<TerminalPositionHistory>> getTermGpsHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalPositionHistory>> serviceBody = terminalService.getTermGpsHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取设备Gps历史Excel", notes = "获取设备Gps历史Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermGpsHistoryExcel")
@Log(title = "获取设备Gps历史Excel", type = "查询")
public void getTermGpsHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalPositionHistory>> serviceBody = terminalService.getTermGpsHistory(vo);
EasyExcelUtil.createExcel(response, "设备GPS列表", serviceBody.getData().getList(), TerminalPositionHistory.class);
}
@ApiOperation(value = "获取设备基本信息", notes = "获取设备基本信息", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@RequestMapping("/getTermBasicInfoHistory")
@Log(title = "获取设备基本信息", type = "查询")
public ResponseReult<TableDataInfo<TerminalBasicInfoHistory>> getTermBasicInfoHistory(@RequestBody TermFaultsVo vo) {
ServiceBody<TableDataInfo<TerminalBasicInfoHistory>> serviceBody = terminalService.getTermBasicInfoHistory(vo);
if (serviceBody.getCode() == ServiceStatus.SUCCESS) {
return ResponseReult.success(serviceBody.getData());
} else {
return ResponseReult.error(serviceBody.getCode(), serviceBody.getMsg());
}
}
@ApiOperation(value = "获取设备基本信息Excel", notes = "获取设备基本信息Excel", httpMethod = "POST")
@ApiResponses({@ApiResponse(code = 200, message = "请求成功"), @ApiResponse(code = 400, message = "请求参数没填好"), @ApiResponse(code = 404, message = "请求路径没有或页面跳转路径不对")})
@GetMapping("/getTermBasicInfoHistoryExcel")
@Log(title = "获取设备基本信息Excel", type = "查询")
public void getTermBasicInfoHistoryExcel(HttpServletResponse response, TermFaultsVo vo) throws IOException {
ServiceBody<TableDataInfo<TerminalBasicInfoHistory>> serviceBody = terminalService.getTermBasicInfoHistory(vo);
EasyExcelUtil.createExcel(response, "设备基本信息列表", serviceBody.getData().getList(), TerminalBasicInfoHistory.class);
}
}

@ -1 +1 @@
#org.springframework.boot.env.EnvironmentPostProcessor=com.shxy.xymanager_framework.config.MyEnvironmentPostProcessor
org.springframework.boot.env.EnvironmentPostProcessor=com.shxy.xymanager_framework.config.MyEnvironmentPostProcessor

@ -0,0 +1,49 @@
package com.shxy.xymanager_common.entity;
import cn.hutool.core.date.DateTime;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.shxy.xymanager_common.util.MyDateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
@Data
@ApiModel(value = "设备基本信息的历史", description = "设备基本信息的历史")
public class TerminalBasicInfoHistory implements Serializable {
@ColumnWidth(20)
@ExcelProperty("设备编号")
@ApiModelProperty(value = "图像监测装置 ID", example = "123456")
private String cmdid;
@ExcelIgnore
private Integer termId;
@ColumnWidth(20)
@ExcelProperty("版本号")
@ApiModelProperty(value = "版本号", example = "123456")
private String version;
@ColumnWidth(20)
@ExcelProperty("出厂编号")
@ApiModelProperty(value = "出厂编号", example = "123456")
private String bsId;
@ExcelIgnore
private BigInteger updateTime;
@ColumnWidth(20)
@ExcelProperty("更新时间")
private String updateTimeStr;
public String getUpdateTimeStr() {
long time = MyDateUtils.TimeSecond2MillSecond(updateTime.longValue());
DateTime date = MyDateUtils.date(time);
return date.toString();
}
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,530 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class TerminalBasicInfoHistoryExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TerminalBasicInfoHistoryExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andCmdidIsNull() {
addCriterion("cmdid is null");
return (Criteria) this;
}
public Criteria andCmdidIsNotNull() {
addCriterion("cmdid is not null");
return (Criteria) this;
}
public Criteria andCmdidEqualTo(String value) {
addCriterion("cmdid =", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidNotEqualTo(String value) {
addCriterion("cmdid <>", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidGreaterThan(String value) {
addCriterion("cmdid >", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidGreaterThanOrEqualTo(String value) {
addCriterion("cmdid >=", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidLessThan(String value) {
addCriterion("cmdid <", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidLessThanOrEqualTo(String value) {
addCriterion("cmdid <=", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidLike(String value) {
addCriterion("cmdid like", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidNotLike(String value) {
addCriterion("cmdid not like", value, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidIn(List<String> values) {
addCriterion("cmdid in", values, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidNotIn(List<String> values) {
addCriterion("cmdid not in", values, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidBetween(String value1, String value2) {
addCriterion("cmdid between", value1, value2, "cmdid");
return (Criteria) this;
}
public Criteria andCmdidNotBetween(String value1, String value2) {
addCriterion("cmdid not between", value1, value2, "cmdid");
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<String> values) {
addCriterion("version in", values, "version");
return (Criteria) this;
}
public Criteria andVersionNotIn(List<String> 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 andBsIdIsNull() {
addCriterion("bs_id is null");
return (Criteria) this;
}
public Criteria andBsIdIsNotNull() {
addCriterion("bs_id is not null");
return (Criteria) this;
}
public Criteria andBsIdEqualTo(String value) {
addCriterion("bs_id =", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdNotEqualTo(String value) {
addCriterion("bs_id <>", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdGreaterThan(String value) {
addCriterion("bs_id >", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdGreaterThanOrEqualTo(String value) {
addCriterion("bs_id >=", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdLessThan(String value) {
addCriterion("bs_id <", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdLessThanOrEqualTo(String value) {
addCriterion("bs_id <=", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdLike(String value) {
addCriterion("bs_id like", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdNotLike(String value) {
addCriterion("bs_id not like", value, "bsId");
return (Criteria) this;
}
public Criteria andBsIdIn(List<String> values) {
addCriterion("bs_id in", values, "bsId");
return (Criteria) this;
}
public Criteria andBsIdNotIn(List<String> values) {
addCriterion("bs_id not in", values, "bsId");
return (Criteria) this;
}
public Criteria andBsIdBetween(String value1, String value2) {
addCriterion("bs_id between", value1, value2, "bsId");
return (Criteria) this;
}
public Criteria andBsIdNotBetween(String value1, String value2) {
addCriterion("bs_id not between", value1, value2, "bsId");
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(Long value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Long value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Long value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Long value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Long value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Long> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Long> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Long value1, Long value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Long value1, Long value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -0,0 +1,67 @@
package com.shxy.xymanager_common.entity;
import cn.hutool.core.date.DateTime;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.shxy.xymanager_common.util.MyDateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
@Data
@ApiModel(value = "设备GPS的历史", description = "设备GPS的历史")
public class TerminalPositionHistory implements Serializable {
@ColumnWidth(20)
@ExcelProperty("设备编号")
@ApiModelProperty(value = "图像监测装置 ID", example = "123456")
private String cmdid;
@ExcelIgnore
@ApiModelProperty(value = "编号", example = "123456")
private BigInteger id;
@ExcelIgnore
@ApiModelProperty(value = "装置编号", example = "123456")
private Integer termId;
@ExcelIgnore
@ApiModelProperty(value = "类型", example = "123456")
private Integer coordinateType;
@ColumnWidth(20)
@ExcelProperty("半径")
@ApiModelProperty(value = "半径", example = "123456")
private Integer radius;
@ColumnWidth(20)
@ExcelProperty("纬度")
@ApiModelProperty(value = "纬度", example = "123456")
private Double latitude;
@ColumnWidth(20)
@ExcelProperty("经度")
@ApiModelProperty(value = "经度", example = "123456")
private Double longitude;
@ExcelIgnore
@ApiModelProperty(value = "修改时间", example = "123456")
private BigInteger updateTime;
@ColumnWidth(20)
@ExcelProperty("更新时间")
private BigInteger updateTimeStr;
public String getUpdateTimeStr() {
long time = MyDateUtils.TimeSecond2MillSecond(updateTime.longValue());
DateTime date = MyDateUtils.date(time);
return date.toString();
}
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,620 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class TerminalPositionHistoryExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TerminalPositionHistoryExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andIdIsNull() {
addCriterion("id is null");
return (Criteria) this;
}
public Criteria andIdIsNotNull() {
addCriterion("id is not null");
return (Criteria) this;
}
public Criteria andIdEqualTo(Long value) {
addCriterion("id =", value, "id");
return (Criteria) this;
}
public Criteria andIdNotEqualTo(Long value) {
addCriterion("id <>", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThan(Long value) {
addCriterion("id >", value, "id");
return (Criteria) this;
}
public Criteria andIdGreaterThanOrEqualTo(Long value) {
addCriterion("id >=", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThan(Long value) {
addCriterion("id <", value, "id");
return (Criteria) this;
}
public Criteria andIdLessThanOrEqualTo(Long value) {
addCriterion("id <=", value, "id");
return (Criteria) this;
}
public Criteria andIdIn(List<Long> values) {
addCriterion("id in", values, "id");
return (Criteria) this;
}
public Criteria andIdNotIn(List<Long> values) {
addCriterion("id not in", values, "id");
return (Criteria) this;
}
public Criteria andIdBetween(Long value1, Long value2) {
addCriterion("id between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andIdNotBetween(Long value1, Long value2) {
addCriterion("id not between", value1, value2, "id");
return (Criteria) this;
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andCoordinateTypeIsNull() {
addCriterion("coordinate_type is null");
return (Criteria) this;
}
public Criteria andCoordinateTypeIsNotNull() {
addCriterion("coordinate_type is not null");
return (Criteria) this;
}
public Criteria andCoordinateTypeEqualTo(Byte value) {
addCriterion("coordinate_type =", value, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeNotEqualTo(Byte value) {
addCriterion("coordinate_type <>", value, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeGreaterThan(Byte value) {
addCriterion("coordinate_type >", value, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeGreaterThanOrEqualTo(Byte value) {
addCriterion("coordinate_type >=", value, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeLessThan(Byte value) {
addCriterion("coordinate_type <", value, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeLessThanOrEqualTo(Byte value) {
addCriterion("coordinate_type <=", value, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeIn(List<Byte> values) {
addCriterion("coordinate_type in", values, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeNotIn(List<Byte> values) {
addCriterion("coordinate_type not in", values, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeBetween(Byte value1, Byte value2) {
addCriterion("coordinate_type between", value1, value2, "coordinateType");
return (Criteria) this;
}
public Criteria andCoordinateTypeNotBetween(Byte value1, Byte value2) {
addCriterion("coordinate_type not between", value1, value2, "coordinateType");
return (Criteria) this;
}
public Criteria andRadiusIsNull() {
addCriterion("radius is null");
return (Criteria) this;
}
public Criteria andRadiusIsNotNull() {
addCriterion("radius is not null");
return (Criteria) this;
}
public Criteria andRadiusEqualTo(Short value) {
addCriterion("radius =", value, "radius");
return (Criteria) this;
}
public Criteria andRadiusNotEqualTo(Short value) {
addCriterion("radius <>", value, "radius");
return (Criteria) this;
}
public Criteria andRadiusGreaterThan(Short value) {
addCriterion("radius >", value, "radius");
return (Criteria) this;
}
public Criteria andRadiusGreaterThanOrEqualTo(Short value) {
addCriterion("radius >=", value, "radius");
return (Criteria) this;
}
public Criteria andRadiusLessThan(Short value) {
addCriterion("radius <", value, "radius");
return (Criteria) this;
}
public Criteria andRadiusLessThanOrEqualTo(Short value) {
addCriterion("radius <=", value, "radius");
return (Criteria) this;
}
public Criteria andRadiusIn(List<Short> values) {
addCriterion("radius in", values, "radius");
return (Criteria) this;
}
public Criteria andRadiusNotIn(List<Short> values) {
addCriterion("radius not in", values, "radius");
return (Criteria) this;
}
public Criteria andRadiusBetween(Short value1, Short value2) {
addCriterion("radius between", value1, value2, "radius");
return (Criteria) this;
}
public Criteria andRadiusNotBetween(Short value1, Short value2) {
addCriterion("radius not between", value1, value2, "radius");
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<Double> values) {
addCriterion("latitude in", values, "latitude");
return (Criteria) this;
}
public Criteria andLatitudeNotIn(List<Double> 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<Double> values) {
addCriterion("longitude in", values, "longitude");
return (Criteria) this;
}
public Criteria andLongitudeNotIn(List<Double> 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 andUpdateTimeIsNull() {
addCriterion("update_time is null");
return (Criteria) this;
}
public Criteria andUpdateTimeIsNotNull() {
addCriterion("update_time is not null");
return (Criteria) this;
}
public Criteria andUpdateTimeEqualTo(Long value) {
addCriterion("update_time =", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotEqualTo(Long value) {
addCriterion("update_time <>", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThan(Long value) {
addCriterion("update_time >", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("update_time >=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThan(Long value) {
addCriterion("update_time <", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeLessThanOrEqualTo(Long value) {
addCriterion("update_time <=", value, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeIn(List<Long> values) {
addCriterion("update_time in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotIn(List<Long> values) {
addCriterion("update_time not in", values, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeBetween(Long value1, Long value2) {
addCriterion("update_time between", value1, value2, "updateTime");
return (Criteria) this;
}
public Criteria andUpdateTimeNotBetween(Long value1, Long value2) {
addCriterion("update_time not between", value1, value2, "updateTime");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

@ -0,0 +1,78 @@
package com.shxy.xymanager_common.entity;
import cn.hutool.core.date.DateTime;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.shxy.xymanager_common.util.MyDateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigInteger;
@Data
@ApiModel(value = "设备运行状态的历史", description = "设备运行状态的信息")
public class TerminalRunningStatusHistory implements Serializable {
@ColumnWidth(20)
@ExcelProperty("设备编号")
@ApiModelProperty(value = "图像监测装置 ID", example = "123456")
private String cmdid;
@ExcelIgnore
@ApiModelProperty(value = "装置编号", example = "123456")
private Integer termId;
@ColumnWidth(20)
@ExcelProperty("4G信号强度")
@ApiModelProperty(value = "4G信号强度", example = "123456")
private Integer signalStrength4g;
@ColumnWidth(20)
@ExcelProperty("2G信号强度")
@ApiModelProperty(value = "2G信号强度", example = "123456")
private Integer signalStrength2g;
@ColumnWidth(20)
@ExcelProperty("剩余运行内存")
@ApiModelProperty(value = "剩余运行内存", example = "123456")
private Integer remainingRam;
@ColumnWidth(20)
@ExcelProperty("剩余存储内存")
@ApiModelProperty(value = "剩余存储内存", example = "123456")
private Integer remainingRom;
@ExcelIgnore
@ApiModelProperty(value = "装置上次启动时间", example = "123456")
private BigInteger bootTime;
@ColumnWidth(20)
@ExcelProperty("装置上次启动时间")
private String bootTimeStr;
public String getBootTimeStr() {
long time = MyDateUtils.TimeSecond2MillSecond(bootTime.longValue());
DateTime date = MyDateUtils.date(time);
return date.toString();
}
@ExcelIgnore
@ApiModelProperty(value = "运行状态更新时间", example = "123456")
private BigInteger rsUpdateTime;
@ColumnWidth(20)
@ExcelProperty("运行状态更新时间")
private String rsUpdateTimeStr;
public String getRsUpdateTimeStr() {
long time = MyDateUtils.TimeSecond2MillSecond(rsUpdateTime.longValue());
DateTime date = MyDateUtils.date(time);
return date.toString();
}
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,620 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class TerminalRunningStatusHistoryExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TerminalRunningStatusHistoryExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andSignalStrength4gIsNull() {
addCriterion("signal_strength_4g is null");
return (Criteria) this;
}
public Criteria andSignalStrength4gIsNotNull() {
addCriterion("signal_strength_4g is not null");
return (Criteria) this;
}
public Criteria andSignalStrength4gEqualTo(Byte value) {
addCriterion("signal_strength_4g =", value, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gNotEqualTo(Byte value) {
addCriterion("signal_strength_4g <>", value, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gGreaterThan(Byte value) {
addCriterion("signal_strength_4g >", value, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gGreaterThanOrEqualTo(Byte value) {
addCriterion("signal_strength_4g >=", value, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gLessThan(Byte value) {
addCriterion("signal_strength_4g <", value, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gLessThanOrEqualTo(Byte value) {
addCriterion("signal_strength_4g <=", value, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gIn(List<Byte> values) {
addCriterion("signal_strength_4g in", values, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gNotIn(List<Byte> values) {
addCriterion("signal_strength_4g not in", values, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gBetween(Byte value1, Byte value2) {
addCriterion("signal_strength_4g between", value1, value2, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength4gNotBetween(Byte value1, Byte value2) {
addCriterion("signal_strength_4g not between", value1, value2, "signalStrength4g");
return (Criteria) this;
}
public Criteria andSignalStrength2gIsNull() {
addCriterion("signal_strength_2g is null");
return (Criteria) this;
}
public Criteria andSignalStrength2gIsNotNull() {
addCriterion("signal_strength_2g is not null");
return (Criteria) this;
}
public Criteria andSignalStrength2gEqualTo(Byte value) {
addCriterion("signal_strength_2g =", value, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gNotEqualTo(Byte value) {
addCriterion("signal_strength_2g <>", value, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gGreaterThan(Byte value) {
addCriterion("signal_strength_2g >", value, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gGreaterThanOrEqualTo(Byte value) {
addCriterion("signal_strength_2g >=", value, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gLessThan(Byte value) {
addCriterion("signal_strength_2g <", value, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gLessThanOrEqualTo(Byte value) {
addCriterion("signal_strength_2g <=", value, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gIn(List<Byte> values) {
addCriterion("signal_strength_2g in", values, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gNotIn(List<Byte> values) {
addCriterion("signal_strength_2g not in", values, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gBetween(Byte value1, Byte value2) {
addCriterion("signal_strength_2g between", value1, value2, "signalStrength2g");
return (Criteria) this;
}
public Criteria andSignalStrength2gNotBetween(Byte value1, Byte value2) {
addCriterion("signal_strength_2g not between", value1, value2, "signalStrength2g");
return (Criteria) this;
}
public Criteria andRemainingRamIsNull() {
addCriterion("remaining_ram is null");
return (Criteria) this;
}
public Criteria andRemainingRamIsNotNull() {
addCriterion("remaining_ram is not null");
return (Criteria) this;
}
public Criteria andRemainingRamEqualTo(Short value) {
addCriterion("remaining_ram =", value, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamNotEqualTo(Short value) {
addCriterion("remaining_ram <>", value, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamGreaterThan(Short value) {
addCriterion("remaining_ram >", value, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamGreaterThanOrEqualTo(Short value) {
addCriterion("remaining_ram >=", value, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamLessThan(Short value) {
addCriterion("remaining_ram <", value, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamLessThanOrEqualTo(Short value) {
addCriterion("remaining_ram <=", value, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamIn(List<Short> values) {
addCriterion("remaining_ram in", values, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamNotIn(List<Short> values) {
addCriterion("remaining_ram not in", values, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamBetween(Short value1, Short value2) {
addCriterion("remaining_ram between", value1, value2, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRamNotBetween(Short value1, Short value2) {
addCriterion("remaining_ram not between", value1, value2, "remainingRam");
return (Criteria) this;
}
public Criteria andRemainingRomIsNull() {
addCriterion("remaining_rom is null");
return (Criteria) this;
}
public Criteria andRemainingRomIsNotNull() {
addCriterion("remaining_rom is not null");
return (Criteria) this;
}
public Criteria andRemainingRomEqualTo(Short value) {
addCriterion("remaining_rom =", value, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomNotEqualTo(Short value) {
addCriterion("remaining_rom <>", value, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomGreaterThan(Short value) {
addCriterion("remaining_rom >", value, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomGreaterThanOrEqualTo(Short value) {
addCriterion("remaining_rom >=", value, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomLessThan(Short value) {
addCriterion("remaining_rom <", value, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomLessThanOrEqualTo(Short value) {
addCriterion("remaining_rom <=", value, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomIn(List<Short> values) {
addCriterion("remaining_rom in", values, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomNotIn(List<Short> values) {
addCriterion("remaining_rom not in", values, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomBetween(Short value1, Short value2) {
addCriterion("remaining_rom between", value1, value2, "remainingRom");
return (Criteria) this;
}
public Criteria andRemainingRomNotBetween(Short value1, Short value2) {
addCriterion("remaining_rom not between", value1, value2, "remainingRom");
return (Criteria) this;
}
public Criteria andBootTimeIsNull() {
addCriterion("boot_time is null");
return (Criteria) this;
}
public Criteria andBootTimeIsNotNull() {
addCriterion("boot_time is not null");
return (Criteria) this;
}
public Criteria andBootTimeEqualTo(Long value) {
addCriterion("boot_time =", value, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeNotEqualTo(Long value) {
addCriterion("boot_time <>", value, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeGreaterThan(Long value) {
addCriterion("boot_time >", value, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeGreaterThanOrEqualTo(Long value) {
addCriterion("boot_time >=", value, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeLessThan(Long value) {
addCriterion("boot_time <", value, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeLessThanOrEqualTo(Long value) {
addCriterion("boot_time <=", value, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeIn(List<Long> values) {
addCriterion("boot_time in", values, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeNotIn(List<Long> values) {
addCriterion("boot_time not in", values, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeBetween(Long value1, Long value2) {
addCriterion("boot_time between", value1, value2, "bootTime");
return (Criteria) this;
}
public Criteria andBootTimeNotBetween(Long value1, Long value2) {
addCriterion("boot_time not between", value1, value2, "bootTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeIsNull() {
addCriterion("rs_update_time is null");
return (Criteria) this;
}
public Criteria andRsUpdateTimeIsNotNull() {
addCriterion("rs_update_time is not null");
return (Criteria) this;
}
public Criteria andRsUpdateTimeEqualTo(Long value) {
addCriterion("rs_update_time =", value, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeNotEqualTo(Long value) {
addCriterion("rs_update_time <>", value, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeGreaterThan(Long value) {
addCriterion("rs_update_time >", value, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("rs_update_time >=", value, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeLessThan(Long value) {
addCriterion("rs_update_time <", value, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeLessThanOrEqualTo(Long value) {
addCriterion("rs_update_time <=", value, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeIn(List<Long> values) {
addCriterion("rs_update_time in", values, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeNotIn(List<Long> values) {
addCriterion("rs_update_time not in", values, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeBetween(Long value1, Long value2) {
addCriterion("rs_update_time between", value1, value2, "rsUpdateTime");
return (Criteria) this;
}
public Criteria andRsUpdateTimeNotBetween(Long value1, Long value2) {
addCriterion("rs_update_time not between", value1, value2, "rsUpdateTime");
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);
}
}
}

@ -0,0 +1,140 @@
package com.shxy.xymanager_common.entity;
import cn.hutool.core.date.DateTime;
import cn.hutool.core.util.NumberUtil;
import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ColumnWidth;
import com.shxy.xymanager_common.enums.CommonStatus;
import com.shxy.xymanager_common.util.MyDateUtils;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.math.BigInteger;
@Data
@ApiModel(value = "设备状态的信息历史", description = "设备状态的信息")
public class TerminalWorkingStatusHistory implements Serializable {
@ExcelIgnore
@ApiModelProperty(value = "装置编号", example = "123456")
private Integer termId;
@ColumnWidth(20)
@ExcelProperty("电池电压")
@ApiModelProperty(value = "电池电压", example = "123456")
private Double batteryVoltage;
@ColumnWidth(20)
@ExcelProperty("工作温度")
@ApiModelProperty(value = "工作温度", example = "123456")
private Double opTemperature;
@ExcelIgnore
@ApiModelProperty(value = "电池电量", example = "123456")
private Double batteryCapacity;
@ColumnWidth(20)
@ExcelProperty("电池电量")
@ApiModelProperty(value = "电池电量", example = "123456")
private String batteryCapacityStr;
@ColumnWidth(20)
@ExcelProperty("浮充状态")
@ApiModelProperty(value = "浮充状态:充电 放电", example = "12345678")
private String floatingChargeStr;
public String getFloatingChargeStr() {
boolean equals = CommonStatus.DELETE.value().equals(floatingCharge);
if (equals) {
return "充电";
} else {
return "放电";
}
}
@ExcelIgnore
@ApiModelProperty(value = "浮充状态:充电 放电", example = "12345678")
private BigInteger floatingCharge;
@ColumnWidth(20)
@ExcelProperty("工作总时间(小时)")
@ApiModelProperty(value = "工作总时间(小时)", example = "名称名称")
private BigInteger totalWorkingTime;
@ColumnWidth(20)
@ExcelProperty("本次连续工作时间(小时)")
@ApiModelProperty(value = "本次连续工作时间(小时)", example = "12345678")
private BigInteger workingTime;
@ColumnWidth(20)
@ExcelProperty("网络连接状态")
@ApiModelProperty(value = "网络连接状态 ", example = "名称名称")
private String connectionStr;
public String getConnectionStr() {
boolean equals = CommonStatus.DELETE.value().equals(connectionState);
if (equals) {
return "正常";
} else {
return "断开";
}
}
@ExcelIgnore
@ApiModelProperty(value = "网络连接状态 ", example = "名称名称")
private Integer connectionState;
@ExcelIgnore
@ApiModelProperty(value = "当月发送流量", example = "123456")
private BigInteger sendFlow;
@ColumnWidth(20)
@ExcelProperty("当月发送流量M")
@ApiModelProperty(value = "当月发送流量", example = "123456")
private String sendFlowStr;
public String getSendFlowStr() {
BigDecimal div = NumberUtil.div(sendFlow, 1024,2);
return div.toString();
}
@ExcelIgnore
@ApiModelProperty(value = "当月接收流量", example = "123456")
private BigInteger recvFlow;
@ColumnWidth(20)
@ExcelProperty("当月接收流量M")
@ApiModelProperty(value = "当月接收流量", example = "123456")
private String recvFlowStr;
public String getRecvFlowStr() {
BigDecimal div = NumberUtil.div(recvFlow, 1024,2);
return div.toString();
}
@ExcelIgnore
@ApiModelProperty(value = "通信协议版本", example = "123456")
private String protocolVersion;
@ColumnWidth(20)
@ExcelProperty("工作状态更新时间")
@ApiModelProperty(value = "工作状态更新时间", example = "123456")
private String wsUpdateTimeStr;
public String getWsUpdateTimeStr() {
long time = MyDateUtils.TimeSecond2MillSecond(wsUpdateTime.longValue());
DateTime date = MyDateUtils.date(time);
return date.toString();
}
@ExcelIgnore
public BigInteger wsUpdateTime;
@ColumnWidth(20)
@ExcelProperty("设备编号")
@ApiModelProperty(value = "图像监测装置 ID", example = "123456")
private String cmdid;
private static final long serialVersionUID = 1L;
}

@ -0,0 +1,930 @@
package com.shxy.xymanager_common.entity;
import java.util.ArrayList;
import java.util.List;
public class TerminalWorkingStatusHistoryExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TerminalWorkingStatusHistoryExample() {
oredCriteria = new ArrayList<Criteria>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<Criterion>();
}
public boolean isValid() {
return criteria.size() > 0;
}
public List<Criterion> getAllCriteria() {
return criteria;
}
public List<Criterion> getCriteria() {
return criteria;
}
protected void addCriterion(String condition) {
if (condition == null) {
throw new RuntimeException("Value for condition cannot be null");
}
criteria.add(new Criterion(condition));
}
protected void addCriterion(String condition, Object value, String property) {
if (value == null) {
throw new RuntimeException("Value for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value));
}
protected void addCriterion(String condition, Object value1, Object value2, String property) {
if (value1 == null || value2 == null) {
throw new RuntimeException("Between values for " + property + " cannot be null");
}
criteria.add(new Criterion(condition, value1, value2));
}
public Criteria andTermIdIsNull() {
addCriterion("term_id is null");
return (Criteria) this;
}
public Criteria andTermIdIsNotNull() {
addCriterion("term_id is not null");
return (Criteria) this;
}
public Criteria andTermIdEqualTo(Integer value) {
addCriterion("term_id =", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotEqualTo(Integer value) {
addCriterion("term_id <>", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThan(Integer value) {
addCriterion("term_id >", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdGreaterThanOrEqualTo(Integer value) {
addCriterion("term_id >=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThan(Integer value) {
addCriterion("term_id <", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdLessThanOrEqualTo(Integer value) {
addCriterion("term_id <=", value, "termId");
return (Criteria) this;
}
public Criteria andTermIdIn(List<Integer> values) {
addCriterion("term_id in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotIn(List<Integer> values) {
addCriterion("term_id not in", values, "termId");
return (Criteria) this;
}
public Criteria andTermIdBetween(Integer value1, Integer value2) {
addCriterion("term_id between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andTermIdNotBetween(Integer value1, Integer value2) {
addCriterion("term_id not between", value1, value2, "termId");
return (Criteria) this;
}
public Criteria andBatteryVoltageIsNull() {
addCriterion("battery_voltage is null");
return (Criteria) this;
}
public Criteria andBatteryVoltageIsNotNull() {
addCriterion("battery_voltage is not null");
return (Criteria) this;
}
public Criteria andBatteryVoltageEqualTo(Float value) {
addCriterion("battery_voltage =", value, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageNotEqualTo(Float value) {
addCriterion("battery_voltage <>", value, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageGreaterThan(Float value) {
addCriterion("battery_voltage >", value, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageGreaterThanOrEqualTo(Float value) {
addCriterion("battery_voltage >=", value, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageLessThan(Float value) {
addCriterion("battery_voltage <", value, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageLessThanOrEqualTo(Float value) {
addCriterion("battery_voltage <=", value, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageIn(List<Float> values) {
addCriterion("battery_voltage in", values, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageNotIn(List<Float> values) {
addCriterion("battery_voltage not in", values, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageBetween(Float value1, Float value2) {
addCriterion("battery_voltage between", value1, value2, "batteryVoltage");
return (Criteria) this;
}
public Criteria andBatteryVoltageNotBetween(Float value1, Float value2) {
addCriterion("battery_voltage not between", value1, value2, "batteryVoltage");
return (Criteria) this;
}
public Criteria andOpTemperatureIsNull() {
addCriterion("op_temperature is null");
return (Criteria) this;
}
public Criteria andOpTemperatureIsNotNull() {
addCriterion("op_temperature is not null");
return (Criteria) this;
}
public Criteria andOpTemperatureEqualTo(Float value) {
addCriterion("op_temperature =", value, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureNotEqualTo(Float value) {
addCriterion("op_temperature <>", value, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureGreaterThan(Float value) {
addCriterion("op_temperature >", value, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureGreaterThanOrEqualTo(Float value) {
addCriterion("op_temperature >=", value, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureLessThan(Float value) {
addCriterion("op_temperature <", value, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureLessThanOrEqualTo(Float value) {
addCriterion("op_temperature <=", value, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureIn(List<Float> values) {
addCriterion("op_temperature in", values, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureNotIn(List<Float> values) {
addCriterion("op_temperature not in", values, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureBetween(Float value1, Float value2) {
addCriterion("op_temperature between", value1, value2, "opTemperature");
return (Criteria) this;
}
public Criteria andOpTemperatureNotBetween(Float value1, Float value2) {
addCriterion("op_temperature not between", value1, value2, "opTemperature");
return (Criteria) this;
}
public Criteria andBatteryCapacityIsNull() {
addCriterion("battery_capacity is null");
return (Criteria) this;
}
public Criteria andBatteryCapacityIsNotNull() {
addCriterion("battery_capacity is not null");
return (Criteria) this;
}
public Criteria andBatteryCapacityEqualTo(Float value) {
addCriterion("battery_capacity =", value, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityNotEqualTo(Float value) {
addCriterion("battery_capacity <>", value, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityGreaterThan(Float value) {
addCriterion("battery_capacity >", value, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityGreaterThanOrEqualTo(Float value) {
addCriterion("battery_capacity >=", value, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityLessThan(Float value) {
addCriterion("battery_capacity <", value, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityLessThanOrEqualTo(Float value) {
addCriterion("battery_capacity <=", value, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityIn(List<Float> values) {
addCriterion("battery_capacity in", values, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityNotIn(List<Float> values) {
addCriterion("battery_capacity not in", values, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityBetween(Float value1, Float value2) {
addCriterion("battery_capacity between", value1, value2, "batteryCapacity");
return (Criteria) this;
}
public Criteria andBatteryCapacityNotBetween(Float value1, Float value2) {
addCriterion("battery_capacity not between", value1, value2, "batteryCapacity");
return (Criteria) this;
}
public Criteria andFloatingChargeIsNull() {
addCriterion("floating_charge is null");
return (Criteria) this;
}
public Criteria andFloatingChargeIsNotNull() {
addCriterion("floating_charge is not null");
return (Criteria) this;
}
public Criteria andFloatingChargeEqualTo(Byte value) {
addCriterion("floating_charge =", value, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeNotEqualTo(Byte value) {
addCriterion("floating_charge <>", value, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeGreaterThan(Byte value) {
addCriterion("floating_charge >", value, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeGreaterThanOrEqualTo(Byte value) {
addCriterion("floating_charge >=", value, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeLessThan(Byte value) {
addCriterion("floating_charge <", value, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeLessThanOrEqualTo(Byte value) {
addCriterion("floating_charge <=", value, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeIn(List<Byte> values) {
addCriterion("floating_charge in", values, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeNotIn(List<Byte> values) {
addCriterion("floating_charge not in", values, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeBetween(Byte value1, Byte value2) {
addCriterion("floating_charge between", value1, value2, "floatingCharge");
return (Criteria) this;
}
public Criteria andFloatingChargeNotBetween(Byte value1, Byte value2) {
addCriterion("floating_charge not between", value1, value2, "floatingCharge");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeIsNull() {
addCriterion("total_working_time is null");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeIsNotNull() {
addCriterion("total_working_time is not null");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeEqualTo(Integer value) {
addCriterion("total_working_time =", value, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeNotEqualTo(Integer value) {
addCriterion("total_working_time <>", value, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeGreaterThan(Integer value) {
addCriterion("total_working_time >", value, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeGreaterThanOrEqualTo(Integer value) {
addCriterion("total_working_time >=", value, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeLessThan(Integer value) {
addCriterion("total_working_time <", value, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeLessThanOrEqualTo(Integer value) {
addCriterion("total_working_time <=", value, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeIn(List<Integer> values) {
addCriterion("total_working_time in", values, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeNotIn(List<Integer> values) {
addCriterion("total_working_time not in", values, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeBetween(Integer value1, Integer value2) {
addCriterion("total_working_time between", value1, value2, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andTotalWorkingTimeNotBetween(Integer value1, Integer value2) {
addCriterion("total_working_time not between", value1, value2, "totalWorkingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeIsNull() {
addCriterion("working_time is null");
return (Criteria) this;
}
public Criteria andWorkingTimeIsNotNull() {
addCriterion("working_time is not null");
return (Criteria) this;
}
public Criteria andWorkingTimeEqualTo(Integer value) {
addCriterion("working_time =", value, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeNotEqualTo(Integer value) {
addCriterion("working_time <>", value, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeGreaterThan(Integer value) {
addCriterion("working_time >", value, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeGreaterThanOrEqualTo(Integer value) {
addCriterion("working_time >=", value, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeLessThan(Integer value) {
addCriterion("working_time <", value, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeLessThanOrEqualTo(Integer value) {
addCriterion("working_time <=", value, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeIn(List<Integer> values) {
addCriterion("working_time in", values, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeNotIn(List<Integer> values) {
addCriterion("working_time not in", values, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeBetween(Integer value1, Integer value2) {
addCriterion("working_time between", value1, value2, "workingTime");
return (Criteria) this;
}
public Criteria andWorkingTimeNotBetween(Integer value1, Integer value2) {
addCriterion("working_time not between", value1, value2, "workingTime");
return (Criteria) this;
}
public Criteria andConnectionStateIsNull() {
addCriterion("connection_state is null");
return (Criteria) this;
}
public Criteria andConnectionStateIsNotNull() {
addCriterion("connection_state is not null");
return (Criteria) this;
}
public Criteria andConnectionStateEqualTo(Byte value) {
addCriterion("connection_state =", value, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateNotEqualTo(Byte value) {
addCriterion("connection_state <>", value, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateGreaterThan(Byte value) {
addCriterion("connection_state >", value, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateGreaterThanOrEqualTo(Byte value) {
addCriterion("connection_state >=", value, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateLessThan(Byte value) {
addCriterion("connection_state <", value, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateLessThanOrEqualTo(Byte value) {
addCriterion("connection_state <=", value, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateIn(List<Byte> values) {
addCriterion("connection_state in", values, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateNotIn(List<Byte> values) {
addCriterion("connection_state not in", values, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateBetween(Byte value1, Byte value2) {
addCriterion("connection_state between", value1, value2, "connectionState");
return (Criteria) this;
}
public Criteria andConnectionStateNotBetween(Byte value1, Byte value2) {
addCriterion("connection_state not between", value1, value2, "connectionState");
return (Criteria) this;
}
public Criteria andSendFlowIsNull() {
addCriterion("send_flow is null");
return (Criteria) this;
}
public Criteria andSendFlowIsNotNull() {
addCriterion("send_flow is not null");
return (Criteria) this;
}
public Criteria andSendFlowEqualTo(Integer value) {
addCriterion("send_flow =", value, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowNotEqualTo(Integer value) {
addCriterion("send_flow <>", value, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowGreaterThan(Integer value) {
addCriterion("send_flow >", value, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowGreaterThanOrEqualTo(Integer value) {
addCriterion("send_flow >=", value, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowLessThan(Integer value) {
addCriterion("send_flow <", value, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowLessThanOrEqualTo(Integer value) {
addCriterion("send_flow <=", value, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowIn(List<Integer> values) {
addCriterion("send_flow in", values, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowNotIn(List<Integer> values) {
addCriterion("send_flow not in", values, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowBetween(Integer value1, Integer value2) {
addCriterion("send_flow between", value1, value2, "sendFlow");
return (Criteria) this;
}
public Criteria andSendFlowNotBetween(Integer value1, Integer value2) {
addCriterion("send_flow not between", value1, value2, "sendFlow");
return (Criteria) this;
}
public Criteria andRecvFlowIsNull() {
addCriterion("recv_flow is null");
return (Criteria) this;
}
public Criteria andRecvFlowIsNotNull() {
addCriterion("recv_flow is not null");
return (Criteria) this;
}
public Criteria andRecvFlowEqualTo(Integer value) {
addCriterion("recv_flow =", value, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowNotEqualTo(Integer value) {
addCriterion("recv_flow <>", value, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowGreaterThan(Integer value) {
addCriterion("recv_flow >", value, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowGreaterThanOrEqualTo(Integer value) {
addCriterion("recv_flow >=", value, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowLessThan(Integer value) {
addCriterion("recv_flow <", value, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowLessThanOrEqualTo(Integer value) {
addCriterion("recv_flow <=", value, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowIn(List<Integer> values) {
addCriterion("recv_flow in", values, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowNotIn(List<Integer> values) {
addCriterion("recv_flow not in", values, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowBetween(Integer value1, Integer value2) {
addCriterion("recv_flow between", value1, value2, "recvFlow");
return (Criteria) this;
}
public Criteria andRecvFlowNotBetween(Integer value1, Integer value2) {
addCriterion("recv_flow not between", value1, value2, "recvFlow");
return (Criteria) this;
}
public Criteria andProtocolVersionIsNull() {
addCriterion("protocol_version is null");
return (Criteria) this;
}
public Criteria andProtocolVersionIsNotNull() {
addCriterion("protocol_version is not null");
return (Criteria) this;
}
public Criteria andProtocolVersionEqualTo(String value) {
addCriterion("protocol_version =", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionNotEqualTo(String value) {
addCriterion("protocol_version <>", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionGreaterThan(String value) {
addCriterion("protocol_version >", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionGreaterThanOrEqualTo(String value) {
addCriterion("protocol_version >=", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionLessThan(String value) {
addCriterion("protocol_version <", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionLessThanOrEqualTo(String value) {
addCriterion("protocol_version <=", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionLike(String value) {
addCriterion("protocol_version like", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionNotLike(String value) {
addCriterion("protocol_version not like", value, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionIn(List<String> values) {
addCriterion("protocol_version in", values, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionNotIn(List<String> values) {
addCriterion("protocol_version not in", values, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionBetween(String value1, String value2) {
addCriterion("protocol_version between", value1, value2, "protocolVersion");
return (Criteria) this;
}
public Criteria andProtocolVersionNotBetween(String value1, String value2) {
addCriterion("protocol_version not between", value1, value2, "protocolVersion");
return (Criteria) this;
}
public Criteria andWsUpdateTimeIsNull() {
addCriterion("ws_update_time is null");
return (Criteria) this;
}
public Criteria andWsUpdateTimeIsNotNull() {
addCriterion("ws_update_time is not null");
return (Criteria) this;
}
public Criteria andWsUpdateTimeEqualTo(Long value) {
addCriterion("ws_update_time =", value, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeNotEqualTo(Long value) {
addCriterion("ws_update_time <>", value, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeGreaterThan(Long value) {
addCriterion("ws_update_time >", value, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeGreaterThanOrEqualTo(Long value) {
addCriterion("ws_update_time >=", value, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeLessThan(Long value) {
addCriterion("ws_update_time <", value, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeLessThanOrEqualTo(Long value) {
addCriterion("ws_update_time <=", value, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeIn(List<Long> values) {
addCriterion("ws_update_time in", values, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeNotIn(List<Long> values) {
addCriterion("ws_update_time not in", values, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeBetween(Long value1, Long value2) {
addCriterion("ws_update_time between", value1, value2, "wsUpdateTime");
return (Criteria) this;
}
public Criteria andWsUpdateTimeNotBetween(Long value1, Long value2) {
addCriterion("ws_update_time not between", value1, value2, "wsUpdateTime");
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);
}
}
}

@ -22,7 +22,6 @@ public class SysUserVo {
@ApiModelProperty(value = "密码", example = "123455")
private String password;
@NotNull(message = "备注")
@ApiModelProperty(value = "备注", example = "123455")
private String notes;

@ -0,0 +1,22 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TerminalBasicInfoHistory;
import com.shxy.xymanager_common.entity.TerminalBasicInfoHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TerminalBasicInfoHistoryDao {
long countByExample(TerminalBasicInfoHistoryExample example);
int deleteByExample(TerminalBasicInfoHistoryExample example);
int insert(TerminalBasicInfoHistory record);
int insertSelective(TerminalBasicInfoHistory record);
List<TerminalBasicInfoHistory> selectByExample(TerminalBasicInfoHistoryExample example);
int updateByExampleSelective(@Param("record") TerminalBasicInfoHistory record, @Param("example") TerminalBasicInfoHistoryExample example);
int updateByExample(@Param("record") TerminalBasicInfoHistory record, @Param("example") TerminalBasicInfoHistoryExample example);
}

@ -0,0 +1,30 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TerminalPositionHistory;
import com.shxy.xymanager_common.entity.TerminalPositionHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TerminalPositionHistoryDao {
long countByExample(TerminalPositionHistoryExample example);
int deleteByExample(TerminalPositionHistoryExample example);
int deleteByPrimaryKey(Long id);
int insert(TerminalPositionHistory record);
int insertSelective(TerminalPositionHistory record);
List<TerminalPositionHistory> selectByExample(TerminalPositionHistoryExample example);
TerminalPositionHistory selectByPrimaryKey(Long id);
int updateByExampleSelective(@Param("record") TerminalPositionHistory record, @Param("example") TerminalPositionHistoryExample example);
int updateByExample(@Param("record") TerminalPositionHistory record, @Param("example") TerminalPositionHistoryExample example);
int updateByPrimaryKeySelective(TerminalPositionHistory record);
int updateByPrimaryKey(TerminalPositionHistory record);
}

@ -0,0 +1,22 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TerminalRunningStatusHistory;
import com.shxy.xymanager_common.entity.TerminalRunningStatusHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TerminalRunningStatusHistoryDao {
long countByExample(TerminalRunningStatusHistoryExample example);
int deleteByExample(TerminalRunningStatusHistoryExample example);
int insert(TerminalRunningStatusHistory record);
int insertSelective(TerminalRunningStatusHistory record);
List<TerminalRunningStatusHistory> selectByExample(TerminalRunningStatusHistoryExample example);
int updateByExampleSelective(@Param("record") TerminalRunningStatusHistory record, @Param("example") TerminalRunningStatusHistoryExample example);
int updateByExample(@Param("record") TerminalRunningStatusHistory record, @Param("example") TerminalRunningStatusHistoryExample example);
}

@ -0,0 +1,22 @@
package com.shxy.xymanager_dao.dao;
import com.shxy.xymanager_common.entity.TerminalWorkingStatusHistory;
import com.shxy.xymanager_common.entity.TerminalWorkingStatusHistoryExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TerminalWorkingStatusHistoryDao {
long countByExample(TerminalWorkingStatusHistoryExample example);
int deleteByExample(TerminalWorkingStatusHistoryExample example);
int insert(TerminalWorkingStatusHistory record);
int insertSelective(TerminalWorkingStatusHistory record);
List<TerminalWorkingStatusHistory> selectByExample(TerminalWorkingStatusHistoryExample example);
int updateByExampleSelective(@Param("record") TerminalWorkingStatusHistory record, @Param("example") TerminalWorkingStatusHistoryExample example);
int updateByExample(@Param("record") TerminalWorkingStatusHistory record, @Param("example") TerminalWorkingStatusHistoryExample example);
}

@ -0,0 +1,175 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalBasicInfoHistoryDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalBasicInfoHistory">
<result column="term_id" jdbcType="INTEGER" property="termId" />
<result column="cmdid" jdbcType="VARCHAR" property="cmdid" />
<result column="version" jdbcType="VARCHAR" property="version" />
<result column="bs_id" jdbcType="VARCHAR" property="bsId" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
term_id, cmdid, version, bs_id, update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalBasicInfoHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from terminal_basic_info_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalBasicInfoHistoryExample">
delete from terminal_basic_info_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalBasicInfoHistory">
insert into terminal_basic_info_history (term_id, cmdid, version,
bs_id, update_time)
values (#{termId,jdbcType=INTEGER}, #{cmdid,jdbcType=VARCHAR}, #{version,jdbcType=VARCHAR},
#{bsId,jdbcType=VARCHAR}, #{updateTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalBasicInfoHistory">
insert into terminal_basic_info_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="termId != null">
term_id,
</if>
<if test="cmdid != null">
cmdid,
</if>
<if test="version != null">
version,
</if>
<if test="bsId != null">
bs_id,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="termId != null">
#{termId,jdbcType=INTEGER},
</if>
<if test="cmdid != null">
#{cmdid,jdbcType=VARCHAR},
</if>
<if test="version != null">
#{version,jdbcType=VARCHAR},
</if>
<if test="bsId != null">
#{bsId,jdbcType=VARCHAR},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalBasicInfoHistoryExample" resultType="java.lang.Long">
select count(*) from terminal_basic_info_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update terminal_basic_info_history
<set>
<if test="record.termId != null">
term_id = #{record.termId,jdbcType=INTEGER},
</if>
<if test="record.cmdid != null">
cmdid = #{record.cmdid,jdbcType=VARCHAR},
</if>
<if test="record.version != null">
version = #{record.version,jdbcType=VARCHAR},
</if>
<if test="record.bsId != null">
bs_id = #{record.bsId,jdbcType=VARCHAR},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update terminal_basic_info_history
set term_id = #{record.termId,jdbcType=INTEGER},
cmdid = #{record.cmdid,jdbcType=VARCHAR},
version = #{record.version,jdbcType=VARCHAR},
bs_id = #{record.bsId,jdbcType=VARCHAR},
update_time = #{record.updateTime,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

@ -0,0 +1,243 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalPositionHistoryDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalPositionHistory">
<id column="id" jdbcType="BIGINT" property="id" />
<result column="term_id" jdbcType="INTEGER" property="termId" />
<result column="coordinate_type" jdbcType="TINYINT" property="coordinateType" />
<result column="radius" jdbcType="SMALLINT" property="radius" />
<result column="latitude" jdbcType="DOUBLE" property="latitude" />
<result column="longitude" jdbcType="DOUBLE" property="longitude" />
<result column="update_time" jdbcType="BIGINT" property="updateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, term_id, coordinate_type, radius, latitude, longitude, update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from terminal_position_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
select
<include refid="Base_Column_List" />
from terminal_position_history
where id = #{id,jdbcType=BIGINT}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long">
delete from terminal_position_history
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistoryExample">
delete from terminal_position_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistory">
insert into terminal_position_history (id, term_id, coordinate_type,
radius, latitude, longitude,
update_time)
values (#{id,jdbcType=BIGINT}, #{termId,jdbcType=INTEGER}, #{coordinateType,jdbcType=TINYINT},
#{radius,jdbcType=SMALLINT}, #{latitude,jdbcType=DOUBLE}, #{longitude,jdbcType=DOUBLE},
#{updateTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistory">
insert into terminal_position_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="termId != null">
term_id,
</if>
<if test="coordinateType != null">
coordinate_type,
</if>
<if test="radius != null">
radius,
</if>
<if test="latitude != null">
latitude,
</if>
<if test="longitude != null">
longitude,
</if>
<if test="updateTime != null">
update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="id != null">
#{id,jdbcType=BIGINT},
</if>
<if test="termId != null">
#{termId,jdbcType=INTEGER},
</if>
<if test="coordinateType != null">
#{coordinateType,jdbcType=TINYINT},
</if>
<if test="radius != null">
#{radius,jdbcType=SMALLINT},
</if>
<if test="latitude != null">
#{latitude,jdbcType=DOUBLE},
</if>
<if test="longitude != null">
#{longitude,jdbcType=DOUBLE},
</if>
<if test="updateTime != null">
#{updateTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistoryExample" resultType="java.lang.Long">
select count(*) from terminal_position_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update terminal_position_history
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=BIGINT},
</if>
<if test="record.termId != null">
term_id = #{record.termId,jdbcType=INTEGER},
</if>
<if test="record.coordinateType != null">
coordinate_type = #{record.coordinateType,jdbcType=TINYINT},
</if>
<if test="record.radius != null">
radius = #{record.radius,jdbcType=SMALLINT},
</if>
<if test="record.latitude != null">
latitude = #{record.latitude,jdbcType=DOUBLE},
</if>
<if test="record.longitude != null">
longitude = #{record.longitude,jdbcType=DOUBLE},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update terminal_position_history
set id = #{record.id,jdbcType=BIGINT},
term_id = #{record.termId,jdbcType=INTEGER},
coordinate_type = #{record.coordinateType,jdbcType=TINYINT},
radius = #{record.radius,jdbcType=SMALLINT},
latitude = #{record.latitude,jdbcType=DOUBLE},
longitude = #{record.longitude,jdbcType=DOUBLE},
update_time = #{record.updateTime,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistory">
update terminal_position_history
<set>
<if test="termId != null">
term_id = #{termId,jdbcType=INTEGER},
</if>
<if test="coordinateType != null">
coordinate_type = #{coordinateType,jdbcType=TINYINT},
</if>
<if test="radius != null">
radius = #{radius,jdbcType=SMALLINT},
</if>
<if test="latitude != null">
latitude = #{latitude,jdbcType=DOUBLE},
</if>
<if test="longitude != null">
longitude = #{longitude,jdbcType=DOUBLE},
</if>
<if test="updateTime != null">
update_time = #{updateTime,jdbcType=BIGINT},
</if>
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalPositionHistory">
update terminal_position_history
set term_id = #{termId,jdbcType=INTEGER},
coordinate_type = #{coordinateType,jdbcType=TINYINT},
radius = #{radius,jdbcType=SMALLINT},
latitude = #{latitude,jdbcType=DOUBLE},
longitude = #{longitude,jdbcType=DOUBLE},
update_time = #{updateTime,jdbcType=BIGINT}
where id = #{id,jdbcType=BIGINT}
</update>
</mapper>

@ -0,0 +1,200 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalRunningStatusHistoryDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalRunningStatusHistory">
<result column="term_id" jdbcType="INTEGER" property="termId" />
<result column="signal_strength_4g" jdbcType="TINYINT" property="signalStrength4g" />
<result column="signal_strength_2g" jdbcType="TINYINT" property="signalStrength2g" />
<result column="remaining_ram" jdbcType="SMALLINT" property="remainingRam" />
<result column="remaining_rom" jdbcType="SMALLINT" property="remainingRom" />
<result column="boot_time" jdbcType="BIGINT" property="bootTime" />
<result column="rs_update_time" jdbcType="BIGINT" property="rsUpdateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
term_id, signal_strength_4g, signal_strength_2g, remaining_ram, remaining_rom, boot_time,
rs_update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalRunningStatusHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from terminal_running_status_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalRunningStatusHistoryExample">
delete from terminal_running_status_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalRunningStatusHistory">
insert into terminal_running_status_history (term_id, signal_strength_4g, signal_strength_2g,
remaining_ram, remaining_rom, boot_time,
rs_update_time)
values (#{termId,jdbcType=INTEGER}, #{signalStrength4g,jdbcType=TINYINT}, #{signalStrength2g,jdbcType=TINYINT},
#{remainingRam,jdbcType=SMALLINT}, #{remainingRom,jdbcType=SMALLINT}, #{bootTime,jdbcType=BIGINT},
#{rsUpdateTime,jdbcType=BIGINT})
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalRunningStatusHistory">
insert into terminal_running_status_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="termId != null">
term_id,
</if>
<if test="signalStrength4g != null">
signal_strength_4g,
</if>
<if test="signalStrength2g != null">
signal_strength_2g,
</if>
<if test="remainingRam != null">
remaining_ram,
</if>
<if test="remainingRom != null">
remaining_rom,
</if>
<if test="bootTime != null">
boot_time,
</if>
<if test="rsUpdateTime != null">
rs_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="termId != null">
#{termId,jdbcType=INTEGER},
</if>
<if test="signalStrength4g != null">
#{signalStrength4g,jdbcType=TINYINT},
</if>
<if test="signalStrength2g != null">
#{signalStrength2g,jdbcType=TINYINT},
</if>
<if test="remainingRam != null">
#{remainingRam,jdbcType=SMALLINT},
</if>
<if test="remainingRom != null">
#{remainingRom,jdbcType=SMALLINT},
</if>
<if test="bootTime != null">
#{bootTime,jdbcType=BIGINT},
</if>
<if test="rsUpdateTime != null">
#{rsUpdateTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalRunningStatusHistoryExample" resultType="java.lang.Long">
select count(*) from terminal_running_status_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update terminal_running_status_history
<set>
<if test="record.termId != null">
term_id = #{record.termId,jdbcType=INTEGER},
</if>
<if test="record.signalStrength4g != null">
signal_strength_4g = #{record.signalStrength4g,jdbcType=TINYINT},
</if>
<if test="record.signalStrength2g != null">
signal_strength_2g = #{record.signalStrength2g,jdbcType=TINYINT},
</if>
<if test="record.remainingRam != null">
remaining_ram = #{record.remainingRam,jdbcType=SMALLINT},
</if>
<if test="record.remainingRom != null">
remaining_rom = #{record.remainingRom,jdbcType=SMALLINT},
</if>
<if test="record.bootTime != null">
boot_time = #{record.bootTime,jdbcType=BIGINT},
</if>
<if test="record.rsUpdateTime != null">
rs_update_time = #{record.rsUpdateTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update terminal_running_status_history
set term_id = #{record.termId,jdbcType=INTEGER},
signal_strength_4g = #{record.signalStrength4g,jdbcType=TINYINT},
signal_strength_2g = #{record.signalStrength2g,jdbcType=TINYINT},
remaining_ram = #{record.remainingRam,jdbcType=SMALLINT},
remaining_rom = #{record.remainingRom,jdbcType=SMALLINT},
boot_time = #{record.bootTime,jdbcType=BIGINT},
rs_update_time = #{record.rsUpdateTime,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalWorkingStatusHistoryDao">
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalWorkingStatusHistory">
<result column="term_id" jdbcType="INTEGER" property="termId" />
<result column="battery_voltage" jdbcType="REAL" property="batteryVoltage" />
<result column="op_temperature" jdbcType="REAL" property="opTemperature" />
<result column="battery_capacity" jdbcType="REAL" property="batteryCapacity" />
<result column="floating_charge" jdbcType="TINYINT" property="floatingCharge" />
<result column="total_working_time" jdbcType="INTEGER" property="totalWorkingTime" />
<result column="working_time" jdbcType="INTEGER" property="workingTime" />
<result column="connection_state" jdbcType="TINYINT" property="connectionState" />
<result column="send_flow" jdbcType="INTEGER" property="sendFlow" />
<result column="recv_flow" jdbcType="INTEGER" property="recvFlow" />
<result column="protocol_version" jdbcType="VARCHAR" property="protocolVersion" />
<result column="ws_update_time" jdbcType="BIGINT" property="wsUpdateTime" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
<foreach collection="oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
term_id, battery_voltage, op_temperature, battery_capacity, floating_charge, total_working_time,
working_time, connection_state, send_flow, recv_flow, protocol_version, ws_update_time
</sql>
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalWorkingStatusHistoryExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from terminal_working_status_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
<if test="orderByClause != null">
order by ${orderByClause}
</if>
</select>
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalWorkingStatusHistoryExample">
delete from terminal_working_status_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalWorkingStatusHistory">
insert into terminal_working_status_history (term_id, battery_voltage, op_temperature,
battery_capacity, floating_charge, total_working_time,
working_time, connection_state, send_flow,
recv_flow, protocol_version, ws_update_time
)
values (#{termId,jdbcType=INTEGER}, #{batteryVoltage,jdbcType=REAL}, #{opTemperature,jdbcType=REAL},
#{batteryCapacity,jdbcType=REAL}, #{floatingCharge,jdbcType=TINYINT}, #{totalWorkingTime,jdbcType=INTEGER},
#{workingTime,jdbcType=INTEGER}, #{connectionState,jdbcType=TINYINT}, #{sendFlow,jdbcType=INTEGER},
#{recvFlow,jdbcType=INTEGER}, #{protocolVersion,jdbcType=VARCHAR}, #{wsUpdateTime,jdbcType=BIGINT}
)
</insert>
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalWorkingStatusHistory">
insert into terminal_working_status_history
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="termId != null">
term_id,
</if>
<if test="batteryVoltage != null">
battery_voltage,
</if>
<if test="opTemperature != null">
op_temperature,
</if>
<if test="batteryCapacity != null">
battery_capacity,
</if>
<if test="floatingCharge != null">
floating_charge,
</if>
<if test="totalWorkingTime != null">
total_working_time,
</if>
<if test="workingTime != null">
working_time,
</if>
<if test="connectionState != null">
connection_state,
</if>
<if test="sendFlow != null">
send_flow,
</if>
<if test="recvFlow != null">
recv_flow,
</if>
<if test="protocolVersion != null">
protocol_version,
</if>
<if test="wsUpdateTime != null">
ws_update_time,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="termId != null">
#{termId,jdbcType=INTEGER},
</if>
<if test="batteryVoltage != null">
#{batteryVoltage,jdbcType=REAL},
</if>
<if test="opTemperature != null">
#{opTemperature,jdbcType=REAL},
</if>
<if test="batteryCapacity != null">
#{batteryCapacity,jdbcType=REAL},
</if>
<if test="floatingCharge != null">
#{floatingCharge,jdbcType=TINYINT},
</if>
<if test="totalWorkingTime != null">
#{totalWorkingTime,jdbcType=INTEGER},
</if>
<if test="workingTime != null">
#{workingTime,jdbcType=INTEGER},
</if>
<if test="connectionState != null">
#{connectionState,jdbcType=TINYINT},
</if>
<if test="sendFlow != null">
#{sendFlow,jdbcType=INTEGER},
</if>
<if test="recvFlow != null">
#{recvFlow,jdbcType=INTEGER},
</if>
<if test="protocolVersion != null">
#{protocolVersion,jdbcType=VARCHAR},
</if>
<if test="wsUpdateTime != null">
#{wsUpdateTime,jdbcType=BIGINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalWorkingStatusHistoryExample" resultType="java.lang.Long">
select count(*) from terminal_working_status_history
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update terminal_working_status_history
<set>
<if test="record.termId != null">
term_id = #{record.termId,jdbcType=INTEGER},
</if>
<if test="record.batteryVoltage != null">
battery_voltage = #{record.batteryVoltage,jdbcType=REAL},
</if>
<if test="record.opTemperature != null">
op_temperature = #{record.opTemperature,jdbcType=REAL},
</if>
<if test="record.batteryCapacity != null">
battery_capacity = #{record.batteryCapacity,jdbcType=REAL},
</if>
<if test="record.floatingCharge != null">
floating_charge = #{record.floatingCharge,jdbcType=TINYINT},
</if>
<if test="record.totalWorkingTime != null">
total_working_time = #{record.totalWorkingTime,jdbcType=INTEGER},
</if>
<if test="record.workingTime != null">
working_time = #{record.workingTime,jdbcType=INTEGER},
</if>
<if test="record.connectionState != null">
connection_state = #{record.connectionState,jdbcType=TINYINT},
</if>
<if test="record.sendFlow != null">
send_flow = #{record.sendFlow,jdbcType=INTEGER},
</if>
<if test="record.recvFlow != null">
recv_flow = #{record.recvFlow,jdbcType=INTEGER},
</if>
<if test="record.protocolVersion != null">
protocol_version = #{record.protocolVersion,jdbcType=VARCHAR},
</if>
<if test="record.wsUpdateTime != null">
ws_update_time = #{record.wsUpdateTime,jdbcType=BIGINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update terminal_working_status_history
set term_id = #{record.termId,jdbcType=INTEGER},
battery_voltage = #{record.batteryVoltage,jdbcType=REAL},
op_temperature = #{record.opTemperature,jdbcType=REAL},
battery_capacity = #{record.batteryCapacity,jdbcType=REAL},
floating_charge = #{record.floatingCharge,jdbcType=TINYINT},
total_working_time = #{record.totalWorkingTime,jdbcType=INTEGER},
working_time = #{record.workingTime,jdbcType=INTEGER},
connection_state = #{record.connectionState,jdbcType=TINYINT},
send_flow = #{record.sendFlow,jdbcType=INTEGER},
recv_flow = #{record.recvFlow,jdbcType=INTEGER},
protocol_version = #{record.protocolVersion,jdbcType=VARCHAR},
ws_update_time = #{record.wsUpdateTime,jdbcType=BIGINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
</mapper>

@ -74,7 +74,7 @@ public class UserInfoFilter extends AbstractAuthorizationFilter {
if (!StringUtils.isBlank(token)) {
String userId = tokenUtil.getUserId(token);
if (!StringUtils.isBlank(userId)) {
SysUser user = userService.selectUserById(Integer.parseInt(userId));
SysUser user = userService.selectUserById(Integer.parseInt("26"));
UserContextHolder.setCurrentUserInfo(user);
}
}

@ -85,6 +85,18 @@ public class TerminalServiceImpl implements TerminalService {
@Autowired
TerminalFaultsDao terminalFaultsDao;
@Autowired
TerminalWorkingStatusHistoryDao terminalWorkingStatusHistoryDao;
@Autowired
TerminalRunningStatusHistoryDao terminalRunningStatusHistoryDao;
@Autowired
TerminalPositionHistoryDao terminalPositionHistoryDao;
@Autowired
TerminalBasicInfoHistoryDao terminalBasicInfoHistoryDao;
/**
*
*
@ -837,10 +849,134 @@ public class TerminalServiceImpl implements TerminalService {
}
@Override
public ServiceBody<TerminalStatusInfoModel> getWorkingStatusHistory(TermFaultsVo vo) {
return null;
public ServiceBody<TableDataInfo<TerminalWorkingStatusHistory>> getWorkingStatusHistory(TermFaultsVo vo) {
Map<Integer, Terminals> terminalMap = cacheService.getTerminalMap();
Integer termid = vo.getTermid();
Integer pageindex = vo.getPageindex();
Integer pagesize = vo.getPagesize();
DateTime starttime = vo.getStarttime();
DateTime endtime = vo.getEndtime();
TerminalWorkingStatusHistoryExample example = new TerminalWorkingStatusHistoryExample();
example.setOrderByClause("ws_update_time desc");
TerminalWorkingStatusHistoryExample.Criteria criteria = example.createCriteria();
criteria.andTermIdEqualTo(termid);
if (BeanUtil.isNotEmpty(pageindex) && BeanUtil.isNotEmpty(pagesize) && pagesize > 0) {
PageUtils.SetPage(pageindex, pagesize);
}
if (starttime != null) {
criteria.andWsUpdateTimeGreaterThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(starttime));
}
if (endtime != null) {
criteria.andWsUpdateTimeLessThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(endtime));
}
List<TerminalWorkingStatusHistory> list = terminalWorkingStatusHistoryDao.selectByExample(example);
if (CollectionUtil.isNotEmpty(list)) {
for (TerminalWorkingStatusHistory item : list) {
item.setCmdid(terminalMap.get(termid).getCmdid());
}
}
TableDataInfo dataTable = PageUtils.getDataTable(list);
return Asserts.success(dataTable);
}
/**
*
*
* @param vo
* @return
*/
@Override
public ServiceBody<TableDataInfo<TerminalRunningStatusHistory>> getTermRunningHistory(TermFaultsVo vo) {
Map<Integer, Terminals> terminalMap = cacheService.getTerminalMap();
Integer termid = vo.getTermid();
Integer pageindex = vo.getPageindex();
Integer pagesize = vo.getPagesize();
DateTime starttime = vo.getStarttime();
DateTime endtime = vo.getEndtime();
TerminalRunningStatusHistoryExample example = new TerminalRunningStatusHistoryExample();
example.setOrderByClause("rs_update_time desc");
TerminalRunningStatusHistoryExample.Criteria criteria = example.createCriteria();
criteria.andTermIdEqualTo(termid);
if (BeanUtil.isNotEmpty(pageindex) && BeanUtil.isNotEmpty(pagesize) && pagesize > 0) {
PageUtils.SetPage(pageindex, pagesize);
}
if (starttime != null) {
criteria.andRsUpdateTimeGreaterThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(starttime));
}
if (endtime != null) {
criteria.andRsUpdateTimeLessThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(endtime));
}
List<TerminalRunningStatusHistory> list = terminalRunningStatusHistoryDao.selectByExample(example);
if (CollectionUtil.isNotEmpty(list)) {
for (TerminalRunningStatusHistory item : list) {
item.setCmdid(terminalMap.get(termid).getCmdid());
}
}
TableDataInfo dataTable = PageUtils.getDataTable(list);
return Asserts.success(dataTable);
}
@Override
public ServiceBody<TableDataInfo<TerminalPositionHistory>> getTermGpsHistory(TermFaultsVo vo) {
Map<Integer, Terminals> terminalMap = cacheService.getTerminalMap();
Integer termid = vo.getTermid();
Integer pageindex = vo.getPageindex();
Integer pagesize = vo.getPagesize();
DateTime starttime = vo.getStarttime();
DateTime endtime = vo.getEndtime();
TerminalPositionHistoryExample example = new TerminalPositionHistoryExample();
example.setOrderByClause("update_time desc");
TerminalPositionHistoryExample.Criteria criteria = example.createCriteria();
criteria.andTermIdEqualTo(termid);
if (BeanUtil.isNotEmpty(pageindex) && BeanUtil.isNotEmpty(pagesize) && pagesize > 0) {
PageUtils.SetPage(pageindex, pagesize);
}
if (starttime != null) {
criteria.andUpdateTimeGreaterThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(starttime));
}
if (endtime != null) {
criteria.andUpdateTimeLessThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(endtime));
}
List<TerminalPositionHistory> list = terminalPositionHistoryDao.selectByExample(example);
if (CollectionUtil.isNotEmpty(list)) {
for (TerminalPositionHistory item : list) {
item.setCmdid(terminalMap.get(termid).getCmdid());
}
}
TableDataInfo dataTable = PageUtils.getDataTable(list);
return Asserts.success(dataTable);
}
@Override
public ServiceBody<TableDataInfo<TerminalBasicInfoHistory>> getTermBasicInfoHistory(TermFaultsVo vo) {
// Map<Integer, Terminals> terminalMap = cacheService.getTerminalMap();
Integer termid = vo.getTermid();
Integer pageindex = vo.getPageindex();
Integer pagesize = vo.getPagesize();
DateTime starttime = vo.getStarttime();
DateTime endtime = vo.getEndtime();
TerminalBasicInfoHistoryExample example = new TerminalBasicInfoHistoryExample();
example.setOrderByClause("update_time desc");
TerminalBasicInfoHistoryExample.Criteria criteria = example.createCriteria();
criteria.andTermIdEqualTo(termid);
if (BeanUtil.isNotEmpty(pageindex) && BeanUtil.isNotEmpty(pagesize) && pagesize > 0) {
PageUtils.SetPage(pageindex, pagesize);
}
if (starttime != null) {
criteria.andUpdateTimeGreaterThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(starttime));
}
if (endtime != null) {
criteria.andUpdateTimeLessThanOrEqualTo(MyDateUtils.TimeMillSecond2Second(endtime));
}
List<TerminalBasicInfoHistory> list = terminalBasicInfoHistoryDao.selectByExample(example);
// if (CollectionUtil.isNotEmpty(list)) {
// for (TerminalBasicInfoHistory item : list) {
// item.setCmdid(terminalMap.get(termid).getCmdid());
// }
// }
TableDataInfo dataTable = PageUtils.getDataTable(list);
return Asserts.success(dataTable);
}
}

@ -102,11 +102,9 @@ public class UploadServiceImpl implements UploadService {
@Override
public ServiceBody<Boolean> issueApk(TerminalApkVo vo) {
Cma cma = new Cma(server, port);
vo.getCmdid().stream().forEach(var -> {
cma.upgrade(var, vo.getPath());
});
return Asserts.success(true);
}

@ -1,8 +1,7 @@
package com.shxy.xymanager_service.service;
import com.shxy.xymanager_common.bean.ServiceBody;
import com.shxy.xymanager_common.entity.TerminalFaults;
import com.shxy.xymanager_common.entity.View_Dy_Line_Tower_Terminals;
import com.shxy.xymanager_common.entity.*;
import com.shxy.xymanager_common.excelbean.TerminalAndLastPicListExcelModel;
import com.shxy.xymanager_common.excelbean.TerminalListExcelModel;
import com.shxy.xymanager_common.model.*;
@ -171,5 +170,26 @@ public interface TerminalService {
* @param vo
* @return
*/
ServiceBody<TerminalStatusInfoModel> getWorkingStatusHistory(TermFaultsVo vo);
ServiceBody<TableDataInfo<TerminalWorkingStatusHistory>> getWorkingStatusHistory(TermFaultsVo vo);
/**
*
* @param vo
* @return
*/
ServiceBody<TableDataInfo<TerminalRunningStatusHistory>> getTermRunningHistory(TermFaultsVo vo);
/**
* Gps
* @param vo
* @return
*/
ServiceBody<TableDataInfo<TerminalPositionHistory>> getTermGpsHistory(TermFaultsVo vo);
/**
*
* @param vo
* @return
*/
ServiceBody<TableDataInfo<TerminalBasicInfoHistory>> getTermBasicInfoHistory(TermFaultsVo vo);
}

Loading…
Cancel
Save