|
|
|
@ -39,18 +39,18 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into coupon_discount_user_rel (discount_id, discount_name, ", |
|
|
|
|
"discount_img, discount_type, ", |
|
|
|
|
"discount_condition, discount_price, ", |
|
|
|
|
"discount_percentage, user_id, ", |
|
|
|
|
"`status`, use_time, ", |
|
|
|
|
"insert into coupon_discount_user_rel (platform, discount_id, ", |
|
|
|
|
"discount_name, discount_img, ", |
|
|
|
|
"discount_type, discount_condition, ", |
|
|
|
|
"discount_price, discount_percentage, ", |
|
|
|
|
"user_id, `status`, use_time, ", |
|
|
|
|
"create_time, use_end_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{discountId,jdbcType=BIGINT}, #{discountName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{discountImg,jdbcType=VARCHAR}, #{discountType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{discountCondition,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{discountPercentage,jdbcType=DECIMAL}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"values (#{platform,jdbcType=INTEGER}, #{discountId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{discountPrice,jdbcType=DECIMAL}, #{discountPercentage,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{status,jdbcType=INTEGER}, #{useTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
@ -64,6 +64,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper |
|
|
|
|
@SelectProvider(type=CouponDiscountUserRelSqlProvider.class, method="selectByExample") |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -84,7 +85,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, discount_id, discount_name, discount_img, discount_type, discount_condition, ", |
|
|
|
|
"id, platform, discount_id, discount_name, discount_img, discount_type, discount_condition, ", |
|
|
|
|
"discount_price, discount_percentage, user_id, `status`, use_time, create_time, ", |
|
|
|
|
"use_end_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from coupon_discount_user_rel", |
|
|
|
@ -92,6 +93,7 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="platform", property="platform", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_id", property="discountId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -121,7 +123,8 @@ public interface CouponDiscountUserRelMapper extends CouponDiscountUserRelMapper |
|
|
|
|
|
|
|
|
|
@Update({ |
|
|
|
|
"update coupon_discount_user_rel", |
|
|
|
|
"set discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
|
"set platform = #{platform,jdbcType=INTEGER},", |
|
|
|
|
"discount_id = #{discountId,jdbcType=BIGINT},", |
|
|
|
|
"discount_name = #{discountName,jdbcType=VARCHAR},", |
|
|
|
|
"discount_img = #{discountImg,jdbcType=VARCHAR},", |
|
|
|
|
"discount_type = #{discountType,jdbcType=INTEGER},", |
|
|
|
|