|
|
@ -39,26 +39,34 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_merchant_store (`type`, region_id, ", |
|
|
|
"insert into high_merchant_store (`type`, source_type, ", |
|
|
|
"region_name, company_id, ", |
|
|
|
"brand_id, brand_name, ", |
|
|
|
"merchant_id, store_logo, ", |
|
|
|
"region_id, region_name, ", |
|
|
|
"store_key, store_name, ", |
|
|
|
"company_id, merchant_id, ", |
|
|
|
"store_desc, telephone, ", |
|
|
|
"store_logo, store_key, ", |
|
|
|
|
|
|
|
"store_name, store_desc, ", |
|
|
|
|
|
|
|
"telephone, contact_name, ", |
|
|
|
"address, `status`, ", |
|
|
|
"address, `status`, ", |
|
|
|
"longitude, latitude, ", |
|
|
|
"longitude, latitude, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"device_sn, device_key, ", |
|
|
|
"update_time, create_time, ", |
|
|
|
"device_name, operator_id, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"operator_name, update_time, ", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{regionId,jdbcType=BIGINT}, ", |
|
|
|
"create_time, ext_1, ", |
|
|
|
"#{regionName,jdbcType=VARCHAR}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"#{merchantId,jdbcType=BIGINT}, #{storeLogo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{sourceType,jdbcType=INTEGER}, ", |
|
|
|
"#{storeKey,jdbcType=VARCHAR}, #{storeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{brandId,jdbcType=BIGINT}, #{brandName,jdbcType=VARCHAR}, ", |
|
|
|
"#{storeDesc,jdbcType=VARCHAR}, #{telephone,jdbcType=VARCHAR}, ", |
|
|
|
"#{regionId,jdbcType=BIGINT}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{storeLogo,jdbcType=VARCHAR}, #{storeKey,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{storeName,jdbcType=VARCHAR}, #{storeDesc,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{telephone,jdbcType=VARCHAR}, #{contactName,jdbcType=VARCHAR}, ", |
|
|
|
"#{address,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{address,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, ", |
|
|
|
"#{longitude,jdbcType=VARCHAR}, #{latitude,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{deviceSn,jdbcType=VARCHAR}, #{deviceKey,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{deviceName,jdbcType=VARCHAR}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighMerchantStore record); |
|
|
|
int insert(HighMerchantStore record); |
|
|
@ -71,6 +79,9 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="source_type", property="sourceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="brand_name", property="brandName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
@ -80,10 +91,14 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_desc", property="storeDesc", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_desc", property="storeDesc", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="contact_name", property="contactName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="device_sn", property="deviceSn", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="device_name", property="deviceName", 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="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -96,15 +111,19 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, region_id, region_name, company_id, merchant_id, store_logo, store_key, ", |
|
|
|
"id, `type`, source_type, brand_id, brand_name, region_id, region_name, company_id, ", |
|
|
|
"store_name, store_desc, telephone, address, `status`, longitude, latitude, operator_id, ", |
|
|
|
"merchant_id, store_logo, store_key, store_name, store_desc, telephone, contact_name, ", |
|
|
|
"operator_name, update_time, create_time, ext_1, ext_2, ext_3", |
|
|
|
"address, `status`, longitude, latitude, device_sn, device_key, device_name, ", |
|
|
|
|
|
|
|
"operator_id, operator_name, update_time, create_time, ext_1, ext_2, ext_3", |
|
|
|
"from high_merchant_store", |
|
|
|
"from high_merchant_store", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="source_type", property="sourceType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="brand_name", property="brandName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
@ -114,10 +133,14 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_desc", property="storeDesc", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="store_desc", property="storeDesc", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="telephone", property="telephone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="contact_name", property="contactName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="address", property="address", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="longitude", property="longitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="latitude", property="latitude", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="device_sn", property="deviceSn", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="device_key", property="deviceKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="device_name", property="deviceName", 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="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -140,6 +163,9 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update high_merchant_store", |
|
|
|
"update high_merchant_store", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"source_type = #{sourceType,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"brand_id = #{brandId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"brand_name = #{brandName,jdbcType=VARCHAR},", |
|
|
|
"region_id = #{regionId,jdbcType=BIGINT},", |
|
|
|
"region_id = #{regionId,jdbcType=BIGINT},", |
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
@ -149,10 +175,14 @@ public interface HighMerchantStoreMapper extends HighMerchantStoreMapperExt { |
|
|
|
"store_name = #{storeName,jdbcType=VARCHAR},", |
|
|
|
"store_name = #{storeName,jdbcType=VARCHAR},", |
|
|
|
"store_desc = #{storeDesc,jdbcType=VARCHAR},", |
|
|
|
"store_desc = #{storeDesc,jdbcType=VARCHAR},", |
|
|
|
"telephone = #{telephone,jdbcType=VARCHAR},", |
|
|
|
"telephone = #{telephone,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"contact_name = #{contactName,jdbcType=VARCHAR},", |
|
|
|
"address = #{address,jdbcType=VARCHAR},", |
|
|
|
"address = #{address,jdbcType=VARCHAR},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"longitude = #{longitude,jdbcType=VARCHAR},", |
|
|
|
"longitude = #{longitude,jdbcType=VARCHAR},", |
|
|
|
"latitude = #{latitude,jdbcType=VARCHAR},", |
|
|
|
"latitude = #{latitude,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"device_sn = #{deviceSn,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"device_key = #{deviceKey,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"device_name = #{deviceName,jdbcType=VARCHAR},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|