From 1a9df3cd6f292cbf87ac402196fd42187d254a6e Mon Sep 17 00:00:00 2001 From: huangfeng Date: Tue, 30 Apr 2024 13:21:05 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=B8=8B=E8=BE=BE?= =?UTF-8?q?=E5=91=BD=E4=BB=A4=E5=9F=BA=E6=9C=AC=E6=A1=86=E6=9E=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/MntnController.java | 33 + .../entity/MntnCmdHistory.java | 269 ++++++ .../entity/MntnCmdHistoryExample.java | 812 ++++++++++++++++++ .../xymanager_common/entity/MntnCmds.java | 203 +++++ .../entity/MntnCmdsExample.java | 692 +++++++++++++++ .../xymanager_common/entity/MntnStatus.java | 302 +++++++ .../entity/MntnStatusExample.java | 792 +++++++++++++++++ .../shxy/xymanager_common/model/CmdModel.java | 11 + .../dao/MntnCmdHistoryMapper.java | 97 +++ .../xymanager_dao/dao/MntnCmdsMapper.java | 97 +++ .../xymanager_dao/dao/MntnStatusMapper.java | 121 +++ .../mappers/MntnCmdHistoryMapper.xml | 318 +++++++ .../main/resources/mappers/MntnCmdsMapper.xml | 286 ++++++ .../resources/mappers/MntnStatusMapper.xml | 404 +++++++++ .../impl/MntnCmdsServiceImpl.java | 47 + .../service/MntnCmdsService.java | 14 + 16 files changed, 4498 insertions(+) create mode 100644 xymanager_admin/src/main/java/com/shxy/xymanager_admin/controller/MntnController.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistory.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistoryExample.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmds.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdsExample.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatus.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatusExample.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/model/CmdModel.java create mode 100644 xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdHistoryMapper.java create mode 100644 xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdsMapper.java create mode 100644 xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnStatusMapper.java create mode 100644 xymanager_dao/src/main/resources/mappers/MntnCmdHistoryMapper.xml create mode 100644 xymanager_dao/src/main/resources/mappers/MntnCmdsMapper.xml create mode 100644 xymanager_dao/src/main/resources/mappers/MntnStatusMapper.xml create mode 100644 xymanager_service/src/main/java/com/shxy/xymanager_service/impl/MntnCmdsServiceImpl.java create mode 100644 xymanager_service/src/main/java/com/shxy/xymanager_service/service/MntnCmdsService.java diff --git a/xymanager_admin/src/main/java/com/shxy/xymanager_admin/controller/MntnController.java b/xymanager_admin/src/main/java/com/shxy/xymanager_admin/controller/MntnController.java new file mode 100644 index 0000000..5cfb48b --- /dev/null +++ b/xymanager_admin/src/main/java/com/shxy/xymanager_admin/controller/MntnController.java @@ -0,0 +1,33 @@ +package com.shxy.xymanager_admin.controller; + +import com.shxy.xymanager_common.base.BaseController; +import com.shxy.xymanager_common.base.ResponseReult; +import com.shxy.xymanager_common.model.CmdModel; +import com.shxy.xymanager_service.service.MntnCmdsService; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import lombok.extern.slf4j.Slf4j; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +@RestController +@Api(tags = {"命令相关接口"}) +@RequestMapping("cmd") +@Slf4j +public class MntnController extends BaseController { + + @Resource + MntnCmdsService cmdsService; + + @PostMapping("send") + @ApiOperation("下达命令") + public ResponseReult send(@RequestBody CmdModel model) throws Exception { + cmdsService.send(model); + return ResponseReult.success("OK"); + } + +} diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistory.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistory.java new file mode 100644 index 0000000..6555388 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistory.java @@ -0,0 +1,269 @@ +package com.shxy.xymanager_common.entity; + +import java.util.Date; + +public class MntnCmdHistory { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.id + * + * @mbg.generated + */ + private Long id; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.term_id + * + * @mbg.generated + */ + private Integer termId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.name + * + * @mbg.generated + */ + private String name; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.cmd + * + * @mbg.generated + */ + private String cmd; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.desc + * + * @mbg.generated + */ + private String desc; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.status + * + * @mbg.generated + */ + private Byte status; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.create_time + * + * @mbg.generated + */ + private Date createTime; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmd_history.publish_time + * + * @mbg.generated + */ + private Date publishTime; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.id + * + * @return the value of mntn_cmd_history.id + * + * @mbg.generated + */ + public Long getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.id + * + * @param id the value for mntn_cmd_history.id + * + * @mbg.generated + */ + public void setId(Long id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.term_id + * + * @return the value of mntn_cmd_history.term_id + * + * @mbg.generated + */ + public Integer getTermId() { + return termId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.term_id + * + * @param termId the value for mntn_cmd_history.term_id + * + * @mbg.generated + */ + public void setTermId(Integer termId) { + this.termId = termId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.name + * + * @return the value of mntn_cmd_history.name + * + * @mbg.generated + */ + public String getName() { + return name; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.name + * + * @param name the value for mntn_cmd_history.name + * + * @mbg.generated + */ + public void setName(String name) { + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.cmd + * + * @return the value of mntn_cmd_history.cmd + * + * @mbg.generated + */ + public String getCmd() { + return cmd; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.cmd + * + * @param cmd the value for mntn_cmd_history.cmd + * + * @mbg.generated + */ + public void setCmd(String cmd) { + this.cmd = cmd; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.desc + * + * @return the value of mntn_cmd_history.desc + * + * @mbg.generated + */ + public String getDesc() { + return desc; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.desc + * + * @param desc the value for mntn_cmd_history.desc + * + * @mbg.generated + */ + public void setDesc(String desc) { + this.desc = desc; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.status + * + * @return the value of mntn_cmd_history.status + * + * @mbg.generated + */ + public Byte getStatus() { + return status; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.status + * + * @param status the value for mntn_cmd_history.status + * + * @mbg.generated + */ + public void setStatus(Byte status) { + this.status = status; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.create_time + * + * @return the value of mntn_cmd_history.create_time + * + * @mbg.generated + */ + public Date getCreateTime() { + return createTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.create_time + * + * @param createTime the value for mntn_cmd_history.create_time + * + * @mbg.generated + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmd_history.publish_time + * + * @return the value of mntn_cmd_history.publish_time + * + * @mbg.generated + */ + public Date getPublishTime() { + return publishTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmd_history.publish_time + * + * @param publishTime the value for mntn_cmd_history.publish_time + * + * @mbg.generated + */ + public void setPublishTime(Date publishTime) { + this.publishTime = publishTime; + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistoryExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistoryExample.java new file mode 100644 index 0000000..2a434f0 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdHistoryExample.java @@ -0,0 +1,812 @@ +package com.shxy.xymanager_common.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class MntnCmdHistoryExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public MntnCmdHistoryExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("term_id in", values, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdNotIn(List values) { + addCriterion("term_id not in", values, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdBetween(Integer value1, Integer value2) { + addCriterion("term_id between", value1, value2, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdNotBetween(Integer value1, Integer value2) { + addCriterion("term_id not between", value1, value2, "termId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andCmdIsNull() { + addCriterion("cmd is null"); + return (Criteria) this; + } + + public Criteria andCmdIsNotNull() { + addCriterion("cmd is not null"); + return (Criteria) this; + } + + public Criteria andCmdEqualTo(String value) { + addCriterion("cmd =", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotEqualTo(String value) { + addCriterion("cmd <>", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdGreaterThan(String value) { + addCriterion("cmd >", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdGreaterThanOrEqualTo(String value) { + addCriterion("cmd >=", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdLessThan(String value) { + addCriterion("cmd <", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdLessThanOrEqualTo(String value) { + addCriterion("cmd <=", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdLike(String value) { + addCriterion("cmd like", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotLike(String value) { + addCriterion("cmd not like", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdIn(List values) { + addCriterion("cmd in", values, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotIn(List values) { + addCriterion("cmd not in", values, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdBetween(String value1, String value2) { + addCriterion("cmd between", value1, value2, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotBetween(String value1, String value2) { + addCriterion("cmd not between", value1, value2, "cmd"); + return (Criteria) this; + } + + public Criteria andDescIsNull() { + addCriterion("`desc` is null"); + return (Criteria) this; + } + + public Criteria andDescIsNotNull() { + addCriterion("`desc` is not null"); + return (Criteria) this; + } + + public Criteria andDescEqualTo(String value) { + addCriterion("`desc` =", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotEqualTo(String value) { + addCriterion("`desc` <>", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThan(String value) { + addCriterion("`desc` >", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThanOrEqualTo(String value) { + addCriterion("`desc` >=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThan(String value) { + addCriterion("`desc` <", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThanOrEqualTo(String value) { + addCriterion("`desc` <=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLike(String value) { + addCriterion("`desc` like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotLike(String value) { + addCriterion("`desc` not like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescIn(List values) { + addCriterion("`desc` in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotIn(List values) { + addCriterion("`desc` not in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescBetween(String value1, String value2) { + addCriterion("`desc` between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotBetween(String value1, String value2) { + addCriterion("`desc` not between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andStatusIsNull() { + addCriterion("`status` is null"); + return (Criteria) this; + } + + public Criteria andStatusIsNotNull() { + addCriterion("`status` is not null"); + return (Criteria) this; + } + + public Criteria andStatusEqualTo(Byte value) { + addCriterion("`status` =", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotEqualTo(Byte value) { + addCriterion("`status` <>", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThan(Byte value) { + addCriterion("`status` >", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusGreaterThanOrEqualTo(Byte value) { + addCriterion("`status` >=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThan(Byte value) { + addCriterion("`status` <", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusLessThanOrEqualTo(Byte value) { + addCriterion("`status` <=", value, "status"); + return (Criteria) this; + } + + public Criteria andStatusIn(List values) { + addCriterion("`status` in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotIn(List values) { + addCriterion("`status` not in", values, "status"); + return (Criteria) this; + } + + public Criteria andStatusBetween(Byte value1, Byte value2) { + addCriterion("`status` between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andStatusNotBetween(Byte value1, Byte value2) { + addCriterion("`status` not between", value1, value2, "status"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeIsNull() { + addCriterion("publish_time is null"); + return (Criteria) this; + } + + public Criteria andPublishTimeIsNotNull() { + addCriterion("publish_time is not null"); + return (Criteria) this; + } + + public Criteria andPublishTimeEqualTo(Date value) { + addCriterion("publish_time =", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeNotEqualTo(Date value) { + addCriterion("publish_time <>", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeGreaterThan(Date value) { + addCriterion("publish_time >", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeGreaterThanOrEqualTo(Date value) { + addCriterion("publish_time >=", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeLessThan(Date value) { + addCriterion("publish_time <", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeLessThanOrEqualTo(Date value) { + addCriterion("publish_time <=", value, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeIn(List values) { + addCriterion("publish_time in", values, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeNotIn(List values) { + addCriterion("publish_time not in", values, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeBetween(Date value1, Date value2) { + addCriterion("publish_time between", value1, value2, "publishTime"); + return (Criteria) this; + } + + public Criteria andPublishTimeNotBetween(Date value1, Date value2) { + addCriterion("publish_time not between", value1, value2, "publishTime"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_cmd_history + * + * @mbg.generated do_not_delete_during_merge + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmds.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmds.java new file mode 100644 index 0000000..8530283 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmds.java @@ -0,0 +1,203 @@ +package com.shxy.xymanager_common.entity; + +import java.util.Date; + +public class MntnCmds { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmds.id + * + * @mbg.generated + */ + private Long id; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmds.term_id + * + * @mbg.generated + */ + private Integer termId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmds.name + * + * @mbg.generated + */ + private String name; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmds.cmd + * + * @mbg.generated + */ + private String cmd; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmds.desc + * + * @mbg.generated + */ + private String desc; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_cmds.create_time + * + * @mbg.generated + */ + private Date createTime; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmds.id + * + * @return the value of mntn_cmds.id + * + * @mbg.generated + */ + public Long getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmds.id + * + * @param id the value for mntn_cmds.id + * + * @mbg.generated + */ + public void setId(Long id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmds.term_id + * + * @return the value of mntn_cmds.term_id + * + * @mbg.generated + */ + public Integer getTermId() { + return termId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmds.term_id + * + * @param termId the value for mntn_cmds.term_id + * + * @mbg.generated + */ + public void setTermId(Integer termId) { + this.termId = termId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmds.name + * + * @return the value of mntn_cmds.name + * + * @mbg.generated + */ + public String getName() { + return name; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmds.name + * + * @param name the value for mntn_cmds.name + * + * @mbg.generated + */ + public void setName(String name) { + this.name = name; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmds.cmd + * + * @return the value of mntn_cmds.cmd + * + * @mbg.generated + */ + public String getCmd() { + return cmd; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmds.cmd + * + * @param cmd the value for mntn_cmds.cmd + * + * @mbg.generated + */ + public void setCmd(String cmd) { + this.cmd = cmd; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmds.desc + * + * @return the value of mntn_cmds.desc + * + * @mbg.generated + */ + public String getDesc() { + return desc; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmds.desc + * + * @param desc the value for mntn_cmds.desc + * + * @mbg.generated + */ + public void setDesc(String desc) { + this.desc = desc; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_cmds.create_time + * + * @return the value of mntn_cmds.create_time + * + * @mbg.generated + */ + public Date getCreateTime() { + return createTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_cmds.create_time + * + * @param createTime the value for mntn_cmds.create_time + * + * @mbg.generated + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdsExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdsExample.java new file mode 100644 index 0000000..91a7a21 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnCmdsExample.java @@ -0,0 +1,692 @@ +package com.shxy.xymanager_common.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class MntnCmdsExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public MntnCmdsExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Long value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Long value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Long value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Long value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Long value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Long value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Long value1, Long value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Long value1, Long value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("term_id in", values, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdNotIn(List values) { + addCriterion("term_id not in", values, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdBetween(Integer value1, Integer value2) { + addCriterion("term_id between", value1, value2, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdNotBetween(Integer value1, Integer value2) { + addCriterion("term_id not between", value1, value2, "termId"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andCmdIsNull() { + addCriterion("cmd is null"); + return (Criteria) this; + } + + public Criteria andCmdIsNotNull() { + addCriterion("cmd is not null"); + return (Criteria) this; + } + + public Criteria andCmdEqualTo(String value) { + addCriterion("cmd =", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotEqualTo(String value) { + addCriterion("cmd <>", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdGreaterThan(String value) { + addCriterion("cmd >", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdGreaterThanOrEqualTo(String value) { + addCriterion("cmd >=", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdLessThan(String value) { + addCriterion("cmd <", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdLessThanOrEqualTo(String value) { + addCriterion("cmd <=", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdLike(String value) { + addCriterion("cmd like", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotLike(String value) { + addCriterion("cmd not like", value, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdIn(List values) { + addCriterion("cmd in", values, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotIn(List values) { + addCriterion("cmd not in", values, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdBetween(String value1, String value2) { + addCriterion("cmd between", value1, value2, "cmd"); + return (Criteria) this; + } + + public Criteria andCmdNotBetween(String value1, String value2) { + addCriterion("cmd not between", value1, value2, "cmd"); + return (Criteria) this; + } + + public Criteria andDescIsNull() { + addCriterion("`desc` is null"); + return (Criteria) this; + } + + public Criteria andDescIsNotNull() { + addCriterion("`desc` is not null"); + return (Criteria) this; + } + + public Criteria andDescEqualTo(String value) { + addCriterion("`desc` =", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotEqualTo(String value) { + addCriterion("`desc` <>", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThan(String value) { + addCriterion("`desc` >", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescGreaterThanOrEqualTo(String value) { + addCriterion("`desc` >=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThan(String value) { + addCriterion("`desc` <", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLessThanOrEqualTo(String value) { + addCriterion("`desc` <=", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescLike(String value) { + addCriterion("`desc` like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotLike(String value) { + addCriterion("`desc` not like", value, "desc"); + return (Criteria) this; + } + + public Criteria andDescIn(List values) { + addCriterion("`desc` in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotIn(List values) { + addCriterion("`desc` not in", values, "desc"); + return (Criteria) this; + } + + public Criteria andDescBetween(String value1, String value2) { + addCriterion("`desc` between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andDescNotBetween(String value1, String value2) { + addCriterion("`desc` not between", value1, value2, "desc"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_cmds + * + * @mbg.generated do_not_delete_during_merge + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatus.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatus.java new file mode 100644 index 0000000..d2bffb9 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatus.java @@ -0,0 +1,302 @@ +package com.shxy.xymanager_common.entity; + +import java.util.Date; + +public class MntnStatus { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.term_id + * + * @mbg.generated + */ + private Integer termId; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.in_maintain + * + * @mbg.generated + */ + private Byte inMaintain; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.quick_hb + * + * @mbg.generated + */ + private Byte quickHb; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.mode_time + * + * @mbg.generated + */ + private Long modeTime; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.last_ip + * + * @mbg.generated + */ + private String lastIp; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.raw_report_time + * + * @mbg.generated + */ + private Long rawReportTime; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.create_time + * + * @mbg.generated + */ + private Date createTime; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.update_time + * + * @mbg.generated + */ + private Date updateTime; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_status.last_raw_report + * + * @mbg.generated + */ + private String lastRawReport; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.term_id + * + * @return the value of mntn_status.term_id + * + * @mbg.generated + */ + public Integer getTermId() { + return termId; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.term_id + * + * @param termId the value for mntn_status.term_id + * + * @mbg.generated + */ + public void setTermId(Integer termId) { + this.termId = termId; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.in_maintain + * + * @return the value of mntn_status.in_maintain + * + * @mbg.generated + */ + public Byte getInMaintain() { + return inMaintain; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.in_maintain + * + * @param inMaintain the value for mntn_status.in_maintain + * + * @mbg.generated + */ + public void setInMaintain(Byte inMaintain) { + this.inMaintain = inMaintain; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.quick_hb + * + * @return the value of mntn_status.quick_hb + * + * @mbg.generated + */ + public Byte getQuickHb() { + return quickHb; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.quick_hb + * + * @param quickHb the value for mntn_status.quick_hb + * + * @mbg.generated + */ + public void setQuickHb(Byte quickHb) { + this.quickHb = quickHb; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.mode_time + * + * @return the value of mntn_status.mode_time + * + * @mbg.generated + */ + public Long getModeTime() { + return modeTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.mode_time + * + * @param modeTime the value for mntn_status.mode_time + * + * @mbg.generated + */ + public void setModeTime(Long modeTime) { + this.modeTime = modeTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.last_ip + * + * @return the value of mntn_status.last_ip + * + * @mbg.generated + */ + public String getLastIp() { + return lastIp; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.last_ip + * + * @param lastIp the value for mntn_status.last_ip + * + * @mbg.generated + */ + public void setLastIp(String lastIp) { + this.lastIp = lastIp; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.raw_report_time + * + * @return the value of mntn_status.raw_report_time + * + * @mbg.generated + */ + public Long getRawReportTime() { + return rawReportTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.raw_report_time + * + * @param rawReportTime the value for mntn_status.raw_report_time + * + * @mbg.generated + */ + public void setRawReportTime(Long rawReportTime) { + this.rawReportTime = rawReportTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.create_time + * + * @return the value of mntn_status.create_time + * + * @mbg.generated + */ + public Date getCreateTime() { + return createTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.create_time + * + * @param createTime the value for mntn_status.create_time + * + * @mbg.generated + */ + public void setCreateTime(Date createTime) { + this.createTime = createTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.update_time + * + * @return the value of mntn_status.update_time + * + * @mbg.generated + */ + public Date getUpdateTime() { + return updateTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.update_time + * + * @param updateTime the value for mntn_status.update_time + * + * @mbg.generated + */ + public void setUpdateTime(Date updateTime) { + this.updateTime = updateTime; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_status.last_raw_report + * + * @return the value of mntn_status.last_raw_report + * + * @mbg.generated + */ + public String getLastRawReport() { + return lastRawReport; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_status.last_raw_report + * + * @param lastRawReport the value for mntn_status.last_raw_report + * + * @mbg.generated + */ + public void setLastRawReport(String lastRawReport) { + this.lastRawReport = lastRawReport; + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatusExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatusExample.java new file mode 100644 index 0000000..297b8d7 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnStatusExample.java @@ -0,0 +1,792 @@ +package com.shxy.xymanager_common.entity; + +import java.util.ArrayList; +import java.util.Date; +import java.util.List; + +public class MntnStatusExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_status + * + * @mbg.generated + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_status + * + * @mbg.generated + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_status + * + * @mbg.generated + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public MntnStatusExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_status + * + * @mbg.generated + */ + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria 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 values) { + addCriterion("term_id in", values, "termId"); + return (Criteria) this; + } + + public Criteria andTermIdNotIn(List 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 andInMaintainIsNull() { + addCriterion("in_maintain is null"); + return (Criteria) this; + } + + public Criteria andInMaintainIsNotNull() { + addCriterion("in_maintain is not null"); + return (Criteria) this; + } + + public Criteria andInMaintainEqualTo(Byte value) { + addCriterion("in_maintain =", value, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainNotEqualTo(Byte value) { + addCriterion("in_maintain <>", value, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainGreaterThan(Byte value) { + addCriterion("in_maintain >", value, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainGreaterThanOrEqualTo(Byte value) { + addCriterion("in_maintain >=", value, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainLessThan(Byte value) { + addCriterion("in_maintain <", value, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainLessThanOrEqualTo(Byte value) { + addCriterion("in_maintain <=", value, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainIn(List values) { + addCriterion("in_maintain in", values, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainNotIn(List values) { + addCriterion("in_maintain not in", values, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainBetween(Byte value1, Byte value2) { + addCriterion("in_maintain between", value1, value2, "inMaintain"); + return (Criteria) this; + } + + public Criteria andInMaintainNotBetween(Byte value1, Byte value2) { + addCriterion("in_maintain not between", value1, value2, "inMaintain"); + return (Criteria) this; + } + + public Criteria andQuickHbIsNull() { + addCriterion("quick_hb is null"); + return (Criteria) this; + } + + public Criteria andQuickHbIsNotNull() { + addCriterion("quick_hb is not null"); + return (Criteria) this; + } + + public Criteria andQuickHbEqualTo(Byte value) { + addCriterion("quick_hb =", value, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbNotEqualTo(Byte value) { + addCriterion("quick_hb <>", value, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbGreaterThan(Byte value) { + addCriterion("quick_hb >", value, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbGreaterThanOrEqualTo(Byte value) { + addCriterion("quick_hb >=", value, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbLessThan(Byte value) { + addCriterion("quick_hb <", value, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbLessThanOrEqualTo(Byte value) { + addCriterion("quick_hb <=", value, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbIn(List values) { + addCriterion("quick_hb in", values, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbNotIn(List values) { + addCriterion("quick_hb not in", values, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbBetween(Byte value1, Byte value2) { + addCriterion("quick_hb between", value1, value2, "quickHb"); + return (Criteria) this; + } + + public Criteria andQuickHbNotBetween(Byte value1, Byte value2) { + addCriterion("quick_hb not between", value1, value2, "quickHb"); + return (Criteria) this; + } + + public Criteria andModeTimeIsNull() { + addCriterion("mode_time is null"); + return (Criteria) this; + } + + public Criteria andModeTimeIsNotNull() { + addCriterion("mode_time is not null"); + return (Criteria) this; + } + + public Criteria andModeTimeEqualTo(Long value) { + addCriterion("mode_time =", value, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeNotEqualTo(Long value) { + addCriterion("mode_time <>", value, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeGreaterThan(Long value) { + addCriterion("mode_time >", value, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeGreaterThanOrEqualTo(Long value) { + addCriterion("mode_time >=", value, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeLessThan(Long value) { + addCriterion("mode_time <", value, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeLessThanOrEqualTo(Long value) { + addCriterion("mode_time <=", value, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeIn(List values) { + addCriterion("mode_time in", values, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeNotIn(List values) { + addCriterion("mode_time not in", values, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeBetween(Long value1, Long value2) { + addCriterion("mode_time between", value1, value2, "modeTime"); + return (Criteria) this; + } + + public Criteria andModeTimeNotBetween(Long value1, Long value2) { + addCriterion("mode_time not between", value1, value2, "modeTime"); + return (Criteria) this; + } + + public Criteria andLastIpIsNull() { + addCriterion("last_ip is null"); + return (Criteria) this; + } + + public Criteria andLastIpIsNotNull() { + addCriterion("last_ip is not null"); + return (Criteria) this; + } + + public Criteria andLastIpEqualTo(String value) { + addCriterion("last_ip =", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpNotEqualTo(String value) { + addCriterion("last_ip <>", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpGreaterThan(String value) { + addCriterion("last_ip >", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpGreaterThanOrEqualTo(String value) { + addCriterion("last_ip >=", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpLessThan(String value) { + addCriterion("last_ip <", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpLessThanOrEqualTo(String value) { + addCriterion("last_ip <=", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpLike(String value) { + addCriterion("last_ip like", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpNotLike(String value) { + addCriterion("last_ip not like", value, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpIn(List values) { + addCriterion("last_ip in", values, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpNotIn(List values) { + addCriterion("last_ip not in", values, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpBetween(String value1, String value2) { + addCriterion("last_ip between", value1, value2, "lastIp"); + return (Criteria) this; + } + + public Criteria andLastIpNotBetween(String value1, String value2) { + addCriterion("last_ip not between", value1, value2, "lastIp"); + return (Criteria) this; + } + + public Criteria andRawReportTimeIsNull() { + addCriterion("raw_report_time is null"); + return (Criteria) this; + } + + public Criteria andRawReportTimeIsNotNull() { + addCriterion("raw_report_time is not null"); + return (Criteria) this; + } + + public Criteria andRawReportTimeEqualTo(Long value) { + addCriterion("raw_report_time =", value, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeNotEqualTo(Long value) { + addCriterion("raw_report_time <>", value, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeGreaterThan(Long value) { + addCriterion("raw_report_time >", value, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeGreaterThanOrEqualTo(Long value) { + addCriterion("raw_report_time >=", value, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeLessThan(Long value) { + addCriterion("raw_report_time <", value, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeLessThanOrEqualTo(Long value) { + addCriterion("raw_report_time <=", value, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeIn(List values) { + addCriterion("raw_report_time in", values, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeNotIn(List values) { + addCriterion("raw_report_time not in", values, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeBetween(Long value1, Long value2) { + addCriterion("raw_report_time between", value1, value2, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andRawReportTimeNotBetween(Long value1, Long value2) { + addCriterion("raw_report_time not between", value1, value2, "rawReportTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNull() { + addCriterion("create_time is null"); + return (Criteria) this; + } + + public Criteria andCreateTimeIsNotNull() { + addCriterion("create_time is not null"); + return (Criteria) this; + } + + public Criteria andCreateTimeEqualTo(Date value) { + addCriterion("create_time =", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotEqualTo(Date value) { + addCriterion("create_time <>", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThan(Date value) { + addCriterion("create_time >", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("create_time >=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThan(Date value) { + addCriterion("create_time <", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeLessThanOrEqualTo(Date value) { + addCriterion("create_time <=", value, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeIn(List values) { + addCriterion("create_time in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotIn(List values) { + addCriterion("create_time not in", values, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeBetween(Date value1, Date value2) { + addCriterion("create_time between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andCreateTimeNotBetween(Date value1, Date value2) { + addCriterion("create_time not between", value1, value2, "createTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNull() { + addCriterion("update_time is null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIsNotNull() { + addCriterion("update_time is not null"); + return (Criteria) this; + } + + public Criteria andUpdateTimeEqualTo(Date value) { + addCriterion("update_time =", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotEqualTo(Date value) { + addCriterion("update_time <>", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThan(Date value) { + addCriterion("update_time >", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) { + addCriterion("update_time >=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThan(Date value) { + addCriterion("update_time <", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeLessThanOrEqualTo(Date value) { + addCriterion("update_time <=", value, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeIn(List values) { + addCriterion("update_time in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotIn(List values) { + addCriterion("update_time not in", values, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeBetween(Date value1, Date value2) { + addCriterion("update_time between", value1, value2, "updateTime"); + return (Criteria) this; + } + + public Criteria andUpdateTimeNotBetween(Date value1, Date value2) { + addCriterion("update_time not between", value1, value2, "updateTime"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_status + * + * @mbg.generated do_not_delete_during_merge + */ + public static class Criteria extends GeneratedCriteria { + protected Criteria() { + super(); + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_status + * + * @mbg.generated + */ + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/model/CmdModel.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/model/CmdModel.java new file mode 100644 index 0000000..6a8944f --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/model/CmdModel.java @@ -0,0 +1,11 @@ +package com.shxy.xymanager_common.model; + +import lombok.Data; + +@Data +public class CmdModel { + + private String action; + private Integer termId; + private Long id; +} diff --git a/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdHistoryMapper.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdHistoryMapper.java new file mode 100644 index 0000000..e42bb95 --- /dev/null +++ b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdHistoryMapper.java @@ -0,0 +1,97 @@ +package com.shxy.xymanager_dao.dao; + +import com.shxy.xymanager_common.entity.MntnCmdHistory; +import com.shxy.xymanager_common.entity.MntnCmdHistoryExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface MntnCmdHistoryMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + long countByExample(MntnCmdHistoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int deleteByExample(MntnCmdHistoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int deleteByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int insert(MntnCmdHistory row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int insertSelective(MntnCmdHistory row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + List selectByExample(MntnCmdHistoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + MntnCmdHistory selectByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int updateByExampleSelective(@Param("row") MntnCmdHistory row, @Param("example") MntnCmdHistoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int updateByExample(@Param("row") MntnCmdHistory row, @Param("example") MntnCmdHistoryExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(MntnCmdHistory row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmd_history + * + * @mbg.generated + */ + int updateByPrimaryKey(MntnCmdHistory row); +} \ No newline at end of file diff --git a/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdsMapper.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdsMapper.java new file mode 100644 index 0000000..6f83ece --- /dev/null +++ b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnCmdsMapper.java @@ -0,0 +1,97 @@ +package com.shxy.xymanager_dao.dao; + +import com.shxy.xymanager_common.entity.MntnCmds; +import com.shxy.xymanager_common.entity.MntnCmdsExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface MntnCmdsMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + long countByExample(MntnCmdsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int deleteByExample(MntnCmdsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int deleteByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int insert(MntnCmds row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int insertSelective(MntnCmds row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + List selectByExample(MntnCmdsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + MntnCmds selectByPrimaryKey(Long id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int updateByExampleSelective(@Param("row") MntnCmds row, @Param("example") MntnCmdsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int updateByExample(@Param("row") MntnCmds row, @Param("example") MntnCmdsExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(MntnCmds row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_cmds + * + * @mbg.generated + */ + int updateByPrimaryKey(MntnCmds row); +} \ No newline at end of file diff --git a/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnStatusMapper.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnStatusMapper.java new file mode 100644 index 0000000..bbb3843 --- /dev/null +++ b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnStatusMapper.java @@ -0,0 +1,121 @@ +package com.shxy.xymanager_dao.dao; + +import com.shxy.xymanager_common.entity.MntnStatus; +import com.shxy.xymanager_common.entity.MntnStatusExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface MntnStatusMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + long countByExample(MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int deleteByExample(MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int deleteByPrimaryKey(Integer termId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int insert(MntnStatus row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int insertSelective(MntnStatus row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + List selectByExampleWithBLOBs(MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + List selectByExample(MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + MntnStatus selectByPrimaryKey(Integer termId); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int updateByExampleSelective(@Param("row") MntnStatus row, @Param("example") MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int updateByExampleWithBLOBs(@Param("row") MntnStatus row, @Param("example") MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int updateByExample(@Param("row") MntnStatus row, @Param("example") MntnStatusExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(MntnStatus row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int updateByPrimaryKeyWithBLOBs(MntnStatus row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_status + * + * @mbg.generated + */ + int updateByPrimaryKey(MntnStatus row); +} \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/MntnCmdHistoryMapper.xml b/xymanager_dao/src/main/resources/mappers/MntnCmdHistoryMapper.xml new file mode 100644 index 0000000..0b774a6 --- /dev/null +++ b/xymanager_dao/src/main/resources/mappers/MntnCmdHistoryMapper.xml @@ -0,0 +1,318 @@ + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + id, term_id, `name`, cmd, `desc`, `status`, create_time, publish_time + + + + + + delete from mntn_cmd_history + where id = #{id,jdbcType=BIGINT} + + + + delete from mntn_cmd_history + + + + + + + + SELECT LAST_INSERT_ID() + + insert into mntn_cmd_history (term_id, `name`, cmd, + `desc`, `status`, create_time, + publish_time) + values (#{termId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{cmd,jdbcType=VARCHAR}, + #{desc,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT}, #{createTime,jdbcType=TIMESTAMP}, + #{publishTime,jdbcType=TIMESTAMP}) + + + + + SELECT LAST_INSERT_ID() + + insert into mntn_cmd_history + + + term_id, + + + `name`, + + + cmd, + + + `desc`, + + + `status`, + + + create_time, + + + publish_time, + + + + + #{termId,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{cmd,jdbcType=VARCHAR}, + + + #{desc,jdbcType=VARCHAR}, + + + #{status,jdbcType=TINYINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{publishTime,jdbcType=TIMESTAMP}, + + + + + + + update mntn_cmd_history + + + id = #{row.id,jdbcType=BIGINT}, + + + term_id = #{row.termId,jdbcType=INTEGER}, + + + `name` = #{row.name,jdbcType=VARCHAR}, + + + cmd = #{row.cmd,jdbcType=VARCHAR}, + + + `desc` = #{row.desc,jdbcType=VARCHAR}, + + + `status` = #{row.status,jdbcType=TINYINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + publish_time = #{row.publishTime,jdbcType=TIMESTAMP}, + + + + + + + + + update mntn_cmd_history + set id = #{row.id,jdbcType=BIGINT}, + term_id = #{row.termId,jdbcType=INTEGER}, + `name` = #{row.name,jdbcType=VARCHAR}, + cmd = #{row.cmd,jdbcType=VARCHAR}, + `desc` = #{row.desc,jdbcType=VARCHAR}, + `status` = #{row.status,jdbcType=TINYINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + publish_time = #{row.publishTime,jdbcType=TIMESTAMP} + + + + + + + update mntn_cmd_history + + + term_id = #{termId,jdbcType=INTEGER}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + cmd = #{cmd,jdbcType=VARCHAR}, + + + `desc` = #{desc,jdbcType=VARCHAR}, + + + `status` = #{status,jdbcType=TINYINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + publish_time = #{publishTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + + update mntn_cmd_history + set term_id = #{termId,jdbcType=INTEGER}, + `name` = #{name,jdbcType=VARCHAR}, + cmd = #{cmd,jdbcType=VARCHAR}, + `desc` = #{desc,jdbcType=VARCHAR}, + `status` = #{status,jdbcType=TINYINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + publish_time = #{publishTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/MntnCmdsMapper.xml b/xymanager_dao/src/main/resources/mappers/MntnCmdsMapper.xml new file mode 100644 index 0000000..d74cd17 --- /dev/null +++ b/xymanager_dao/src/main/resources/mappers/MntnCmdsMapper.xml @@ -0,0 +1,286 @@ + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + id, term_id, `name`, cmd, `desc`, create_time + + + + + + delete from mntn_cmds + where id = #{id,jdbcType=BIGINT} + + + + delete from mntn_cmds + + + + + + + + SELECT LAST_INSERT_ID() + + insert into mntn_cmds (term_id, `name`, cmd, + `desc`, create_time) + values (#{termId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{cmd,jdbcType=VARCHAR}, + #{desc,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}) + + + + + SELECT LAST_INSERT_ID() + + insert into mntn_cmds + + + term_id, + + + `name`, + + + cmd, + + + `desc`, + + + create_time, + + + + + #{termId,jdbcType=INTEGER}, + + + #{name,jdbcType=VARCHAR}, + + + #{cmd,jdbcType=VARCHAR}, + + + #{desc,jdbcType=VARCHAR}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + + + + + update mntn_cmds + + + id = #{row.id,jdbcType=BIGINT}, + + + term_id = #{row.termId,jdbcType=INTEGER}, + + + `name` = #{row.name,jdbcType=VARCHAR}, + + + cmd = #{row.cmd,jdbcType=VARCHAR}, + + + `desc` = #{row.desc,jdbcType=VARCHAR}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + + + + + + + update mntn_cmds + set id = #{row.id,jdbcType=BIGINT}, + term_id = #{row.termId,jdbcType=INTEGER}, + `name` = #{row.name,jdbcType=VARCHAR}, + cmd = #{row.cmd,jdbcType=VARCHAR}, + `desc` = #{row.desc,jdbcType=VARCHAR}, + create_time = #{row.createTime,jdbcType=TIMESTAMP} + + + + + + + update mntn_cmds + + + term_id = #{termId,jdbcType=INTEGER}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + cmd = #{cmd,jdbcType=VARCHAR}, + + + `desc` = #{desc,jdbcType=VARCHAR}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=BIGINT} + + + + update mntn_cmds + set term_id = #{termId,jdbcType=INTEGER}, + `name` = #{name,jdbcType=VARCHAR}, + cmd = #{cmd,jdbcType=VARCHAR}, + `desc` = #{desc,jdbcType=VARCHAR}, + create_time = #{createTime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=BIGINT} + + \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/MntnStatusMapper.xml b/xymanager_dao/src/main/resources/mappers/MntnStatusMapper.xml new file mode 100644 index 0000000..6105a75 --- /dev/null +++ b/xymanager_dao/src/main/resources/mappers/MntnStatusMapper.xml @@ -0,0 +1,404 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + term_id, in_maintain, quick_hb, mode_time, last_ip, raw_report_time, create_time, + update_time + + + + last_raw_report + + + + + + + delete from mntn_status + where term_id = #{termId,jdbcType=INTEGER} + + + + delete from mntn_status + + + + + + + insert into mntn_status (term_id, in_maintain, quick_hb, + mode_time, last_ip, raw_report_time, + create_time, update_time, last_raw_report + ) + values (#{termId,jdbcType=INTEGER}, #{inMaintain,jdbcType=TINYINT}, #{quickHb,jdbcType=TINYINT}, + #{modeTime,jdbcType=BIGINT}, #{lastIp,jdbcType=VARCHAR}, #{rawReportTime,jdbcType=BIGINT}, + #{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{lastRawReport,jdbcType=LONGVARCHAR} + ) + + + + insert into mntn_status + + + term_id, + + + in_maintain, + + + quick_hb, + + + mode_time, + + + last_ip, + + + raw_report_time, + + + create_time, + + + update_time, + + + last_raw_report, + + + + + #{termId,jdbcType=INTEGER}, + + + #{inMaintain,jdbcType=TINYINT}, + + + #{quickHb,jdbcType=TINYINT}, + + + #{modeTime,jdbcType=BIGINT}, + + + #{lastIp,jdbcType=VARCHAR}, + + + #{rawReportTime,jdbcType=BIGINT}, + + + #{createTime,jdbcType=TIMESTAMP}, + + + #{updateTime,jdbcType=TIMESTAMP}, + + + #{lastRawReport,jdbcType=LONGVARCHAR}, + + + + + + + update mntn_status + + + term_id = #{row.termId,jdbcType=INTEGER}, + + + in_maintain = #{row.inMaintain,jdbcType=TINYINT}, + + + quick_hb = #{row.quickHb,jdbcType=TINYINT}, + + + mode_time = #{row.modeTime,jdbcType=BIGINT}, + + + last_ip = #{row.lastIp,jdbcType=VARCHAR}, + + + raw_report_time = #{row.rawReportTime,jdbcType=BIGINT}, + + + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + + + update_time = #{row.updateTime,jdbcType=TIMESTAMP}, + + + last_raw_report = #{row.lastRawReport,jdbcType=LONGVARCHAR}, + + + + + + + + + update mntn_status + set term_id = #{row.termId,jdbcType=INTEGER}, + in_maintain = #{row.inMaintain,jdbcType=TINYINT}, + quick_hb = #{row.quickHb,jdbcType=TINYINT}, + mode_time = #{row.modeTime,jdbcType=BIGINT}, + last_ip = #{row.lastIp,jdbcType=VARCHAR}, + raw_report_time = #{row.rawReportTime,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + update_time = #{row.updateTime,jdbcType=TIMESTAMP}, + last_raw_report = #{row.lastRawReport,jdbcType=LONGVARCHAR} + + + + + + + update mntn_status + set term_id = #{row.termId,jdbcType=INTEGER}, + in_maintain = #{row.inMaintain,jdbcType=TINYINT}, + quick_hb = #{row.quickHb,jdbcType=TINYINT}, + mode_time = #{row.modeTime,jdbcType=BIGINT}, + last_ip = #{row.lastIp,jdbcType=VARCHAR}, + raw_report_time = #{row.rawReportTime,jdbcType=BIGINT}, + create_time = #{row.createTime,jdbcType=TIMESTAMP}, + update_time = #{row.updateTime,jdbcType=TIMESTAMP} + + + + + + + update mntn_status + + + in_maintain = #{inMaintain,jdbcType=TINYINT}, + + + quick_hb = #{quickHb,jdbcType=TINYINT}, + + + mode_time = #{modeTime,jdbcType=BIGINT}, + + + last_ip = #{lastIp,jdbcType=VARCHAR}, + + + raw_report_time = #{rawReportTime,jdbcType=BIGINT}, + + + create_time = #{createTime,jdbcType=TIMESTAMP}, + + + update_time = #{updateTime,jdbcType=TIMESTAMP}, + + + last_raw_report = #{lastRawReport,jdbcType=LONGVARCHAR}, + + + where term_id = #{termId,jdbcType=INTEGER} + + + + update mntn_status + set in_maintain = #{inMaintain,jdbcType=TINYINT}, + quick_hb = #{quickHb,jdbcType=TINYINT}, + mode_time = #{modeTime,jdbcType=BIGINT}, + last_ip = #{lastIp,jdbcType=VARCHAR}, + raw_report_time = #{rawReportTime,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP}, + last_raw_report = #{lastRawReport,jdbcType=LONGVARCHAR} + where term_id = #{termId,jdbcType=INTEGER} + + + + update mntn_status + set in_maintain = #{inMaintain,jdbcType=TINYINT}, + quick_hb = #{quickHb,jdbcType=TINYINT}, + mode_time = #{modeTime,jdbcType=BIGINT}, + last_ip = #{lastIp,jdbcType=VARCHAR}, + raw_report_time = #{rawReportTime,jdbcType=BIGINT}, + create_time = #{createTime,jdbcType=TIMESTAMP}, + update_time = #{updateTime,jdbcType=TIMESTAMP} + where term_id = #{termId,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/MntnCmdsServiceImpl.java b/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/MntnCmdsServiceImpl.java new file mode 100644 index 0000000..99a75b7 --- /dev/null +++ b/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/MntnCmdsServiceImpl.java @@ -0,0 +1,47 @@ +package com.shxy.xymanager_service.impl; + +import com.shxy.xymanager_common.entity.MntnCmds; +import com.shxy.xymanager_common.entity.MntnCmdsExample; +import com.shxy.xymanager_common.model.CmdModel; +import com.shxy.xymanager_dao.dao.MntnCmdHistoryMapper; +import com.shxy.xymanager_dao.dao.MntnCmdsMapper; +import com.shxy.xymanager_dao.dao.MntnStatusMapper; +import com.shxy.xymanager_service.service.MntnCmdsService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +import javax.annotation.Resource; +import java.util.List; + +@Service +@Slf4j +@Transactional(rollbackFor = Exception.class) +public class MntnCmdsServiceImpl implements MntnCmdsService { + + @Resource + MntnCmdsMapper cmdsMapper; + @Resource + MntnCmdHistoryMapper historyMapper; + @Resource + MntnStatusMapper statusMapper; + + + @Override + public List listAll() { + MntnCmdsExample example = new MntnCmdsExample(); + MntnCmdsExample.Criteria criteria = example.createCriteria(); + List list = cmdsMapper.selectByExample(example); + return list; + } + + @Override + public void send(CmdModel model) throws Exception { + switch (model.getAction()) { + case "cancel": + cmdsMapper.deleteByPrimaryKey(model.getId()); + case "": + default: + } + } +} diff --git a/xymanager_service/src/main/java/com/shxy/xymanager_service/service/MntnCmdsService.java b/xymanager_service/src/main/java/com/shxy/xymanager_service/service/MntnCmdsService.java new file mode 100644 index 0000000..a1eec6b --- /dev/null +++ b/xymanager_service/src/main/java/com/shxy/xymanager_service/service/MntnCmdsService.java @@ -0,0 +1,14 @@ +package com.shxy.xymanager_service.service; + + +import com.shxy.xymanager_common.entity.MntnCmds; +import com.shxy.xymanager_common.model.CmdModel; + +import java.util.List; + +public interface MntnCmdsService { + + List listAll(); + + void send(CmdModel model) throws Exception; +}