|
|
@ -42,21 +42,21 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
"insert into high_coupon_code (coupon_id, merchant_id, ", |
|
|
|
"insert into high_coupon_code (coupon_id, merchant_id, ", |
|
|
|
"is_assign_agent, agent_id, ", |
|
|
|
"is_assign_agent, agent_id, ", |
|
|
|
"store_id, child_order_id, ", |
|
|
|
"store_id, child_order_id, ", |
|
|
|
"sales_code, sales_end_time, ", |
|
|
|
"code_key, sales_code, ", |
|
|
|
"use_end_time, create_time, ", |
|
|
|
"sales_end_time, use_end_time, ", |
|
|
|
"receive_time, consume_time, ", |
|
|
|
"create_time, receive_time, ", |
|
|
|
"`status`, operator_id, ", |
|
|
|
"consume_time, `status`, ", |
|
|
|
"operator_name, ext_1, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"ext_2, ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{couponId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
"values (#{couponId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
"#{isAssignAgent,jdbcType=BIT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"#{isAssignAgent,jdbcType=BIT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{storeId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
"#{salesCode,jdbcType=VARCHAR}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{codeKey,jdbcType=VARCHAR}, #{salesCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{useEndTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{receiveTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{consumeTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,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); |
|
|
@ -74,6 +74,7 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", 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="code_key", property="codeKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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), |
|
|
@ -92,8 +93,8 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, coupon_id, merchant_id, is_assign_agent, agent_id, store_id, child_order_id, ", |
|
|
|
"id, coupon_id, merchant_id, is_assign_agent, agent_id, store_id, child_order_id, ", |
|
|
|
"sales_code, sales_end_time, use_end_time, create_time, receive_time, consume_time, ", |
|
|
|
"code_key, sales_code, sales_end_time, use_end_time, create_time, receive_time, ", |
|
|
|
"`status`, operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
"consume_time, `status`, operator_id, 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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -105,6 +106,7 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="store_id", property="storeId", 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="code_key", property="codeKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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), |
|
|
@ -137,6 +139,7 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"code_key = #{codeKey,jdbcType=VARCHAR},", |
|
|
|
"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},", |
|
|
@ -152,4 +155,4 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
int updateByPrimaryKey(HighCouponCode record); |
|
|
|
int updateByPrimaryKey(HighCouponCode record); |
|
|
|
} |
|
|
|
} |
|
|
|