init mybatis

This commit is contained in:
Yutousama 2021-10-03 15:21:38 +08:00
parent 605a28c765
commit 8458c045da
25 changed files with 4264 additions and 1 deletions

View File

@ -0,0 +1,30 @@
package com.yutou.mobilecloud.mybatis.dao;
import com.yutou.mobilecloud.mybatis.model.TBackupFile;
import com.yutou.mobilecloud.mybatis.model.TBackupFileExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TBackupFileDao {
long countByExample(TBackupFileExample example);
int deleteByExample(TBackupFileExample example);
int deleteByPrimaryKey(Integer id);
int insert(TBackupFile record);
int insertSelective(TBackupFile record);
List<TBackupFile> selectByExample(TBackupFileExample example);
TBackupFile selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TBackupFile record, @Param("example") TBackupFileExample example);
int updateByExample(@Param("record") TBackupFile record, @Param("example") TBackupFileExample example);
int updateByPrimaryKeySelective(TBackupFile record);
int updateByPrimaryKey(TBackupFile record);
}

View File

@ -0,0 +1,30 @@
package com.yutou.mobilecloud.mybatis.dao;
import com.yutou.mobilecloud.mybatis.model.TBackupTitle;
import com.yutou.mobilecloud.mybatis.model.TBackupTitleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TBackupTitleDao {
long countByExample(TBackupTitleExample example);
int deleteByExample(TBackupTitleExample example);
int deleteByPrimaryKey(Integer id);
int insert(TBackupTitle record);
int insertSelective(TBackupTitle record);
List<TBackupTitle> selectByExample(TBackupTitleExample example);
TBackupTitle selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TBackupTitle record, @Param("example") TBackupTitleExample example);
int updateByExample(@Param("record") TBackupTitle record, @Param("example") TBackupTitleExample example);
int updateByPrimaryKeySelective(TBackupTitle record);
int updateByPrimaryKey(TBackupTitle record);
}

View File

@ -0,0 +1,30 @@
package com.yutou.mobilecloud.mybatis.dao;
import com.yutou.mobilecloud.mybatis.model.TDataFile;
import com.yutou.mobilecloud.mybatis.model.TDataFileExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TDataFileDao {
long countByExample(TDataFileExample example);
int deleteByExample(TDataFileExample example);
int deleteByPrimaryKey(Integer id);
int insert(TDataFile record);
int insertSelective(TDataFile record);
List<TDataFile> selectByExample(TDataFileExample example);
TDataFile selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TDataFile record, @Param("example") TDataFileExample example);
int updateByExample(@Param("record") TDataFile record, @Param("example") TDataFileExample example);
int updateByPrimaryKeySelective(TDataFile record);
int updateByPrimaryKey(TDataFile record);
}

View File

@ -0,0 +1,30 @@
package com.yutou.mobilecloud.mybatis.dao;
import com.yutou.mobilecloud.mybatis.model.TDataTitle;
import com.yutou.mobilecloud.mybatis.model.TDataTitleExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TDataTitleDao {
long countByExample(TDataTitleExample example);
int deleteByExample(TDataTitleExample example);
int deleteByPrimaryKey(Integer id);
int insert(TDataTitle record);
int insertSelective(TDataTitle record);
List<TDataTitle> selectByExample(TDataTitleExample example);
TDataTitle selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TDataTitle record, @Param("example") TDataTitleExample example);
int updateByExample(@Param("record") TDataTitle record, @Param("example") TDataTitleExample example);
int updateByPrimaryKeySelective(TDataTitle record);
int updateByPrimaryKey(TDataTitle record);
}

View File

@ -0,0 +1,30 @@
package com.yutou.mobilecloud.mybatis.dao;
import com.yutou.mobilecloud.mybatis.model.TUserConfig;
import com.yutou.mobilecloud.mybatis.model.TUserConfigExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TUserConfigDao {
long countByExample(TUserConfigExample example);
int deleteByExample(TUserConfigExample example);
int deleteByPrimaryKey(Integer id);
int insert(TUserConfig record);
int insertSelective(TUserConfig record);
List<TUserConfig> selectByExample(TUserConfigExample example);
TUserConfig selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TUserConfig record, @Param("example") TUserConfigExample example);
int updateByExample(@Param("record") TUserConfig record, @Param("example") TUserConfigExample example);
int updateByPrimaryKeySelective(TUserConfig record);
int updateByPrimaryKey(TUserConfig record);
}

View File

@ -0,0 +1,30 @@
package com.yutou.mobilecloud.mybatis.dao;
import com.yutou.mobilecloud.mybatis.model.TUser;
import com.yutou.mobilecloud.mybatis.model.TUserExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
public interface TUserDao {
long countByExample(TUserExample example);
int deleteByExample(TUserExample example);
int deleteByPrimaryKey(Integer id);
int insert(TUser record);
int insertSelective(TUser record);
List<TUser> selectByExample(TUserExample example);
TUser selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") TUser record, @Param("example") TUserExample example);
int updateByExample(@Param("record") TUser record, @Param("example") TUserExample example);
int updateByPrimaryKeySelective(TUser record);
int updateByPrimaryKey(TUser record);
}

View File

@ -0,0 +1,28 @@
package com.yutou.mobilecloud.mybatis.model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* t_backup_file
* @author
*/
@Data
public class TBackupFile implements Serializable {
private Integer id;
private Integer uid;
private Integer bid;
private String filepath;
private Integer filesize;
private String md5;
private Date createtime;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,642 @@
package com.yutou.mobilecloud.mybatis.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TBackupFileExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TBackupFileExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
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 andUidIsNull() {
addCriterion("`uid` is null");
return (Criteria) this;
}
public Criteria andUidIsNotNull() {
addCriterion("`uid` is not null");
return (Criteria) this;
}
public Criteria andUidEqualTo(Integer value) {
addCriterion("`uid` =", value, "uid");
return (Criteria) this;
}
public Criteria andUidNotEqualTo(Integer value) {
addCriterion("`uid` <>", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThan(Integer value) {
addCriterion("`uid` >", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
addCriterion("`uid` >=", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThan(Integer value) {
addCriterion("`uid` <", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThanOrEqualTo(Integer value) {
addCriterion("`uid` <=", value, "uid");
return (Criteria) this;
}
public Criteria andUidIn(List<Integer> values) {
addCriterion("`uid` in", values, "uid");
return (Criteria) this;
}
public Criteria andUidNotIn(List<Integer> values) {
addCriterion("`uid` not in", values, "uid");
return (Criteria) this;
}
public Criteria andUidBetween(Integer value1, Integer value2) {
addCriterion("`uid` between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andUidNotBetween(Integer value1, Integer value2) {
addCriterion("`uid` not between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andBidIsNull() {
addCriterion("bid is null");
return (Criteria) this;
}
public Criteria andBidIsNotNull() {
addCriterion("bid is not null");
return (Criteria) this;
}
public Criteria andBidEqualTo(Integer value) {
addCriterion("bid =", value, "bid");
return (Criteria) this;
}
public Criteria andBidNotEqualTo(Integer value) {
addCriterion("bid <>", value, "bid");
return (Criteria) this;
}
public Criteria andBidGreaterThan(Integer value) {
addCriterion("bid >", value, "bid");
return (Criteria) this;
}
public Criteria andBidGreaterThanOrEqualTo(Integer value) {
addCriterion("bid >=", value, "bid");
return (Criteria) this;
}
public Criteria andBidLessThan(Integer value) {
addCriterion("bid <", value, "bid");
return (Criteria) this;
}
public Criteria andBidLessThanOrEqualTo(Integer value) {
addCriterion("bid <=", value, "bid");
return (Criteria) this;
}
public Criteria andBidIn(List<Integer> values) {
addCriterion("bid in", values, "bid");
return (Criteria) this;
}
public Criteria andBidNotIn(List<Integer> values) {
addCriterion("bid not in", values, "bid");
return (Criteria) this;
}
public Criteria andBidBetween(Integer value1, Integer value2) {
addCriterion("bid between", value1, value2, "bid");
return (Criteria) this;
}
public Criteria andBidNotBetween(Integer value1, Integer value2) {
addCriterion("bid not between", value1, value2, "bid");
return (Criteria) this;
}
public Criteria andFilepathIsNull() {
addCriterion("filepath is null");
return (Criteria) this;
}
public Criteria andFilepathIsNotNull() {
addCriterion("filepath is not null");
return (Criteria) this;
}
public Criteria andFilepathEqualTo(String value) {
addCriterion("filepath =", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotEqualTo(String value) {
addCriterion("filepath <>", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathGreaterThan(String value) {
addCriterion("filepath >", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathGreaterThanOrEqualTo(String value) {
addCriterion("filepath >=", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathLessThan(String value) {
addCriterion("filepath <", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathLessThanOrEqualTo(String value) {
addCriterion("filepath <=", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathLike(String value) {
addCriterion("filepath like", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotLike(String value) {
addCriterion("filepath not like", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathIn(List<String> values) {
addCriterion("filepath in", values, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotIn(List<String> values) {
addCriterion("filepath not in", values, "filepath");
return (Criteria) this;
}
public Criteria andFilepathBetween(String value1, String value2) {
addCriterion("filepath between", value1, value2, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotBetween(String value1, String value2) {
addCriterion("filepath not between", value1, value2, "filepath");
return (Criteria) this;
}
public Criteria andFilesizeIsNull() {
addCriterion("filesize is null");
return (Criteria) this;
}
public Criteria andFilesizeIsNotNull() {
addCriterion("filesize is not null");
return (Criteria) this;
}
public Criteria andFilesizeEqualTo(Integer value) {
addCriterion("filesize =", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeNotEqualTo(Integer value) {
addCriterion("filesize <>", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeGreaterThan(Integer value) {
addCriterion("filesize >", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeGreaterThanOrEqualTo(Integer value) {
addCriterion("filesize >=", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeLessThan(Integer value) {
addCriterion("filesize <", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeLessThanOrEqualTo(Integer value) {
addCriterion("filesize <=", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeIn(List<Integer> values) {
addCriterion("filesize in", values, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeNotIn(List<Integer> values) {
addCriterion("filesize not in", values, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeBetween(Integer value1, Integer value2) {
addCriterion("filesize between", value1, value2, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeNotBetween(Integer value1, Integer value2) {
addCriterion("filesize not between", value1, value2, "filesize");
return (Criteria) this;
}
public Criteria andMd5IsNull() {
addCriterion("md5 is null");
return (Criteria) this;
}
public Criteria andMd5IsNotNull() {
addCriterion("md5 is not null");
return (Criteria) this;
}
public Criteria andMd5EqualTo(String value) {
addCriterion("md5 =", value, "md5");
return (Criteria) this;
}
public Criteria andMd5NotEqualTo(String value) {
addCriterion("md5 <>", value, "md5");
return (Criteria) this;
}
public Criteria andMd5GreaterThan(String value) {
addCriterion("md5 >", value, "md5");
return (Criteria) this;
}
public Criteria andMd5GreaterThanOrEqualTo(String value) {
addCriterion("md5 >=", value, "md5");
return (Criteria) this;
}
public Criteria andMd5LessThan(String value) {
addCriterion("md5 <", value, "md5");
return (Criteria) this;
}
public Criteria andMd5LessThanOrEqualTo(String value) {
addCriterion("md5 <=", value, "md5");
return (Criteria) this;
}
public Criteria andMd5Like(String value) {
addCriterion("md5 like", value, "md5");
return (Criteria) this;
}
public Criteria andMd5NotLike(String value) {
addCriterion("md5 not like", value, "md5");
return (Criteria) this;
}
public Criteria andMd5In(List<String> values) {
addCriterion("md5 in", values, "md5");
return (Criteria) this;
}
public Criteria andMd5NotIn(List<String> values) {
addCriterion("md5 not in", values, "md5");
return (Criteria) this;
}
public Criteria andMd5Between(String value1, String value2) {
addCriterion("md5 between", value1, value2, "md5");
return (Criteria) this;
}
public Criteria andMd5NotBetween(String value1, String value2) {
addCriterion("md5 not between", value1, value2, "md5");
return (Criteria) this;
}
public Criteria andCreatetimeIsNull() {
addCriterion("createTime is null");
return (Criteria) this;
}
public Criteria andCreatetimeIsNotNull() {
addCriterion("createTime is not null");
return (Criteria) this;
}
public Criteria andCreatetimeEqualTo(Date value) {
addCriterion("createTime =", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotEqualTo(Date value) {
addCriterion("createTime <>", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThan(Date value) {
addCriterion("createTime >", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("createTime >=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThan(Date value) {
addCriterion("createTime <", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
addCriterion("createTime <=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeIn(List<Date> values) {
addCriterion("createTime in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotIn(List<Date> values) {
addCriterion("createTime not in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeBetween(Date value1, Date value2) {
addCriterion("createTime between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
addCriterion("createTime not between", value1, value2, "createtime");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -0,0 +1,17 @@
package com.yutou.mobilecloud.mybatis.model;
import java.io.Serializable;
import lombok.Data;
/**
* t_backup_title
* @author
*/
@Data
public class TBackupTitle implements Serializable {
private Integer id;
private String title;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,331 @@
package com.yutou.mobilecloud.mybatis.model;
import java.util.ArrayList;
import java.util.List;
public class TBackupTitleExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TBackupTitleExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
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 andTitleIsNull() {
addCriterion("title is null");
return (Criteria) this;
}
public Criteria andTitleIsNotNull() {
addCriterion("title is not null");
return (Criteria) this;
}
public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title");
return (Criteria) this;
}
public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title");
return (Criteria) this;
}
public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title");
return (Criteria) this;
}
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -0,0 +1,28 @@
package com.yutou.mobilecloud.mybatis.model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* t_data_file
* @author
*/
@Data
public class TDataFile implements Serializable {
private Integer id;
private Integer uid;
private Integer bid;
private String filepath;
private Integer filesize;
private String md5;
private Date createtime;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,642 @@
package com.yutou.mobilecloud.mybatis.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TDataFileExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TDataFileExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
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 andUidIsNull() {
addCriterion("`uid` is null");
return (Criteria) this;
}
public Criteria andUidIsNotNull() {
addCriterion("`uid` is not null");
return (Criteria) this;
}
public Criteria andUidEqualTo(Integer value) {
addCriterion("`uid` =", value, "uid");
return (Criteria) this;
}
public Criteria andUidNotEqualTo(Integer value) {
addCriterion("`uid` <>", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThan(Integer value) {
addCriterion("`uid` >", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThanOrEqualTo(Integer value) {
addCriterion("`uid` >=", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThan(Integer value) {
addCriterion("`uid` <", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThanOrEqualTo(Integer value) {
addCriterion("`uid` <=", value, "uid");
return (Criteria) this;
}
public Criteria andUidIn(List<Integer> values) {
addCriterion("`uid` in", values, "uid");
return (Criteria) this;
}
public Criteria andUidNotIn(List<Integer> values) {
addCriterion("`uid` not in", values, "uid");
return (Criteria) this;
}
public Criteria andUidBetween(Integer value1, Integer value2) {
addCriterion("`uid` between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andUidNotBetween(Integer value1, Integer value2) {
addCriterion("`uid` not between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andBidIsNull() {
addCriterion("bid is null");
return (Criteria) this;
}
public Criteria andBidIsNotNull() {
addCriterion("bid is not null");
return (Criteria) this;
}
public Criteria andBidEqualTo(Integer value) {
addCriterion("bid =", value, "bid");
return (Criteria) this;
}
public Criteria andBidNotEqualTo(Integer value) {
addCriterion("bid <>", value, "bid");
return (Criteria) this;
}
public Criteria andBidGreaterThan(Integer value) {
addCriterion("bid >", value, "bid");
return (Criteria) this;
}
public Criteria andBidGreaterThanOrEqualTo(Integer value) {
addCriterion("bid >=", value, "bid");
return (Criteria) this;
}
public Criteria andBidLessThan(Integer value) {
addCriterion("bid <", value, "bid");
return (Criteria) this;
}
public Criteria andBidLessThanOrEqualTo(Integer value) {
addCriterion("bid <=", value, "bid");
return (Criteria) this;
}
public Criteria andBidIn(List<Integer> values) {
addCriterion("bid in", values, "bid");
return (Criteria) this;
}
public Criteria andBidNotIn(List<Integer> values) {
addCriterion("bid not in", values, "bid");
return (Criteria) this;
}
public Criteria andBidBetween(Integer value1, Integer value2) {
addCriterion("bid between", value1, value2, "bid");
return (Criteria) this;
}
public Criteria andBidNotBetween(Integer value1, Integer value2) {
addCriterion("bid not between", value1, value2, "bid");
return (Criteria) this;
}
public Criteria andFilepathIsNull() {
addCriterion("filepath is null");
return (Criteria) this;
}
public Criteria andFilepathIsNotNull() {
addCriterion("filepath is not null");
return (Criteria) this;
}
public Criteria andFilepathEqualTo(String value) {
addCriterion("filepath =", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotEqualTo(String value) {
addCriterion("filepath <>", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathGreaterThan(String value) {
addCriterion("filepath >", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathGreaterThanOrEqualTo(String value) {
addCriterion("filepath >=", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathLessThan(String value) {
addCriterion("filepath <", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathLessThanOrEqualTo(String value) {
addCriterion("filepath <=", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathLike(String value) {
addCriterion("filepath like", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotLike(String value) {
addCriterion("filepath not like", value, "filepath");
return (Criteria) this;
}
public Criteria andFilepathIn(List<String> values) {
addCriterion("filepath in", values, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotIn(List<String> values) {
addCriterion("filepath not in", values, "filepath");
return (Criteria) this;
}
public Criteria andFilepathBetween(String value1, String value2) {
addCriterion("filepath between", value1, value2, "filepath");
return (Criteria) this;
}
public Criteria andFilepathNotBetween(String value1, String value2) {
addCriterion("filepath not between", value1, value2, "filepath");
return (Criteria) this;
}
public Criteria andFilesizeIsNull() {
addCriterion("filesize is null");
return (Criteria) this;
}
public Criteria andFilesizeIsNotNull() {
addCriterion("filesize is not null");
return (Criteria) this;
}
public Criteria andFilesizeEqualTo(Integer value) {
addCriterion("filesize =", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeNotEqualTo(Integer value) {
addCriterion("filesize <>", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeGreaterThan(Integer value) {
addCriterion("filesize >", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeGreaterThanOrEqualTo(Integer value) {
addCriterion("filesize >=", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeLessThan(Integer value) {
addCriterion("filesize <", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeLessThanOrEqualTo(Integer value) {
addCriterion("filesize <=", value, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeIn(List<Integer> values) {
addCriterion("filesize in", values, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeNotIn(List<Integer> values) {
addCriterion("filesize not in", values, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeBetween(Integer value1, Integer value2) {
addCriterion("filesize between", value1, value2, "filesize");
return (Criteria) this;
}
public Criteria andFilesizeNotBetween(Integer value1, Integer value2) {
addCriterion("filesize not between", value1, value2, "filesize");
return (Criteria) this;
}
public Criteria andMd5IsNull() {
addCriterion("md5 is null");
return (Criteria) this;
}
public Criteria andMd5IsNotNull() {
addCriterion("md5 is not null");
return (Criteria) this;
}
public Criteria andMd5EqualTo(String value) {
addCriterion("md5 =", value, "md5");
return (Criteria) this;
}
public Criteria andMd5NotEqualTo(String value) {
addCriterion("md5 <>", value, "md5");
return (Criteria) this;
}
public Criteria andMd5GreaterThan(String value) {
addCriterion("md5 >", value, "md5");
return (Criteria) this;
}
public Criteria andMd5GreaterThanOrEqualTo(String value) {
addCriterion("md5 >=", value, "md5");
return (Criteria) this;
}
public Criteria andMd5LessThan(String value) {
addCriterion("md5 <", value, "md5");
return (Criteria) this;
}
public Criteria andMd5LessThanOrEqualTo(String value) {
addCriterion("md5 <=", value, "md5");
return (Criteria) this;
}
public Criteria andMd5Like(String value) {
addCriterion("md5 like", value, "md5");
return (Criteria) this;
}
public Criteria andMd5NotLike(String value) {
addCriterion("md5 not like", value, "md5");
return (Criteria) this;
}
public Criteria andMd5In(List<String> values) {
addCriterion("md5 in", values, "md5");
return (Criteria) this;
}
public Criteria andMd5NotIn(List<String> values) {
addCriterion("md5 not in", values, "md5");
return (Criteria) this;
}
public Criteria andMd5Between(String value1, String value2) {
addCriterion("md5 between", value1, value2, "md5");
return (Criteria) this;
}
public Criteria andMd5NotBetween(String value1, String value2) {
addCriterion("md5 not between", value1, value2, "md5");
return (Criteria) this;
}
public Criteria andCreatetimeIsNull() {
addCriterion("createTime is null");
return (Criteria) this;
}
public Criteria andCreatetimeIsNotNull() {
addCriterion("createTime is not null");
return (Criteria) this;
}
public Criteria andCreatetimeEqualTo(Date value) {
addCriterion("createTime =", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotEqualTo(Date value) {
addCriterion("createTime <>", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThan(Date value) {
addCriterion("createTime >", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("createTime >=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThan(Date value) {
addCriterion("createTime <", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
addCriterion("createTime <=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeIn(List<Date> values) {
addCriterion("createTime in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotIn(List<Date> values) {
addCriterion("createTime not in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeBetween(Date value1, Date value2) {
addCriterion("createTime between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
addCriterion("createTime not between", value1, value2, "createtime");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -0,0 +1,17 @@
package com.yutou.mobilecloud.mybatis.model;
import java.io.Serializable;
import lombok.Data;
/**
* t_data_title
* @author
*/
@Data
public class TDataTitle implements Serializable {
private Integer id;
private String title;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,331 @@
package com.yutou.mobilecloud.mybatis.model;
import java.util.ArrayList;
import java.util.List;
public class TDataTitleExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TDataTitleExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
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 andTitleIsNull() {
addCriterion("title is null");
return (Criteria) this;
}
public Criteria andTitleIsNotNull() {
addCriterion("title is not null");
return (Criteria) this;
}
public Criteria andTitleEqualTo(String value) {
addCriterion("title =", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotEqualTo(String value) {
addCriterion("title <>", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThan(String value) {
addCriterion("title >", value, "title");
return (Criteria) this;
}
public Criteria andTitleGreaterThanOrEqualTo(String value) {
addCriterion("title >=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThan(String value) {
addCriterion("title <", value, "title");
return (Criteria) this;
}
public Criteria andTitleLessThanOrEqualTo(String value) {
addCriterion("title <=", value, "title");
return (Criteria) this;
}
public Criteria andTitleLike(String value) {
addCriterion("title like", value, "title");
return (Criteria) this;
}
public Criteria andTitleNotLike(String value) {
addCriterion("title not like", value, "title");
return (Criteria) this;
}
public Criteria andTitleIn(List<String> values) {
addCriterion("title in", values, "title");
return (Criteria) this;
}
public Criteria andTitleNotIn(List<String> values) {
addCriterion("title not in", values, "title");
return (Criteria) this;
}
public Criteria andTitleBetween(String value1, String value2) {
addCriterion("title between", value1, value2, "title");
return (Criteria) this;
}
public Criteria andTitleNotBetween(String value1, String value2) {
addCriterion("title not between", value1, value2, "title");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -0,0 +1,22 @@
package com.yutou.mobilecloud.mybatis.model;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
* t_user
* @author
*/
@Data
public class TUser implements Serializable {
private Integer id;
private String username;
private String password;
private Date createtime;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,19 @@
package com.yutou.mobilecloud.mybatis.model;
import java.io.Serializable;
import lombok.Data;
/**
* t_user_config
* @author
*/
@Data
public class TUserConfig implements Serializable {
private Integer id;
private String uid;
private Integer cloudmodel;
private static final long serialVersionUID = 1L;
}

View File

@ -0,0 +1,391 @@
package com.yutou.mobilecloud.mybatis.model;
import java.util.ArrayList;
import java.util.List;
public class TUserConfigExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TUserConfigExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
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 andUidIsNull() {
addCriterion("`uid` is null");
return (Criteria) this;
}
public Criteria andUidIsNotNull() {
addCriterion("`uid` is not null");
return (Criteria) this;
}
public Criteria andUidEqualTo(String value) {
addCriterion("`uid` =", value, "uid");
return (Criteria) this;
}
public Criteria andUidNotEqualTo(String value) {
addCriterion("`uid` <>", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThan(String value) {
addCriterion("`uid` >", value, "uid");
return (Criteria) this;
}
public Criteria andUidGreaterThanOrEqualTo(String value) {
addCriterion("`uid` >=", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThan(String value) {
addCriterion("`uid` <", value, "uid");
return (Criteria) this;
}
public Criteria andUidLessThanOrEqualTo(String value) {
addCriterion("`uid` <=", value, "uid");
return (Criteria) this;
}
public Criteria andUidLike(String value) {
addCriterion("`uid` like", value, "uid");
return (Criteria) this;
}
public Criteria andUidNotLike(String value) {
addCriterion("`uid` not like", value, "uid");
return (Criteria) this;
}
public Criteria andUidIn(List<String> values) {
addCriterion("`uid` in", values, "uid");
return (Criteria) this;
}
public Criteria andUidNotIn(List<String> values) {
addCriterion("`uid` not in", values, "uid");
return (Criteria) this;
}
public Criteria andUidBetween(String value1, String value2) {
addCriterion("`uid` between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andUidNotBetween(String value1, String value2) {
addCriterion("`uid` not between", value1, value2, "uid");
return (Criteria) this;
}
public Criteria andCloudmodelIsNull() {
addCriterion("cloudmodel is null");
return (Criteria) this;
}
public Criteria andCloudmodelIsNotNull() {
addCriterion("cloudmodel is not null");
return (Criteria) this;
}
public Criteria andCloudmodelEqualTo(Integer value) {
addCriterion("cloudmodel =", value, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelNotEqualTo(Integer value) {
addCriterion("cloudmodel <>", value, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelGreaterThan(Integer value) {
addCriterion("cloudmodel >", value, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelGreaterThanOrEqualTo(Integer value) {
addCriterion("cloudmodel >=", value, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelLessThan(Integer value) {
addCriterion("cloudmodel <", value, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelLessThanOrEqualTo(Integer value) {
addCriterion("cloudmodel <=", value, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelIn(List<Integer> values) {
addCriterion("cloudmodel in", values, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelNotIn(List<Integer> values) {
addCriterion("cloudmodel not in", values, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelBetween(Integer value1, Integer value2) {
addCriterion("cloudmodel between", value1, value2, "cloudmodel");
return (Criteria) this;
}
public Criteria andCloudmodelNotBetween(Integer value1, Integer value2) {
addCriterion("cloudmodel not between", value1, value2, "cloudmodel");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -0,0 +1,462 @@
package com.yutou.mobilecloud.mybatis.model;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class TUserExample {
protected String orderByClause;
protected boolean distinct;
protected List<Criteria> oredCriteria;
public TUserExample() {
oredCriteria = new ArrayList<>();
}
public void setOrderByClause(String orderByClause) {
this.orderByClause = orderByClause;
}
public String getOrderByClause() {
return orderByClause;
}
public void setDistinct(boolean distinct) {
this.distinct = distinct;
}
public boolean isDistinct() {
return distinct;
}
public List<Criteria> getOredCriteria() {
return oredCriteria;
}
public void or(Criteria criteria) {
oredCriteria.add(criteria);
}
public Criteria or() {
Criteria criteria = createCriteriaInternal();
oredCriteria.add(criteria);
return criteria;
}
public Criteria createCriteria() {
Criteria criteria = createCriteriaInternal();
if (oredCriteria.size() == 0) {
oredCriteria.add(criteria);
}
return criteria;
}
protected Criteria createCriteriaInternal() {
Criteria criteria = new Criteria();
return criteria;
}
public void clear() {
oredCriteria.clear();
orderByClause = null;
distinct = false;
}
protected abstract static class GeneratedCriteria {
protected List<Criterion> criteria;
protected GeneratedCriteria() {
super();
criteria = new ArrayList<>();
}
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 andUsernameIsNull() {
addCriterion("username is null");
return (Criteria) this;
}
public Criteria andUsernameIsNotNull() {
addCriterion("username is not null");
return (Criteria) this;
}
public Criteria andUsernameEqualTo(String value) {
addCriterion("username =", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotEqualTo(String value) {
addCriterion("username <>", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThan(String value) {
addCriterion("username >", value, "username");
return (Criteria) this;
}
public Criteria andUsernameGreaterThanOrEqualTo(String value) {
addCriterion("username >=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThan(String value) {
addCriterion("username <", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLessThanOrEqualTo(String value) {
addCriterion("username <=", value, "username");
return (Criteria) this;
}
public Criteria andUsernameLike(String value) {
addCriterion("username like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameNotLike(String value) {
addCriterion("username not like", value, "username");
return (Criteria) this;
}
public Criteria andUsernameIn(List<String> values) {
addCriterion("username in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameNotIn(List<String> values) {
addCriterion("username not in", values, "username");
return (Criteria) this;
}
public Criteria andUsernameBetween(String value1, String value2) {
addCriterion("username between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andUsernameNotBetween(String value1, String value2) {
addCriterion("username not between", value1, value2, "username");
return (Criteria) this;
}
public Criteria andPasswordIsNull() {
addCriterion("`password` is null");
return (Criteria) this;
}
public Criteria andPasswordIsNotNull() {
addCriterion("`password` is not null");
return (Criteria) this;
}
public Criteria andPasswordEqualTo(String value) {
addCriterion("`password` =", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotEqualTo(String value) {
addCriterion("`password` <>", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThan(String value) {
addCriterion("`password` >", value, "password");
return (Criteria) this;
}
public Criteria andPasswordGreaterThanOrEqualTo(String value) {
addCriterion("`password` >=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThan(String value) {
addCriterion("`password` <", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLessThanOrEqualTo(String value) {
addCriterion("`password` <=", value, "password");
return (Criteria) this;
}
public Criteria andPasswordLike(String value) {
addCriterion("`password` like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordNotLike(String value) {
addCriterion("`password` not like", value, "password");
return (Criteria) this;
}
public Criteria andPasswordIn(List<String> values) {
addCriterion("`password` in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordNotIn(List<String> values) {
addCriterion("`password` not in", values, "password");
return (Criteria) this;
}
public Criteria andPasswordBetween(String value1, String value2) {
addCriterion("`password` between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andPasswordNotBetween(String value1, String value2) {
addCriterion("`password` not between", value1, value2, "password");
return (Criteria) this;
}
public Criteria andCreatetimeIsNull() {
addCriterion("createTime is null");
return (Criteria) this;
}
public Criteria andCreatetimeIsNotNull() {
addCriterion("createTime is not null");
return (Criteria) this;
}
public Criteria andCreatetimeEqualTo(Date value) {
addCriterion("createTime =", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotEqualTo(Date value) {
addCriterion("createTime <>", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThan(Date value) {
addCriterion("createTime >", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
addCriterion("createTime >=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThan(Date value) {
addCriterion("createTime <", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
addCriterion("createTime <=", value, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeIn(List<Date> values) {
addCriterion("createTime in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotIn(List<Date> values) {
addCriterion("createTime not in", values, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeBetween(Date value1, Date value2) {
addCriterion("createTime between", value1, value2, "createtime");
return (Criteria) this;
}
public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
addCriterion("createTime not between", value1, value2, "createtime");
return (Criteria) this;
}
}
/**
*/
public static class Criteria extends GeneratedCriteria {
protected Criteria() {
super();
}
}
public static class Criterion {
private String condition;
private Object value;
private Object secondValue;
private boolean noValue;
private boolean singleValue;
private boolean betweenValue;
private boolean listValue;
private String typeHandler;
public String getCondition() {
return condition;
}
public Object getValue() {
return value;
}
public Object getSecondValue() {
return secondValue;
}
public boolean isNoValue() {
return noValue;
}
public boolean isSingleValue() {
return singleValue;
}
public boolean isBetweenValue() {
return betweenValue;
}
public boolean isListValue() {
return listValue;
}
public String getTypeHandler() {
return typeHandler;
}
protected Criterion(String condition) {
super();
this.condition = condition;
this.typeHandler = null;
this.noValue = true;
}
protected Criterion(String condition, Object value, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.typeHandler = typeHandler;
if (value instanceof List<?>) {
this.listValue = true;
} else {
this.singleValue = true;
}
}
protected Criterion(String condition, Object value) {
this(condition, value, null);
}
protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
super();
this.condition = condition;
this.value = value;
this.secondValue = secondValue;
this.typeHandler = typeHandler;
this.betweenValue = true;
}
protected Criterion(String condition, Object value, Object secondValue) {
this(condition, value, secondValue, null);
}
}
}

View File

@ -2,7 +2,7 @@ server.port=8000
spring.datasource.url=jdbc:mysql://yutou233.cn:3306/mobile_cloud?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true spring.datasource.url=jdbc:mysql://yutou233.cn:3306/mobile_cloud?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true
spring.datasource.username=jianrmod spring.datasource.username=jianrmod
spring.datasource.password=dashuyuxiaodidi233 spring.datasource.password=dashuyuxiaodidi233
mybatis.mapper-locations=classpath:mapper/*.xml mybatis.mapper-locations=classpath:mappers/*.xml
#mybatis.config-location=classpath:mybatis-config.xml #mybatis.config-location=classpath:mybatis-config.xml
mybatis.type-aliases-package=com.yutou.tools.mybatis mybatis.type-aliases-package=com.yutou.tools.mybatis
#???mybatis??? #???mybatis???

View File

@ -0,0 +1,237 @@
<?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.yutou.mobilecloud.mybatis.dao.TBackupFileDao">
<resultMap id="BaseResultMap" type="com.yutou.mobilecloud.mybatis.model.TBackupFile">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="uid" jdbcType="INTEGER" property="uid" />
<result column="bid" jdbcType="INTEGER" property="bid" />
<result column="filepath" jdbcType="VARCHAR" property="filepath" />
<result column="filesize" jdbcType="INTEGER" property="filesize" />
<result column="md5" jdbcType="VARCHAR" property="md5" />
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
</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, `uid`, bid, filepath, filesize, md5, createTime
</sql>
<select id="selectByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFileExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_backup_file
<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 t_backup_file
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_backup_file
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFileExample">
delete from t_backup_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFile" useGeneratedKeys="true">
insert into t_backup_file (`uid`, bid, filepath,
filesize, md5, createTime
)
values (#{uid,jdbcType=INTEGER}, #{bid,jdbcType=INTEGER}, #{filepath,jdbcType=VARCHAR},
#{filesize,jdbcType=INTEGER}, #{md5,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFile" useGeneratedKeys="true">
insert into t_backup_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uid != null">
`uid`,
</if>
<if test="bid != null">
bid,
</if>
<if test="filepath != null">
filepath,
</if>
<if test="filesize != null">
filesize,
</if>
<if test="md5 != null">
md5,
</if>
<if test="createtime != null">
createTime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uid != null">
#{uid,jdbcType=INTEGER},
</if>
<if test="bid != null">
#{bid,jdbcType=INTEGER},
</if>
<if test="filepath != null">
#{filepath,jdbcType=VARCHAR},
</if>
<if test="filesize != null">
#{filesize,jdbcType=INTEGER},
</if>
<if test="md5 != null">
#{md5,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFileExample" resultType="java.lang.Long">
select count(*) from t_backup_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_backup_file
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=INTEGER},
</if>
<if test="record.bid != null">
bid = #{record.bid,jdbcType=INTEGER},
</if>
<if test="record.filepath != null">
filepath = #{record.filepath,jdbcType=VARCHAR},
</if>
<if test="record.filesize != null">
filesize = #{record.filesize,jdbcType=INTEGER},
</if>
<if test="record.md5 != null">
md5 = #{record.md5,jdbcType=VARCHAR},
</if>
<if test="record.createtime != null">
createTime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_backup_file
set id = #{record.id,jdbcType=INTEGER},
`uid` = #{record.uid,jdbcType=INTEGER},
bid = #{record.bid,jdbcType=INTEGER},
filepath = #{record.filepath,jdbcType=VARCHAR},
filesize = #{record.filesize,jdbcType=INTEGER},
md5 = #{record.md5,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFile">
update t_backup_file
<set>
<if test="uid != null">
`uid` = #{uid,jdbcType=INTEGER},
</if>
<if test="bid != null">
bid = #{bid,jdbcType=INTEGER},
</if>
<if test="filepath != null">
filepath = #{filepath,jdbcType=VARCHAR},
</if>
<if test="filesize != null">
filesize = #{filesize,jdbcType=INTEGER},
</if>
<if test="md5 != null">
md5 = #{md5,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupFile">
update t_backup_file
set `uid` = #{uid,jdbcType=INTEGER},
bid = #{bid,jdbcType=INTEGER},
filepath = #{filepath,jdbcType=VARCHAR},
filesize = #{filesize,jdbcType=INTEGER},
md5 = #{md5,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,158 @@
<?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.yutou.mobilecloud.mybatis.dao.TBackupTitleDao">
<resultMap id="BaseResultMap" type="com.yutou.mobilecloud.mybatis.model.TBackupTitle">
<id column="id" jdbcType="INTEGER" property="id" />
<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, title
</sql>
<select id="selectByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitleExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_backup_title
<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 t_backup_title
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_backup_title
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitleExample">
delete from t_backup_title
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitle" useGeneratedKeys="true">
insert into t_backup_title (title)
values (#{title,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitle" useGeneratedKeys="true">
insert into t_backup_title
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">
title,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitleExample" resultType="java.lang.Long">
select count(*) from t_backup_title
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_backup_title
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</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 t_backup_title
set id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitle">
update t_backup_title
<set>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yutou.mobilecloud.mybatis.model.TBackupTitle">
update t_backup_title
set title = #{title,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,237 @@
<?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.yutou.mobilecloud.mybatis.dao.TDataFileDao">
<resultMap id="BaseResultMap" type="com.yutou.mobilecloud.mybatis.model.TDataFile">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="uid" jdbcType="INTEGER" property="uid" />
<result column="bid" jdbcType="INTEGER" property="bid" />
<result column="filepath" jdbcType="VARCHAR" property="filepath" />
<result column="filesize" jdbcType="INTEGER" property="filesize" />
<result column="md5" jdbcType="VARCHAR" property="md5" />
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
</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, `uid`, bid, filepath, filesize, md5, createTime
</sql>
<select id="selectByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFileExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_data_file
<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 t_data_file
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_data_file
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFileExample">
delete from t_data_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFile" useGeneratedKeys="true">
insert into t_data_file (`uid`, bid, filepath,
filesize, md5, createTime
)
values (#{uid,jdbcType=INTEGER}, #{bid,jdbcType=INTEGER}, #{filepath,jdbcType=VARCHAR},
#{filesize,jdbcType=INTEGER}, #{md5,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFile" useGeneratedKeys="true">
insert into t_data_file
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uid != null">
`uid`,
</if>
<if test="bid != null">
bid,
</if>
<if test="filepath != null">
filepath,
</if>
<if test="filesize != null">
filesize,
</if>
<if test="md5 != null">
md5,
</if>
<if test="createtime != null">
createTime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uid != null">
#{uid,jdbcType=INTEGER},
</if>
<if test="bid != null">
#{bid,jdbcType=INTEGER},
</if>
<if test="filepath != null">
#{filepath,jdbcType=VARCHAR},
</if>
<if test="filesize != null">
#{filesize,jdbcType=INTEGER},
</if>
<if test="md5 != null">
#{md5,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFileExample" resultType="java.lang.Long">
select count(*) from t_data_file
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_data_file
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=INTEGER},
</if>
<if test="record.bid != null">
bid = #{record.bid,jdbcType=INTEGER},
</if>
<if test="record.filepath != null">
filepath = #{record.filepath,jdbcType=VARCHAR},
</if>
<if test="record.filesize != null">
filesize = #{record.filesize,jdbcType=INTEGER},
</if>
<if test="record.md5 != null">
md5 = #{record.md5,jdbcType=VARCHAR},
</if>
<if test="record.createtime != null">
createTime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_data_file
set id = #{record.id,jdbcType=INTEGER},
`uid` = #{record.uid,jdbcType=INTEGER},
bid = #{record.bid,jdbcType=INTEGER},
filepath = #{record.filepath,jdbcType=VARCHAR},
filesize = #{record.filesize,jdbcType=INTEGER},
md5 = #{record.md5,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFile">
update t_data_file
<set>
<if test="uid != null">
`uid` = #{uid,jdbcType=INTEGER},
</if>
<if test="bid != null">
bid = #{bid,jdbcType=INTEGER},
</if>
<if test="filepath != null">
filepath = #{filepath,jdbcType=VARCHAR},
</if>
<if test="filesize != null">
filesize = #{filesize,jdbcType=INTEGER},
</if>
<if test="md5 != null">
md5 = #{md5,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yutou.mobilecloud.mybatis.model.TDataFile">
update t_data_file
set `uid` = #{uid,jdbcType=INTEGER},
bid = #{bid,jdbcType=INTEGER},
filepath = #{filepath,jdbcType=VARCHAR},
filesize = #{filesize,jdbcType=INTEGER},
md5 = #{md5,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,158 @@
<?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.yutou.mobilecloud.mybatis.dao.TDataTitleDao">
<resultMap id="BaseResultMap" type="com.yutou.mobilecloud.mybatis.model.TDataTitle">
<id column="id" jdbcType="INTEGER" property="id" />
<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, title
</sql>
<select id="selectByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitleExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_data_title
<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 t_data_title
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_data_title
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitleExample">
delete from t_data_title
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitle" useGeneratedKeys="true">
insert into t_data_title (title)
values (#{title,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitle" useGeneratedKeys="true">
insert into t_data_title
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="title != null">
title,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="title != null">
#{title,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitleExample" resultType="java.lang.Long">
select count(*) from t_data_title
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_data_title
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</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 t_data_title
set id = #{record.id,jdbcType=INTEGER},
title = #{record.title,jdbcType=VARCHAR}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitle">
update t_data_title
<set>
<if test="title != null">
title = #{title,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yutou.mobilecloud.mybatis.model.TDataTitle">
update t_data_title
set title = #{title,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,173 @@
<?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.yutou.mobilecloud.mybatis.dao.TUserConfigDao">
<resultMap id="BaseResultMap" type="com.yutou.mobilecloud.mybatis.model.TUserConfig">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="uid" jdbcType="VARCHAR" property="uid" />
<result column="cloudmodel" jdbcType="INTEGER" property="cloudmodel" />
</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, `uid`, cloudmodel
</sql>
<select id="selectByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfigExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_user_config
<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 t_user_config
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_user_config
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfigExample">
delete from t_user_config
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfig" useGeneratedKeys="true">
insert into t_user_config (`uid`, cloudmodel)
values (#{uid,jdbcType=VARCHAR}, #{cloudmodel,jdbcType=INTEGER})
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfig" useGeneratedKeys="true">
insert into t_user_config
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="uid != null">
`uid`,
</if>
<if test="cloudmodel != null">
cloudmodel,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="uid != null">
#{uid,jdbcType=VARCHAR},
</if>
<if test="cloudmodel != null">
#{cloudmodel,jdbcType=INTEGER},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfigExample" resultType="java.lang.Long">
select count(*) from t_user_config
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_user_config
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.uid != null">
`uid` = #{record.uid,jdbcType=VARCHAR},
</if>
<if test="record.cloudmodel != null">
cloudmodel = #{record.cloudmodel,jdbcType=INTEGER},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_user_config
set id = #{record.id,jdbcType=INTEGER},
`uid` = #{record.uid,jdbcType=VARCHAR},
cloudmodel = #{record.cloudmodel,jdbcType=INTEGER}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfig">
update t_user_config
<set>
<if test="uid != null">
`uid` = #{uid,jdbcType=VARCHAR},
</if>
<if test="cloudmodel != null">
cloudmodel = #{cloudmodel,jdbcType=INTEGER},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yutou.mobilecloud.mybatis.model.TUserConfig">
update t_user_config
set `uid` = #{uid,jdbcType=VARCHAR},
cloudmodel = #{cloudmodel,jdbcType=INTEGER}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>

View File

@ -0,0 +1,190 @@
<?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.yutou.mobilecloud.mybatis.dao.TUserDao">
<resultMap id="BaseResultMap" type="com.yutou.mobilecloud.mybatis.model.TUser">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="username" jdbcType="VARCHAR" property="username" />
<result column="password" jdbcType="VARCHAR" property="password" />
<result column="createTime" jdbcType="TIMESTAMP" property="createtime" />
</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, username, `password`, createTime
</sql>
<select id="selectByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TUserExample" resultMap="BaseResultMap">
select
<if test="distinct">
distinct
</if>
<include refid="Base_Column_List" />
from t_user
<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 t_user
where id = #{id,jdbcType=INTEGER}
</select>
<delete id="deleteByPrimaryKey" parameterType="java.lang.Integer">
delete from t_user
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TUserExample">
delete from t_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TUser" useGeneratedKeys="true">
insert into t_user (username, `password`, createTime
)
values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP}
)
</insert>
<insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.yutou.mobilecloud.mybatis.model.TUser" useGeneratedKeys="true">
insert into t_user
<trim prefix="(" suffix=")" suffixOverrides=",">
<if test="username != null">
username,
</if>
<if test="password != null">
`password`,
</if>
<if test="createtime != null">
createTime,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="username != null">
#{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
#{password,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
#{createtime,jdbcType=TIMESTAMP},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.yutou.mobilecloud.mybatis.model.TUserExample" resultType="java.lang.Long">
select count(*) from t_user
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update t_user
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.username != null">
username = #{record.username,jdbcType=VARCHAR},
</if>
<if test="record.password != null">
`password` = #{record.password,jdbcType=VARCHAR},
</if>
<if test="record.createtime != null">
createTime = #{record.createtime,jdbcType=TIMESTAMP},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update t_user
set id = #{record.id,jdbcType=INTEGER},
username = #{record.username,jdbcType=VARCHAR},
`password` = #{record.password,jdbcType=VARCHAR},
createTime = #{record.createtime,jdbcType=TIMESTAMP}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.yutou.mobilecloud.mybatis.model.TUser">
update t_user
<set>
<if test="username != null">
username = #{username,jdbcType=VARCHAR},
</if>
<if test="password != null">
`password` = #{password,jdbcType=VARCHAR},
</if>
<if test="createtime != null">
createTime = #{createtime,jdbcType=TIMESTAMP},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
<update id="updateByPrimaryKey" parameterType="com.yutou.mobilecloud.mybatis.model.TUser">
update t_user
set username = #{username,jdbcType=VARCHAR},
`password` = #{password,jdbcType=VARCHAR},
createTime = #{createtime,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>