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