|
|
|
@ -41,16 +41,18 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_gas_oil_price (merchant_store_id, oil_no, ", |
|
|
|
|
"oil_no_name, preferential_margin, ", |
|
|
|
|
"price_vip, price_gun, ", |
|
|
|
|
"price_official, oil_type, ", |
|
|
|
|
"oil_type_name, `status`, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"gas_station_drop, price_vip, ", |
|
|
|
|
"price_gun, price_official, ", |
|
|
|
|
"oil_type, oil_type_name, ", |
|
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3)", |
|
|
|
|
"values (#{merchantStoreId,jdbcType=BIGINT}, #{oilNo,jdbcType=INTEGER}, ", |
|
|
|
|
"#{oilNoName,jdbcType=VARCHAR}, #{preferentialMargin,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{priceVip,jdbcType=DECIMAL}, #{priceGun,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{priceOfficial,jdbcType=DECIMAL}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{oilTypeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{gasStationDrop,jdbcType=DECIMAL}, #{priceVip,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{priceGun,jdbcType=DECIMAL}, #{priceOfficial,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{oilType,jdbcType=INTEGER}, #{oilTypeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
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_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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_gun", property="priceGun", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@ -80,9 +83,9 @@ public interface HighGasOilPriceMapper extends HighGasOilPriceMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, merchant_store_id, oil_no, oil_no_name, preferential_margin, price_vip, ", |
|
|
|
|
"price_gun, price_official, oil_type, oil_type_name, `status`, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"id, merchant_store_id, oil_no, oil_no_name, preferential_margin, gas_station_drop, ", |
|
|
|
|
"price_vip, price_gun, price_official, oil_type, oil_type_name, `status`, ext_1, ", |
|
|
|
|
"ext_2, ext_3", |
|
|
|
|
"from high_gas_oil_price", |
|
|
|
|
"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_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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_gun", property="priceGun", 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_name = #{oilNoName,jdbcType=VARCHAR},", |
|
|
|
|
"preferential_margin = #{preferentialMargin,jdbcType=DECIMAL},", |
|
|
|
|
"gas_station_drop = #{gasStationDrop,jdbcType=DECIMAL},", |
|
|
|
|
"price_vip = #{priceVip,jdbcType=DECIMAL},", |
|
|
|
|
"price_gun = #{priceGun,jdbcType=DECIMAL},", |
|
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|
|