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