|
|
@ -39,11 +39,13 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into out_recharge_price (`type`, price, ", |
|
|
|
"insert into out_recharge_price (`type`, show_type, ", |
|
|
|
|
|
|
|
"company_id, price, ", |
|
|
|
"real_price, create_time, ", |
|
|
|
"real_price, create_time, ", |
|
|
|
"goods_id, discount, sort, ", |
|
|
|
"goods_id, discount, sort, ", |
|
|
|
"`status`)", |
|
|
|
"`status`)", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"values (#{type,jdbcType=INTEGER}, #{showType,jdbcType=INTEGER}, ", |
|
|
|
|
|
|
|
"#{companyId,jdbcType=BIGINT}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"#{realPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{realPrice,jdbcType=DECIMAL}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{discount,jdbcType=REAL}, #{sort,jdbcType=INTEGER}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{discount,jdbcType=REAL}, #{sort,jdbcType=INTEGER}, ", |
|
|
|
"#{status,jdbcType=INTEGER})" |
|
|
|
"#{status,jdbcType=INTEGER})" |
|
|
@ -59,6 +61,8 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
@Results({ |
|
|
|
@Results({ |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@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="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="real_price", property="realPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="real_price", property="realPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -71,13 +75,16 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, price, real_price, create_time, goods_id, discount, sort, `status`", |
|
|
|
"id, `type`, show_type, company_id, price, real_price, create_time, 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="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="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="real_price", property="realPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="real_price", property="realPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -100,6 +107,8 @@ public interface OutRechargePriceMapper extends OutRechargePriceMapperExt { |
|
|
|
@Update({ |
|
|
|
@Update({ |
|
|
|
"update out_recharge_price", |
|
|
|
"update out_recharge_price", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"show_type = #{showType,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
"real_price = #{realPrice,jdbcType=DECIMAL},", |
|
|
|
"real_price = #{realPrice,jdbcType=DECIMAL},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|