|
|
@ -44,21 +44,21 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
"discount_name, discount_img, ", |
|
|
|
"discount_name, discount_img, ", |
|
|
|
"discount_carousel_img, discount_type, ", |
|
|
|
"discount_carousel_img, discount_type, ", |
|
|
|
"discount_condition, discount_price, ", |
|
|
|
"discount_condition, discount_price, ", |
|
|
|
"effective_day, sales_end_time, ", |
|
|
|
"receive_number, effective_day, ", |
|
|
|
"create_time, update_time, ", |
|
|
|
"sales_end_time, create_time, ", |
|
|
|
"operator_id, operator_name, ", |
|
|
|
"update_time, operator_id, ", |
|
|
|
"`status`, ext_1, ext_2, ", |
|
|
|
"operator_name, `status`, ", |
|
|
|
"ext_3)", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{discountKey,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{companyId,jdbcType=BIGINT}, #{discountKey,jdbcType=VARCHAR}, ", |
|
|
|
"#{usingRange,jdbcType=INTEGER}, #{useScope,jdbcType=INTEGER}, ", |
|
|
|
"#{usingRange,jdbcType=INTEGER}, #{useScope,jdbcType=INTEGER}, ", |
|
|
|
"#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountName,jdbcType=VARCHAR}, #{discountImg,jdbcType=VARCHAR}, ", |
|
|
|
"#{discountCarouselImg,jdbcType=VARCHAR}, #{discountType,jdbcType=INTEGER}, ", |
|
|
|
"#{discountCarouselImg,jdbcType=VARCHAR}, #{discountType,jdbcType=INTEGER}, ", |
|
|
|
"#{discountCondition,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{discountCondition,jdbcType=DECIMAL}, #{discountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{effectiveDay,jdbcType=INTEGER}, #{salesEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{receiveNumber,jdbcType=INTEGER}, #{effectiveDay,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{salesEndTime,jdbcType=TIMESTAMP}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{operatorId,jdbcType=BIGINT}, #{operatorName,jdbcType=VARCHAR}, ", |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{operatorId,jdbcType=BIGINT}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, ", |
|
|
|
"#{operatorName,jdbcType=VARCHAR}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{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); |
|
|
@ -80,6 +80,7 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_condition", property="discountCondition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount_condition", property="discountCondition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="receive_number", property="receiveNumber", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="effective_day", property="effectiveDay", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="effective_day", property="effectiveDay", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -96,9 +97,9 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, company_id, discount_key, using_range, use_scope, discount_name, discount_img, ", |
|
|
|
"id, company_id, discount_key, using_range, use_scope, discount_name, discount_img, ", |
|
|
|
"discount_carousel_img, discount_type, discount_condition, discount_price, effective_day, ", |
|
|
|
"discount_carousel_img, discount_type, discount_condition, discount_price, receive_number, ", |
|
|
|
"sales_end_time, create_time, update_time, operator_id, operator_name, `status`, ", |
|
|
|
"effective_day, sales_end_time, create_time, update_time, operator_id, operator_name, ", |
|
|
|
"ext_1, ext_2, ext_3", |
|
|
|
"`status`, ext_1, ext_2, ext_3", |
|
|
|
"from high_discount", |
|
|
|
"from high_discount", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -114,6 +115,7 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="discount_condition", property="discountCondition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount_condition", property="discountCondition", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="receive_number", property="receiveNumber", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="effective_day", property="effectiveDay", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="effective_day", property="effectiveDay", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="sales_end_time", property="salesEndTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
@ -148,6 +150,7 @@ public interface HighDiscountMapper extends HighDiscountMapperExt { |
|
|
|
"discount_type = #{discountType,jdbcType=INTEGER},", |
|
|
|
"discount_type = #{discountType,jdbcType=INTEGER},", |
|
|
|
"discount_condition = #{discountCondition,jdbcType=DECIMAL},", |
|
|
|
"discount_condition = #{discountCondition,jdbcType=DECIMAL},", |
|
|
|
"discount_price = #{discountPrice,jdbcType=DECIMAL},", |
|
|
|
"discount_price = #{discountPrice,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"receive_number = #{receiveNumber,jdbcType=INTEGER},", |
|
|
|
"effective_day = #{effectiveDay,jdbcType=INTEGER},", |
|
|
|
"effective_day = #{effectiveDay,jdbcType=INTEGER},", |
|
|
|
"sales_end_time = #{salesEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"sales_end_time = #{salesEndTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|
"create_time = #{createTime,jdbcType=TIMESTAMP},", |
|
|
|