|
|
@ -39,16 +39,16 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into out_recharge_price (`type`, show_type, ", |
|
|
|
"insert into out_recharge_price (recharge_type, `type`, ", |
|
|
|
"company_id, price, ", |
|
|
|
"show_type, company_id, ", |
|
|
|
"real_price, create_time, ", |
|
|
|
"price, real_price, ", |
|
|
|
"goods_id, discount, sort, ", |
|
|
|
"create_time, goods_id, ", |
|
|
|
"`status`)", |
|
|
|
"discount, sort, `status`)", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{showType,jdbcType=INTEGER}, ", |
|
|
|
"values (#{rechargeType,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, ", |
|
|
|
"#{companyId,jdbcType=BIGINT}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"#{showType,jdbcType=INTEGER}, #{companyId,jdbcType=BIGINT}, ", |
|
|
|
"#{realPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{price,jdbcType=DECIMAL}, #{realPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{discount,jdbcType=REAL}, #{sort,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER})" |
|
|
|
"#{discount,jdbcType=REAL}, #{sort,jdbcType=INTEGER}, #{status,jdbcType=INTEGER})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(OutRechargePrice record); |
|
|
|
int insert(OutRechargePrice record); |
|
|
@ -60,6 +60,7 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
@SelectProvider(type=OutRechargePriceSqlProvider.class, method="selectByExample") |
|
|
|
@SelectProvider(type=OutRechargePriceSqlProvider.class, method="selectByExample") |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="recharge_type", property="rechargeType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
@ -75,13 +76,14 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, show_type, company_id, price, real_price, create_time, goods_id, ", |
|
|
|
"id, recharge_type, `type`, show_type, company_id, price, real_price, create_time, ", |
|
|
|
"discount, sort, `status`", |
|
|
|
"goods_id, discount, sort, `status`", |
|
|
|
"from out_recharge_price", |
|
|
|
"from out_recharge_price", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
|
|
|
@Result(column="recharge_type", property="rechargeType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="show_type", property="showType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
@ -106,7 +108,8 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update out_recharge_price", |
|
|
|
"update out_recharge_price", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
"set recharge_type = #{rechargeType,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"show_type = #{showType,jdbcType=INTEGER},", |
|
|
|
"show_type = #{showType,jdbcType=INTEGER},", |
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|