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