|
|
|
@ -50,7 +50,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"create_time, update_time, ", |
|
|
|
|
"operator_id, operator_name, ", |
|
|
|
|
"pay_type, ext_1, ext_2, ", |
|
|
|
|
"ext_3, `status`, display_area)", |
|
|
|
|
"ext_3, `status`, display_area, ", |
|
|
|
|
"coupon_source)", |
|
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{merchantId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{couponKey,jdbcType=VARCHAR}, #{couponName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{couponPrice,jdbcType=DECIMAL}, #{couponImg,jdbcType=VARCHAR}, ", |
|
|
|
@ -62,7 +63,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,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})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(HighCoupon record); |
|
|
|
@ -99,7 +101,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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="display_area", property="displayArea", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER) |
|
|
|
|
}) |
|
|
|
|
List<HighCoupon> selectByExample(HighCouponExample example); |
|
|
|
|
|
|
|
|
@ -109,7 +112,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", |
|
|
|
|
"display_area, coupon_source", |
|
|
|
|
"from high_coupon", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -140,7 +143,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@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="display_area", property="displayArea", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="coupon_source", property="couponSource", jdbcType=JdbcType.INTEGER) |
|
|
|
|
}) |
|
|
|
|
HighCoupon selectByPrimaryKey(Long id); |
|
|
|
|
|
|
|
|
@ -180,7 +184,8 @@ public interface HighCouponMapper extends HighCouponMapperExt { |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR},", |
|
|
|
|
"`status` = #{status,jdbcType=INTEGER},", |
|
|
|
|
"display_area = #{displayArea,jdbcType=INTEGER}", |
|
|
|
|
"display_area = #{displayArea,jdbcType=INTEGER},", |
|
|
|
|
"coupon_source = #{couponSource,jdbcType=INTEGER}", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
|
int updateByPrimaryKey(HighCoupon record); |
|
|
|
|