diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionAreaMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionAreaMapper.java deleted file mode 100644 index b1bacb7a..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionAreaMapper.java +++ /dev/null @@ -1,100 +0,0 @@ -package org.linlinjava.litemall.db.dao; - -import java.util.List; -import org.apache.ibatis.annotations.Param; -import org.linlinjava.litemall.db.domain.LitemallRegionArea; -import org.linlinjava.litemall.db.domain.LitemallRegionAreaExample; - -public interface LitemallRegionAreaMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - long countByExample(LitemallRegionAreaExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int deleteByExample(LitemallRegionAreaExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insert(LitemallRegionArea record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insertSelective(LitemallRegionArea record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - List selectByExample(LitemallRegionAreaExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - List selectByExampleSelective(@Param("example") LitemallRegionAreaExample example, @Param("selective") LitemallRegionArea.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExampleSelective(@Param("record") LitemallRegionArea record, @Param("example") LitemallRegionAreaExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExample(@Param("record") LitemallRegionArea record, @Param("example") LitemallRegionAreaExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionArea selectOneByExample(LitemallRegionAreaExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionArea selectOneByExampleSelective(@Param("example") LitemallRegionAreaExample example, @Param("selective") LitemallRegionArea.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionArea selectByPrimaryKeySelective(@Param("selective") LitemallRegionArea.Column ... selective); -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionCityMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionCityMapper.java deleted file mode 100644 index d7ca13e4..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionCityMapper.java +++ /dev/null @@ -1,132 +0,0 @@ -package org.linlinjava.litemall.db.dao; - -import java.util.List; -import org.apache.ibatis.annotations.Param; -import org.linlinjava.litemall.db.domain.LitemallRegionCity; -import org.linlinjava.litemall.db.domain.LitemallRegionCityExample; - -public interface LitemallRegionCityMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - long countByExample(LitemallRegionCityExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int deleteByExample(LitemallRegionCityExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int deleteByPrimaryKey(Integer code); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insert(LitemallRegionCity record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insertSelective(LitemallRegionCity record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - List selectByExample(LitemallRegionCityExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - List selectByExampleSelective(@Param("example") LitemallRegionCityExample example, @Param("selective") LitemallRegionCity.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - LitemallRegionCity selectByPrimaryKey(Integer code); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionCity selectByPrimaryKeySelective(@Param("code") Integer code, @Param("selective") LitemallRegionCity.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExampleSelective(@Param("record") LitemallRegionCity record, @Param("example") LitemallRegionCityExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExample(@Param("record") LitemallRegionCity record, @Param("example") LitemallRegionCityExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByPrimaryKeySelective(LitemallRegionCity record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByPrimaryKey(LitemallRegionCity record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionCity selectOneByExample(LitemallRegionCityExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionCity selectOneByExampleSelective(@Param("example") LitemallRegionCityExample example, @Param("selective") LitemallRegionCity.Column ... selective); -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionProvinceMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionProvinceMapper.java deleted file mode 100644 index 825858a6..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionProvinceMapper.java +++ /dev/null @@ -1,132 +0,0 @@ -package org.linlinjava.litemall.db.dao; - -import java.util.List; -import org.apache.ibatis.annotations.Param; -import org.linlinjava.litemall.db.domain.LitemallRegionProvince; -import org.linlinjava.litemall.db.domain.LitemallRegionProvinceExample; - -public interface LitemallRegionProvinceMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - long countByExample(LitemallRegionProvinceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int deleteByExample(LitemallRegionProvinceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int deleteByPrimaryKey(Integer code); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insert(LitemallRegionProvince record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insertSelective(LitemallRegionProvince record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - List selectByExample(LitemallRegionProvinceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - List selectByExampleSelective(@Param("example") LitemallRegionProvinceExample example, @Param("selective") LitemallRegionProvince.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - LitemallRegionProvince selectByPrimaryKey(Integer code); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionProvince selectByPrimaryKeySelective(@Param("code") Integer code, @Param("selective") LitemallRegionProvince.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExampleSelective(@Param("record") LitemallRegionProvince record, @Param("example") LitemallRegionProvinceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExample(@Param("record") LitemallRegionProvince record, @Param("example") LitemallRegionProvinceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByPrimaryKeySelective(LitemallRegionProvince record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByPrimaryKey(LitemallRegionProvince record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionProvince selectOneByExample(LitemallRegionProvinceExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionProvince selectOneByExampleSelective(@Param("example") LitemallRegionProvinceExample example, @Param("selective") LitemallRegionProvince.Column ... selective); -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionStreetMapper.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionStreetMapper.java deleted file mode 100644 index 810ac3b2..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/dao/LitemallRegionStreetMapper.java +++ /dev/null @@ -1,100 +0,0 @@ -package org.linlinjava.litemall.db.dao; - -import java.util.List; -import org.apache.ibatis.annotations.Param; -import org.linlinjava.litemall.db.domain.LitemallRegionStreet; -import org.linlinjava.litemall.db.domain.LitemallRegionStreetExample; - -public interface LitemallRegionStreetMapper { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - long countByExample(LitemallRegionStreetExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int deleteByExample(LitemallRegionStreetExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insert(LitemallRegionStreet record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int insertSelective(LitemallRegionStreet record); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - List selectByExample(LitemallRegionStreetExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - List selectByExampleSelective(@Param("example") LitemallRegionStreetExample example, @Param("selective") LitemallRegionStreet.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExampleSelective(@Param("record") LitemallRegionStreet record, @Param("example") LitemallRegionStreetExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - int updateByExample(@Param("record") LitemallRegionStreet record, @Param("example") LitemallRegionStreetExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionStreet selectOneByExample(LitemallRegionStreetExample example); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionStreet selectOneByExampleSelective(@Param("example") LitemallRegionStreetExample example, @Param("selective") LitemallRegionStreet.Column ... selective); - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - LitemallRegionStreet selectByPrimaryKeySelective(@Param("selective") LitemallRegionStreet.Column ... selective); -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionArea.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionArea.java deleted file mode 100644 index e526e3b4..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionArea.java +++ /dev/null @@ -1,274 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -public class LitemallRegionArea { - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_area.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer code; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_area.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private String name; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_area.city_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer cityCode; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_area.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer provinceCode; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_area.code - * - * @return the value of litemall_region_area.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getCode() { - return code; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_area.code - * - * @param code the value for litemall_region_area.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setCode(Integer code) { - this.code = code; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_area.name - * - * @return the value of litemall_region_area.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getName() { - return name; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_area.name - * - * @param name the value for litemall_region_area.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setName(String name) { - this.name = name; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_area.city_code - * - * @return the value of litemall_region_area.city_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getCityCode() { - return cityCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_area.city_code - * - * @param cityCode the value for litemall_region_area.city_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setCityCode(Integer cityCode) { - this.cityCode = cityCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_area.province_code - * - * @return the value of litemall_region_area.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getProvinceCode() { - return provinceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_area.province_code - * - * @param provinceCode the value for litemall_region_area.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setProvinceCode(Integer provinceCode) { - this.provinceCode = provinceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", code=").append(code); - sb.append(", name=").append(name); - sb.append(", cityCode=").append(cityCode); - sb.append(", provinceCode=").append(provinceCode); - sb.append("]"); - return sb.toString(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - LitemallRegionArea other = (LitemallRegionArea) that; - return (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode())) - && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) - && (this.getCityCode() == null ? other.getCityCode() == null : this.getCityCode().equals(other.getCityCode())) - && (this.getProvinceCode() == null ? other.getProvinceCode() == null : this.getProvinceCode().equals(other.getProvinceCode())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode()); - result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); - result = prime * result + ((getCityCode() == null) ? 0 : getCityCode().hashCode()); - result = prime * result + ((getProvinceCode() == null) ? 0 : getProvinceCode().hashCode()); - return result; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - code("code"), - name("name"), - cityCode("city_code"), - provinceCode("province_code"); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column) { - this.column = column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.column + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.column + " ASC"; - } - } -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionAreaExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionAreaExample.java deleted file mode 100644 index 06e6aad1..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionAreaExample.java +++ /dev/null @@ -1,642 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LitemallRegionAreaExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public LitemallRegionAreaExample() { - oredCriteria = new ArrayList(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(this); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionAreaExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionAreaExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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 andCodeIsNull() { - addCriterion("code is null"); - return (Criteria) this; - } - - public Criteria andCodeIsNotNull() { - addCriterion("code is not null"); - return (Criteria) this; - } - - public Criteria andCodeEqualTo(Integer value) { - addCriterion("code =", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotEqualTo(Integer value) { - addCriterion("code <>", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThan(Integer value) { - addCriterion("code >", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("code >=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThan(Integer value) { - addCriterion("code <", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThanOrEqualTo(Integer value) { - addCriterion("code <=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeIn(List values) { - addCriterion("code in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotIn(List values) { - addCriterion("code not in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeBetween(Integer value1, Integer value2) { - addCriterion("code between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotBetween(Integer value1, Integer value2) { - addCriterion("code not between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andNameIsNull() { - addCriterion("`name` is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("`name` is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("`name` =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("`name` <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("`name` >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("`name` >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("`name` <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("`name` <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("`name` like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("`name` not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("`name` in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("`name` not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("`name` between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("`name` not between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andCityCodeIsNull() { - addCriterion("city_code is null"); - return (Criteria) this; - } - - public Criteria andCityCodeIsNotNull() { - addCriterion("city_code is not null"); - return (Criteria) this; - } - - public Criteria andCityCodeEqualTo(Integer value) { - addCriterion("city_code =", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeNotEqualTo(Integer value) { - addCriterion("city_code <>", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeGreaterThan(Integer value) { - addCriterion("city_code >", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("city_code >=", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeLessThan(Integer value) { - addCriterion("city_code <", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeLessThanOrEqualTo(Integer value) { - addCriterion("city_code <=", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeIn(List values) { - addCriterion("city_code in", values, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeNotIn(List values) { - addCriterion("city_code not in", values, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeBetween(Integer value1, Integer value2) { - addCriterion("city_code between", value1, value2, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeNotBetween(Integer value1, Integer value2) { - addCriterion("city_code not between", value1, value2, "cityCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIsNull() { - addCriterion("province_code is null"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIsNotNull() { - addCriterion("province_code is not null"); - return (Criteria) this; - } - - public Criteria andProvinceCodeEqualTo(Integer value) { - addCriterion("province_code =", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotEqualTo(Integer value) { - addCriterion("province_code <>", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeGreaterThan(Integer value) { - addCriterion("province_code >", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("province_code >=", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeLessThan(Integer value) { - addCriterion("province_code <", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeLessThanOrEqualTo(Integer value) { - addCriterion("province_code <=", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIn(List values) { - addCriterion("province_code in", values, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotIn(List values) { - addCriterion("province_code not in", values, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeBetween(Integer value1, Integer value2) { - addCriterion("province_code between", value1, value2, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotBetween(Integer value1, Integer value2) { - addCriterion("province_code not between", value1, value2, "provinceCode"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_area - * - * @mbg.generated do_not_delete_during_merge Sat Apr 07 10:22:31 CST 2018 - */ - public static class Criteria extends GeneratedCriteria { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private LitemallRegionAreaExample example; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - protected Criteria(LitemallRegionAreaExample example) { - super(); - this.example = example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionAreaExample example() { - return this.example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { - if (ifAdd) { - add.add(this); - } - return this; - } - - /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public interface ICriteriaAdd { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_area - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Criteria add(Criteria add); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_area - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionCity.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionCity.java deleted file mode 100644 index d60be9fc..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionCity.java +++ /dev/null @@ -1,237 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -public class LitemallRegionCity { - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_city.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer code; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_city.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private String name; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_city.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer provinceCode; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_city.code - * - * @return the value of litemall_region_city.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getCode() { - return code; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_city.code - * - * @param code the value for litemall_region_city.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setCode(Integer code) { - this.code = code; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_city.name - * - * @return the value of litemall_region_city.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getName() { - return name; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_city.name - * - * @param name the value for litemall_region_city.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setName(String name) { - this.name = name; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_city.province_code - * - * @return the value of litemall_region_city.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getProvinceCode() { - return provinceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_city.province_code - * - * @param provinceCode the value for litemall_region_city.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setProvinceCode(Integer provinceCode) { - this.provinceCode = provinceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", code=").append(code); - sb.append(", name=").append(name); - sb.append(", provinceCode=").append(provinceCode); - sb.append("]"); - return sb.toString(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - LitemallRegionCity other = (LitemallRegionCity) that; - return (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode())) - && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) - && (this.getProvinceCode() == null ? other.getProvinceCode() == null : this.getProvinceCode().equals(other.getProvinceCode())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode()); - result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); - result = prime * result + ((getProvinceCode() == null) ? 0 : getProvinceCode().hashCode()); - return result; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - code("code"), - name("name"), - provinceCode("province_code"); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column) { - this.column = column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.column + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.column + " ASC"; - } - } -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionCityExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionCityExample.java deleted file mode 100644 index 39512200..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionCityExample.java +++ /dev/null @@ -1,582 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LitemallRegionCityExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public LitemallRegionCityExample() { - oredCriteria = new ArrayList(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(this); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionCityExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionCityExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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 andCodeIsNull() { - addCriterion("code is null"); - return (Criteria) this; - } - - public Criteria andCodeIsNotNull() { - addCriterion("code is not null"); - return (Criteria) this; - } - - public Criteria andCodeEqualTo(Integer value) { - addCriterion("code =", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotEqualTo(Integer value) { - addCriterion("code <>", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThan(Integer value) { - addCriterion("code >", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("code >=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThan(Integer value) { - addCriterion("code <", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThanOrEqualTo(Integer value) { - addCriterion("code <=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeIn(List values) { - addCriterion("code in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotIn(List values) { - addCriterion("code not in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeBetween(Integer value1, Integer value2) { - addCriterion("code between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotBetween(Integer value1, Integer value2) { - addCriterion("code not between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andNameIsNull() { - addCriterion("`name` is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("`name` is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("`name` =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("`name` <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("`name` >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("`name` >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("`name` <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("`name` <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("`name` like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("`name` not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("`name` in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("`name` not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("`name` between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("`name` not between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIsNull() { - addCriterion("province_code is null"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIsNotNull() { - addCriterion("province_code is not null"); - return (Criteria) this; - } - - public Criteria andProvinceCodeEqualTo(Integer value) { - addCriterion("province_code =", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotEqualTo(Integer value) { - addCriterion("province_code <>", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeGreaterThan(Integer value) { - addCriterion("province_code >", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("province_code >=", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeLessThan(Integer value) { - addCriterion("province_code <", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeLessThanOrEqualTo(Integer value) { - addCriterion("province_code <=", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIn(List values) { - addCriterion("province_code in", values, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotIn(List values) { - addCriterion("province_code not in", values, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeBetween(Integer value1, Integer value2) { - addCriterion("province_code between", value1, value2, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotBetween(Integer value1, Integer value2) { - addCriterion("province_code not between", value1, value2, "provinceCode"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_city - * - * @mbg.generated do_not_delete_during_merge Sat Apr 07 10:22:31 CST 2018 - */ - public static class Criteria extends GeneratedCriteria { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private LitemallRegionCityExample example; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - protected Criteria(LitemallRegionCityExample example) { - super(); - this.example = example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionCityExample example() { - return this.example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { - if (ifAdd) { - add.add(this); - } - return this; - } - - /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public interface ICriteriaAdd { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_city - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Criteria add(Criteria add); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_city - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionProvince.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionProvince.java deleted file mode 100644 index 9cc37ee0..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionProvince.java +++ /dev/null @@ -1,200 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -public class LitemallRegionProvince { - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_province.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer code; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_province.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private String name; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_province.code - * - * @return the value of litemall_region_province.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getCode() { - return code; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_province.code - * - * @param code the value for litemall_region_province.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setCode(Integer code) { - this.code = code; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_province.name - * - * @return the value of litemall_region_province.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getName() { - return name; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_province.name - * - * @param name the value for litemall_region_province.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setName(String name) { - this.name = name; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", code=").append(code); - sb.append(", name=").append(name); - sb.append("]"); - return sb.toString(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - LitemallRegionProvince other = (LitemallRegionProvince) that; - return (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode())) - && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode()); - result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); - return result; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - code("code"), - name("name"); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column) { - this.column = column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.column + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.column + " ASC"; - } - } -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionProvinceExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionProvinceExample.java deleted file mode 100644 index 3349e89e..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionProvinceExample.java +++ /dev/null @@ -1,522 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LitemallRegionProvinceExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public LitemallRegionProvinceExample() { - oredCriteria = new ArrayList(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(this); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionProvinceExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionProvinceExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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 andCodeIsNull() { - addCriterion("code is null"); - return (Criteria) this; - } - - public Criteria andCodeIsNotNull() { - addCriterion("code is not null"); - return (Criteria) this; - } - - public Criteria andCodeEqualTo(Integer value) { - addCriterion("code =", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotEqualTo(Integer value) { - addCriterion("code <>", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThan(Integer value) { - addCriterion("code >", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("code >=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThan(Integer value) { - addCriterion("code <", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThanOrEqualTo(Integer value) { - addCriterion("code <=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeIn(List values) { - addCriterion("code in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotIn(List values) { - addCriterion("code not in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeBetween(Integer value1, Integer value2) { - addCriterion("code between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotBetween(Integer value1, Integer value2) { - addCriterion("code not between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andNameIsNull() { - addCriterion("`name` is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("`name` is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("`name` =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("`name` <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("`name` >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("`name` >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("`name` <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("`name` <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("`name` like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("`name` not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("`name` in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("`name` not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("`name` between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("`name` not between", value1, value2, "name"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_province - * - * @mbg.generated do_not_delete_during_merge Sat Apr 07 10:22:31 CST 2018 - */ - public static class Criteria extends GeneratedCriteria { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private LitemallRegionProvinceExample example; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - protected Criteria(LitemallRegionProvinceExample example) { - super(); - this.example = example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionProvinceExample example() { - return this.example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { - if (ifAdd) { - add.add(this); - } - return this; - } - - /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public interface ICriteriaAdd { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_province - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Criteria add(Criteria add); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_province - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionStreet.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionStreet.java deleted file mode 100644 index 0bf94b20..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionStreet.java +++ /dev/null @@ -1,311 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -public class LitemallRegionStreet { - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_street.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer code; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_street.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private String name; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_street.area_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer areaCode; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_street.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer provinceCode; - - /** - * - * This field was generated by MyBatis Generator. - * This field corresponds to the database column litemall_region_street.city_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - private Integer cityCode; - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_street.code - * - * @return the value of litemall_region_street.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getCode() { - return code; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_street.code - * - * @param code the value for litemall_region_street.code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setCode(Integer code) { - this.code = code; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_street.name - * - * @return the value of litemall_region_street.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getName() { - return name; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_street.name - * - * @param name the value for litemall_region_street.name - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setName(String name) { - this.name = name; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_street.area_code - * - * @return the value of litemall_region_street.area_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getAreaCode() { - return areaCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_street.area_code - * - * @param areaCode the value for litemall_region_street.area_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setAreaCode(Integer areaCode) { - this.areaCode = areaCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_street.province_code - * - * @return the value of litemall_region_street.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getProvinceCode() { - return provinceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_street.province_code - * - * @param provinceCode the value for litemall_region_street.province_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setProvinceCode(Integer provinceCode) { - this.provinceCode = provinceCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method returns the value of the database column litemall_region_street.city_code - * - * @return the value of litemall_region_street.city_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Integer getCityCode() { - return cityCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method sets the value of the database column litemall_region_street.city_code - * - * @param cityCode the value for litemall_region_street.city_code - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setCityCode(Integer cityCode) { - this.cityCode = cityCode; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public String toString() { - StringBuilder sb = new StringBuilder(); - sb.append(getClass().getSimpleName()); - sb.append(" ["); - sb.append("Hash = ").append(hashCode()); - sb.append(", code=").append(code); - sb.append(", name=").append(name); - sb.append(", areaCode=").append(areaCode); - sb.append(", provinceCode=").append(provinceCode); - sb.append(", cityCode=").append(cityCode); - sb.append("]"); - return sb.toString(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public boolean equals(Object that) { - if (this == that) { - return true; - } - if (that == null) { - return false; - } - if (getClass() != that.getClass()) { - return false; - } - LitemallRegionStreet other = (LitemallRegionStreet) that; - return (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode())) - && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName())) - && (this.getAreaCode() == null ? other.getAreaCode() == null : this.getAreaCode().equals(other.getAreaCode())) - && (this.getProvinceCode() == null ? other.getProvinceCode() == null : this.getProvinceCode().equals(other.getProvinceCode())) - && (this.getCityCode() == null ? other.getCityCode() == null : this.getCityCode().equals(other.getCityCode())); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - @Override - public int hashCode() { - final int prime = 31; - int result = 1; - result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode()); - result = prime * result + ((getName() == null) ? 0 : getName().hashCode()); - result = prime * result + ((getAreaCode() == null) ? 0 : getAreaCode().hashCode()); - result = prime * result + ((getProvinceCode() == null) ? 0 : getProvinceCode().hashCode()); - result = prime * result + ((getCityCode() == null) ? 0 : getCityCode().hashCode()); - return result; - } - - /** - * This enum was generated by MyBatis Generator. - * This enum corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public enum Column { - code("code"), - name("name"), - areaCode("area_code"), - provinceCode("province_code"), - cityCode("city_code"); - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private final String column; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String value() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String getValue() { - return this.column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Column(String column) { - this.column = column; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String desc() { - return this.column + " DESC"; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public String asc() { - return this.column + " ASC"; - } - } -} \ No newline at end of file diff --git a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionStreetExample.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionStreetExample.java deleted file mode 100644 index 839b2331..00000000 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/domain/LitemallRegionStreetExample.java +++ /dev/null @@ -1,702 +0,0 @@ -package org.linlinjava.litemall.db.domain; - -import java.util.ArrayList; -import java.util.List; - -public class LitemallRegionStreetExample { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected String orderByClause; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected boolean distinct; - - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected List oredCriteria; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public LitemallRegionStreetExample() { - oredCriteria = new ArrayList(); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setOrderByClause(String orderByClause) { - this.orderByClause = orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public String getOrderByClause() { - return orderByClause; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void setDistinct(boolean distinct) { - this.distinct = distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public boolean isDistinct() { - return distinct; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public List getOredCriteria() { - return oredCriteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void or(Criteria criteria) { - oredCriteria.add(criteria); - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria or() { - Criteria criteria = createCriteriaInternal(); - oredCriteria.add(criteria); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public Criteria createCriteria() { - Criteria criteria = createCriteriaInternal(); - if (oredCriteria.size() == 0) { - oredCriteria.add(criteria); - } - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - protected Criteria createCriteriaInternal() { - Criteria criteria = new Criteria(this); - return criteria; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - public void clear() { - oredCriteria.clear(); - orderByClause = null; - distinct = false; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionStreetExample orderBy(String orderByClause) { - this.setOrderByClause(orderByClause); - return this; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionStreetExample orderBy(String ... orderByClauses) { - StringBuffer sb = new StringBuffer(); - for (int i = 0; i < orderByClauses.length; i++) { - sb.append(orderByClauses[i]); - if (i < orderByClauses.length - 1) { - sb.append(" , "); - } - } - this.setOrderByClause(sb.toString()); - return this; - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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 andCodeIsNull() { - addCriterion("code is null"); - return (Criteria) this; - } - - public Criteria andCodeIsNotNull() { - addCriterion("code is not null"); - return (Criteria) this; - } - - public Criteria andCodeEqualTo(Integer value) { - addCriterion("code =", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotEqualTo(Integer value) { - addCriterion("code <>", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThan(Integer value) { - addCriterion("code >", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("code >=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThan(Integer value) { - addCriterion("code <", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeLessThanOrEqualTo(Integer value) { - addCriterion("code <=", value, "code"); - return (Criteria) this; - } - - public Criteria andCodeIn(List values) { - addCriterion("code in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotIn(List values) { - addCriterion("code not in", values, "code"); - return (Criteria) this; - } - - public Criteria andCodeBetween(Integer value1, Integer value2) { - addCriterion("code between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andCodeNotBetween(Integer value1, Integer value2) { - addCriterion("code not between", value1, value2, "code"); - return (Criteria) this; - } - - public Criteria andNameIsNull() { - addCriterion("`name` is null"); - return (Criteria) this; - } - - public Criteria andNameIsNotNull() { - addCriterion("`name` is not null"); - return (Criteria) this; - } - - public Criteria andNameEqualTo(String value) { - addCriterion("`name` =", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotEqualTo(String value) { - addCriterion("`name` <>", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThan(String value) { - addCriterion("`name` >", value, "name"); - return (Criteria) this; - } - - public Criteria andNameGreaterThanOrEqualTo(String value) { - addCriterion("`name` >=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThan(String value) { - addCriterion("`name` <", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLessThanOrEqualTo(String value) { - addCriterion("`name` <=", value, "name"); - return (Criteria) this; - } - - public Criteria andNameLike(String value) { - addCriterion("`name` like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameNotLike(String value) { - addCriterion("`name` not like", value, "name"); - return (Criteria) this; - } - - public Criteria andNameIn(List values) { - addCriterion("`name` in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameNotIn(List values) { - addCriterion("`name` not in", values, "name"); - return (Criteria) this; - } - - public Criteria andNameBetween(String value1, String value2) { - addCriterion("`name` between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andNameNotBetween(String value1, String value2) { - addCriterion("`name` not between", value1, value2, "name"); - return (Criteria) this; - } - - public Criteria andAreaCodeIsNull() { - addCriterion("area_code is null"); - return (Criteria) this; - } - - public Criteria andAreaCodeIsNotNull() { - addCriterion("area_code is not null"); - return (Criteria) this; - } - - public Criteria andAreaCodeEqualTo(Integer value) { - addCriterion("area_code =", value, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeNotEqualTo(Integer value) { - addCriterion("area_code <>", value, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeGreaterThan(Integer value) { - addCriterion("area_code >", value, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("area_code >=", value, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeLessThan(Integer value) { - addCriterion("area_code <", value, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeLessThanOrEqualTo(Integer value) { - addCriterion("area_code <=", value, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeIn(List values) { - addCriterion("area_code in", values, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeNotIn(List values) { - addCriterion("area_code not in", values, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeBetween(Integer value1, Integer value2) { - addCriterion("area_code between", value1, value2, "areaCode"); - return (Criteria) this; - } - - public Criteria andAreaCodeNotBetween(Integer value1, Integer value2) { - addCriterion("area_code not between", value1, value2, "areaCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIsNull() { - addCriterion("province_code is null"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIsNotNull() { - addCriterion("province_code is not null"); - return (Criteria) this; - } - - public Criteria andProvinceCodeEqualTo(Integer value) { - addCriterion("province_code =", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotEqualTo(Integer value) { - addCriterion("province_code <>", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeGreaterThan(Integer value) { - addCriterion("province_code >", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("province_code >=", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeLessThan(Integer value) { - addCriterion("province_code <", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeLessThanOrEqualTo(Integer value) { - addCriterion("province_code <=", value, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeIn(List values) { - addCriterion("province_code in", values, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotIn(List values) { - addCriterion("province_code not in", values, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeBetween(Integer value1, Integer value2) { - addCriterion("province_code between", value1, value2, "provinceCode"); - return (Criteria) this; - } - - public Criteria andProvinceCodeNotBetween(Integer value1, Integer value2) { - addCriterion("province_code not between", value1, value2, "provinceCode"); - return (Criteria) this; - } - - public Criteria andCityCodeIsNull() { - addCriterion("city_code is null"); - return (Criteria) this; - } - - public Criteria andCityCodeIsNotNull() { - addCriterion("city_code is not null"); - return (Criteria) this; - } - - public Criteria andCityCodeEqualTo(Integer value) { - addCriterion("city_code =", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeNotEqualTo(Integer value) { - addCriterion("city_code <>", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeGreaterThan(Integer value) { - addCriterion("city_code >", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeGreaterThanOrEqualTo(Integer value) { - addCriterion("city_code >=", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeLessThan(Integer value) { - addCriterion("city_code <", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeLessThanOrEqualTo(Integer value) { - addCriterion("city_code <=", value, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeIn(List values) { - addCriterion("city_code in", values, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeNotIn(List values) { - addCriterion("city_code not in", values, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeBetween(Integer value1, Integer value2) { - addCriterion("city_code between", value1, value2, "cityCode"); - return (Criteria) this; - } - - public Criteria andCityCodeNotBetween(Integer value1, Integer value2) { - addCriterion("city_code not between", value1, value2, "cityCode"); - return (Criteria) this; - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_street - * - * @mbg.generated do_not_delete_during_merge Sat Apr 07 10:22:31 CST 2018 - */ - public static class Criteria extends GeneratedCriteria { - /** - * This field was generated by MyBatis Generator. - * This field corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - private LitemallRegionStreetExample example; - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - protected Criteria(LitemallRegionStreetExample example) { - super(); - this.example = example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public LitemallRegionStreetExample example() { - return this.example; - } - - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public Criteria andIf(boolean ifAdd, ICriteriaAdd add) { - if (ifAdd) { - add.add(this); - } - return this; - } - - /** - * This interface was generated by MyBatis Generator. - * This interface corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - public interface ICriteriaAdd { - /** - * This method was generated by MyBatis Generator. - * This method corresponds to the database table litemall_region_street - * - * @mbg.generated - * @project https://github.com/itfsw/mybatis-generator-plugin - */ - Criteria add(Criteria add); - } - } - - /** - * This class was generated by MyBatis Generator. - * This class corresponds to the database table litemall_region_street - * - * @mbg.generated Sat Apr 07 10:22:31 CST 2018 - */ - 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/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallRegionService.java b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallRegionService.java index 6390c800..a5ac4bfb 100644 --- a/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallRegionService.java +++ b/litemall-db/src/main/java/org/linlinjava/litemall/db/service/LitemallRegionService.java @@ -14,14 +14,6 @@ import java.util.List; public class LitemallRegionService { @Resource private LitemallRegionMapper regionMapper; - @Resource - private LitemallRegionProvinceMapper provinceMapper; - @Resource - private LitemallRegionCityMapper cityMapper; - @Resource - private LitemallRegionAreaMapper areaMapper; - @Resource - private LitemallRegionStreetMapper streetMapper; public List queryByPid(Integer parentId) { LitemallRegionExample example = new LitemallRegionExample(); diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionAreaMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionAreaMapper.xml deleted file mode 100644 index 74121d0e..00000000 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionAreaMapper.xml +++ /dev/null @@ -1,288 +0,0 @@ - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - code, `name`, city_code, province_code - - - - - - delete from litemall_region_area - - - - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_area (`name`, city_code, province_code - ) - values (#{name,jdbcType=VARCHAR}, #{cityCode,jdbcType=INTEGER}, #{provinceCode,jdbcType=INTEGER} - ) - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_area - - - `name`, - - - city_code, - - - province_code, - - - - - #{name,jdbcType=VARCHAR}, - - - #{cityCode,jdbcType=INTEGER}, - - - #{provinceCode,jdbcType=INTEGER}, - - - - - - - update litemall_region_area - - - code = #{record.code,jdbcType=INTEGER}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - city_code = #{record.cityCode,jdbcType=INTEGER}, - - - province_code = #{record.provinceCode,jdbcType=INTEGER}, - - - - - - - - - update litemall_region_area - set code = #{record.code,jdbcType=INTEGER}, - `name` = #{record.name,jdbcType=VARCHAR}, - city_code = #{record.cityCode,jdbcType=INTEGER}, - province_code = #{record.provinceCode,jdbcType=INTEGER} - - - - - - - - \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionCityMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionCityMapper.xml deleted file mode 100644 index 90cec317..00000000 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionCityMapper.xml +++ /dev/null @@ -1,324 +0,0 @@ - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - code, `name`, province_code - - - - - - - - delete from litemall_region_city - where code = #{code,jdbcType=INTEGER} - - - - delete from litemall_region_city - - - - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_city (`name`, province_code) - values (#{name,jdbcType=VARCHAR}, #{provinceCode,jdbcType=INTEGER}) - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_city - - - `name`, - - - province_code, - - - - - #{name,jdbcType=VARCHAR}, - - - #{provinceCode,jdbcType=INTEGER}, - - - - - - - update litemall_region_city - - - code = #{record.code,jdbcType=INTEGER}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - province_code = #{record.provinceCode,jdbcType=INTEGER}, - - - - - - - - - update litemall_region_city - set code = #{record.code,jdbcType=INTEGER}, - `name` = #{record.name,jdbcType=VARCHAR}, - province_code = #{record.provinceCode,jdbcType=INTEGER} - - - - - - - update litemall_region_city - - - `name` = #{name,jdbcType=VARCHAR}, - - - province_code = #{provinceCode,jdbcType=INTEGER}, - - - where code = #{code,jdbcType=INTEGER} - - - - update litemall_region_city - set `name` = #{name,jdbcType=VARCHAR}, - province_code = #{provinceCode,jdbcType=INTEGER} - where code = #{code,jdbcType=INTEGER} - - - - \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionProvinceMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionProvinceMapper.xml deleted file mode 100644 index eaf1bd93..00000000 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionProvinceMapper.xml +++ /dev/null @@ -1,309 +0,0 @@ - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - code, `name` - - - - - - - - delete from litemall_region_province - where code = #{code,jdbcType=INTEGER} - - - - delete from litemall_region_province - - - - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_province (`name`) - values (#{name,jdbcType=VARCHAR}) - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_province - - - `name`, - - - - - #{name,jdbcType=VARCHAR}, - - - - - - - update litemall_region_province - - - code = #{record.code,jdbcType=INTEGER}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - - - - - - - update litemall_region_province - set code = #{record.code,jdbcType=INTEGER}, - `name` = #{record.name,jdbcType=VARCHAR} - - - - - - - update litemall_region_province - - - `name` = #{name,jdbcType=VARCHAR}, - - - where code = #{code,jdbcType=INTEGER} - - - - update litemall_region_province - set `name` = #{name,jdbcType=VARCHAR} - where code = #{code,jdbcType=INTEGER} - - - - \ No newline at end of file diff --git a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionStreetMapper.xml b/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionStreetMapper.xml deleted file mode 100644 index a9e4f2af..00000000 --- a/litemall-db/src/main/resources/org/linlinjava/litemall/db/dao/LitemallRegionStreetMapper.xml +++ /dev/null @@ -1,299 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - - - - - - - - and ${criterion.condition} - - - and ${criterion.condition} #{criterion.value} - - - and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} - - - and ${criterion.condition} - - #{listItem} - - - - - - - - - - - - code, `name`, area_code, province_code, city_code - - - - - - delete from litemall_region_street - - - - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_street (`name`, area_code, province_code, - city_code) - values (#{name,jdbcType=VARCHAR}, #{areaCode,jdbcType=INTEGER}, #{provinceCode,jdbcType=INTEGER}, - #{cityCode,jdbcType=INTEGER}) - - - - - SELECT LAST_INSERT_ID() - - insert into litemall_region_street - - - `name`, - - - area_code, - - - province_code, - - - city_code, - - - - - #{name,jdbcType=VARCHAR}, - - - #{areaCode,jdbcType=INTEGER}, - - - #{provinceCode,jdbcType=INTEGER}, - - - #{cityCode,jdbcType=INTEGER}, - - - - - - - update litemall_region_street - - - code = #{record.code,jdbcType=INTEGER}, - - - `name` = #{record.name,jdbcType=VARCHAR}, - - - area_code = #{record.areaCode,jdbcType=INTEGER}, - - - province_code = #{record.provinceCode,jdbcType=INTEGER}, - - - city_code = #{record.cityCode,jdbcType=INTEGER}, - - - - - - - - - update litemall_region_street - set code = #{record.code,jdbcType=INTEGER}, - `name` = #{record.name,jdbcType=VARCHAR}, - area_code = #{record.areaCode,jdbcType=INTEGER}, - province_code = #{record.provinceCode,jdbcType=INTEGER}, - city_code = #{record.cityCode,jdbcType=INTEGER} - - - - - - - - \ No newline at end of file