|
|
@ -46,10 +46,11 @@ public interface ApiKfcStoresMapper extends ApiKfcStoresMapperExt { |
|
|
|
"store_code, lon, ", |
|
|
|
"store_code, lon, ", |
|
|
|
"lat, address, start_time, ", |
|
|
|
"lat, address, start_time, ", |
|
|
|
"end_time, store_status, ", |
|
|
|
"end_time, store_status, ", |
|
|
|
"shelf_status, operator_id, ", |
|
|
|
"shelf_status, distance, ", |
|
|
|
"operator_name, create_time, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"update_time, `status`, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{cityNameFirstLetter,jdbcType=VARCHAR}, #{cityCode,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{cityNameFirstLetter,jdbcType=VARCHAR}, #{cityCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{cityName,jdbcType=VARCHAR}, #{provinceName,jdbcType=VARCHAR}, ", |
|
|
|
"#{cityName,jdbcType=VARCHAR}, #{provinceName,jdbcType=VARCHAR}, ", |
|
|
|
"#{provinceCode,jdbcType=VARCHAR}, #{kfcCityId,jdbcType=INTEGER}, ", |
|
|
|
"#{provinceCode,jdbcType=VARCHAR}, #{kfcCityId,jdbcType=INTEGER}, ", |
|
|
@ -57,10 +58,11 @@ public interface ApiKfcStoresMapper extends ApiKfcStoresMapperExt { |
|
|
|
"#{storeCode,jdbcType=VARCHAR}, #{lon,jdbcType=VARCHAR}, ", |
|
|
|
"#{storeCode,jdbcType=VARCHAR}, #{lon,jdbcType=VARCHAR}, ", |
|
|
|
"#{lat,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, ", |
|
|
|
"#{lat,jdbcType=VARCHAR}, #{address,jdbcType=VARCHAR}, #{startTime,jdbcType=VARCHAR}, ", |
|
|
|
"#{endTime,jdbcType=VARCHAR}, #{storeStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{endTime,jdbcType=VARCHAR}, #{storeStatus,jdbcType=INTEGER}, ", |
|
|
|
"#{shelfStatus,jdbcType=INTEGER}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{shelfStatus,jdbcType=INTEGER}, #{distance,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(ApiKfcStores record); |
|
|
|
int insert(ApiKfcStores record); |
|
|
@ -88,6 +90,7 @@ public interface ApiKfcStoresMapper extends ApiKfcStoresMapperExt { |
|
|
|
@Result(column="end_time", property="endTime", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="end_time", property="endTime", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_status", property="storeStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="store_status", property="storeStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="shelf_status", property="shelfStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="shelf_status", property="shelfStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="distance", property="distance", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -103,8 +106,8 @@ public interface ApiKfcStoresMapper extends ApiKfcStoresMapperExt { |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, city_name_first_letter, city_code, city_name, province_name, province_code, ", |
|
|
|
"id, city_name_first_letter, city_code, city_name, province_name, province_code, ", |
|
|
|
"kfc_city_id, kfc_city_code, store_name, store_code, lon, lat, address, start_time, ", |
|
|
|
"kfc_city_id, kfc_city_code, store_name, store_code, lon, lat, address, start_time, ", |
|
|
|
"end_time, store_status, shelf_status, operator_id, operator_name, create_time, ", |
|
|
|
"end_time, store_status, shelf_status, distance, operator_id, operator_name, ", |
|
|
|
"update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"create_time, update_time, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from api_kfc_stores", |
|
|
|
"from api_kfc_stores", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -126,6 +129,7 @@ public interface ApiKfcStoresMapper extends ApiKfcStoresMapperExt { |
|
|
|
@Result(column="end_time", property="endTime", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="end_time", property="endTime", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_status", property="storeStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="store_status", property="storeStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="shelf_status", property="shelfStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="shelf_status", property="shelfStatus", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="distance", property="distance", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -164,6 +168,7 @@ public interface ApiKfcStoresMapper extends ApiKfcStoresMapperExt { |
|
|
|
"end_time = #{endTime,jdbcType=VARCHAR},", |
|
|
|
"end_time = #{endTime,jdbcType=VARCHAR},", |
|
|
|
"store_status = #{storeStatus,jdbcType=INTEGER},", |
|
|
|
"store_status = #{storeStatus,jdbcType=INTEGER},", |
|
|
|
"shelf_status = #{shelfStatus,jdbcType=INTEGER},", |
|
|
|
"shelf_status = #{shelfStatus,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"distance = #{distance,jdbcType=VARCHAR},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|