|
|
@ -40,39 +40,43 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Insert({ |
|
|
|
@Insert({ |
|
|
|
"insert into bs_order_coupon (order_no, child_order_no, ", |
|
|
|
"insert into bs_order_coupon (order_no, child_order_no, ", |
|
|
|
"mer_id, user_id, user_phone, ", |
|
|
|
"mer_id, platform_code, ", |
|
|
|
|
|
|
|
"user_id, user_phone, ", |
|
|
|
"goods_id, goods_name, ", |
|
|
|
"goods_id, goods_name, ", |
|
|
|
"goods_type_id, goods_type_name, ", |
|
|
|
"goods_type_id, goods_type_name, ", |
|
|
|
"goods_brand_id, goods_brand_name, ", |
|
|
|
"goods_brand_id, goods_brand_name, ", |
|
|
|
"goods_specs_id, goods_specs_name, ", |
|
|
|
"goods_specs_id, goods_specs_name, ", |
|
|
|
"goods_spesc_original_price, goods_vpd_id, ", |
|
|
|
"goods_spesc_original_price, goods_spesc_sale_price, ", |
|
|
|
"goods_vpd_key, goods_vpd_source, ", |
|
|
|
"goods_vpd_id, goods_vpd_key, ", |
|
|
|
"goods_count, total_price, ", |
|
|
|
"goods_vpd_source, goods_count, ", |
|
|
|
"total_deduction_price, coupon_discount_price, ", |
|
|
|
"total_price, total_deduction_price, ", |
|
|
|
"integral_discount_price, pay_real_price, ", |
|
|
|
"coupon_discount_price, integral_discount_price, ", |
|
|
|
"pay_channel, pay_serial_no, ", |
|
|
|
"pay_real_price, pay_channel, ", |
|
|
|
"pay_type, `status`, ", |
|
|
|
"pay_serial_no, pay_type, ", |
|
|
|
"create_time, pay_time, ", |
|
|
|
"`status`, create_time, ", |
|
|
|
"cancel_time, refund_time, ", |
|
|
|
"pay_time, cancel_time, ", |
|
|
|
"finish_time, update_time, ", |
|
|
|
"refund_time, finish_time, ", |
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
"update_time, ext_1, ", |
|
|
|
|
|
|
|
"ext_2, ext_3)", |
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"values (#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{merId,jdbcType=BIGINT}, #{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{merId,jdbcType=BIGINT}, #{platformCode,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{userId,jdbcType=BIGINT}, #{userPhone,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsId,jdbcType=BIGINT}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsBrandId,jdbcType=BIGINT}, #{goodsBrandName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsBrandId,jdbcType=BIGINT}, #{goodsBrandName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsSpecsId,jdbcType=BIGINT}, #{goodsSpecsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsSpecsId,jdbcType=BIGINT}, #{goodsSpecsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsSpescOriginalPrice,jdbcType=DECIMAL}, #{goodsVpdId,jdbcType=BIGINT}, ", |
|
|
|
"#{goodsSpescOriginalPrice,jdbcType=DECIMAL}, #{goodsSpescSalePrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{goodsVpdKey,jdbcType=VARCHAR}, #{goodsVpdSource,jdbcType=INTEGER}, ", |
|
|
|
"#{goodsVpdId,jdbcType=BIGINT}, #{goodsVpdKey,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsCount,jdbcType=INTEGER}, #{totalPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{goodsVpdSource,jdbcType=INTEGER}, #{goodsCount,jdbcType=INTEGER}, ", |
|
|
|
"#{totalDeductionPrice,jdbcType=DECIMAL}, #{couponDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{integralDiscountPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{couponDiscountPrice,jdbcType=DECIMAL}, #{integralDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{payChannel,jdbcType=INTEGER}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{payRealPrice,jdbcType=DECIMAL}, #{payChannel,jdbcType=INTEGER}, ", |
|
|
|
"#{payType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ", |
|
|
|
"#{paySerialNo,jdbcType=VARCHAR}, #{payType,jdbcType=INTEGER}, ", |
|
|
|
"#{createTime,jdbcType=TIMESTAMP}, #{payTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{status,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{payTime,jdbcType=TIMESTAMP}, #{cancelTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{refundTime,jdbcType=TIMESTAMP}, #{finishTime,jdbcType=TIMESTAMP}, ", |
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
"#{updateTime,jdbcType=TIMESTAMP}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
}) |
|
|
|
}) |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
int insert(BsOrderCoupon record); |
|
|
|
int insert(BsOrderCoupon record); |
|
|
@ -87,6 +91,7 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
@ -98,6 +103,7 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
@Result(column="goods_specs_id", property="goodsSpecsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_specs_id", property="goodsSpecsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_specs_name", property="goodsSpecsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_specs_name", property="goodsSpecsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_spesc_original_price", property="goodsSpescOriginalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="goods_spesc_original_price", property="goodsSpescOriginalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="goods_spesc_sale_price", property="goodsSpescSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="goods_vpd_id", property="goodsVpdId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_vpd_id", property="goodsVpdId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_vpd_key", property="goodsVpdKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_vpd_key", property="goodsVpdKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_vpd_source", property="goodsVpdSource", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_vpd_source", property="goodsVpdSource", jdbcType=JdbcType.INTEGER), |
|
|
@ -125,13 +131,13 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
|
|
|
|
|
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, order_no, child_order_no, mer_id, user_id, user_phone, goods_id, goods_name, ", |
|
|
|
"id, order_no, child_order_no, mer_id, platform_code, user_id, user_phone, goods_id, ", |
|
|
|
"goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, goods_specs_id, ", |
|
|
|
"goods_name, goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, ", |
|
|
|
"goods_specs_name, goods_spesc_original_price, goods_vpd_id, goods_vpd_key, goods_vpd_source, ", |
|
|
|
"goods_specs_id, goods_specs_name, goods_spesc_original_price, goods_spesc_sale_price, ", |
|
|
|
"goods_count, total_price, total_deduction_price, coupon_discount_price, integral_discount_price, ", |
|
|
|
"goods_vpd_id, goods_vpd_key, goods_vpd_source, goods_count, total_price, total_deduction_price, ", |
|
|
|
"pay_real_price, pay_channel, pay_serial_no, pay_type, `status`, create_time, ", |
|
|
|
"coupon_discount_price, integral_discount_price, pay_real_price, pay_channel, ", |
|
|
|
"pay_time, cancel_time, refund_time, finish_time, update_time, ext_1, ext_2, ", |
|
|
|
"pay_serial_no, pay_type, `status`, create_time, pay_time, cancel_time, refund_time, ", |
|
|
|
"ext_3", |
|
|
|
"finish_time, update_time, ext_1, ext_2, ext_3", |
|
|
|
"from bs_order_coupon", |
|
|
|
"from bs_order_coupon", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -140,6 +146,7 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="order_no", property="orderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="child_order_no", property="childOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
@ -151,6 +158,7 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
@Result(column="goods_specs_id", property="goodsSpecsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_specs_id", property="goodsSpecsId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_specs_name", property="goodsSpecsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_specs_name", property="goodsSpecsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_spesc_original_price", property="goodsSpescOriginalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="goods_spesc_original_price", property="goodsSpescOriginalPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
|
|
|
@Result(column="goods_spesc_sale_price", property="goodsSpescSalePrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
@Result(column="goods_vpd_id", property="goodsVpdId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_vpd_id", property="goodsVpdId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="goods_vpd_key", property="goodsVpdKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_vpd_key", property="goodsVpdKey", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="goods_vpd_source", property="goodsVpdSource", jdbcType=JdbcType.INTEGER), |
|
|
|
@Result(column="goods_vpd_source", property="goodsVpdSource", jdbcType=JdbcType.INTEGER), |
|
|
@ -190,6 +198,7 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"set order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
"mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
"mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
|
|
|
|
"platform_code = #{platformCode,jdbcType=VARCHAR},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
"goods_id = #{goodsId,jdbcType=BIGINT},", |
|
|
|
"goods_id = #{goodsId,jdbcType=BIGINT},", |
|
|
@ -201,6 +210,7 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
"goods_specs_id = #{goodsSpecsId,jdbcType=BIGINT},", |
|
|
|
"goods_specs_id = #{goodsSpecsId,jdbcType=BIGINT},", |
|
|
|
"goods_specs_name = #{goodsSpecsName,jdbcType=VARCHAR},", |
|
|
|
"goods_specs_name = #{goodsSpecsName,jdbcType=VARCHAR},", |
|
|
|
"goods_spesc_original_price = #{goodsSpescOriginalPrice,jdbcType=DECIMAL},", |
|
|
|
"goods_spesc_original_price = #{goodsSpescOriginalPrice,jdbcType=DECIMAL},", |
|
|
|
|
|
|
|
"goods_spesc_sale_price = #{goodsSpescSalePrice,jdbcType=DECIMAL},", |
|
|
|
"goods_vpd_id = #{goodsVpdId,jdbcType=BIGINT},", |
|
|
|
"goods_vpd_id = #{goodsVpdId,jdbcType=BIGINT},", |
|
|
|
"goods_vpd_key = #{goodsVpdKey,jdbcType=VARCHAR},", |
|
|
|
"goods_vpd_key = #{goodsVpdKey,jdbcType=VARCHAR},", |
|
|
|
"goods_vpd_source = #{goodsVpdSource,jdbcType=INTEGER},", |
|
|
|
"goods_vpd_source = #{goodsVpdSource,jdbcType=INTEGER},", |
|
|
|