|
|
@ -40,23 +40,25 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into high_discount (company_id, discount_key, ", |
|
|
|
"insert into high_discount (company_id, discount_key, ", |
|
|
|
"using_range, discount_name, ", |
|
|
|
"using_range, use_scope, ", |
|
|
|
"discount_img, discount_carousel_img, ", |
|
|
|
"discount_name, discount_img, ", |
|
|
|
"discount_type, discount_condition, ", |
|
|
|
"discount_carousel_img, discount_type, ", |
|
|
|
"discount_price, effective_day, ", |
|
|
|
"discount_condition, discount_price, ", |
|
|
|
"sales_end_time, create_time, ", |
|
|
|
"effective_day, sales_end_time, ", |
|
|
|
"update_time, operator_id, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"operator_name, `status`, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
|
|
|
|
"ext_3)", |
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{discountKey,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{discountKey,jdbcType=VARCHAR}, ", |
|
|
|
"#{usingRange,jdbcType=INTEGER}, #{discountName,jdbcType=VARCHAR}, ", |
|
|
|
"#{usingRange,jdbcType=INTEGER}, #{useScope,jdbcType=INTEGER}, ", |
|
|
|
"#{discountImg,jdbcType=VARCHAR}, #{discountCarouselImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ", |
|
|
|
"#{discountCarouselImg,jdbcType=VARCHAR}, #{discountType,jdbcType=INTEGER}, ", |
|
|
|
"#{discountPrice,jdbcType=DECIMAL}, #{effectiveDay,jdbcType=INTEGER}, ", |
|
|
|
"#{discountCondition,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{effectiveDay,jdbcType=INTEGER}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(HighDiscount record); |
|
|
|
int insert(HighDiscount record); |
|
|
@ -71,6 +73,7 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_key", property="discountKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_key", property="discountKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="using_range", property="usingRange", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="using_range", property="usingRange", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="use_scope", property="useScope", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_carousel_img", property="discountCarouselImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_carousel_img", property="discountCarouselImg", jdbcType=JdbcType.VARCHAR), |
|
|
@ -92,10 +95,10 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, company_id, discount_key, using_range, discount_name, discount_img, discount_carousel_img, ", |
|
|
|
"id, company_id, discount_key, using_range, use_scope, discount_name, discount_img, ", |
|
|
|
"discount_type, discount_condition, discount_price, effective_day, sales_end_time, ", |
|
|
|
"discount_carousel_img, discount_type, discount_condition, discount_price, effective_day, ", |
|
|
|
"create_time, update_time, operator_id, operator_name, `status`, ext_1, ext_2, ", |
|
|
|
"sales_end_time, create_time, update_time, operator_id, operator_name, `status`, ", |
|
|
|
"ext_3", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"from high_discount", |
|
|
|
"from high_discount", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -104,6 +107,7 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="company_id", property="companyId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="discount_key", property="discountKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_key", property="discountKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="using_range", property="usingRange", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="using_range", property="usingRange", jdbcType=JdbcType.INTEGER), |
|
|
|
|
|
|
|
@Result(column="use_scope", property="useScope", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_name", property="discountName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_img", property="discountImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_carousel_img", property="discountCarouselImg", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="discount_carousel_img", property="discountCarouselImg", jdbcType=JdbcType.VARCHAR), |
|
|
@ -137,6 +141,7 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
"set company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"set company_id = #{companyId,jdbcType=BIGINT},", |
|
|
|
"discount_key = #{discountKey,jdbcType=VARCHAR},", |
|
|
|
"discount_key = #{discountKey,jdbcType=VARCHAR},", |
|
|
|
"using_range = #{usingRange,jdbcType=INTEGER},", |
|
|
|
"using_range = #{usingRange,jdbcType=INTEGER},", |
|
|
|
|
|
|
|
"use_scope = #{useScope,jdbcType=INTEGER},", |
|
|
|
"discount_name = #{discountName,jdbcType=VARCHAR},", |
|
|
|
"discount_name = #{discountName,jdbcType=VARCHAR},", |
|
|
|
"discount_img = #{discountImg,jdbcType=VARCHAR},", |
|
|
|
"discount_img = #{discountImg,jdbcType=VARCHAR},", |
|
|
|
"discount_carousel_img = #{discountCarouselImg,jdbcType=VARCHAR},", |
|
|
|
"discount_carousel_img = #{discountCarouselImg,jdbcType=VARCHAR},", |
|
|
|