|
|
@ -43,12 +43,14 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
"oil_no_name, price_vip, ", |
|
|
|
"oil_no_name, price_vip, ", |
|
|
|
"price_gun, price_official, ", |
|
|
|
"price_gun, price_official, ", |
|
|
|
"oil_type, oil_type_name, ", |
|
|
|
"oil_type, oil_type_name, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{merchantStoreId,jdbcType=BIGINT}, #{oilNo,jdbcType=INTEGER}, ", |
|
|
|
"values (#{merchantStoreId,jdbcType=BIGINT}, #{oilNo,jdbcType=INTEGER}, ", |
|
|
|
"#{oilNoName,jdbcType=VARCHAR}, #{priceVip,jdbcType=DECIMAL}, ", |
|
|
|
"#{oilNoName,jdbcType=VARCHAR}, #{priceVip,jdbcType=DECIMAL}, ", |
|
|
|
"#{priceGun,jdbcType=DECIMAL}, #{priceOfficial,jdbcType=DECIMAL}, ", |
|
|
|
"#{priceGun,jdbcType=DECIMAL}, #{priceOfficial,jdbcType=DECIMAL}, ", |
|
|
|
"#{oilType,jdbcType=INTEGER}, #{oilTypeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{oilType,jdbcType=INTEGER}, #{oilTypeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{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(HighGasOilPrice record); |
|
|
|
int insert(HighGasOilPrice record); |
|
|
@ -68,6 +70,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="oil_type", property="oilType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_type", property="oilType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_type_name", property="oilTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_type_name", property="oilTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
@ -77,7 +80,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, merchant_store_id, oil_no, oil_no_name, price_vip, price_gun, price_official, ", |
|
|
|
"id, merchant_store_id, oil_no, oil_no_name, price_vip, price_gun, price_official, ", |
|
|
|
"oil_type, oil_type_name, ext_1, ext_2, ext_3", |
|
|
|
"oil_type, oil_type_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_gas_oil_price", |
|
|
|
"from high_gas_oil_price", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -91,6 +94,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="oil_type", property="oilType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_type", property="oilType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_type_name", property="oilTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_type_name", property="oilTypeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
@ -116,6 +120,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|
"oil_type = #{oilType,jdbcType=INTEGER},", |
|
|
|
"oil_type = #{oilType,jdbcType=INTEGER},", |
|
|
|
"oil_type_name = #{oilTypeName,jdbcType=VARCHAR},", |
|
|
|
"oil_type_name = #{oilTypeName,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|