|
|
|
@ -42,15 +42,17 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
"insert into high_coupon_agent_code (coupon_agent_id, coupon_id, ", |
|
|
|
|
"agent_id, coupon_code_id, ", |
|
|
|
|
"coupon_code, qr_code, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"`status`, remark, ", |
|
|
|
|
"create_time, operator_id, ", |
|
|
|
|
"operator_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{couponAgentId,jdbcType=BIGINT}, #{couponId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{agentId,jdbcType=BIGINT}, #{couponCodeId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponCode,jdbcType=VARCHAR}, #{qrCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighCouponAgentCode record); |
|
|
|
@ -69,6 +71,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -81,7 +84,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, coupon_agent_id, coupon_id, agent_id, coupon_code_id, coupon_code, qr_code, ", |
|
|
|
|
"`status`, create_time, operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"`status`, remark, create_time, operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_coupon_agent_code", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -94,6 +97,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -121,6 +125,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
"coupon_code = #{couponCode,jdbcType=VARCHAR},", |
|
|
|
|
"qr_code = #{qrCode,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
|