|
|
|
@ -41,22 +41,22 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into high_coupon_agent_code (`type`, coupon_agent_id, ", |
|
|
|
|
"coupon_id, agent_id, ", |
|
|
|
|
"coupon_agent_record_id, convert_code, ", |
|
|
|
|
"coupon_code_id, coupon_code, ", |
|
|
|
|
"qr_code, `status`, ", |
|
|
|
|
"remark, create_time, ", |
|
|
|
|
"sales_time, operator_id, ", |
|
|
|
|
"operator_name, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"coupon_agent_record_id, convert_user_phone, ", |
|
|
|
|
"convert_code, coupon_code_id, ", |
|
|
|
|
"coupon_code, qr_code, ", |
|
|
|
|
"`status`, remark, ", |
|
|
|
|
"create_time, sales_time, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{type,jdbcType=INTEGER}, #{couponAgentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponId,jdbcType=BIGINT}, #{agentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponAgentRecordId,jdbcType=BIGINT}, #{convertCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{couponCodeId,jdbcType=BIGINT}, #{couponCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{qrCode,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{salesTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{couponAgentRecordId,jdbcType=BIGINT}, #{convertUserPhone,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{convertCode,jdbcType=VARCHAR}, #{couponCodeId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponCode,jdbcType=VARCHAR}, #{qrCode,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{salesTime,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); |
|
|
|
@ -73,6 +73,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="coupon_agent_record_id", property="couponAgentRecordId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="convert_user_phone", property="convertUserPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="convert_code", property="convertCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -91,9 +92,9 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, `type`, coupon_agent_id, coupon_id, agent_id, coupon_agent_record_id, convert_code, ", |
|
|
|
|
"coupon_code_id, coupon_code, qr_code, `status`, remark, create_time, sales_time, ", |
|
|
|
|
"operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"id, `type`, coupon_agent_id, coupon_id, agent_id, coupon_agent_record_id, convert_user_phone, ", |
|
|
|
|
"convert_code, coupon_code_id, coupon_code, qr_code, `status`, remark, create_time, ", |
|
|
|
|
"sales_time, operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"from high_coupon_agent_code", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -104,6 +105,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Result(column="coupon_id", property="couponId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="agent_id", property="agentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="coupon_agent_record_id", property="couponAgentRecordId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="convert_user_phone", property="convertUserPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="convert_code", property="convertCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="coupon_code_id", property="couponCodeId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -136,6 +138,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
"coupon_id = #{couponId,jdbcType=BIGINT},", |
|
|
|
|
"agent_id = #{agentId,jdbcType=BIGINT},", |
|
|
|
|
"coupon_agent_record_id = #{couponAgentRecordId,jdbcType=BIGINT},", |
|
|
|
|
"convert_user_phone = #{convertUserPhone,jdbcType=VARCHAR},", |
|
|
|
|
"convert_code = #{convertCode,jdbcType=VARCHAR},", |
|
|
|
|
"coupon_code_id = #{couponCodeId,jdbcType=BIGINT},", |
|
|
|
|
"coupon_code = #{couponCode,jdbcType=VARCHAR},", |
|
|
|
|