feat: 调整apk上传表结构,增加补丁表
parent
577acd408e
commit
c9ae49b316
@ -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;
|
||||
}
|
||||
}
|
@ -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;
|
||||
}
|
||||
}
|
@ -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<Criteria> 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<Criteria> 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<Criterion> criteria;
|
||||
|
||||
protected GeneratedCriteria() {
|
||||
super();
|
||||
criteria = new ArrayList<>();
|
||||
}
|
||||
|
||||
public boolean isValid() {
|
||||
return criteria.size() > 0;
|
||||
}
|
||||
|
||||
public List<Criterion> getAllCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
public List<Criterion> getCriteria() {
|
||||
return criteria;
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition) {
|
||||
if (condition == null) {
|
||||
throw new RuntimeException("Value for condition cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value, String property) {
|
||||
if (value == null) {
|
||||
throw new RuntimeException("Value for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value));
|
||||
}
|
||||
|
||||
protected void addCriterion(String condition, Object value1, Object value2, String property) {
|
||||
if (value1 == null || value2 == null) {
|
||||
throw new RuntimeException("Between values for " + property + " cannot be null");
|
||||
}
|
||||
criteria.add(new Criterion(condition, value1, value2));
|
||||
}
|
||||
|
||||
public Criteria andIdIsNull() {
|
||||
addCriterion("id is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdIsNotNull() {
|
||||
addCriterion("id is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdEqualTo(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<Integer> values) {
|
||||
addCriterion("id in", values, "id");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andIdNotIn(List<Integer> 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<String> values) {
|
||||
addCriterion("app in", values, "app");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andAppNotIn(List<String> 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<String> values) {
|
||||
addCriterion("old_ver in", values, "oldVer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andOldVerNotIn(List<String> 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<String> values) {
|
||||
addCriterion("new_ver in", values, "newVer");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andNewVerNotIn(List<String> 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<String> values) {
|
||||
addCriterion("`path` in", values, "path");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andPathNotIn(List<String> 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<Integer> values) {
|
||||
addCriterion("file_size in", values, "fileSize");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andFileSizeNotIn(List<Integer> 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);
|
||||
}
|
||||
}
|
||||
}
|
@ -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<TerminalUpload> 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);
|
||||
|
||||
}
|
@ -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<TerminalUpload> 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);
|
||||
}
|
@ -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<TerminalUploadPatch> 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);
|
||||
}
|
@ -1,240 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalUploadDao">
|
||||
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
<id column="id" jdbcType="INTEGER" property="id"/>
|
||||
<result column="path" jdbcType="VARCHAR" property="path"/>
|
||||
<result column="name" jdbcType="VARCHAR" property="name"/>
|
||||
<result column="upload_date" jdbcType="TIMESTAMP" property="uploadDate"/>
|
||||
<result column="version" jdbcType="VARCHAR" property="version"/>
|
||||
<result column="title" jdbcType="VARCHAR" property="title"/>
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="("
|
||||
separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
|
||||
id, path, name, upload_date, version, title
|
||||
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadExample"
|
||||
resultMap="BaseResultMap">
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List"/>
|
||||
from terminal_upload
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
select
|
||||
<include refid="Base_Column_List"/>
|
||||
from terminal_upload
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
|
||||
delete from terminal_upload
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadExample">
|
||||
delete from terminal_upload
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
|
||||
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>
|
||||
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
insert into terminal_upload
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
id,
|
||||
</if>
|
||||
<if test="path != null">
|
||||
path,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name,
|
||||
</if>
|
||||
<if test="uploadDate != null">
|
||||
upload_date,
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version,
|
||||
</if>
|
||||
<if test="title != null">
|
||||
title,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="id != null">
|
||||
#{id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="path != null">
|
||||
#{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadDate != null">
|
||||
#{uploadDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
#{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="title != null">
|
||||
#{title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadExample"
|
||||
resultType="java.lang.Long">
|
||||
select count(*) from terminal_upload
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause"/>
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
update terminal_upload
|
||||
<set>
|
||||
<if test="record.id != null">
|
||||
id = #{record.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="record.path != null">
|
||||
path = #{record.path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.name != null">
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.uploadDate != null">
|
||||
upload_date = #{record.uploadDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="record.version != null">
|
||||
version = #{record.version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.title != null">
|
||||
title = #{record.title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
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}
|
||||
<if test="_parameter != null">
|
||||
<include refid="Update_By_Example_Where_Clause"/>
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
update terminal_upload
|
||||
<set>
|
||||
<if test="path != null">
|
||||
path = #{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadDate != null">
|
||||
upload_date = #{uploadDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version = #{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="title != null">
|
||||
title = #{title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
|
||||
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}
|
||||
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,318 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalUploadMapper">
|
||||
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="path" jdbcType="VARCHAR" property="path" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
<result column="upload_date" jdbcType="TIMESTAMP" property="uploadDate" />
|
||||
<result column="version" jdbcType="VARCHAR" property="version" />
|
||||
<result column="title" jdbcType="VARCHAR" property="title" />
|
||||
<result column="app" jdbcType="VARCHAR" property="app" />
|
||||
<result column="file_size" jdbcType="INTEGER" property="fileSize" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, `path`, `name`, upload_date, version, title, app, file_size
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from terminal_upload
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from terminal_upload
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
delete from terminal_upload
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadExample">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
delete from terminal_upload
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
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})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into terminal_upload
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="path != null">
|
||||
`path`,
|
||||
</if>
|
||||
<if test="name != null">
|
||||
`name`,
|
||||
</if>
|
||||
<if test="uploadDate != null">
|
||||
upload_date,
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version,
|
||||
</if>
|
||||
<if test="title != null">
|
||||
title,
|
||||
</if>
|
||||
<if test="app != null">
|
||||
app,
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="path != null">
|
||||
#{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
#{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadDate != null">
|
||||
#{uploadDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
#{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="title != null">
|
||||
#{title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="app != null">
|
||||
#{app,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
#{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadExample" resultType="java.lang.Long">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select count(*) from terminal_upload
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update terminal_upload
|
||||
<set>
|
||||
<if test="row.id != null">
|
||||
id = #{row.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.path != null">
|
||||
`path` = #{row.path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.name != null">
|
||||
`name` = #{row.name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.uploadDate != null">
|
||||
upload_date = #{row.uploadDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="row.version != null">
|
||||
version = #{row.version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.title != null">
|
||||
title = #{row.title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.app != null">
|
||||
app = #{row.app,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.fileSize != null">
|
||||
file_size = #{row.fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
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}
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update terminal_upload
|
||||
<set>
|
||||
<if test="path != null">
|
||||
`path` = #{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="name != null">
|
||||
`name` = #{name,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="uploadDate != null">
|
||||
upload_date = #{uploadDate,jdbcType=TIMESTAMP},
|
||||
</if>
|
||||
<if test="version != null">
|
||||
version = #{version,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="title != null">
|
||||
title = #{title,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="app != null">
|
||||
app = #{app,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size = #{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalUpload">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
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}
|
||||
</update>
|
||||
</mapper>
|
@ -0,0 +1,286 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.shxy.xymanager_dao.dao.TerminalUploadPatchMapper">
|
||||
<resultMap id="BaseResultMap" type="com.shxy.xymanager_common.entity.TerminalUploadPatch">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<id column="id" jdbcType="INTEGER" property="id" />
|
||||
<result column="app" jdbcType="VARCHAR" property="app" />
|
||||
<result column="old_ver" jdbcType="VARCHAR" property="oldVer" />
|
||||
<result column="new_ver" jdbcType="VARCHAR" property="newVer" />
|
||||
<result column="path" jdbcType="VARCHAR" property="path" />
|
||||
<result column="file_size" jdbcType="INTEGER" property="fileSize" />
|
||||
</resultMap>
|
||||
<sql id="Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Update_By_Example_Where_Clause">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<where>
|
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or">
|
||||
<if test="criteria.valid">
|
||||
<trim prefix="(" prefixOverrides="and" suffix=")">
|
||||
<foreach collection="criteria.criteria" item="criterion">
|
||||
<choose>
|
||||
<when test="criterion.noValue">
|
||||
and ${criterion.condition}
|
||||
</when>
|
||||
<when test="criterion.singleValue">
|
||||
and ${criterion.condition} #{criterion.value}
|
||||
</when>
|
||||
<when test="criterion.betweenValue">
|
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
|
||||
</when>
|
||||
<when test="criterion.listValue">
|
||||
and ${criterion.condition}
|
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
|
||||
#{listItem}
|
||||
</foreach>
|
||||
</when>
|
||||
</choose>
|
||||
</foreach>
|
||||
</trim>
|
||||
</if>
|
||||
</foreach>
|
||||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
id, app, old_ver, new_ver, `path`, file_size
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatchExample" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select
|
||||
<if test="distinct">
|
||||
distinct
|
||||
</if>
|
||||
<include refid="Base_Column_List" />
|
||||
from terminal_upload_patch
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
<if test="orderByClause != null">
|
||||
order by ${orderByClause}
|
||||
</if>
|
||||
</select>
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Integer" resultMap="BaseResultMap">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from terminal_upload_patch
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</select>
|
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
delete from terminal_upload_patch
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</delete>
|
||||
<delete id="deleteByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatchExample">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
delete from terminal_upload_patch
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatch">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
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})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatch">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
|
||||
SELECT LAST_INSERT_ID()
|
||||
</selectKey>
|
||||
insert into terminal_upload_patch
|
||||
<trim prefix="(" suffix=")" suffixOverrides=",">
|
||||
<if test="app != null">
|
||||
app,
|
||||
</if>
|
||||
<if test="oldVer != null">
|
||||
old_ver,
|
||||
</if>
|
||||
<if test="newVer != null">
|
||||
new_ver,
|
||||
</if>
|
||||
<if test="path != null">
|
||||
`path`,
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size,
|
||||
</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="app != null">
|
||||
#{app,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="oldVer != null">
|
||||
#{oldVer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="newVer != null">
|
||||
#{newVer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="path != null">
|
||||
#{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
#{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
</trim>
|
||||
</insert>
|
||||
<select id="countByExample" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatchExample" resultType="java.lang.Long">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
select count(*) from terminal_upload_patch
|
||||
<if test="_parameter != null">
|
||||
<include refid="Example_Where_Clause" />
|
||||
</if>
|
||||
</select>
|
||||
<update id="updateByExampleSelective" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update terminal_upload_patch
|
||||
<set>
|
||||
<if test="row.id != null">
|
||||
id = #{row.id,jdbcType=INTEGER},
|
||||
</if>
|
||||
<if test="row.app != null">
|
||||
app = #{row.app,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.oldVer != null">
|
||||
old_ver = #{row.oldVer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.newVer != null">
|
||||
new_ver = #{row.newVer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.path != null">
|
||||
`path` = #{row.path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="row.fileSize != null">
|
||||
file_size = #{row.fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByExample" parameterType="map">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
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}
|
||||
<if test="example != null">
|
||||
<include refid="Update_By_Example_Where_Clause" />
|
||||
</if>
|
||||
</update>
|
||||
<update id="updateByPrimaryKeySelective" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatch">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
update terminal_upload_patch
|
||||
<set>
|
||||
<if test="app != null">
|
||||
app = #{app,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="oldVer != null">
|
||||
old_ver = #{oldVer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="newVer != null">
|
||||
new_ver = #{newVer,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="path != null">
|
||||
`path` = #{path,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="fileSize != null">
|
||||
file_size = #{fileSize,jdbcType=INTEGER},
|
||||
</if>
|
||||
</set>
|
||||
where id = #{id,jdbcType=INTEGER}
|
||||
</update>
|
||||
<update id="updateByPrimaryKey" parameterType="com.shxy.xymanager_common.entity.TerminalUploadPatch">
|
||||
<!--
|
||||
WARNING - @mbg.generated
|
||||
This element is automatically generated by MyBatis Generator, do not modify.
|
||||
-->
|
||||
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}
|
||||
</update>
|
||||
</mapper>
|
Loading…
Reference in New Issue