|
|
|
@ -39,16 +39,16 @@ public interface HighTyAgentPriceMapper extends HighTyAgentPriceMapperExt { |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_ty_agent_price (ty_agent_oil_station_id, oil_no_name, ", |
|
|
|
|
"oil_no, price_rate, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{tyAgentOilStationId,jdbcType=BIGINT}, #{oilNoName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{oilNo,jdbcType=VARCHAR}, #{priceRate,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"insert into high_ty_agent_price (belong_type, ty_agent_oil_station_id, ", |
|
|
|
|
"oil_no_name, oil_no, ", |
|
|
|
|
"price_rate, `status`, ", |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{belongType,jdbcType=INTEGER}, #{tyAgentOilStationId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{oilNoName,jdbcType=VARCHAR}, #{oilNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{priceRate,jdbcType=DECIMAL}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighTyAgentPrice record); |
|
|
|
@ -60,6 +60,7 @@ public interface HighTyAgentPriceMapper extends HighTyAgentPriceMapperExt { |
|
|
|
|
@SelectProvider(type=HighTyAgentPriceSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="belong_type", property="belongType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="ty_agent_oil_station_id", property="tyAgentOilStationId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -75,13 +76,14 @@ public interface HighTyAgentPriceMapper extends HighTyAgentPriceMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, ty_agent_oil_station_id, oil_no_name, oil_no, price_rate, `status`, create_time, ", |
|
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, belong_type, ty_agent_oil_station_id, oil_no_name, oil_no, price_rate, `status`, ", |
|
|
|
|
"create_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_ty_agent_price", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="belong_type", property="belongType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="ty_agent_oil_station_id", property="tyAgentOilStationId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="oil_no_name", property="oilNoName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="oil_no", property="oilNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -106,7 +108,8 @@ public interface HighTyAgentPriceMapper extends HighTyAgentPriceMapperExt { |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update high_ty_agent_price", |
|
|
|
|
"set ty_agent_oil_station_id = #{tyAgentOilStationId,jdbcType=BIGINT},", |
|
|
|
|
"set belong_type = #{belongType,jdbcType=INTEGER},", |
|
|
|
|
"ty_agent_oil_station_id = #{tyAgentOilStationId,jdbcType=BIGINT},", |
|
|
|
|
"oil_no_name = #{oilNoName,jdbcType=VARCHAR},", |
|
|
|
|
"oil_no = #{oilNo,jdbcType=VARCHAR},", |
|
|
|
|
"price_rate = #{priceRate,jdbcType=DECIMAL},", |
|
|
|
|