|
|
@ -40,7 +40,8 @@ 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, order_id, child_order_id, ", |
|
|
|
"user_id, user_phone, ", |
|
|
|
|
|
|
|
"order_id, child_order_id, ", |
|
|
|
"coupon_code_id, store_id, ", |
|
|
|
"coupon_code_id, store_id, ", |
|
|
|
"create_time, consume_time, ", |
|
|
|
"create_time, consume_time, ", |
|
|
|
"use_end_time, qr_code_img, ", |
|
|
|
"use_end_time, qr_code_img, ", |
|
|
@ -48,7 +49,8 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
"source_id, ext_1, ext_2, ", |
|
|
|
"source_id, ext_1, ext_2, ", |
|
|
|
"ext_3, ext_4)", |
|
|
|
"ext_3, ext_4)", |
|
|
|
"values (#{merchantId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{merchantId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{couponCodeId,jdbcType=BIGINT}, #{storeId,jdbcType=BIGINT}, ", |
|
|
|
"#{couponCodeId,jdbcType=BIGINT}, #{storeId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{useEndTime,jdbcType=TIMESTAMP}, #{qrCodeImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{useEndTime,jdbcType=TIMESTAMP}, #{qrCodeImg,jdbcType=VARCHAR}, ", |
|
|
@ -69,6 +71,7 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@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="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
@ -89,7 +92,7 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, merchant_id, coupon_id, user_id, order_id, child_order_id, coupon_code_id, ", |
|
|
|
"id, merchant_id, coupon_id, user_id, user_phone, order_id, child_order_id, coupon_code_id, ", |
|
|
|
"store_id, create_time, consume_time, use_end_time, qr_code_img, `status`, `source`, ", |
|
|
|
"store_id, create_time, consume_time, use_end_time, qr_code_img, `status`, `source`, ", |
|
|
|
"source_id, ext_1, ext_2, ext_3, ext_4", |
|
|
|
"source_id, ext_1, ext_2, ext_3, ext_4", |
|
|
|
"from high_user_coupon", |
|
|
|
"from high_user_coupon", |
|
|
@ -100,6 +103,7 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@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="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
@ -132,6 +136,7 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
"set merchant_id = #{merchantId,jdbcType=BIGINT},", |
|
|
|
"set merchant_id = #{merchantId,jdbcType=BIGINT},", |
|
|
|
"coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
"coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"coupon_code_id = #{couponCodeId,jdbcType=BIGINT},", |
|
|
|
"coupon_code_id = #{couponCodeId,jdbcType=BIGINT},", |
|
|
|