|
|
@ -41,14 +41,14 @@ 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, ", |
|
|
|
"use_end_time, `status`, ", |
|
|
|
"create_time, use_end_time, ", |
|
|
|
"ext_1, ext_2, ext_3, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"ext_4)", |
|
|
|
"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}, ", |
|
|
|
"#{useEndTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext4,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,6 +64,7 @@ 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="create_time", property="createTime", 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="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), |
|
|
@ -75,8 +76,8 @@ public interface HighUserCouponMapper extends HighUserCouponMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, merchant_id, coupon_id, user_id, coupon_code_id, use_end_time, `status`, ", |
|
|
|
"id, merchant_id, coupon_id, user_id, coupon_code_id, create_time, use_end_time, ", |
|
|
|
"ext_1, ext_2, ext_3, ext_4", |
|
|
|
"`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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -86,6 +87,7 @@ 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="create_time", property="createTime", 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="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), |
|
|
@ -110,6 +112,7 @@ 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},", |
|
|
|
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"use_end_time = #{useEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"use_end_time = #{useEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|