|
|
|
@ -39,18 +39,18 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt |
|
|
|
|
int deleteByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_coupon_code_other (`type`, coupon_agent_code_id, ", |
|
|
|
|
"order_id, child_order_id, ", |
|
|
|
|
"cou_type_code, cou_no, ", |
|
|
|
|
"`status`, active_time, ", |
|
|
|
|
"insert into high_coupon_code_other (`type`, discount_agent_code_id, ", |
|
|
|
|
"coupon_agent_code_id, order_id, ", |
|
|
|
|
"child_order_id, cou_type_code, ", |
|
|
|
|
"cou_no, `status`, active_time, ", |
|
|
|
|
"valid_start_date, valid_end_date, ", |
|
|
|
|
"use_time, station_code, ", |
|
|
|
|
"station_name, create_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{couponAgentCodeId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{orderId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couTypeCode,jdbcType=VARCHAR}, #{couNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{activeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{discountAgentCodeId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponAgentCodeId,jdbcType=BIGINT}, #{orderId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{childOrderId,jdbcType=BIGINT}, #{couTypeCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{couNo,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{activeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{validStartDate,jdbcType=TIMESTAMP}, #{validEndDate,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{useTime,jdbcType=TIMESTAMP}, #{stationCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{stationName,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
@ -67,6 +67,7 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_agent_code_id", property="discountAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="coupon_agent_code_id", property="couponAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -88,15 +89,16 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `type`, coupon_agent_code_id, order_id, child_order_id, cou_type_code, cou_no, ", |
|
|
|
|
"`status`, active_time, valid_start_date, valid_end_date, use_time, station_code, ", |
|
|
|
|
"station_name, create_time, ext_1, ext_2, ext_3", |
|
|
|
|
"id, `type`, discount_agent_code_id, coupon_agent_code_id, order_id, child_order_id, ", |
|
|
|
|
"cou_type_code, cou_no, `status`, active_time, valid_start_date, valid_end_date, ", |
|
|
|
|
"use_time, station_code, station_name, create_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_coupon_code_other", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
@Results({ |
|
|
|
|
@Result(column="id", property="id", jdbcType=JdbcType.BIGINT, id=true), |
|
|
|
|
@Result(column="type", property="type", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_agent_code_id", property="discountAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="coupon_agent_code_id", property="couponAgentCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="order_id", property="orderId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="child_order_id", property="childOrderId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -128,6 +130,7 @@ public interface HighCouponCodeOtherMapper extends HighCouponCodeOtherMapperExt |
|
|
|
|
@Update({ |
|
|
|
|
"update high_coupon_code_other", |
|
|
|
|
"set `type` = #{type,jdbcType=INTEGER},", |
|
|
|
|
"discount_agent_code_id = #{discountAgentCodeId,jdbcType=BIGINT},", |
|
|
|
|
"coupon_agent_code_id = #{couponAgentCodeId,jdbcType=BIGINT},", |
|
|
|
|
"order_id = #{orderId,jdbcType=BIGINT},", |
|
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
|