|
|
@ -41,16 +41,18 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_gas_oil_price (merchant_store_id, oil_no, ", |
|
|
|
"insert into high_gas_oil_price (merchant_store_id, oil_no, ", |
|
|
|
"oil_no_name, preferential_margin, ", |
|
|
|
"oil_no_name, preferential_margin, ", |
|
|
|
"price_vip, price_gun, ", |
|
|
|
"gas_station_drop, price_vip, ", |
|
|
|
"price_official, oil_type, ", |
|
|
|
"price_gun, price_official, ", |
|
|
|
"oil_type_name, `status`, ", |
|
|
|
"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}, #{preferentialMargin,jdbcType=DECIMAL}, ", |
|
|
|
"#{oilNoName,jdbcType=VARCHAR}, #{preferentialMargin,jdbcType=DECIMAL}, ", |
|
|
|
"#{priceVip,jdbcType=DECIMAL}, #{priceGun,jdbcType=DECIMAL}, ", |
|
|
|
"#{gasStationDrop,jdbcType=DECIMAL}, #{priceVip,jdbcType=DECIMAL}, ", |
|
|
|
"#{priceOfficial,jdbcType=DECIMAL}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
"#{priceGun,jdbcType=DECIMAL}, #{priceOfficial,jdbcType=DECIMAL}, ", |
|
|
|
"#{oilTypeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{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); |
|
|
@ -66,6 +68,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="preferential_margin", property="preferentialMargin", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="preferential_margin", property="preferentialMargin", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="gas_station_drop", property="gasStationDrop", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_vip", property="priceVip", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_vip", property="priceVip", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_gun", property="priceGun", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_gun", property="priceGun", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
@ -80,9 +83,9 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, merchant_store_id, oil_no, oil_no_name, preferential_margin, price_vip, ", |
|
|
|
"id, merchant_store_id, oil_no, oil_no_name, preferential_margin, gas_station_drop, ", |
|
|
|
"price_gun, price_official, oil_type, oil_type_name, `status`, ext_1, ext_2, ", |
|
|
|
"price_vip, price_gun, price_official, oil_type, oil_type_name, `status`, ext_1, ", |
|
|
|
"ext_3", |
|
|
|
"ext_2, ext_3", |
|
|
|
"from high_gas_oil_price", |
|
|
|
"from high_gas_oil_price", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -92,6 +95,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="preferential_margin", property="preferentialMargin", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="preferential_margin", property="preferentialMargin", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="gas_station_drop", property="gasStationDrop", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_vip", property="priceVip", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_vip", property="priceVip", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_gun", property="priceGun", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_gun", property="priceGun", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
@ -119,6 +123,7 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
"oil_no = #{oilNo,jdbcType=INTEGER},", |
|
|
|
"oil_no = #{oilNo,jdbcType=INTEGER},", |
|
|
|
"oil_no_name = #{oilNoName,jdbcType=VARCHAR},", |
|
|
|
"oil_no_name = #{oilNoName,jdbcType=VARCHAR},", |
|
|
|
"preferential_margin = #{preferentialMargin,jdbcType=DECIMAL},", |
|
|
|
"preferential_margin = #{preferentialMargin,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"gas_station_drop = #{gasStationDrop,jdbcType=DECIMAL},", |
|
|
|
"price_vip = #{priceVip,jdbcType=DECIMAL},", |
|
|
|
"price_vip = #{priceVip,jdbcType=DECIMAL},", |
|
|
|
"price_gun = #{priceGun,jdbcType=DECIMAL},", |
|
|
|
"price_gun = #{priceGun,jdbcType=DECIMAL},", |
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|