|
|
|
@ -51,7 +51,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"pay_type, ext_1, ext_2, ", |
|
|
|
|
"ext_3, `status`, display_area, ", |
|
|
|
|
"coupon_source)", |
|
|
|
|
"coupon_source, distributor)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponKey,jdbcType=VARCHAR}, #{couponName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{couponPrice,jdbcType=DECIMAL}, #{couponImg,jdbcType=VARCHAR}, ", |
|
|
|
@ -64,7 +64,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payType,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext3,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{displayArea,jdbcType=INTEGER}, ", |
|
|
|
|
"#{couponSource,jdbcType=INTEGER})" |
|
|
|
|
"#{couponSource,jdbcType=INTEGER}, #{distributor,jdbcType=INTEGER})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighCoupon record); |
|
|
|
@ -102,7 +102,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="display_area", property="displayArea", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER) |
|
|
|
|
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER) |
|
|
|
|
}) |
|
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
|
|
|
|
|
@ -112,7 +113,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"coupon_carousel_img, coupon_desc, coupon_type, sales_end_time, recycle_day, ", |
|
|
|
|
"limit_number, sales_price, discount_price, sales_count, is_present, create_time, ", |
|
|
|
|
"update_time, operator_id, operator_name, pay_type, ext_1, ext_2, ext_3, `status`, ", |
|
|
|
|
"display_area, coupon_source", |
|
|
|
|
"display_area, coupon_source, distributor", |
|
|
|
|
"from high_coupon", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -144,7 +145,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="status", property="status", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="display_area", property="displayArea", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER) |
|
|
|
|
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER) |
|
|
|
|
}) |
|
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
@ -185,7 +187,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"display_area = #{displayArea,jdbcType=INTEGER},", |
|
|
|
|
"coupon_source = #{couponSource,jdbcType=INTEGER}", |
|
|
|
|
"coupon_source = #{couponSource,jdbcType=INTEGER},", |
|
|
|
|
"distributor = #{distributor,jdbcType=INTEGER}", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|
|