|
|
|
@ -41,24 +41,24 @@ public interface BsDiscountMapper extends BsDiscountMapperExt { |
|
|
|
|
@Insert({ |
|
|
|
|
"insert into bs_discount (discount_no, discount_name, ", |
|
|
|
|
"discount_type, discount_condition, ", |
|
|
|
|
"discount_price, use_scope, ", |
|
|
|
|
"receive_expiration_date, start_time, ", |
|
|
|
|
"end_time, reality_end_time, ", |
|
|
|
|
"`status`, create_time, ", |
|
|
|
|
"create_user_type, create_user_id, ", |
|
|
|
|
"create_user_name, create_user_mer_no, ", |
|
|
|
|
"update_time, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"discount_price, overlay_discount, ", |
|
|
|
|
"use_scope, receive_expiration_date, ", |
|
|
|
|
"start_time, end_time, ", |
|
|
|
|
"reality_end_time, `status`, ", |
|
|
|
|
"create_time, create_user_type, ", |
|
|
|
|
"create_user_id, create_user_name, ", |
|
|
|
|
"create_user_mer_no, update_time, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"values (#{discountNo,jdbcType=VARCHAR}, #{discountName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{discountType,jdbcType=INTEGER}, #{discountCondition,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{discountPrice,jdbcType=DECIMAL}, #{useScope,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{receiveExpirationDate,jdbcType=INTEGER}, #{startTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{endTime,jdbcType=TIMESTAMP}, #{realityEndTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{createUserType,jdbcType=INTEGER}, #{createUserId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{createUserName,jdbcType=VARCHAR}, #{createUserMerNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{discountPrice,jdbcType=DECIMAL}, #{overlayDiscount,jdbcType=BIT}, ", |
|
|
|
|
"#{useScope,jdbcType=VARCHAR}, #{receiveExpirationDate,jdbcType=INTEGER}, ", |
|
|
|
|
"#{startTime,jdbcType=TIMESTAMP}, #{endTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{realityEndTime,jdbcType=TIMESTAMP}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{createUserType,jdbcType=INTEGER}, ", |
|
|
|
|
"#{createUserId,jdbcType=BIGINT}, #{createUserName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{createUserMerNo,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsDiscount record); |
|
|
|
@ -75,6 +75,7 @@ public interface BsDiscountMapper extends BsDiscountMapperExt { |
|
|
|
|
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_condition", property="discountCondition", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="overlay_discount", property="overlayDiscount", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="use_scope", property="useScope", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receive_expiration_date", property="receiveExpirationDate", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="start_time", property="startTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -96,9 +97,9 @@ public interface BsDiscountMapper extends BsDiscountMapperExt { |
|
|
|
|
@Select({ |
|
|
|
|
"select", |
|
|
|
|
"id, discount_no, discount_name, discount_type, discount_condition, discount_price, ", |
|
|
|
|
"use_scope, receive_expiration_date, start_time, end_time, reality_end_time, ", |
|
|
|
|
"`status`, create_time, create_user_type, create_user_id, create_user_name, create_user_mer_no, ", |
|
|
|
|
"update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"overlay_discount, use_scope, receive_expiration_date, start_time, end_time, ", |
|
|
|
|
"reality_end_time, `status`, create_time, create_user_type, create_user_id, create_user_name, ", |
|
|
|
|
"create_user_mer_no, update_time, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_discount", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -109,6 +110,7 @@ public interface BsDiscountMapper extends BsDiscountMapperExt { |
|
|
|
|
@Result(column="discount_type", property="discountType", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="discount_condition", property="discountCondition", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="discount_price", property="discountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="overlay_discount", property="overlayDiscount", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="use_scope", property="useScope", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="receive_expiration_date", property="receiveExpirationDate", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="start_time", property="startTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
@ -143,6 +145,7 @@ public interface BsDiscountMapper extends BsDiscountMapperExt { |
|
|
|
|
"discount_type = #{discountType,jdbcType=INTEGER},", |
|
|
|
|
"discount_condition = #{discountCondition,jdbcType=DECIMAL},", |
|
|
|
|
"discount_price = #{discountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"overlay_discount = #{overlayDiscount,jdbcType=BIT},", |
|
|
|
|
"use_scope = #{useScope,jdbcType=VARCHAR},", |
|
|
|
|
"receive_expiration_date = #{receiveExpirationDate,jdbcType=INTEGER},", |
|
|
|
|
"start_time = #{startTime,jdbcType=TIMESTAMP},", |
|
|
|
|