|
|
|
@ -45,16 +45,18 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
"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)", |
|
|
|
|
"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}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{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") |
|
|
|
|
int insert(HighCouponAgentCode record); |
|
|
|
@ -78,6 +80,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@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="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -89,8 +92,8 @@ 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, operator_id, ", |
|
|
|
|
"operator_name, ext_1, ext_2, ext_3", |
|
|
|
|
"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}" |
|
|
|
|
}) |
|
|
|
@ -108,6 +111,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
@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="sales_time", property="salesTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="operator_id", property="operatorId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="operator_name", property="operatorName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -139,6 +143,7 @@ public interface HighCouponAgentCodeMapper extends HighCouponAgentCodeMapperExt |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"remark = #{remark,jdbcType=VARCHAR},", |
|
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"sales_time = #{salesTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"operator_id = #{operatorId,jdbcType=BIGINT},", |
|
|
|
|
"operator_name = #{operatorName,jdbcType=VARCHAR},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|