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