|
|
@ -40,19 +40,21 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_coupon_code (coupon_id, merchant_id, ", |
|
|
|
"insert into high_coupon_code (coupon_id, merchant_id, ", |
|
|
|
"order_id, sales_code, ", |
|
|
|
"store_id, child_order_id, ", |
|
|
|
"sales_end_time, use_end_time, ", |
|
|
|
"sales_code, sales_end_time, ", |
|
|
|
"create_time, receive_time, ", |
|
|
|
"use_end_time, create_time, ", |
|
|
|
"consume_time, `status`, ", |
|
|
|
"receive_time, consume_time, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"`status`, operator_id, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"operator_name, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{couponId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{couponId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
"#{orderId,jdbcType=BIGINT}, #{salesCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{salesCode,jdbcType=VARCHAR}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{useEndTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{consumeTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{receiveTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighCouponCode record); |
|
|
|
int insert(HighCouponCode record); |
|
|
@ -66,7 +68,8 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="sales_code", property="salesCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sales_code", property="salesCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -84,9 +87,9 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, coupon_id, merchant_id, order_id, sales_code, sales_end_time, use_end_time, ", |
|
|
|
"id, coupon_id, merchant_id, store_id, child_order_id, sales_code, sales_end_time, ", |
|
|
|
"create_time, receive_time, consume_time, `status`, operator_id, operator_name, ", |
|
|
|
"use_end_time, create_time, receive_time, consume_time, `status`, operator_id, ", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"operator_name, ext_1, ext_2, ext_3", |
|
|
|
"from high_coupon_code", |
|
|
|
"from high_coupon_code", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -94,7 +97,8 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="merchant_id", property="merchantId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="sales_code", property="salesCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sales_code", property="salesCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="use_end_time", property="useEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -123,7 +127,8 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
"update high_coupon_code", |
|
|
|
"update high_coupon_code", |
|
|
|
"set coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
"set coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
"merchant_id = #{merchantId,jdbcType=BIGINT},", |
|
|
|
"merchant_id = #{merchantId,jdbcType=BIGINT},", |
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"sales_code = #{salesCode,jdbcType=VARCHAR},", |
|
|
|
"sales_code = #{salesCode,jdbcType=VARCHAR},", |
|
|
|
"sales_end_time = #{salesEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"sales_end_time = #{salesEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"use_end_time = #{useEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"use_end_time = #{useEndTime,jdbcType=TIMESTAMP},", |
|
|
|