|
|
@ -44,19 +44,23 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
"coupon_agent_record_id, convert_user_phone, ", |
|
|
|
"coupon_agent_record_id, convert_user_phone, ", |
|
|
|
"convert_code, coupon_code_id, ", |
|
|
|
"convert_code, coupon_code_id, ", |
|
|
|
"coupon_code, qr_code, ", |
|
|
|
"coupon_code, qr_code, ", |
|
|
|
"`status`, remark, ", |
|
|
|
"`status`, assign_coupon_agent_id, ", |
|
|
|
"create_time, sales_time, ", |
|
|
|
"assign_agent_id, assign_agent_name, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"remark, create_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"sales_time, operator_id, ", |
|
|
|
|
|
|
|
"operator_name, 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}, #{convertUserPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{couponAgentRecordId,jdbcType=BIGINT}, #{convertUserPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{convertCode,jdbcType=VARCHAR}, #{couponCodeId,jdbcType=BIGINT}, ", |
|
|
|
"#{convertCode,jdbcType=VARCHAR}, #{couponCodeId,jdbcType=BIGINT}, ", |
|
|
|
"#{couponCode,jdbcType=VARCHAR}, #{qrCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{couponCode,jdbcType=VARCHAR}, #{qrCode,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{remark,jdbcType=VARCHAR}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{assignCouponAgentId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{salesTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{assignAgentId,jdbcType=BIGINT}, #{assignAgentName,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{remark,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{salesTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{operatorName,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); |
|
|
@ -79,6 +83,9 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="assign_coupon_agent_id", property="assignCouponAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="assign_agent_id", property="assignAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="assign_agent_name", property="assignAgentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -93,8 +100,9 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, `type`, coupon_agent_id, coupon_id, agent_id, coupon_agent_record_id, convert_user_phone, ", |
|
|
|
"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, ", |
|
|
|
"convert_code, coupon_code_id, coupon_code, qr_code, `status`, assign_coupon_agent_id, ", |
|
|
|
"sales_time, operator_id, operator_name, ext_1, ext_2, ext_3", |
|
|
|
"assign_agent_id, assign_agent_name, remark, create_time, 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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -111,6 +119,9 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="coupon_code", property="couponCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="assign_coupon_agent_id", property="assignCouponAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="assign_agent_id", property="assignAgentId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="assign_agent_name", property="assignAgentName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="remark", property="remark", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -144,6 +155,9 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
"coupon_code = #{couponCode,jdbcType=VARCHAR},", |
|
|
|
"coupon_code = #{couponCode,jdbcType=VARCHAR},", |
|
|
|
"qr_code = #{qrCode,jdbcType=VARCHAR},", |
|
|
|
"qr_code = #{qrCode,jdbcType=VARCHAR},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"assign_coupon_agent_id = #{assignCouponAgentId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"assign_agent_id = #{assignAgentId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"assign_agent_name = #{assignAgentName,jdbcType=VARCHAR},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"sales_time = #{salesTime,jdbcType=TIMESTAMP},", |
|
|
|
"sales_time = #{salesTime,jdbcType=TIMESTAMP},", |
|
|
|