diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUpload.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUpload.java index c342010..1e72e08 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUpload.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUpload.java @@ -1,26 +1,270 @@ package com.shxy.xymanager_common.entity; -import lombok.Data; - import java.io.Serializable; import java.util.Date; -@Data public class TerminalUpload implements Serializable { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.id + * + * @mbg.generated + */ private Integer id; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.path + * + * @mbg.generated + */ private String path; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.name + * + * @mbg.generated + */ private String name; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.upload_date + * + * @mbg.generated + */ private Date uploadDate; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.version + * + * @mbg.generated + */ private String version; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.title + * + * @mbg.generated + */ private String title; - private Long fileSize; + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.app + * + * @mbg.generated + */ + private String app; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload.file_size + * + * @mbg.generated + */ + private Integer fileSize; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column terminal_upload.id + * + * @return the value of terminal_upload.id + * + * @mbg.generated + */ + public Integer getId() { + return id; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.id + * + * @param id the value for terminal_upload.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 terminal_upload.path + * + * @return the value of terminal_upload.path + * + * @mbg.generated + */ + public String getPath() { + return path; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.path + * + * @param path the value for terminal_upload.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 terminal_upload.name + * + * @return the value of terminal_upload.name + * + * @mbg.generated + */ + public String getName() { + return name; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.name + * + * @param name the value for terminal_upload.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 terminal_upload.upload_date + * + * @return the value of terminal_upload.upload_date + * + * @mbg.generated + */ + public Date getUploadDate() { + return uploadDate; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.upload_date + * + * @param uploadDate the value for terminal_upload.upload_date + * + * @mbg.generated + */ + public void setUploadDate(Date uploadDate) { + this.uploadDate = uploadDate; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column terminal_upload.version + * + * @return the value of terminal_upload.version + * + * @mbg.generated + */ + public String getVersion() { + return version; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.version + * + * @param version the value for terminal_upload.version + * + * @mbg.generated + */ + public void setVersion(String version) { + this.version = version; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column terminal_upload.title + * + * @return the value of terminal_upload.title + * + * @mbg.generated + */ + public String getTitle() { + return title; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.title + * + * @param title the value for terminal_upload.title + * + * @mbg.generated + */ + public void setTitle(String title) { + this.title = title; + } + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column terminal_upload.app + * + * @return the value of terminal_upload.app + * + * @mbg.generated + */ + public String getApp() { + return app; + } + + /** + * This method was generated by MyBatis Generator. + * This method sets the value of the database column terminal_upload.app + * + * @param app the value for terminal_upload.app + * + * @mbg.generated + */ + public void setApp(String app) { + this.app = app; + } - private static final long serialVersionUID = 1L; + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column terminal_upload.file_size + * + * @return the value of terminal_upload.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 terminal_upload.file_size + * + * @param fileSize the value for terminal_upload.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/TerminalUploadExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadExample.java index 8915e89..8ec6792 100644 --- a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadExample.java +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadExample.java @@ -5,46 +5,118 @@ import java.util.Date; import java.util.List; public class TerminalUploadExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table terminal_upload + * + * @mbg.generated + */ protected String orderByClause; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table terminal_upload + * + * @mbg.generated + */ protected boolean distinct; + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table terminal_upload + * + * @mbg.generated + */ protected List oredCriteria; + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public TerminalUploadExample() { - oredCriteria = new ArrayList(); + oredCriteria = new ArrayList<>(); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public void setOrderByClause(String orderByClause) { this.orderByClause = orderByClause; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public String getOrderByClause() { return orderByClause; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public void setDistinct(boolean distinct) { this.distinct = distinct; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public boolean isDistinct() { return distinct; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public List getOredCriteria() { return oredCriteria; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ public void or(Criteria criteria) { oredCriteria.add(criteria); } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @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 terminal_upload + * + * @mbg.generated + */ public Criteria createCriteria() { Criteria criteria = createCriteriaInternal(); if (oredCriteria.size() == 0) { @@ -53,23 +125,41 @@ public class TerminalUploadExample { return criteria; } + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @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 terminal_upload + * + * @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 terminal_upload + * + * @mbg.generated + */ protected abstract static class GeneratedCriteria { protected List criteria; protected GeneratedCriteria() { super(); - criteria = new ArrayList(); + criteria = new ArrayList<>(); } public boolean isValid() { @@ -166,142 +256,142 @@ public class TerminalUploadExample { } public Criteria andPathIsNull() { - addCriterion("path is null"); + addCriterion("`path` is null"); return (Criteria) this; } public Criteria andPathIsNotNull() { - addCriterion("path is not null"); + addCriterion("`path` is not null"); return (Criteria) this; } public Criteria andPathEqualTo(String value) { - addCriterion("path =", value, "path"); + addCriterion("`path` =", value, "path"); return (Criteria) this; } public Criteria andPathNotEqualTo(String value) { - addCriterion("path <>", value, "path"); + addCriterion("`path` <>", value, "path"); return (Criteria) this; } public Criteria andPathGreaterThan(String value) { - addCriterion("path >", value, "path"); + addCriterion("`path` >", value, "path"); return (Criteria) this; } public Criteria andPathGreaterThanOrEqualTo(String value) { - addCriterion("path >=", value, "path"); + addCriterion("`path` >=", value, "path"); return (Criteria) this; } public Criteria andPathLessThan(String value) { - addCriterion("path <", value, "path"); + addCriterion("`path` <", value, "path"); return (Criteria) this; } public Criteria andPathLessThanOrEqualTo(String value) { - addCriterion("path <=", value, "path"); + addCriterion("`path` <=", value, "path"); return (Criteria) this; } public Criteria andPathLike(String value) { - addCriterion("path like", value, "path"); + addCriterion("`path` like", value, "path"); return (Criteria) this; } public Criteria andPathNotLike(String value) { - addCriterion("path not like", value, "path"); + addCriterion("`path` not like", value, "path"); return (Criteria) this; } public Criteria andPathIn(List values) { - addCriterion("path in", values, "path"); + addCriterion("`path` in", values, "path"); return (Criteria) this; } public Criteria andPathNotIn(List values) { - addCriterion("path not in", values, "path"); + addCriterion("`path` not in", values, "path"); return (Criteria) this; } public Criteria andPathBetween(String value1, String value2) { - addCriterion("path between", value1, value2, "path"); + addCriterion("`path` between", value1, value2, "path"); return (Criteria) this; } public Criteria andPathNotBetween(String value1, String value2) { - addCriterion("path not between", value1, value2, "path"); + addCriterion("`path` not between", value1, value2, "path"); return (Criteria) this; } public Criteria andNameIsNull() { - addCriterion("name is null"); + addCriterion("`name` is null"); return (Criteria) this; } public Criteria andNameIsNotNull() { - addCriterion("name is not null"); + addCriterion("`name` is not null"); return (Criteria) this; } public Criteria andNameEqualTo(String value) { - addCriterion("name =", value, "name"); + addCriterion("`name` =", value, "name"); return (Criteria) this; } public Criteria andNameNotEqualTo(String value) { - addCriterion("name <>", value, "name"); + addCriterion("`name` <>", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThan(String value) { - addCriterion("name >", value, "name"); + addCriterion("`name` >", value, "name"); return (Criteria) this; } public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("name >=", value, "name"); + addCriterion("`name` >=", value, "name"); return (Criteria) this; } public Criteria andNameLessThan(String value) { - addCriterion("name <", value, "name"); + addCriterion("`name` <", value, "name"); return (Criteria) this; } public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("name <=", value, "name"); + addCriterion("`name` <=", value, "name"); return (Criteria) this; } public Criteria andNameLike(String value) { - addCriterion("name like", value, "name"); + addCriterion("`name` like", value, "name"); return (Criteria) this; } public Criteria andNameNotLike(String value) { - addCriterion("name not like", value, "name"); + addCriterion("`name` not like", value, "name"); return (Criteria) this; } public Criteria andNameIn(List values) { - addCriterion("name in", values, "name"); + addCriterion("`name` in", values, "name"); return (Criteria) this; } public Criteria andNameNotIn(List values) { - addCriterion("name not in", values, "name"); + addCriterion("`name` not in", values, "name"); return (Criteria) this; } public Criteria andNameBetween(String value1, String value2) { - addCriterion("name between", value1, value2, "name"); + addCriterion("`name` between", value1, value2, "name"); return (Criteria) this; } public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("name not between", value1, value2, "name"); + addCriterion("`name` not between", value1, value2, "name"); return (Criteria) this; } @@ -504,15 +594,156 @@ public class TerminalUploadExample { addCriterion("title not between", value1, value2, "title"); 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 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 terminal_upload + * + * @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 terminal_upload + * + * @mbg.generated + */ public static class Criterion { private String condition; diff --git a/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadPatch.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadPatch.java new file mode 100644 index 0000000..ca773d7 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadPatch.java @@ -0,0 +1,203 @@ +package com.shxy.xymanager_common.entity; + +import java.io.Serializable; + +public class TerminalUploadPatch implements Serializable { + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload_patch.id + * + * @mbg.generated + */ + private Integer id; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload_patch.app + * + * @mbg.generated + */ + private String app; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload_patch.old_ver + * + * @mbg.generated + */ + private String oldVer; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload_patch.new_ver + * + * @mbg.generated + */ + private String newVer; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload_patch.path + * + * @mbg.generated + */ + private String path; + + /** + * + * This field was generated by MyBatis Generator. + * This field corresponds to the database column terminal_upload_patch.file_size + * + * @mbg.generated + */ + private Integer fileSize; + + /** + * This method was generated by MyBatis Generator. + * This method returns the value of the database column terminal_upload_patch.id + * + * @return the value of terminal_upload_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 terminal_upload_patch.id + * + * @param id the value for terminal_upload_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 terminal_upload_patch.app + * + * @return the value of terminal_upload_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 terminal_upload_patch.app + * + * @param app the value for terminal_upload_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 terminal_upload_patch.old_ver + * + * @return the value of terminal_upload_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 terminal_upload_patch.old_ver + * + * @param oldVer the value for terminal_upload_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 terminal_upload_patch.new_ver + * + * @return the value of terminal_upload_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 terminal_upload_patch.new_ver + * + * @param newVer the value for terminal_upload_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 terminal_upload_patch.path + * + * @return the value of terminal_upload_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 terminal_upload_patch.path + * + * @param path the value for terminal_upload_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 terminal_upload_patch.file_size + * + * @return the value of terminal_upload_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 terminal_upload_patch.file_size + * + * @param fileSize the value for terminal_upload_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/TerminalUploadPatchExample.java b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadPatchExample.java new file mode 100644 index 0000000..7704176 --- /dev/null +++ b/xymanager_common/src/main/java/com/shxy/xymanager_common/entity/TerminalUploadPatchExample.java @@ -0,0 +1,701 @@ +package com.shxy.xymanager_common.entity; + +import java.util.ArrayList; +import java.util.List; + +public class TerminalUploadPatchExample { + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + protected String orderByClause; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + protected boolean distinct; + + /** + * This field was generated by MyBatis Generator. + * This field corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + protected List oredCriteria; + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + public TerminalUploadPatchExample() { + oredCriteria = new ArrayList<>(); + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_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 terminal_upload_patch + * + * @mbg.generated + */ + public String getOrderByClause() { + return orderByClause; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_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 terminal_upload_patch + * + * @mbg.generated + */ + public boolean isDistinct() { + return distinct; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + public List getOredCriteria() { + return oredCriteria; + } + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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/TerminalUploadDao.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadDao.java deleted file mode 100644 index 184c08a..0000000 --- a/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadDao.java +++ /dev/null @@ -1,32 +0,0 @@ -package com.shxy.xymanager_dao.dao; - -import com.shxy.xymanager_common.entity.TerminalUpload; -import com.shxy.xymanager_common.entity.TerminalUploadExample; -import java.util.List; -import org.apache.ibatis.annotations.Param; - -public interface TerminalUploadDao { - - long countByExample(TerminalUploadExample example); - - int deleteByExample(TerminalUploadExample example); - - int deleteByPrimaryKey(Integer id); - - int insert(TerminalUpload record); - - int insertSelective(TerminalUpload record); - - List selectByExample(TerminalUploadExample example); - - TerminalUpload selectByPrimaryKey(Integer id); - - int updateByExampleSelective(@Param("record") TerminalUpload record, @Param("example") TerminalUploadExample example); - - int updateByExample(@Param("record") TerminalUpload record, @Param("example") TerminalUploadExample example); - - int updateByPrimaryKeySelective(TerminalUpload record); - - int updateByPrimaryKey(TerminalUpload record); - -} \ No newline at end of file diff --git a/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadMapper.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadMapper.java new file mode 100644 index 0000000..ea4dae5 --- /dev/null +++ b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadMapper.java @@ -0,0 +1,97 @@ +package com.shxy.xymanager_dao.dao; + +import com.shxy.xymanager_common.entity.TerminalUpload; +import com.shxy.xymanager_common.entity.TerminalUploadExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface TerminalUploadMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + long countByExample(TerminalUploadExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int deleteByExample(TerminalUploadExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int deleteByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int insert(TerminalUpload row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int insertSelective(TerminalUpload row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + List selectByExample(TerminalUploadExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + TerminalUpload selectByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int updateByExampleSelective(@Param("row") TerminalUpload row, @Param("example") TerminalUploadExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int updateByExample(@Param("row") TerminalUpload row, @Param("example") TerminalUploadExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(TerminalUpload row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload + * + * @mbg.generated + */ + int updateByPrimaryKey(TerminalUpload row); +} \ No newline at end of file diff --git a/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadPatchMapper.java b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadPatchMapper.java new file mode 100644 index 0000000..e9ae85e --- /dev/null +++ b/xymanager_dao/src/main/java/com/shxy/xymanager_dao/dao/TerminalUploadPatchMapper.java @@ -0,0 +1,97 @@ +package com.shxy.xymanager_dao.dao; + +import com.shxy.xymanager_common.entity.TerminalUploadPatch; +import com.shxy.xymanager_common.entity.TerminalUploadPatchExample; +import org.apache.ibatis.annotations.Param; + +import java.util.List; + +public interface TerminalUploadPatchMapper { + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + long countByExample(TerminalUploadPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int deleteByExample(TerminalUploadPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int deleteByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int insert(TerminalUploadPatch row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int insertSelective(TerminalUploadPatch row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + List selectByExample(TerminalUploadPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + TerminalUploadPatch selectByPrimaryKey(Integer id); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int updateByExampleSelective(@Param("row") TerminalUploadPatch row, @Param("example") TerminalUploadPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int updateByExample(@Param("row") TerminalUploadPatch row, @Param("example") TerminalUploadPatchExample example); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int updateByPrimaryKeySelective(TerminalUploadPatch row); + + /** + * This method was generated by MyBatis Generator. + * This method corresponds to the database table terminal_upload_patch + * + * @mbg.generated + */ + int updateByPrimaryKey(TerminalUploadPatch row); +} \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/TerminalUploadDao.xml b/xymanager_dao/src/main/resources/mappers/TerminalUploadDao.xml deleted file mode 100644 index 89e2396..0000000 --- a/xymanager_dao/src/main/resources/mappers/TerminalUploadDao.xml +++ /dev/null @@ -1,240 +0,0 @@ - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - id, path, name, upload_date, version, title - - - - - - - delete from terminal_upload - where id = #{id,jdbcType=INTEGER} - - - - delete from terminal_upload - - - - - - - insert into terminal_upload (id, path, name, - upload_date, version, title - ) - values (#{id,jdbcType=INTEGER}, #{path,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, - #{uploadDate,jdbcType=TIMESTAMP}, #{version,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR} - ) - - - - insert into terminal_upload - - - id, - - - path, - - - name, - - - upload_date, - - - version, - - - title, - - - - - #{id,jdbcType=INTEGER}, - - - #{path,jdbcType=VARCHAR}, - - - #{name,jdbcType=VARCHAR}, - - - #{uploadDate,jdbcType=TIMESTAMP}, - - - #{version,jdbcType=VARCHAR}, - - - #{title,jdbcType=VARCHAR}, - - - - - - update terminal_upload - - - id = #{record.id,jdbcType=INTEGER}, - - - path = #{record.path,jdbcType=VARCHAR}, - - - name = #{record.name,jdbcType=VARCHAR}, - - - upload_date = #{record.uploadDate,jdbcType=TIMESTAMP}, - - - version = #{record.version,jdbcType=VARCHAR}, - - - title = #{record.title,jdbcType=VARCHAR}, - - - - - - - - update terminal_upload - set id = #{record.id,jdbcType=INTEGER}, - path = #{record.path,jdbcType=VARCHAR}, - name = #{record.name,jdbcType=VARCHAR}, - upload_date = #{record.uploadDate,jdbcType=TIMESTAMP}, - version = #{record.version,jdbcType=VARCHAR}, - title = #{record.title,jdbcType=VARCHAR} - - - - - - update terminal_upload - - - path = #{path,jdbcType=VARCHAR}, - - - name = #{name,jdbcType=VARCHAR}, - - - upload_date = #{uploadDate,jdbcType=TIMESTAMP}, - - - version = #{version,jdbcType=VARCHAR}, - - - title = #{title,jdbcType=VARCHAR}, - - - where id = #{id,jdbcType=INTEGER} - - - - update terminal_upload - set path = #{path,jdbcType=VARCHAR}, - name = #{name,jdbcType=VARCHAR}, - upload_date = #{uploadDate,jdbcType=TIMESTAMP}, - version = #{version,jdbcType=VARCHAR}, - title = #{title,jdbcType=VARCHAR} - where id = #{id,jdbcType=INTEGER} - - - \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/TerminalUploadMapper.xml b/xymanager_dao/src/main/resources/mappers/TerminalUploadMapper.xml new file mode 100644 index 0000000..3356875 --- /dev/null +++ b/xymanager_dao/src/main/resources/mappers/TerminalUploadMapper.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, `path`, `name`, upload_date, version, title, app, file_size + + + + + + delete from terminal_upload + where id = #{id,jdbcType=INTEGER} + + + + delete from terminal_upload + + + + + + + + SELECT LAST_INSERT_ID() + + insert into terminal_upload (`path`, `name`, upload_date, + version, title, app, + file_size) + values (#{path,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{uploadDate,jdbcType=TIMESTAMP}, + #{version,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{app,jdbcType=VARCHAR}, + #{fileSize,jdbcType=INTEGER}) + + + + + SELECT LAST_INSERT_ID() + + insert into terminal_upload + + + `path`, + + + `name`, + + + upload_date, + + + version, + + + title, + + + app, + + + file_size, + + + + + #{path,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{uploadDate,jdbcType=TIMESTAMP}, + + + #{version,jdbcType=VARCHAR}, + + + #{title,jdbcType=VARCHAR}, + + + #{app,jdbcType=VARCHAR}, + + + #{fileSize,jdbcType=INTEGER}, + + + + + + + update terminal_upload + + + id = #{row.id,jdbcType=INTEGER}, + + + `path` = #{row.path,jdbcType=VARCHAR}, + + + `name` = #{row.name,jdbcType=VARCHAR}, + + + upload_date = #{row.uploadDate,jdbcType=TIMESTAMP}, + + + version = #{row.version,jdbcType=VARCHAR}, + + + title = #{row.title,jdbcType=VARCHAR}, + + + app = #{row.app,jdbcType=VARCHAR}, + + + file_size = #{row.fileSize,jdbcType=INTEGER}, + + + + + + + + + update terminal_upload + set id = #{row.id,jdbcType=INTEGER}, + `path` = #{row.path,jdbcType=VARCHAR}, + `name` = #{row.name,jdbcType=VARCHAR}, + upload_date = #{row.uploadDate,jdbcType=TIMESTAMP}, + version = #{row.version,jdbcType=VARCHAR}, + title = #{row.title,jdbcType=VARCHAR}, + app = #{row.app,jdbcType=VARCHAR}, + file_size = #{row.fileSize,jdbcType=INTEGER} + + + + + + + update terminal_upload + + + `path` = #{path,jdbcType=VARCHAR}, + + + `name` = #{name,jdbcType=VARCHAR}, + + + upload_date = #{uploadDate,jdbcType=TIMESTAMP}, + + + version = #{version,jdbcType=VARCHAR}, + + + title = #{title,jdbcType=VARCHAR}, + + + app = #{app,jdbcType=VARCHAR}, + + + file_size = #{fileSize,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + + update terminal_upload + set `path` = #{path,jdbcType=VARCHAR}, + `name` = #{name,jdbcType=VARCHAR}, + upload_date = #{uploadDate,jdbcType=TIMESTAMP}, + version = #{version,jdbcType=VARCHAR}, + title = #{title,jdbcType=VARCHAR}, + app = #{app,jdbcType=VARCHAR}, + file_size = #{fileSize,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/xymanager_dao/src/main/resources/mappers/TerminalUploadPatchMapper.xml b/xymanager_dao/src/main/resources/mappers/TerminalUploadPatchMapper.xml new file mode 100644 index 0000000..2d07464 --- /dev/null +++ b/xymanager_dao/src/main/resources/mappers/TerminalUploadPatchMapper.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, app, old_ver, new_ver, `path`, file_size + + + + + + delete from terminal_upload_patch + where id = #{id,jdbcType=INTEGER} + + + + delete from terminal_upload_patch + + + + + + + + SELECT LAST_INSERT_ID() + + insert into terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 terminal_upload_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 diff --git a/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/UploadServiceImpl.java b/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/UploadServiceImpl.java index 66367ef..e5250eb 100644 --- a/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/UploadServiceImpl.java +++ b/xymanager_service/src/main/java/com/shxy/xymanager_service/impl/UploadServiceImpl.java @@ -12,7 +12,7 @@ import com.shxy.xymanager_common.util.UploadUtils; import com.shxy.xymanager_common.vo.PageVo; import com.shxy.xymanager_common.vo.TerminalApkVo; import com.shxy.xymanager_common.vo.TerminalUpdateApkVo; -import com.shxy.xymanager_dao.dao.TerminalUploadDao; +import com.shxy.xymanager_dao.dao.TerminalUploadMapper; import com.shxy.xymanager_service.interaction.Cma; import com.shxy.xymanager_service.service.UploadService; import lombok.extern.slf4j.Slf4j; @@ -46,7 +46,7 @@ public class UploadServiceImpl implements UploadService { private int port; @Autowired - TerminalUploadDao terminalUploadDao; + TerminalUploadMapper terminalUploadDao; /** * 上传文件 @@ -85,9 +85,11 @@ public class UploadServiceImpl implements UploadService { if (CollectionUtil.isNotEmpty(list)) { for (TerminalUpload item : list) { item.setPath(path + item.getPath()); - File file = new File(item.getPath()); - if (file.exists()) { - item.setFileSize(file.length()); + if (item.getFileSize() == null) { + File file = new File(item.getPath()); + if (file.exists()) { + item.setFileSize((int) file.length()); + } } } }