|
|
|
@ -44,19 +44,23 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
"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)", |
|
|
|
|
"`status`, assign_coupon_agent_id, ", |
|
|
|
|
"assign_agent_id, assign_agent_name, ", |
|
|
|
|
"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}, #{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})" |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{assignCouponAgentId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{assignAgentId,jdbcType=BIGINT}, #{assignAgentName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{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); |
|
|
|
@ -79,6 +83,9 @@ 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="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="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -93,8 +100,9 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"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", |
|
|
|
|
"convert_code, coupon_code_id, coupon_code, qr_code, `status`, assign_coupon_agent_id, ", |
|
|
|
|
"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", |
|
|
|
|
"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="qr_code", property="qrCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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="create_time", property="createTime", 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},", |
|
|
|
|
"qr_code = #{qrCode,jdbcType=VARCHAR},", |
|
|
|
|
"`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},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"sales_time = #{salesTime,jdbcType=TIMESTAMP},", |
|
|
|
|