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