From 70c0ecf9e1bb1299dfd8837eaf7e2ac8bbab4791 Mon Sep 17 00:00:00 2001 From: YuanYe <418471657@qq.com> Date: Tue, 22 Oct 2024 09:50:53 +0800 Subject: [PATCH] 1 --- .../com/hfkj/dao/GoodsUserAddressMapper.java | 30 +- .../hfkj/dao/GoodsUserAddressSqlProvider.java | 56 ++++ .../com/hfkj/entity/GoodsUserAddress.java | 64 ++++ .../hfkj/entity/GoodsUserAddressExample.java | 280 ++++++++++++++++++ 4 files changed, 423 insertions(+), 7 deletions(-) diff --git a/service/src/main/java/com/hfkj/dao/GoodsUserAddressMapper.java b/service/src/main/java/com/hfkj/dao/GoodsUserAddressMapper.java index ddde115..4aa4c7b 100644 --- a/service/src/main/java/com/hfkj/dao/GoodsUserAddressMapper.java +++ b/service/src/main/java/com/hfkj/dao/GoodsUserAddressMapper.java @@ -41,16 +41,20 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { @Insert({ "insert into goods_user_address (user_id, consignee, ", "phone, address, ", - "province_id, city_id, ", - "county_id, town_id, ", + "province_id, province_name, ", + "city_id, city_name, ", + "county_id, county_name, ", + "town_id, town_name, ", "region_name, whether_default, ", "create_time, update_time, ", "op_id, op_name, ext_1, ", "ext_2, ext_3)", "values (#{userId,jdbcType=BIGINT}, #{consignee,jdbcType=VARCHAR}, ", "#{phone,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", - "#{provinceId,jdbcType=BIGINT}, #{cityId,jdbcType=BIGINT}, ", - "#{countyId,jdbcType=BIGINT}, #{townId,jdbcType=BIGINT}, ", + "#{provinceId,jdbcType=BIGINT}, #{provinceName,jdbcType=VARCHAR}, ", + "#{cityId,jdbcType=BIGINT}, #{cityName,jdbcType=VARCHAR}, ", + "#{countyId,jdbcType=BIGINT}, #{countyName,jdbcType=VARCHAR}, ", + "#{townId,jdbcType=BIGINT}, #{townName,jdbcType=VARCHAR}, ", "#{regionName,jdbcType=VARCHAR}, #{whetherDefault,jdbcType=BIT}, ", "#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", "#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", @@ -71,9 +75,13 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), @Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), @Result(column="province_id", property="provinceId", jdbcType=JdbcType.BIGINT), + @Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR), @Result(column="city_id", property="cityId", jdbcType=JdbcType.BIGINT), + @Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR), @Result(column="county_id", property="countyId", jdbcType=JdbcType.BIGINT), + @Result(column="county_name", property="countyName", jdbcType=JdbcType.VARCHAR), @Result(column="town_id", property="townId", jdbcType=JdbcType.BIGINT), + @Result(column="town_name", property="townName", jdbcType=JdbcType.VARCHAR), @Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), @Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -88,9 +96,9 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { @Select({ "select", - "id, user_id, consignee, phone, address, province_id, city_id, county_id, town_id, ", - "region_name, whether_default, create_time, update_time, op_id, op_name, ext_1, ", - "ext_2, ext_3", + "id, user_id, consignee, phone, address, province_id, province_name, city_id, ", + "city_name, county_id, county_name, town_id, town_name, region_name, whether_default, ", + "create_time, update_time, op_id, op_name, ext_1, ext_2, ext_3", "from goods_user_address", "where id = #{id,jdbcType=BIGINT}" }) @@ -101,9 +109,13 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { @Result(column="phone", property="phone", jdbcType=JdbcType.VARCHAR), @Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), @Result(column="province_id", property="provinceId", jdbcType=JdbcType.BIGINT), + @Result(column="province_name", property="provinceName", jdbcType=JdbcType.VARCHAR), @Result(column="city_id", property="cityId", jdbcType=JdbcType.BIGINT), + @Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR), @Result(column="county_id", property="countyId", jdbcType=JdbcType.BIGINT), + @Result(column="county_name", property="countyName", jdbcType=JdbcType.VARCHAR), @Result(column="town_id", property="townId", jdbcType=JdbcType.BIGINT), + @Result(column="town_name", property="townName", jdbcType=JdbcType.VARCHAR), @Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), @Result(column="whether_default", property="whetherDefault", jdbcType=JdbcType.BIT), @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), @@ -132,9 +144,13 @@ public interface GoodsUserAddressMapper extends GoodsUserAddressMapperExt { "phone = #{phone,jdbcType=VARCHAR},", "address = #{address,jdbcType=VARCHAR},", "province_id = #{provinceId,jdbcType=BIGINT},", + "province_name = #{provinceName,jdbcType=VARCHAR},", "city_id = #{cityId,jdbcType=BIGINT},", + "city_name = #{cityName,jdbcType=VARCHAR},", "county_id = #{countyId,jdbcType=BIGINT},", + "county_name = #{countyName,jdbcType=VARCHAR},", "town_id = #{townId,jdbcType=BIGINT},", + "town_name = #{townName,jdbcType=VARCHAR},", "region_name = #{regionName,jdbcType=VARCHAR},", "whether_default = #{whetherDefault,jdbcType=BIT},", "create_time = #{createTime,jdbcType=TIMESTAMP},", diff --git a/service/src/main/java/com/hfkj/dao/GoodsUserAddressSqlProvider.java b/service/src/main/java/com/hfkj/dao/GoodsUserAddressSqlProvider.java index 5be9ccd..0e3fa97 100644 --- a/service/src/main/java/com/hfkj/dao/GoodsUserAddressSqlProvider.java +++ b/service/src/main/java/com/hfkj/dao/GoodsUserAddressSqlProvider.java @@ -48,18 +48,34 @@ public class GoodsUserAddressSqlProvider { sql.VALUES("province_id", "#{provinceId,jdbcType=BIGINT}"); } + if (record.getProvinceName() != null) { + sql.VALUES("province_name", "#{provinceName,jdbcType=VARCHAR}"); + } + if (record.getCityId() != null) { sql.VALUES("city_id", "#{cityId,jdbcType=BIGINT}"); } + if (record.getCityName() != null) { + sql.VALUES("city_name", "#{cityName,jdbcType=VARCHAR}"); + } + if (record.getCountyId() != null) { sql.VALUES("county_id", "#{countyId,jdbcType=BIGINT}"); } + if (record.getCountyName() != null) { + sql.VALUES("county_name", "#{countyName,jdbcType=VARCHAR}"); + } + if (record.getTownId() != null) { sql.VALUES("town_id", "#{townId,jdbcType=BIGINT}"); } + if (record.getTownName() != null) { + sql.VALUES("town_name", "#{townName,jdbcType=VARCHAR}"); + } + if (record.getRegionName() != null) { sql.VALUES("region_name", "#{regionName,jdbcType=VARCHAR}"); } @@ -111,9 +127,13 @@ public class GoodsUserAddressSqlProvider { sql.SELECT("phone"); sql.SELECT("address"); sql.SELECT("province_id"); + sql.SELECT("province_name"); sql.SELECT("city_id"); + sql.SELECT("city_name"); sql.SELECT("county_id"); + sql.SELECT("county_name"); sql.SELECT("town_id"); + sql.SELECT("town_name"); sql.SELECT("region_name"); sql.SELECT("whether_default"); sql.SELECT("create_time"); @@ -164,18 +184,34 @@ public class GoodsUserAddressSqlProvider { sql.SET("province_id = #{record.provinceId,jdbcType=BIGINT}"); } + if (record.getProvinceName() != null) { + sql.SET("province_name = #{record.provinceName,jdbcType=VARCHAR}"); + } + if (record.getCityId() != null) { sql.SET("city_id = #{record.cityId,jdbcType=BIGINT}"); } + if (record.getCityName() != null) { + sql.SET("city_name = #{record.cityName,jdbcType=VARCHAR}"); + } + if (record.getCountyId() != null) { sql.SET("county_id = #{record.countyId,jdbcType=BIGINT}"); } + if (record.getCountyName() != null) { + sql.SET("county_name = #{record.countyName,jdbcType=VARCHAR}"); + } + if (record.getTownId() != null) { sql.SET("town_id = #{record.townId,jdbcType=BIGINT}"); } + if (record.getTownName() != null) { + sql.SET("town_name = #{record.townName,jdbcType=VARCHAR}"); + } + if (record.getRegionName() != null) { sql.SET("region_name = #{record.regionName,jdbcType=VARCHAR}"); } @@ -226,9 +262,13 @@ public class GoodsUserAddressSqlProvider { sql.SET("phone = #{record.phone,jdbcType=VARCHAR}"); sql.SET("address = #{record.address,jdbcType=VARCHAR}"); sql.SET("province_id = #{record.provinceId,jdbcType=BIGINT}"); + sql.SET("province_name = #{record.provinceName,jdbcType=VARCHAR}"); sql.SET("city_id = #{record.cityId,jdbcType=BIGINT}"); + sql.SET("city_name = #{record.cityName,jdbcType=VARCHAR}"); sql.SET("county_id = #{record.countyId,jdbcType=BIGINT}"); + sql.SET("county_name = #{record.countyName,jdbcType=VARCHAR}"); sql.SET("town_id = #{record.townId,jdbcType=BIGINT}"); + sql.SET("town_name = #{record.townName,jdbcType=VARCHAR}"); sql.SET("region_name = #{record.regionName,jdbcType=VARCHAR}"); sql.SET("whether_default = #{record.whetherDefault,jdbcType=BIT}"); sql.SET("create_time = #{record.createTime,jdbcType=TIMESTAMP}"); @@ -268,18 +308,34 @@ public class GoodsUserAddressSqlProvider { sql.SET("province_id = #{provinceId,jdbcType=BIGINT}"); } + if (record.getProvinceName() != null) { + sql.SET("province_name = #{provinceName,jdbcType=VARCHAR}"); + } + if (record.getCityId() != null) { sql.SET("city_id = #{cityId,jdbcType=BIGINT}"); } + if (record.getCityName() != null) { + sql.SET("city_name = #{cityName,jdbcType=VARCHAR}"); + } + if (record.getCountyId() != null) { sql.SET("county_id = #{countyId,jdbcType=BIGINT}"); } + if (record.getCountyName() != null) { + sql.SET("county_name = #{countyName,jdbcType=VARCHAR}"); + } + if (record.getTownId() != null) { sql.SET("town_id = #{townId,jdbcType=BIGINT}"); } + if (record.getTownName() != null) { + sql.SET("town_name = #{townName,jdbcType=VARCHAR}"); + } + if (record.getRegionName() != null) { sql.SET("region_name = #{regionName,jdbcType=VARCHAR}"); } diff --git a/service/src/main/java/com/hfkj/entity/GoodsUserAddress.java b/service/src/main/java/com/hfkj/entity/GoodsUserAddress.java index 230d887..2c1bdc7 100644 --- a/service/src/main/java/com/hfkj/entity/GoodsUserAddress.java +++ b/service/src/main/java/com/hfkj/entity/GoodsUserAddress.java @@ -43,21 +43,41 @@ public class GoodsUserAddress implements Serializable { */ private Long provinceId; + /** + * 一级地址名称 + */ + private String provinceName; + /** * 二级地址编号 */ private Long cityId; + /** + * 二级地址名称 + */ + private String cityName; + /** * 三级地址编号 */ private Long countyId; + /** + * 三级地址名称 + */ + private String countyName; + /** * 四级地址编号 */ private Long townId; + /** + * 四级地址名称 + */ + private String townName; + /** * 区域名称 */ @@ -153,6 +173,14 @@ public class GoodsUserAddress implements Serializable { this.provinceId = provinceId; } + public String getProvinceName() { + return provinceName; + } + + public void setProvinceName(String provinceName) { + this.provinceName = provinceName; + } + public Long getCityId() { return cityId; } @@ -161,6 +189,14 @@ public class GoodsUserAddress implements Serializable { this.cityId = cityId; } + public String getCityName() { + return cityName; + } + + public void setCityName(String cityName) { + this.cityName = cityName; + } + public Long getCountyId() { return countyId; } @@ -169,6 +205,14 @@ public class GoodsUserAddress implements Serializable { this.countyId = countyId; } + public String getCountyName() { + return countyName; + } + + public void setCountyName(String countyName) { + this.countyName = countyName; + } + public Long getTownId() { return townId; } @@ -177,6 +221,14 @@ public class GoodsUserAddress implements Serializable { this.townId = townId; } + public String getTownName() { + return townName; + } + + public void setTownName(String townName) { + this.townName = townName; + } + public String getRegionName() { return regionName; } @@ -267,9 +319,13 @@ public class GoodsUserAddress implements Serializable { && (this.getPhone() == null ? other.getPhone() == null : this.getPhone().equals(other.getPhone())) && (this.getAddress() == null ? other.getAddress() == null : this.getAddress().equals(other.getAddress())) && (this.getProvinceId() == null ? other.getProvinceId() == null : this.getProvinceId().equals(other.getProvinceId())) + && (this.getProvinceName() == null ? other.getProvinceName() == null : this.getProvinceName().equals(other.getProvinceName())) && (this.getCityId() == null ? other.getCityId() == null : this.getCityId().equals(other.getCityId())) + && (this.getCityName() == null ? other.getCityName() == null : this.getCityName().equals(other.getCityName())) && (this.getCountyId() == null ? other.getCountyId() == null : this.getCountyId().equals(other.getCountyId())) + && (this.getCountyName() == null ? other.getCountyName() == null : this.getCountyName().equals(other.getCountyName())) && (this.getTownId() == null ? other.getTownId() == null : this.getTownId().equals(other.getTownId())) + && (this.getTownName() == null ? other.getTownName() == null : this.getTownName().equals(other.getTownName())) && (this.getRegionName() == null ? other.getRegionName() == null : this.getRegionName().equals(other.getRegionName())) && (this.getWhetherDefault() == null ? other.getWhetherDefault() == null : this.getWhetherDefault().equals(other.getWhetherDefault())) && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime())) @@ -291,9 +347,13 @@ public class GoodsUserAddress implements Serializable { result = prime * result + ((getPhone() == null) ? 0 : getPhone().hashCode()); result = prime * result + ((getAddress() == null) ? 0 : getAddress().hashCode()); result = prime * result + ((getProvinceId() == null) ? 0 : getProvinceId().hashCode()); + result = prime * result + ((getProvinceName() == null) ? 0 : getProvinceName().hashCode()); result = prime * result + ((getCityId() == null) ? 0 : getCityId().hashCode()); + result = prime * result + ((getCityName() == null) ? 0 : getCityName().hashCode()); result = prime * result + ((getCountyId() == null) ? 0 : getCountyId().hashCode()); + result = prime * result + ((getCountyName() == null) ? 0 : getCountyName().hashCode()); result = prime * result + ((getTownId() == null) ? 0 : getTownId().hashCode()); + result = prime * result + ((getTownName() == null) ? 0 : getTownName().hashCode()); result = prime * result + ((getRegionName() == null) ? 0 : getRegionName().hashCode()); result = prime * result + ((getWhetherDefault() == null) ? 0 : getWhetherDefault().hashCode()); result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode()); @@ -318,9 +378,13 @@ public class GoodsUserAddress implements Serializable { sb.append(", phone=").append(phone); sb.append(", address=").append(address); sb.append(", provinceId=").append(provinceId); + sb.append(", provinceName=").append(provinceName); sb.append(", cityId=").append(cityId); + sb.append(", cityName=").append(cityName); sb.append(", countyId=").append(countyId); + sb.append(", countyName=").append(countyName); sb.append(", townId=").append(townId); + sb.append(", townName=").append(townName); sb.append(", regionName=").append(regionName); sb.append(", whetherDefault=").append(whetherDefault); sb.append(", createTime=").append(createTime); diff --git a/service/src/main/java/com/hfkj/entity/GoodsUserAddressExample.java b/service/src/main/java/com/hfkj/entity/GoodsUserAddressExample.java index fe3bc33..d7776a6 100644 --- a/service/src/main/java/com/hfkj/entity/GoodsUserAddressExample.java +++ b/service/src/main/java/com/hfkj/entity/GoodsUserAddressExample.java @@ -515,6 +515,76 @@ public class GoodsUserAddressExample { return (Criteria) this; } + public Criteria andProvinceNameIsNull() { + addCriterion("province_name is null"); + return (Criteria) this; + } + + public Criteria andProvinceNameIsNotNull() { + addCriterion("province_name is not null"); + return (Criteria) this; + } + + public Criteria andProvinceNameEqualTo(String value) { + addCriterion("province_name =", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameNotEqualTo(String value) { + addCriterion("province_name <>", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameGreaterThan(String value) { + addCriterion("province_name >", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameGreaterThanOrEqualTo(String value) { + addCriterion("province_name >=", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameLessThan(String value) { + addCriterion("province_name <", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameLessThanOrEqualTo(String value) { + addCriterion("province_name <=", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameLike(String value) { + addCriterion("province_name like", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameNotLike(String value) { + addCriterion("province_name not like", value, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameIn(List values) { + addCriterion("province_name in", values, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameNotIn(List values) { + addCriterion("province_name not in", values, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameBetween(String value1, String value2) { + addCriterion("province_name between", value1, value2, "provinceName"); + return (Criteria) this; + } + + public Criteria andProvinceNameNotBetween(String value1, String value2) { + addCriterion("province_name not between", value1, value2, "provinceName"); + return (Criteria) this; + } + public Criteria andCityIdIsNull() { addCriterion("city_id is null"); return (Criteria) this; @@ -575,6 +645,76 @@ public class GoodsUserAddressExample { return (Criteria) this; } + public Criteria andCityNameIsNull() { + addCriterion("city_name is null"); + return (Criteria) this; + } + + public Criteria andCityNameIsNotNull() { + addCriterion("city_name is not null"); + return (Criteria) this; + } + + public Criteria andCityNameEqualTo(String value) { + addCriterion("city_name =", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameNotEqualTo(String value) { + addCriterion("city_name <>", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameGreaterThan(String value) { + addCriterion("city_name >", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameGreaterThanOrEqualTo(String value) { + addCriterion("city_name >=", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameLessThan(String value) { + addCriterion("city_name <", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameLessThanOrEqualTo(String value) { + addCriterion("city_name <=", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameLike(String value) { + addCriterion("city_name like", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameNotLike(String value) { + addCriterion("city_name not like", value, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameIn(List values) { + addCriterion("city_name in", values, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameNotIn(List values) { + addCriterion("city_name not in", values, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameBetween(String value1, String value2) { + addCriterion("city_name between", value1, value2, "cityName"); + return (Criteria) this; + } + + public Criteria andCityNameNotBetween(String value1, String value2) { + addCriterion("city_name not between", value1, value2, "cityName"); + return (Criteria) this; + } + public Criteria andCountyIdIsNull() { addCriterion("county_id is null"); return (Criteria) this; @@ -635,6 +775,76 @@ public class GoodsUserAddressExample { return (Criteria) this; } + public Criteria andCountyNameIsNull() { + addCriterion("county_name is null"); + return (Criteria) this; + } + + public Criteria andCountyNameIsNotNull() { + addCriterion("county_name is not null"); + return (Criteria) this; + } + + public Criteria andCountyNameEqualTo(String value) { + addCriterion("county_name =", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameNotEqualTo(String value) { + addCriterion("county_name <>", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameGreaterThan(String value) { + addCriterion("county_name >", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameGreaterThanOrEqualTo(String value) { + addCriterion("county_name >=", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameLessThan(String value) { + addCriterion("county_name <", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameLessThanOrEqualTo(String value) { + addCriterion("county_name <=", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameLike(String value) { + addCriterion("county_name like", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameNotLike(String value) { + addCriterion("county_name not like", value, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameIn(List values) { + addCriterion("county_name in", values, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameNotIn(List values) { + addCriterion("county_name not in", values, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameBetween(String value1, String value2) { + addCriterion("county_name between", value1, value2, "countyName"); + return (Criteria) this; + } + + public Criteria andCountyNameNotBetween(String value1, String value2) { + addCriterion("county_name not between", value1, value2, "countyName"); + return (Criteria) this; + } + public Criteria andTownIdIsNull() { addCriterion("town_id is null"); return (Criteria) this; @@ -695,6 +905,76 @@ public class GoodsUserAddressExample { return (Criteria) this; } + public Criteria andTownNameIsNull() { + addCriterion("town_name is null"); + return (Criteria) this; + } + + public Criteria andTownNameIsNotNull() { + addCriterion("town_name is not null"); + return (Criteria) this; + } + + public Criteria andTownNameEqualTo(String value) { + addCriterion("town_name =", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameNotEqualTo(String value) { + addCriterion("town_name <>", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameGreaterThan(String value) { + addCriterion("town_name >", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameGreaterThanOrEqualTo(String value) { + addCriterion("town_name >=", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameLessThan(String value) { + addCriterion("town_name <", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameLessThanOrEqualTo(String value) { + addCriterion("town_name <=", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameLike(String value) { + addCriterion("town_name like", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameNotLike(String value) { + addCriterion("town_name not like", value, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameIn(List values) { + addCriterion("town_name in", values, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameNotIn(List values) { + addCriterion("town_name not in", values, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameBetween(String value1, String value2) { + addCriterion("town_name between", value1, value2, "townName"); + return (Criteria) this; + } + + public Criteria andTownNameNotBetween(String value1, String value2) { + addCriterion("town_name not between", value1, value2, "townName"); + return (Criteria) this; + } + public Criteria andRegionNameIsNull() { addCriterion("region_name is null"); return (Criteria) this;