|
|
@ -41,14 +41,18 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_user_coupon (merchant_id, coupon_id, ", |
|
|
|
"insert into high_user_coupon (merchant_id, coupon_id, ", |
|
|
|
"user_id, coupon_code_id, ", |
|
|
|
"user_id, coupon_code_id, ", |
|
|
|
"create_time, use_end_time, ", |
|
|
|
"store_id, create_time, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"consume_time, use_end_time, ", |
|
|
|
"ext_3, ext_4)", |
|
|
|
"qr_code_img, `status`, ", |
|
|
|
|
|
|
|
"ext_1, ext_2, ext_3, ", |
|
|
|
|
|
|
|
"ext_4)", |
|
|
|
"values (#{merchantId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{merchantId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{couponCodeId,jdbcType=BIGINT}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{couponCodeId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{consumeTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR}, #{ext4,jdbcType=VARCHAR})" |
|
|
|
"#{qrCodeImg,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext4,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighUserCoupon record); |
|
|
|
int insert(HighUserCoupon record); |
|
|
@ -64,8 +68,11 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="consume_time", property="consumeTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="qr_code_img", property="qrCodeImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
@ -76,8 +83,8 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, merchant_id, coupon_id, user_id, coupon_code_id, create_time, use_end_time, ", |
|
|
|
"id, merchant_id, coupon_id, user_id, coupon_code_id, store_id, create_time, ", |
|
|
|
"`status`, ext_1, ext_2, ext_3, ext_4", |
|
|
|
"consume_time, use_end_time, qr_code_img, `status`, ext_1, ext_2, ext_3, ext_4", |
|
|
|
"from high_user_coupon", |
|
|
|
"from high_user_coupon", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -87,8 +94,11 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="consume_time", property="consumeTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
|
|
|
@Result(column="qr_code_img", property="qrCodeImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
@ -112,8 +122,11 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
"coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
"coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"coupon_code_id = #{couponCodeId,jdbcType=BIGINT},", |
|
|
|
"coupon_code_id = #{couponCodeId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
|
|
|
"consume_time = #{consumeTime,jdbcType=TIMESTAMP},", |
|
|
|
"use_end_time = #{useEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"use_end_time = #{useEndTime,jdbcType=TIMESTAMP},", |
|
|
|
|
|
|
|
"qr_code_img = #{qrCodeImg,jdbcType=VARCHAR},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|