From 8458c045da2e898812a954b660e0a4bbb7458e48 Mon Sep 17 00:00:00 2001 From: Yutousama <583819556@qq.com> Date: Sun, 3 Oct 2021 15:21:38 +0800 Subject: [PATCH] init mybatis --- .../mybatis/dao/TBackupFileDao.java | 30 + .../mybatis/dao/TBackupTitleDao.java | 30 + .../mobilecloud/mybatis/dao/TDataFileDao.java | 30 + .../mybatis/dao/TDataTitleDao.java | 30 + .../mybatis/dao/TUserConfigDao.java | 30 + .../mobilecloud/mybatis/dao/TUserDao.java | 30 + .../mybatis/model/TBackupFile.java | 28 + .../mybatis/model/TBackupFileExample.java | 642 ++++++++++++++++++ .../mybatis/model/TBackupTitle.java | 17 + .../mybatis/model/TBackupTitleExample.java | 331 +++++++++ .../mobilecloud/mybatis/model/TDataFile.java | 28 + .../mybatis/model/TDataFileExample.java | 642 ++++++++++++++++++ .../mobilecloud/mybatis/model/TDataTitle.java | 17 + .../mybatis/model/TDataTitleExample.java | 331 +++++++++ .../mobilecloud/mybatis/model/TUser.java | 22 + .../mybatis/model/TUserConfig.java | 19 + .../mybatis/model/TUserConfigExample.java | 391 +++++++++++ .../mybatis/model/TUserExample.java | 462 +++++++++++++ src/main/resources/application.properties | 2 +- src/main/resources/mappers/TBackupFileDao.xml | 237 +++++++ .../resources/mappers/TBackupTitleDao.xml | 158 +++++ src/main/resources/mappers/TDataFileDao.xml | 237 +++++++ src/main/resources/mappers/TDataTitleDao.xml | 158 +++++ src/main/resources/mappers/TUserConfigDao.xml | 173 +++++ src/main/resources/mappers/TUserDao.xml | 190 ++++++ 25 files changed, 4264 insertions(+), 1 deletion(-) create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupFileDao.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupTitleDao.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataFileDao.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataTitleDao.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserConfigDao.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserDao.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFile.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFileExample.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitle.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitleExample.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFile.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFileExample.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitle.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitleExample.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TUser.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfig.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfigExample.java create mode 100644 src/main/java/com/yutou/mobilecloud/mybatis/model/TUserExample.java create mode 100644 src/main/resources/mappers/TBackupFileDao.xml create mode 100644 src/main/resources/mappers/TBackupTitleDao.xml create mode 100644 src/main/resources/mappers/TDataFileDao.xml create mode 100644 src/main/resources/mappers/TDataTitleDao.xml create mode 100644 src/main/resources/mappers/TUserConfigDao.xml create mode 100644 src/main/resources/mappers/TUserDao.xml diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupFileDao.java b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupFileDao.java new file mode 100644 index 0000000..995e716 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupFileDao.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupTitleDao.java b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupTitleDao.java new file mode 100644 index 0000000..b54791c --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TBackupTitleDao.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataFileDao.java b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataFileDao.java new file mode 100644 index 0000000..25932eb --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataFileDao.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataTitleDao.java b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataTitleDao.java new file mode 100644 index 0000000..3c91d13 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TDataTitleDao.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserConfigDao.java b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserConfigDao.java new file mode 100644 index 0000000..d423776 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserConfigDao.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserDao.java b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserDao.java new file mode 100644 index 0000000..e81d73b --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/dao/TUserDao.java @@ -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 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); +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFile.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFile.java new file mode 100644 index 0000000..56598b9 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFile.java @@ -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; +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFileExample.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFileExample.java new file mode 100644 index 0000000..bee8c99 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupFileExample.java @@ -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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("`uid` in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotIn(List 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 values) { + addCriterion("bid in", values, "bid"); + return (Criteria) this; + } + + public Criteria andBidNotIn(List 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 values) { + addCriterion("filepath in", values, "filepath"); + return (Criteria) this; + } + + public Criteria andFilepathNotIn(List 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 values) { + addCriterion("filesize in", values, "filesize"); + return (Criteria) this; + } + + public Criteria andFilesizeNotIn(List 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 values) { + addCriterion("md5 in", values, "md5"); + return (Criteria) this; + } + + public Criteria andMd5NotIn(List 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 values) { + addCriterion("createTime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitle.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitle.java new file mode 100644 index 0000000..bb2c82e --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitle.java @@ -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; +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitleExample.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitleExample.java new file mode 100644 index 0000000..74680d2 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TBackupTitleExample.java @@ -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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFile.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFile.java new file mode 100644 index 0000000..2acffae --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFile.java @@ -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; +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFileExample.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFileExample.java new file mode 100644 index 0000000..108c80f --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataFileExample.java @@ -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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("`uid` in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotIn(List 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 values) { + addCriterion("bid in", values, "bid"); + return (Criteria) this; + } + + public Criteria andBidNotIn(List 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 values) { + addCriterion("filepath in", values, "filepath"); + return (Criteria) this; + } + + public Criteria andFilepathNotIn(List 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 values) { + addCriterion("filesize in", values, "filesize"); + return (Criteria) this; + } + + public Criteria andFilesizeNotIn(List 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 values) { + addCriterion("md5 in", values, "md5"); + return (Criteria) this; + } + + public Criteria andMd5NotIn(List 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 values) { + addCriterion("createTime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitle.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitle.java new file mode 100644 index 0000000..24b0756 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitle.java @@ -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; +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitleExample.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitleExample.java new file mode 100644 index 0000000..88b5118 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TDataTitleExample.java @@ -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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("title in", values, "title"); + return (Criteria) this; + } + + public Criteria andTitleNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TUser.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUser.java new file mode 100644 index 0000000..d11f51c --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUser.java @@ -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; +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfig.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfig.java new file mode 100644 index 0000000..41faa34 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfig.java @@ -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; +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfigExample.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfigExample.java new file mode 100644 index 0000000..5b6af6e --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserConfigExample.java @@ -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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("`uid` in", values, "uid"); + return (Criteria) this; + } + + public Criteria andUidNotIn(List 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 values) { + addCriterion("cloudmodel in", values, "cloudmodel"); + return (Criteria) this; + } + + public Criteria andCloudmodelNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserExample.java b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserExample.java new file mode 100644 index 0000000..704f615 --- /dev/null +++ b/src/main/java/com/yutou/mobilecloud/mybatis/model/TUserExample.java @@ -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 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 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 criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList<>(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(Integer value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(Integer value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(Integer value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(Integer value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(Integer value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(Integer value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(Integer value1, Integer value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(Integer value1, Integer value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria 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 values) { + addCriterion("username in", values, "username"); + return (Criteria) this; + } + + public Criteria andUsernameNotIn(List 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 values) { + addCriterion("`password` in", values, "password"); + return (Criteria) this; + } + + public Criteria andPasswordNotIn(List 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 values) { + addCriterion("createTime in", values, "createtime"); + return (Criteria) this; + } + + public Criteria andCreatetimeNotIn(List 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); + } + } +} \ No newline at end of file diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index f0b054b..9e24e52 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -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.username=jianrmod spring.datasource.password=dashuyuxiaodidi233 -mybatis.mapper-locations=classpath:mapper/*.xml +mybatis.mapper-locations=classpath:mappers/*.xml #mybatis.config-location=classpath:mybatis-config.xml mybatis.type-aliases-package=com.yutou.tools.mybatis #???mybatis??? diff --git a/src/main/resources/mappers/TBackupFileDao.xml b/src/main/resources/mappers/TBackupFileDao.xml new file mode 100644 index 0000000..d761bbb --- /dev/null +++ b/src/main/resources/mappers/TBackupFileDao.xml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, `uid`, bid, filepath, filesize, md5, createTime + + + + + delete from t_backup_file + where id = #{id,jdbcType=INTEGER} + + + delete from t_backup_file + + + + + + 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 into t_backup_file + + + `uid`, + + + bid, + + + filepath, + + + filesize, + + + md5, + + + createTime, + + + + + #{uid,jdbcType=INTEGER}, + + + #{bid,jdbcType=INTEGER}, + + + #{filepath,jdbcType=VARCHAR}, + + + #{filesize,jdbcType=INTEGER}, + + + #{md5,jdbcType=VARCHAR}, + + + #{createtime,jdbcType=TIMESTAMP}, + + + + + + update t_backup_file + + + 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}, + + + + + + + + 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} + + + + + + update t_backup_file + + + `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 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} + + \ No newline at end of file diff --git a/src/main/resources/mappers/TBackupTitleDao.xml b/src/main/resources/mappers/TBackupTitleDao.xml new file mode 100644 index 0000000..23ac3d9 --- /dev/null +++ b/src/main/resources/mappers/TBackupTitleDao.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, title + + + + + delete from t_backup_title + where id = #{id,jdbcType=INTEGER} + + + delete from t_backup_title + + + + + + insert into t_backup_title (title) + values (#{title,jdbcType=VARCHAR}) + + + insert into t_backup_title + + + title, + + + + + #{title,jdbcType=VARCHAR}, + + + + + + update t_backup_title + + + id = #{record.id,jdbcType=INTEGER}, + + + title = #{record.title,jdbcType=VARCHAR}, + + + + + + + + update t_backup_title + set id = #{record.id,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR} + + + + + + update t_backup_title + + + title = #{title,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update t_backup_title + set title = #{title,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/src/main/resources/mappers/TDataFileDao.xml b/src/main/resources/mappers/TDataFileDao.xml new file mode 100644 index 0000000..bb48ff0 --- /dev/null +++ b/src/main/resources/mappers/TDataFileDao.xml @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, `uid`, bid, filepath, filesize, md5, createTime + + + + + delete from t_data_file + where id = #{id,jdbcType=INTEGER} + + + delete from t_data_file + + + + + + 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 into t_data_file + + + `uid`, + + + bid, + + + filepath, + + + filesize, + + + md5, + + + createTime, + + + + + #{uid,jdbcType=INTEGER}, + + + #{bid,jdbcType=INTEGER}, + + + #{filepath,jdbcType=VARCHAR}, + + + #{filesize,jdbcType=INTEGER}, + + + #{md5,jdbcType=VARCHAR}, + + + #{createtime,jdbcType=TIMESTAMP}, + + + + + + update t_data_file + + + 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}, + + + + + + + + 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} + + + + + + update t_data_file + + + `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 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} + + \ No newline at end of file diff --git a/src/main/resources/mappers/TDataTitleDao.xml b/src/main/resources/mappers/TDataTitleDao.xml new file mode 100644 index 0000000..bbf247b --- /dev/null +++ b/src/main/resources/mappers/TDataTitleDao.xml @@ -0,0 +1,158 @@ + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, title + + + + + delete from t_data_title + where id = #{id,jdbcType=INTEGER} + + + delete from t_data_title + + + + + + insert into t_data_title (title) + values (#{title,jdbcType=VARCHAR}) + + + insert into t_data_title + + + title, + + + + + #{title,jdbcType=VARCHAR}, + + + + + + update t_data_title + + + id = #{record.id,jdbcType=INTEGER}, + + + title = #{record.title,jdbcType=VARCHAR}, + + + + + + + + update t_data_title + set id = #{record.id,jdbcType=INTEGER}, + title = #{record.title,jdbcType=VARCHAR} + + + + + + update t_data_title + + + title = #{title,jdbcType=VARCHAR}, + + + where id = #{id,jdbcType=INTEGER} + + + update t_data_title + set title = #{title,jdbcType=VARCHAR} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/src/main/resources/mappers/TUserConfigDao.xml b/src/main/resources/mappers/TUserConfigDao.xml new file mode 100644 index 0000000..ef28694 --- /dev/null +++ b/src/main/resources/mappers/TUserConfigDao.xml @@ -0,0 +1,173 @@ + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, `uid`, cloudmodel + + + + + delete from t_user_config + where id = #{id,jdbcType=INTEGER} + + + delete from t_user_config + + + + + + insert into t_user_config (`uid`, cloudmodel) + values (#{uid,jdbcType=VARCHAR}, #{cloudmodel,jdbcType=INTEGER}) + + + insert into t_user_config + + + `uid`, + + + cloudmodel, + + + + + #{uid,jdbcType=VARCHAR}, + + + #{cloudmodel,jdbcType=INTEGER}, + + + + + + update t_user_config + + + id = #{record.id,jdbcType=INTEGER}, + + + `uid` = #{record.uid,jdbcType=VARCHAR}, + + + cloudmodel = #{record.cloudmodel,jdbcType=INTEGER}, + + + + + + + + update t_user_config + set id = #{record.id,jdbcType=INTEGER}, + `uid` = #{record.uid,jdbcType=VARCHAR}, + cloudmodel = #{record.cloudmodel,jdbcType=INTEGER} + + + + + + update t_user_config + + + `uid` = #{uid,jdbcType=VARCHAR}, + + + cloudmodel = #{cloudmodel,jdbcType=INTEGER}, + + + where id = #{id,jdbcType=INTEGER} + + + update t_user_config + set `uid` = #{uid,jdbcType=VARCHAR}, + cloudmodel = #{cloudmodel,jdbcType=INTEGER} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file diff --git a/src/main/resources/mappers/TUserDao.xml b/src/main/resources/mappers/TUserDao.xml new file mode 100644 index 0000000..92bdca1 --- /dev/null +++ b/src/main/resources/mappers/TUserDao.xml @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, username, `password`, createTime + + + + + delete from t_user + where id = #{id,jdbcType=INTEGER} + + + delete from t_user + + + + + + insert into t_user (username, `password`, createTime + ) + values (#{username,jdbcType=VARCHAR}, #{password,jdbcType=VARCHAR}, #{createtime,jdbcType=TIMESTAMP} + ) + + + insert into t_user + + + username, + + + `password`, + + + createTime, + + + + + #{username,jdbcType=VARCHAR}, + + + #{password,jdbcType=VARCHAR}, + + + #{createtime,jdbcType=TIMESTAMP}, + + + + + + update t_user + + + id = #{record.id,jdbcType=INTEGER}, + + + username = #{record.username,jdbcType=VARCHAR}, + + + `password` = #{record.password,jdbcType=VARCHAR}, + + + createTime = #{record.createtime,jdbcType=TIMESTAMP}, + + + + + + + + update t_user + set id = #{record.id,jdbcType=INTEGER}, + username = #{record.username,jdbcType=VARCHAR}, + `password` = #{record.password,jdbcType=VARCHAR}, + createTime = #{record.createtime,jdbcType=TIMESTAMP} + + + + + + update t_user + + + username = #{username,jdbcType=VARCHAR}, + + + `password` = #{password,jdbcType=VARCHAR}, + + + createTime = #{createtime,jdbcType=TIMESTAMP}, + + + where id = #{id,jdbcType=INTEGER} + + + update t_user + set username = #{username,jdbcType=VARCHAR}, + `password` = #{password,jdbcType=VARCHAR}, + createTime = #{createtime,jdbcType=TIMESTAMP} + where id = #{id,jdbcType=INTEGER} + + \ No newline at end of file