|
|
@ -40,20 +40,22 @@ public interface CouponDiscountMapper extends CouponDiscountMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into coupon_discount (`name`, img, ", |
|
|
|
"insert into coupon_discount (`name`, img, ", |
|
|
|
"`type`, `condition`, ", |
|
|
|
"`type`, platform, ", |
|
|
|
"price, percentage, ", |
|
|
|
"`condition`, price, ", |
|
|
|
"limit_num, effective_day, ", |
|
|
|
"percentage, limit_num, ", |
|
|
|
"effective_num, sales_end_time, ", |
|
|
|
"effective_day, effective_num, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"sales_end_time, create_time, ", |
|
|
|
"op_id, op_name, `status`, ", |
|
|
|
"update_time, op_id, ", |
|
|
|
|
|
|
|
"op_name, `status`, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{name,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{name,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{condition,jdbcType=DECIMAL}, ", |
|
|
|
"#{type,jdbcType=INTEGER}, #{platform,jdbcType=INTEGER}, ", |
|
|
|
"#{price,jdbcType=DECIMAL}, #{percentage,jdbcType=DECIMAL}, ", |
|
|
|
"#{condition,jdbcType=DECIMAL}, #{price,jdbcType=DECIMAL}, ", |
|
|
|
"#{limitNum,jdbcType=INTEGER}, #{effectiveDay,jdbcType=INTEGER}, ", |
|
|
|
"#{percentage,jdbcType=DECIMAL}, #{limitNum,jdbcType=INTEGER}, ", |
|
|
|
"#{effectiveNum,jdbcType=INTEGER}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{effectiveDay,jdbcType=INTEGER}, #{effectiveNum,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{opId,jdbcType=BIGINT}, #{opName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{opId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{opName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
@ -69,6 +71,7 @@ public interface CouponDiscountMapper extends CouponDiscountMapperExt { |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="condition", property="condition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="condition", property="condition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="percentage", property="percentage", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="percentage", property="percentage", jdbcType=JdbcType.DECIMAL), |
|
|
@ -89,9 +92,9 @@ public interface CouponDiscountMapper extends CouponDiscountMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `name`, img, `type`, `condition`, price, percentage, limit_num, effective_day, ", |
|
|
|
"id, `name`, img, `type`, platform, `condition`, price, percentage, limit_num, ", |
|
|
|
"effective_num, sales_end_time, create_time, update_time, op_id, op_name, `status`, ", |
|
|
|
"effective_day, effective_num, sales_end_time, create_time, update_time, op_id, ", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"op_name, `status`, ext_1, ext_2, ext_3", |
|
|
|
"from coupon_discount", |
|
|
|
"from coupon_discount", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -100,6 +103,7 @@ public interface CouponDiscountMapper extends CouponDiscountMapperExt { |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="name", property="name", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="condition", property="condition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="condition", property="condition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="price", property="price", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="percentage", property="percentage", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="percentage", property="percentage", jdbcType=JdbcType.DECIMAL), |
|
|
@ -132,6 +136,7 @@ public interface CouponDiscountMapper extends CouponDiscountMapperExt { |
|
|
|
"set `name` = #{name,jdbcType=VARCHAR},", |
|
|
|
"set `name` = #{name,jdbcType=VARCHAR},", |
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
"`type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"platform = #{platform,jdbcType=INTEGER},", |
|
|
|
"`condition` = #{condition,jdbcType=DECIMAL},", |
|
|
|
"`condition` = #{condition,jdbcType=DECIMAL},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
"price = #{price,jdbcType=DECIMAL},", |
|
|
|
"percentage = #{percentage,jdbcType=DECIMAL},", |
|
|
|
"percentage = #{percentage,jdbcType=DECIMAL},", |
|
|
|