|
|
@ -53,7 +53,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"ext_3, `status`, display_area, ", |
|
|
|
"ext_3, `status`, display_area, ", |
|
|
|
"coupon_source, distributor, ", |
|
|
|
"coupon_source, distributor, ", |
|
|
|
"goods_type_id, brand_id, ", |
|
|
|
"goods_type_id, brand_id, ", |
|
|
|
"reserve_status, buy_points)", |
|
|
|
"reserve_status, buy_points, ", |
|
|
|
|
|
|
|
"where_post)", |
|
|
|
"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}, ", |
|
|
@ -68,7 +69,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"#{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}, ", |
|
|
|
"#{reserveStatus,jdbcType=BIT}, #{buyPoints,jdbcType=BIT})" |
|
|
|
"#{reserveStatus,jdbcType=BIT}, #{buyPoints,jdbcType=BIT}, ", |
|
|
|
|
|
|
|
"#{wherePost,jdbcType=BIT})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighCoupon record); |
|
|
|
int insert(HighCoupon record); |
|
|
@ -111,7 +113,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="brand_id", property="brandId", 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) |
|
|
|
@Result(column="buy_points", property="buyPoints", jdbcType=JdbcType.BIT), |
|
|
|
|
|
|
|
@Result(column="where_post", property="wherePost", jdbcType=JdbcType.BIT) |
|
|
|
}) |
|
|
|
}) |
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
|
|
|
|
|
|
|
@ -122,7 +125,7 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"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, goods_type_id, brand_id, reserve_status, ", |
|
|
|
"display_area, coupon_source, distributor, goods_type_id, brand_id, reserve_status, ", |
|
|
|
"buy_points", |
|
|
|
"buy_points, where_post", |
|
|
|
"from high_coupon", |
|
|
|
"from high_coupon", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -159,7 +162,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="brand_id", property="brandId", 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) |
|
|
|
@Result(column="buy_points", property="buyPoints", jdbcType=JdbcType.BIT), |
|
|
|
|
|
|
|
@Result(column="where_post", property="wherePost", jdbcType=JdbcType.BIT) |
|
|
|
}) |
|
|
|
}) |
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
|
|
@ -205,7 +209,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
"goods_type_id = #{goodsTypeId,jdbcType=INTEGER},", |
|
|
|
"goods_type_id = #{goodsTypeId,jdbcType=INTEGER},", |
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER},", |
|
|
|
"brand_id = #{brandId,jdbcType=INTEGER},", |
|
|
|
"reserve_status = #{reserveStatus,jdbcType=BIT},", |
|
|
|
"reserve_status = #{reserveStatus,jdbcType=BIT},", |
|
|
|
"buy_points = #{buyPoints,jdbcType=BIT}", |
|
|
|
"buy_points = #{buyPoints,jdbcType=BIT},", |
|
|
|
|
|
|
|
"where_post = #{wherePost,jdbcType=BIT}", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|