|
|
|
@ -40,25 +40,27 @@ public interface HighGasOilPriceTaskMapper extends HighGasOilPriceTaskMapperExt |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_gas_oil_price_task (region_id, region_name, ", |
|
|
|
|
"mer_store_id, mer_store_name, ", |
|
|
|
|
"mer_store_address, oil_type, ", |
|
|
|
|
"oil_type_name, oil_no, ", |
|
|
|
|
"oil_no_name, price_type, ", |
|
|
|
|
"price, execution_type, ", |
|
|
|
|
"start_time, `status`, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"op_user_id, op_user_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"mer_store_key, mer_store_id, ", |
|
|
|
|
"mer_store_name, mer_store_address, ", |
|
|
|
|
"oil_type, oil_type_name, ", |
|
|
|
|
"oil_no, oil_no_name, ", |
|
|
|
|
"price_type, price, ", |
|
|
|
|
"execution_type, start_time, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, op_user_id, ", |
|
|
|
|
"op_user_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{regionId,jdbcType=BIGINT}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merStoreId,jdbcType=BIGINT}, #{merStoreName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{merStoreAddress,jdbcType=VARCHAR}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{oilTypeName,jdbcType=VARCHAR}, #{oilNo,jdbcType=INTEGER}, ", |
|
|
|
|
"#{oilNoName,jdbcType=VARCHAR}, #{priceType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{price,jdbcType=DECIMAL}, #{executionType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{startTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{opUserId,jdbcType=BIGINT}, #{opUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{merStoreKey,jdbcType=VARCHAR}, #{merStoreId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{merStoreName,jdbcType=VARCHAR}, #{merStoreAddress,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{oilType,jdbcType=INTEGER}, #{oilTypeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{oilNo,jdbcType=INTEGER}, #{oilNoName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{priceType,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{executionType,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opUserId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{opUserName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighGasOilPriceTask record); |
|
|
|
@ -72,6 +74,7 @@ public interface HighGasOilPriceTaskMapper extends HighGasOilPriceTaskMapperExt |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_store_key", property="merStoreKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_store_id", property="merStoreId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="mer_store_name", property="merStoreName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_store_address", property="merStoreAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -96,7 +99,7 @@ public interface HighGasOilPriceTaskMapper extends HighGasOilPriceTaskMapperExt |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, region_id, region_name, mer_store_id, mer_store_name, mer_store_address, ", |
|
|
|
|
"id, region_id, region_name, mer_store_key, mer_store_id, mer_store_name, mer_store_address, ", |
|
|
|
|
"oil_type, oil_type_name, oil_no, oil_no_name, price_type, price, execution_type, ", |
|
|
|
|
"start_time, `status`, create_time, update_time, op_user_id, op_user_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
@ -107,6 +110,7 @@ public interface HighGasOilPriceTaskMapper extends HighGasOilPriceTaskMapperExt |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="region_id", property="regionId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="region_name", property="regionName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_store_key", property="merStoreKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_store_id", property="merStoreId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="mer_store_name", property="merStoreName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="mer_store_address", property="merStoreAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -142,6 +146,7 @@ public interface HighGasOilPriceTaskMapper extends HighGasOilPriceTaskMapperExt |
|
|
|
|
"update high_gas_oil_price_task", |
|
|
|
|
"set region_id = #{regionId,jdbcType=BIGINT},", |
|
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
|
"mer_store_key = #{merStoreKey,jdbcType=VARCHAR},", |
|
|
|
|
"mer_store_id = #{merStoreId,jdbcType=BIGINT},", |
|
|
|
|
"mer_store_name = #{merStoreName,jdbcType=VARCHAR},", |
|
|
|
|
"mer_store_address = #{merStoreAddress,jdbcType=VARCHAR},", |
|
|
|
|