|
|
@ -45,34 +45,36 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
"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}, #{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); |
|
|
@ -98,6 +100,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), |
|
|
@ -127,11 +130,11 @@ public interface BsOrderCouponMapper extends BsOrderCouponMapperExt { |
|
|
|
"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, user_id, user_phone, goods_id, goods_name, ", |
|
|
|
"goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, goods_specs_id, ", |
|
|
|
"goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, goods_specs_id, ", |
|
|
|
"goods_specs_name, goods_spesc_original_price, goods_vpd_id, goods_vpd_key, goods_vpd_source, ", |
|
|
|
"goods_specs_name, goods_spesc_original_price, goods_spesc_sale_price, goods_vpd_id, ", |
|
|
|
"goods_count, total_price, total_deduction_price, coupon_discount_price, integral_discount_price, ", |
|
|
|
"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}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -151,6 +154,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), |
|
|
@ -201,6 +205,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},", |
|
|
|