|
|
|
@ -42,14 +42,16 @@ public interface BsStoreRegionMapper extends BsStoreRegionMapperExt { |
|
|
|
|
"insert into bs_store_region (store_id, province_code, ", |
|
|
|
|
"province_name, city_code, ", |
|
|
|
|
"city_name, area_code, ", |
|
|
|
|
"area_name, address, ", |
|
|
|
|
"area_name, longitude, ", |
|
|
|
|
"latitude, address, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{storeId,jdbcType=BIGINT}, #{provinceCode,jdbcType=BIGINT}, ", |
|
|
|
|
"#{provinceName,jdbcType=VARCHAR}, #{cityCode,jdbcType=BIGINT}, ", |
|
|
|
|
"#{cityName,jdbcType=VARCHAR}, #{areaCode,jdbcType=BIGINT}, ", |
|
|
|
|
"#{areaName,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{areaName,jdbcType=VARCHAR}, #{longitude,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{latitude,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
@ -71,6 +73,8 @@ public interface BsStoreRegionMapper extends BsStoreRegionMapperExt { |
|
|
|
|
@Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="area_code", property="areaCode", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="area_name", property="areaName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -84,7 +88,8 @@ public interface BsStoreRegionMapper extends BsStoreRegionMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, store_id, province_code, province_name, city_code, city_name, area_code, ", |
|
|
|
|
"area_name, address, `status`, create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"area_name, longitude, latitude, address, `status`, create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_store_region", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -97,6 +102,8 @@ public interface BsStoreRegionMapper extends BsStoreRegionMapperExt { |
|
|
|
|
@Result(column="city_name", property="cityName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="area_code", property="areaCode", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="area_name", property="areaName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -125,6 +132,8 @@ public interface BsStoreRegionMapper extends BsStoreRegionMapperExt { |
|
|
|
|
"city_name = #{cityName,jdbcType=VARCHAR},", |
|
|
|
|
"area_code = #{areaCode,jdbcType=BIGINT},", |
|
|
|
|
"area_name = #{areaName,jdbcType=VARCHAR},", |
|
|
|
|
"longitude = #{longitude,jdbcType=VARCHAR},", |
|
|
|
|
"latitude = #{latitude,jdbcType=VARCHAR},", |
|
|
|
|
"address = #{address,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|