|
|
|
@ -41,22 +41,24 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_coupon_code (coupon_id, merchant_id, ", |
|
|
|
|
"is_assign_agent, agent_id, ", |
|
|
|
|
"store_id, child_order_id, ", |
|
|
|
|
"code_key, sales_code, ", |
|
|
|
|
"sales_end_time, use_end_time, ", |
|
|
|
|
"create_time, receive_time, ", |
|
|
|
|
"consume_time, `status`, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"store_id, store_name, ", |
|
|
|
|
"child_order_id, code_key, ", |
|
|
|
|
"sales_code, sales_end_time, ", |
|
|
|
|
"use_end_time, create_time, ", |
|
|
|
|
"receive_time, consume_time, ", |
|
|
|
|
"`status`, operator_id, ", |
|
|
|
|
"operator_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{couponId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{isAssignAgent,jdbcType=BIT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{storeId,jdbcType=BIGINT}, #{childOrderId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{codeKey,jdbcType=VARCHAR}, #{salesCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{useEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{receiveTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{consumeTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{storeId,jdbcType=BIGINT}, #{storeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{childOrderId,jdbcType=BIGINT}, #{codeKey,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{salesCode,jdbcType=VARCHAR}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{useEndTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{receiveTime,jdbcType=TIMESTAMP}, #{consumeTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighCouponCode record); |
|
|
|
@ -73,6 +75,7 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
@Result(column="is_assign_agent", property="isAssignAgent", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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), |
|
|
|
@ -92,9 +95,10 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, coupon_id, merchant_id, is_assign_agent, agent_id, store_id, child_order_id, ", |
|
|
|
|
"code_key, sales_code, sales_end_time, use_end_time, create_time, receive_time, ", |
|
|
|
|
"consume_time, `status`, operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"id, coupon_id, merchant_id, is_assign_agent, agent_id, store_id, store_name, ", |
|
|
|
|
"child_order_id, code_key, sales_code, sales_end_time, use_end_time, create_time, ", |
|
|
|
|
"receive_time, consume_time, `status`, operator_id, operator_name, ext_1, ext_2, ", |
|
|
|
|
"ext_3", |
|
|
|
|
"from high_coupon_code", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -105,6 +109,7 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
@Result(column="is_assign_agent", property="isAssignAgent", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="store_id", property="storeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="store_name", property="storeName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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), |
|
|
|
@ -138,6 +143,7 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
"is_assign_agent = #{isAssignAgent,jdbcType=BIT},", |
|
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
|
"store_id = #{storeId,jdbcType=BIGINT},", |
|
|
|
|
"store_name = #{storeName,jdbcType=VARCHAR},", |
|
|
|
|
"child_order_id = #{childOrderId,jdbcType=BIGINT},", |
|
|
|
|
"code_key = #{codeKey,jdbcType=VARCHAR},", |
|
|
|
|
"sales_code = #{salesCode,jdbcType=VARCHAR},", |
|
|
|
@ -155,4 +161,4 @@ public interface HighCouponCodeMapper extends HighCouponCodeMapperExt { |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(HighCouponCode record); |
|
|
|
|
} |
|
|
|
|
} |