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