|
|
@ -40,11 +40,13 @@ public interface BsGasOilPriceOfficialMapper extends BsGasOilPriceOfficialMapper |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_gas_oil_price_official (region_id, region_name, ", |
|
|
|
"insert into bs_gas_oil_price_official (region_id, region_name, ", |
|
|
|
|
|
|
|
"oil_price_zone_id, oil_price_zone_name, ", |
|
|
|
"oil_no, oil_no_name, ", |
|
|
|
"oil_no, oil_no_name, ", |
|
|
|
"price_official, oil_type, ", |
|
|
|
"price_official, oil_type, ", |
|
|
|
"oil_type_name, `status`, ", |
|
|
|
"oil_type_name, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{regionId,jdbcType=BIGINT}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{regionId,jdbcType=BIGINT}, #{regionName,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{oilPriceZoneId,jdbcType=INTEGER}, #{oilPriceZoneName,jdbcType=VARCHAR}, ", |
|
|
|
"#{oilNo,jdbcType=VARCHAR}, #{oilNoName,jdbcType=VARCHAR}, ", |
|
|
|
"#{oilNo,jdbcType=VARCHAR}, #{oilNoName,jdbcType=VARCHAR}, ", |
|
|
|
"#{priceOfficial,jdbcType=DECIMAL}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
"#{priceOfficial,jdbcType=DECIMAL}, #{oilType,jdbcType=INTEGER}, ", |
|
|
|
"#{oilTypeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{oilTypeName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
@ -62,6 +64,8 @@ public interface BsGasOilPriceOfficialMapper extends BsGasOilPriceOfficialMapper |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="oil_price_zone_id", property="oilPriceZoneId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="oil_price_zone_name", property="oilPriceZoneName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
@ -76,8 +80,9 @@ public interface BsGasOilPriceOfficialMapper extends BsGasOilPriceOfficialMapper |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, region_id, region_name, oil_no, oil_no_name, price_official, oil_type, oil_type_name, ", |
|
|
|
"id, region_id, region_name, oil_price_zone_id, oil_price_zone_name, oil_no, ", |
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
"oil_no_name, price_official, oil_type, oil_type_name, `status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3", |
|
|
|
"from bs_gas_oil_price_official", |
|
|
|
"from bs_gas_oil_price_official", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -85,6 +90,8 @@ public interface BsGasOilPriceOfficialMapper extends BsGasOilPriceOfficialMapper |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="oil_price_zone_id", property="oilPriceZoneId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="oil_price_zone_name", property="oilPriceZoneName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price_official", property="priceOfficial", jdbcType=JdbcType.DECIMAL), |
|
|
@ -110,6 +117,8 @@ public interface BsGasOilPriceOfficialMapper extends BsGasOilPriceOfficialMapper |
|
|
|
"update bs_gas_oil_price_official", |
|
|
|
"update bs_gas_oil_price_official", |
|
|
|
"set region_id = #{regionId,jdbcType=BIGINT},", |
|
|
|
"set region_id = #{regionId,jdbcType=BIGINT},", |
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
"region_name = #{regionName,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"oil_price_zone_id = #{oilPriceZoneId,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"oil_price_zone_name = #{oilPriceZoneName,jdbcType=VARCHAR},", |
|
|
|
"oil_no = #{oilNo,jdbcType=VARCHAR},", |
|
|
|
"oil_no = #{oilNo,jdbcType=VARCHAR},", |
|
|
|
"oil_no_name = #{oilNoName,jdbcType=VARCHAR},", |
|
|
|
"oil_no_name = #{oilNoName,jdbcType=VARCHAR},", |
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|
"price_official = #{priceOfficial,jdbcType=DECIMAL},", |
|
|
|