|
|
@ -52,7 +52,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"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)", |
|
|
|
"goods_type_id, brand_id)", |
|
|
|
"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}, ", |
|
|
@ -66,7 +66,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"#{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})" |
|
|
|
"#{goodsTypeId,jdbcType=INTEGER}, #{brandId,jdbcType=INTEGER})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighCoupon record); |
|
|
|
int insert(HighCoupon record); |
|
|
@ -106,8 +106,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
@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="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="brandId", property="brandid", jdbcType=JdbcType.INTEGER) |
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER) |
|
|
|
}) |
|
|
|
}) |
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
|
|
|
|
|
|
|
@ -117,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, goodsTypeId, brandId", |
|
|
|
"display_area, coupon_source, distributor, goods_type_id, brand_id", |
|
|
|
"from high_coupon", |
|
|
|
"from high_coupon", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -151,8 +151,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
@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="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="brandId", property="brandid", jdbcType=JdbcType.INTEGER) |
|
|
|
@Result(column="brand_id", property="brandId", jdbcType=JdbcType.INTEGER) |
|
|
|
}) |
|
|
|
}) |
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
@ -195,8 +195,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"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},", |
|
|
|
"goods_type_id = #{goodsTypeId,jdbcType=INTEGER},", |
|
|
|
"brandId = #{brandid,jdbcType=INTEGER}", |
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER}", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|