From d26658c840307f0894d84c9c37cb0069f3287814 Mon Sep 17 00:00:00 2001 From: huangfeng Date: Mon, 23 Jun 2025 10:24:55 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4apk=E4=B8=8A=E4=BC=A0?= =?UTF-8?q?=E8=A1=A8=E7=BB=93=E6=9E=84=EF=BC=8C=E5=A2=9E=E5=8A=A0=E8=A1=A5?= =?UTF-8?q?=E4=B8=81=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../xymanager_common/entity/MntnUpgrades.java | 66 ++ .../entity/MntnUpgradesExample.java | 140 ++++ .../entity/MntnUpgradesPatch.java | 201 +++++ .../entity/MntnUpgradesPatchExample.java | 701 ++++++++++++++++++ .../dao/MntnUpgradesPatchMapper.java | 97 +++ .../resources/mappers/MntnUpgradesMapper.xml | 45 +- .../mappers/MntnUpgradesPatchMapper.xml | 286 +++++++ 7 files changed, 1529 insertions(+), 7 deletions(-) create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatch.java create mode 100644 xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatchExample.java create mode 100644 xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnUpgradesPatchMapper.java create mode 100644 xymanager_dao/src/main/resources/mappers/MntnUpgradesPatchMapper.xml diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgrades.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgrades.java index cc9ed42..210eee8 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgrades.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgrades.java @@ -93,6 +93,24 @@ public class MntnUpgrades { */ private Date updateTime; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades.app + * + * @mbg.generated + */ + private String app; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades.version + * + * @mbg.generated + */ + private String version; + /** * This method was generated by MyBatis Generator. * This method returns the value of the database column mntn_upgrades.id @@ -332,4 +350,52 @@ public class MntnUpgrades { 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_upgrades.app + * + * @return the value of mntn_upgrades.app + * + * @mbg.generated + */ + public String getApp() { + return app; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades.app + * + * @param app the value for mntn_upgrades.app + * + * @mbg.generated + */ + public void setApp(String app) { + this.app = app; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades.version + * + * @return the value of mntn_upgrades.version + * + * @mbg.generated + */ + public String getVersion() { + return version; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades.version + * + * @param version the value for mntn_upgrades.version + * + * @mbg.generated + */ + public void setVersion(String version) { + this.version = version; + } } \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesExample.java index 8df31d9..75d337e 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesExample.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesExample.java @@ -834,6 +834,146 @@ public class MntnUpgradesExample { addCriterion("update_time not between", value1, value2, "updateTime"); return (Criteria) this; } + + public Criteria andAppIsNull() { + addCriterion("app is null"); + return (Criteria) this; + } + + public Criteria andAppIsNotNull() { + addCriterion("app is not null"); + return (Criteria) this; + } + + public Criteria andAppEqualTo(String value) { + addCriterion("app =", value, "app"); + return (Criteria) this; + } + + public Criteria andAppNotEqualTo(String value) { + addCriterion("app <>", value, "app"); + return (Criteria) this; + } + + public Criteria andAppGreaterThan(String value) { + addCriterion("app >", value, "app"); + return (Criteria) this; + } + + public Criteria andAppGreaterThanOrEqualTo(String value) { + addCriterion("app >=", value, "app"); + return (Criteria) this; + } + + public Criteria andAppLessThan(String value) { + addCriterion("app <", value, "app"); + return (Criteria) this; + } + + public Criteria andAppLessThanOrEqualTo(String value) { + addCriterion("app <=", value, "app"); + return (Criteria) this; + } + + public Criteria andAppLike(String value) { + addCriterion("app like", value, "app"); + return (Criteria) this; + } + + public Criteria andAppNotLike(String value) { + addCriterion("app not like", value, "app"); + return (Criteria) this; + } + + public Criteria andAppIn(List values) { + addCriterion("app in", values, "app"); + return (Criteria) this; + } + + public Criteria andAppNotIn(List values) { + addCriterion("app not in", values, "app"); + return (Criteria) this; + } + + public Criteria andAppBetween(String value1, String value2) { + addCriterion("app between", value1, value2, "app"); + return (Criteria) this; + } + + public Criteria andAppNotBetween(String value1, String value2) { + addCriterion("app not between", value1, value2, "app"); + return (Criteria) this; + } + + public Criteria andVersionIsNull() { + addCriterion("version is null"); + return (Criteria) this; + } + + public Criteria andVersionIsNotNull() { + addCriterion("version is not null"); + return (Criteria) this; + } + + public Criteria andVersionEqualTo(String value) { + addCriterion("version =", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotEqualTo(String value) { + addCriterion("version <>", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThan(String value) { + addCriterion("version >", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionGreaterThanOrEqualTo(String value) { + addCriterion("version >=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThan(String value) { + addCriterion("version <", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLessThanOrEqualTo(String value) { + addCriterion("version <=", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionLike(String value) { + addCriterion("version like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotLike(String value) { + addCriterion("version not like", value, "version"); + return (Criteria) this; + } + + public Criteria andVersionIn(List values) { + addCriterion("version in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotIn(List values) { + addCriterion("version not in", values, "version"); + return (Criteria) this; + } + + public Criteria andVersionBetween(String value1, String value2) { + addCriterion("version between", value1, value2, "version"); + return (Criteria) this; + } + + public Criteria andVersionNotBetween(String value1, String value2) { + addCriterion("version not between", value1, value2, "version"); + return (Criteria) this; + } } /** diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatch.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatch.java new file mode 100644 index 0000000..d1cbaf4 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatch.java @@ -0,0 +1,201 @@ +package com.shxy.xymanager_common.entity; + +public class MntnUpgradesPatch { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades_patch.id + * + * @mbg.generated + */ + private Integer id; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades_patch.app + * + * @mbg.generated + */ + private String app; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades_patch.old_ver + * + * @mbg.generated + */ + private String oldVer; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades_patch.new_ver + * + * @mbg.generated + */ + private String newVer; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades_patch.path + * + * @mbg.generated + */ + private String path; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column mntn_upgrades_patch.file_size + * + * @mbg.generated + */ + private Integer fileSize; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades_patch.id + * + * @return the value of mntn_upgrades_patch.id + * + * @mbg.generated + */ + public Integer getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades_patch.id + * + * @param id the value for mntn_upgrades_patch.id + * + * @mbg.generated + */ + public void setId(Integer id) { + this.id = id; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades_patch.app + * + * @return the value of mntn_upgrades_patch.app + * + * @mbg.generated + */ + public String getApp() { + return app; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades_patch.app + * + * @param app the value for mntn_upgrades_patch.app + * + * @mbg.generated + */ + public void setApp(String app) { + this.app = app; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades_patch.old_ver + * + * @return the value of mntn_upgrades_patch.old_ver + * + * @mbg.generated + */ + public String getOldVer() { + return oldVer; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades_patch.old_ver + * + * @param oldVer the value for mntn_upgrades_patch.old_ver + * + * @mbg.generated + */ + public void setOldVer(String oldVer) { + this.oldVer = oldVer; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades_patch.new_ver + * + * @return the value of mntn_upgrades_patch.new_ver + * + * @mbg.generated + */ + public String getNewVer() { + return newVer; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades_patch.new_ver + * + * @param newVer the value for mntn_upgrades_patch.new_ver + * + * @mbg.generated + */ + public void setNewVer(String newVer) { + this.newVer = newVer; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades_patch.path + * + * @return the value of mntn_upgrades_patch.path + * + * @mbg.generated + */ + public String getPath() { + return path; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades_patch.path + * + * @param path the value for mntn_upgrades_patch.path + * + * @mbg.generated + */ + public void setPath(String path) { + this.path = path; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column mntn_upgrades_patch.file_size + * + * @return the value of mntn_upgrades_patch.file_size + * + * @mbg.generated + */ + public Integer getFileSize() { + return fileSize; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column mntn_upgrades_patch.file_size + * + * @param fileSize the value for mntn_upgrades_patch.file_size + * + * @mbg.generated + */ + public void setFileSize(Integer fileSize) { + this.fileSize = fileSize; + } +} \ No newline at end of file diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatchExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatchExample.java new file mode 100644 index 0000000..8644fa8 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/MntnUpgradesPatchExample.java @@ -0,0 +1,701 @@ +package com.shxy.xymanager_common.entity; + +import java.util.ArrayList; +import java.util.List; + +public class MntnUpgradesPatchExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + public MntnUpgradesPatchExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @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_upgrades_patch + * + * @mbg.generated + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @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_upgrades_patch + * + * @mbg.generated + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @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_upgrades_patch + * + * @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_upgrades_patch + * + * @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_upgrades_patch + * + * @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_upgrades_patch + * + * @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_upgrades_patch + * + * @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(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andAppIsNull() { + addCriterion("app is null"); + return (Criteria) this; + } + + public Criteria andAppIsNotNull() { + addCriterion("app is not null"); + return (Criteria) this; + } + + public Criteria andAppEqualTo(String value) { + addCriterion("app =", value, "app"); + return (Criteria) this; + } + + public Criteria andAppNotEqualTo(String value) { + addCriterion("app <>", value, "app"); + return (Criteria) this; + } + + public Criteria andAppGreaterThan(String value) { + addCriterion("app >", value, "app"); + return (Criteria) this; + } + + public Criteria andAppGreaterThanOrEqualTo(String value) { + addCriterion("app >=", value, "app"); + return (Criteria) this; + } + + public Criteria andAppLessThan(String value) { + addCriterion("app <", value, "app"); + return (Criteria) this; + } + + public Criteria andAppLessThanOrEqualTo(String value) { + addCriterion("app <=", value, "app"); + return (Criteria) this; + } + + public Criteria andAppLike(String value) { + addCriterion("app like", value, "app"); + return (Criteria) this; + } + + public Criteria andAppNotLike(String value) { + addCriterion("app not like", value, "app"); + return (Criteria) this; + } + + public Criteria andAppIn(List values) { + addCriterion("app in", values, "app"); + return (Criteria) this; + } + + public Criteria andAppNotIn(List values) { + addCriterion("app not in", values, "app"); + return (Criteria) this; + } + + public Criteria andAppBetween(String value1, String value2) { + addCriterion("app between", value1, value2, "app"); + return (Criteria) this; + } + + public Criteria andAppNotBetween(String value1, String value2) { + addCriterion("app not between", value1, value2, "app"); + return (Criteria) this; + } + + public Criteria andOldVerIsNull() { + addCriterion("old_ver is null"); + return (Criteria) this; + } + + public Criteria andOldVerIsNotNull() { + addCriterion("old_ver is not null"); + return (Criteria) this; + } + + public Criteria andOldVerEqualTo(String value) { + addCriterion("old_ver =", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerNotEqualTo(String value) { + addCriterion("old_ver <>", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerGreaterThan(String value) { + addCriterion("old_ver >", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerGreaterThanOrEqualTo(String value) { + addCriterion("old_ver >=", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerLessThan(String value) { + addCriterion("old_ver <", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerLessThanOrEqualTo(String value) { + addCriterion("old_ver <=", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerLike(String value) { + addCriterion("old_ver like", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerNotLike(String value) { + addCriterion("old_ver not like", value, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerIn(List values) { + addCriterion("old_ver in", values, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerNotIn(List values) { + addCriterion("old_ver not in", values, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerBetween(String value1, String value2) { + addCriterion("old_ver between", value1, value2, "oldVer"); + return (Criteria) this; + } + + public Criteria andOldVerNotBetween(String value1, String value2) { + addCriterion("old_ver not between", value1, value2, "oldVer"); + return (Criteria) this; + } + + public Criteria andNewVerIsNull() { + addCriterion("new_ver is null"); + return (Criteria) this; + } + + public Criteria andNewVerIsNotNull() { + addCriterion("new_ver is not null"); + return (Criteria) this; + } + + public Criteria andNewVerEqualTo(String value) { + addCriterion("new_ver =", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerNotEqualTo(String value) { + addCriterion("new_ver <>", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerGreaterThan(String value) { + addCriterion("new_ver >", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerGreaterThanOrEqualTo(String value) { + addCriterion("new_ver >=", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerLessThan(String value) { + addCriterion("new_ver <", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerLessThanOrEqualTo(String value) { + addCriterion("new_ver <=", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerLike(String value) { + addCriterion("new_ver like", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerNotLike(String value) { + addCriterion("new_ver not like", value, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerIn(List values) { + addCriterion("new_ver in", values, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerNotIn(List values) { + addCriterion("new_ver not in", values, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerBetween(String value1, String value2) { + addCriterion("new_ver between", value1, value2, "newVer"); + return (Criteria) this; + } + + public Criteria andNewVerNotBetween(String value1, String value2) { + addCriterion("new_ver not between", value1, value2, "newVer"); + return (Criteria) this; + } + + public Criteria andPathIsNull() { + addCriterion("`path` is null"); + return (Criteria) this; + } + + public Criteria andPathIsNotNull() { + addCriterion("`path` is not null"); + return (Criteria) this; + } + + public Criteria andPathEqualTo(String value) { + addCriterion("`path` =", value, "path"); + return (Criteria) this; + } + + public Criteria andPathNotEqualTo(String value) { + addCriterion("`path` <>", value, "path"); + return (Criteria) this; + } + + public Criteria andPathGreaterThan(String value) { + addCriterion("`path` >", value, "path"); + return (Criteria) this; + } + + public Criteria andPathGreaterThanOrEqualTo(String value) { + addCriterion("`path` >=", value, "path"); + return (Criteria) this; + } + + public Criteria andPathLessThan(String value) { + addCriterion("`path` <", value, "path"); + return (Criteria) this; + } + + public Criteria andPathLessThanOrEqualTo(String value) { + addCriterion("`path` <=", value, "path"); + return (Criteria) this; + } + + public Criteria andPathLike(String value) { + addCriterion("`path` like", value, "path"); + return (Criteria) this; + } + + public Criteria andPathNotLike(String value) { + addCriterion("`path` not like", value, "path"); + return (Criteria) this; + } + + public Criteria andPathIn(List values) { + addCriterion("`path` in", values, "path"); + return (Criteria) this; + } + + public Criteria andPathNotIn(List values) { + addCriterion("`path` not in", values, "path"); + return (Criteria) this; + } + + public Criteria andPathBetween(String value1, String value2) { + addCriterion("`path` between", value1, value2, "path"); + return (Criteria) this; + } + + public Criteria andPathNotBetween(String value1, String value2) { + addCriterion("`path` not between", value1, value2, "path"); + return (Criteria) this; + } + + public Criteria andFileSizeIsNull() { + addCriterion("file_size is null"); + return (Criteria) this; + } + + public Criteria andFileSizeIsNotNull() { + addCriterion("file_size is not null"); + return (Criteria) this; + } + + public Criteria andFileSizeEqualTo(Integer value) { + addCriterion("file_size =", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeNotEqualTo(Integer value) { + addCriterion("file_size <>", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeGreaterThan(Integer value) { + addCriterion("file_size >", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeGreaterThanOrEqualTo(Integer value) { + addCriterion("file_size >=", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeLessThan(Integer value) { + addCriterion("file_size <", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeLessThanOrEqualTo(Integer value) { + addCriterion("file_size <=", value, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeIn(List values) { + addCriterion("file_size in", values, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeNotIn(List values) { + addCriterion("file_size not in", values, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeBetween(Integer value1, Integer value2) { + addCriterion("file_size between", value1, value2, "fileSize"); + return (Criteria) this; + } + + public Criteria andFileSizeNotBetween(Integer value1, Integer value2) { + addCriterion("file_size not between", value1, value2, "fileSize"); + return (Criteria) this; + } + } + + /** + * This class was generated by MyBatis Generator. + * This class corresponds to the database table mntn_upgrades_patch + * + * @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_upgrades_patch + * + * @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_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnUpgradesPatchMapper.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnUpgradesPatchMapper.java new file mode 100644 index 0000000..a2c5283 --- /dev/null +++ b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/MntnUpgradesPatchMapper.java @@ -0,0 +1,97 @@ +package com.shxy.xymanager_dao.dao; + +import com.shxy.xymanager_common.entity.MntnUpgradesPatch; +import com.shxy.xymanager_common.entity.MntnUpgradesPatchExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface MntnUpgradesPatchMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + long countByExample(MntnUpgradesPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int deleteByExample(MntnUpgradesPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int deleteByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int insert(MntnUpgradesPatch row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int insertSelective(MntnUpgradesPatch row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + List selectByExample(MntnUpgradesPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + MntnUpgradesPatch selectByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int updateByExampleSelective(@Param("row") MntnUpgradesPatch row, @Param("example") MntnUpgradesPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int updateByExample(@Param("row") MntnUpgradesPatch row, @Param("example") MntnUpgradesPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(MntnUpgradesPatch row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table mntn_upgrades_patch + * + * @mbg.generated + */ + int updateByPrimaryKey(MntnUpgradesPatch row); +} \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/MntnUpgradesMapper.xml b/xymanager_dao/src/main/resources/mappers/MntnUpgradesMapper.xml index 5531829..85c37cc 100644 --- a/xymanager_dao/src/main/resources/mappers/MntnUpgradesMapper.xml +++ b/xymanager_dao/src/main/resources/mappers/MntnUpgradesMapper.xml @@ -16,6 +16,8 @@ + + - id, title, file_name, `path`, md5, file_size, `type`, `status`, create_time, update_time + id, title, file_name, `path`, md5, file_size, `type`, `status`, create_time, update_time, + app, version + + select + + distinct + + + from mntn_upgrades_patch + + + + + order by ${orderByClause} + + + + + + delete from mntn_upgrades_patch + where id = #{id,jdbcType=INTEGER} + + + + delete from mntn_upgrades_patch + + + + + + + + SELECT LAST_INSERT_ID() + + insert into mntn_upgrades_patch (app, old_ver, new_ver, + `path`, file_size) + values (#{app,jdbcType=VARCHAR}, #{oldVer,jdbcType=VARCHAR}, #{newVer,jdbcType=VARCHAR}, + #{path,jdbcType=VARCHAR}, #{fileSize,jdbcType=INTEGER}) + + + + + SELECT LAST_INSERT_ID() + + insert into mntn_upgrades_patch + + + app, + + + old_ver, + + + new_ver, + + + `path`, + + + file_size, + + + + + #{app,jdbcType=VARCHAR}, + + + #{oldVer,jdbcType=VARCHAR}, + + + #{newVer,jdbcType=VARCHAR}, + + + #{path,jdbcType=VARCHAR}, + + + #{fileSize,jdbcType=INTEGER}, + + + + + + + update mntn_upgrades_patch + + + id = #{row.id,jdbcType=INTEGER}, + + + app = #{row.app,jdbcType=VARCHAR}, + + + old_ver = #{row.oldVer,jdbcType=VARCHAR}, + + + new_ver = #{row.newVer,jdbcType=VARCHAR}, + + + `path` = #{row.path,jdbcType=VARCHAR}, + + + file_size = #{row.fileSize,jdbcType=INTEGER}, + + + + + + + + + update mntn_upgrades_patch + set id = #{row.id,jdbcType=INTEGER}, + app = #{row.app,jdbcType=VARCHAR}, + old_ver = #{row.oldVer,jdbcType=VARCHAR}, + new_ver = #{row.newVer,jdbcType=VARCHAR}, + `path` = #{row.path,jdbcType=VARCHAR}, + file_size = #{row.fileSize,jdbcType=INTEGER} + + + + + + + update mntn_upgrades_patch + + + app = #{app,jdbcType=VARCHAR}, + + + old_ver = #{oldVer,jdbcType=VARCHAR}, + + + new_ver = #{newVer,jdbcType=VARCHAR}, + + + `path` = #{path,jdbcType=VARCHAR}, + + + file_size = #{fileSize,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + + update mntn_upgrades_patch + set app = #{app,jdbcType=VARCHAR}, + old_ver = #{oldVer,jdbcType=VARCHAR}, + new_ver = #{newVer,jdbcType=VARCHAR}, + `path` = #{path,jdbcType=VARCHAR}, + file_size = #{fileSize,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file