|
|
|
@ -53,7 +53,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"ext_3, `status`, display_area, ", |
|
|
|
|
"coupon_source, distributor, ", |
|
|
|
|
"goods_type_id, brand_id, ", |
|
|
|
|
"reserve_status)", |
|
|
|
|
"reserve_status, buy_points)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponKey,jdbcType=VARCHAR}, #{couponName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{couponPrice,jdbcType=DECIMAL}, #{couponImg,jdbcType=VARCHAR}, ", |
|
|
|
@ -68,7 +68,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"#{ext3,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, #{displayArea,jdbcType=INTEGER}, ", |
|
|
|
|
"#{couponSource,jdbcType=INTEGER}, #{distributor,jdbcType=INTEGER}, ", |
|
|
|
|
"#{goodsTypeId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER}, ", |
|
|
|
|
"#{reserveStatus,jdbcType=BIT})" |
|
|
|
|
"#{reserveStatus,jdbcType=BIT}, #{buyPoints,jdbcType=BIT})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighCoupon record); |
|
|
|
@ -110,7 +110,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
@Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="reserve_status", property="reserveStatus", jdbcType=JdbcType.BIT) |
|
|
|
|
@Result(column="reserve_status", property="reserveStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="buy_points", property="buyPoints", jdbcType=JdbcType.BIT) |
|
|
|
|
}) |
|
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
|
|
|
|
|
@ -120,7 +121,8 @@ 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, distributor, goods_type_id, brand_id, reserve_status", |
|
|
|
|
"display_area, coupon_source, distributor, goods_type_id, brand_id, reserve_status, ", |
|
|
|
|
"buy_points", |
|
|
|
|
"from high_coupon", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -156,7 +158,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
@Result(column="distributor", property="distributor", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="reserve_status", property="reserveStatus", jdbcType=JdbcType.BIT) |
|
|
|
|
@Result(column="reserve_status", property="reserveStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="buy_points", property="buyPoints", jdbcType=JdbcType.BIT) |
|
|
|
|
}) |
|
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
@ -201,7 +204,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"distributor = #{distributor,jdbcType=INTEGER},", |
|
|
|
|
"goods_type_id = #{goodsTypeId,jdbcType=INTEGER},", |
|
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER},", |
|
|
|
|
"reserve_status = #{reserveStatus,jdbcType=BIT}", |
|
|
|
|
"reserve_status = #{reserveStatus,jdbcType=BIT},", |
|
|
|
|
"buy_points = #{buyPoints,jdbcType=BIT}", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|
|