|
|
|
@ -45,14 +45,14 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"third_order_no, mer_id, ", |
|
|
|
|
"mer_name, user_id, ", |
|
|
|
|
"user_phone, goods_id, ", |
|
|
|
|
"img, goods_name, ", |
|
|
|
|
"goods_type_id, goods_type_name, ", |
|
|
|
|
"goods_brand_id, goods_brand_name, ", |
|
|
|
|
"goods_specs_id, goods_specs_name, ", |
|
|
|
|
"goods_specs_original_price, goods_count, ", |
|
|
|
|
"total_price, total_deduction_price, ", |
|
|
|
|
"coupon_discount_price, integral_discount_price, ", |
|
|
|
|
"platform_code, pay_real_price, ", |
|
|
|
|
"platform_code, img, ", |
|
|
|
|
"goods_name, goods_type_id, ", |
|
|
|
|
"goods_type_name, goods_brand_id, ", |
|
|
|
|
"goods_brand_name, goods_specs_id, ", |
|
|
|
|
"goods_specs_name, goods_specs_original_price, ", |
|
|
|
|
"goods_count, total_price, ", |
|
|
|
|
"total_deduction_price, coupon_discount_price, ", |
|
|
|
|
"integral_discount_price, pay_real_price, ", |
|
|
|
|
"pay_channel, pay_serial_no, ", |
|
|
|
|
"pay_type, `status`, ", |
|
|
|
|
"logistics_status_desc, logistics_status, ", |
|
|
|
@ -60,21 +60,23 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"cancel_time, refund_time, ", |
|
|
|
|
"finish_time, update_time, ", |
|
|
|
|
"exception_status, exception_msg, ", |
|
|
|
|
"ext_1, ext_2, ext_3)", |
|
|
|
|
"surplus_refund_count, surplus_refund_price, ", |
|
|
|
|
"surplus_refund_integral, ext_1, ", |
|
|
|
|
"ext_2, ext_3)", |
|
|
|
|
"values (#{logisticsNo,jdbcType=VARCHAR}, #{freightPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{deliveryAddressId,jdbcType=BIGINT}, #{deliveryAddress,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{thirdOrderNo,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{merName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{img,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsTypeId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsBrandId,jdbcType=BIGINT}, #{goodsBrandName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsSpecsId,jdbcType=BIGINT}, #{goodsSpecsName,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsSpecsOriginalPrice,jdbcType=DECIMAL}, #{goodsCount,jdbcType=INTEGER}, ", |
|
|
|
|
"#{totalPrice,jdbcType=DECIMAL}, #{totalDeductionPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{couponDiscountPrice,jdbcType=DECIMAL}, #{integralDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{platformCode,jdbcType=VARCHAR}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{platformCode,jdbcType=VARCHAR}, #{img,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{goodsName,jdbcType=VARCHAR}, #{goodsTypeId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{goodsTypeName,jdbcType=VARCHAR}, #{goodsBrandId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{goodsBrandName,jdbcType=VARCHAR}, #{goodsSpecsId,jdbcType=BIGINT}, ", |
|
|
|
|
"#{goodsSpecsName,jdbcType=VARCHAR}, #{goodsSpecsOriginalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{goodsCount,jdbcType=INTEGER}, #{totalPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{totalDeductionPrice,jdbcType=DECIMAL}, #{couponDiscountPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{integralDiscountPrice,jdbcType=DECIMAL}, #{payRealPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{payChannel,jdbcType=INTEGER}, #{paySerialNo,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{payType,jdbcType=INTEGER}, #{status,jdbcType=INTEGER}, ", |
|
|
|
|
"#{logisticsStatusDesc,jdbcType=VARCHAR}, #{logisticsStatus,jdbcType=VARCHAR}, ", |
|
|
|
@ -82,7 +84,9 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"#{cancelTime,jdbcType=TIMESTAMP}, #{refundTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{finishTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, ", |
|
|
|
|
"#{exceptionStatus,jdbcType=BIT}, #{exceptionMsg,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext1,jdbcType=VARCHAR}, #{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
"#{surplusRefundCount,jdbcType=INTEGER}, #{surplusRefundPrice,jdbcType=DECIMAL}, ", |
|
|
|
|
"#{surplusRefundIntegral,jdbcType=BIGINT}, #{ext1,jdbcType=VARCHAR}, ", |
|
|
|
|
"#{ext2,jdbcType=VARCHAR}, #{ext3,jdbcType=VARCHAR})" |
|
|
|
|
}) |
|
|
|
|
@Options(useGeneratedKeys=true,keyProperty="id") |
|
|
|
|
int insert(BsOrderGoods record); |
|
|
|
@ -106,6 +110,7 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -120,7 +125,6 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -136,6 +140,9 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="exception_msg", property="exceptionMsg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="surplus_refund_count", property="surplusRefundCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@ -146,12 +153,13 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"select", |
|
|
|
|
"id, logistics_no, freight_price, delivery_address_id, delivery_address, order_no, ", |
|
|
|
|
"child_order_no, third_order_no, mer_id, mer_name, user_id, user_phone, goods_id, ", |
|
|
|
|
"img, goods_name, goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, ", |
|
|
|
|
"goods_specs_id, goods_specs_name, goods_specs_original_price, goods_count, total_price, ", |
|
|
|
|
"total_deduction_price, coupon_discount_price, integral_discount_price, platform_code, ", |
|
|
|
|
"platform_code, img, goods_name, goods_type_id, goods_type_name, goods_brand_id, ", |
|
|
|
|
"goods_brand_name, goods_specs_id, goods_specs_name, goods_specs_original_price, ", |
|
|
|
|
"goods_count, total_price, total_deduction_price, coupon_discount_price, integral_discount_price, ", |
|
|
|
|
"pay_real_price, pay_channel, pay_serial_no, pay_type, `status`, logistics_status_desc, ", |
|
|
|
|
"logistics_status, create_time, pay_time, cancel_time, refund_time, finish_time, ", |
|
|
|
|
"update_time, exception_status, exception_msg, ext_1, ext_2, ext_3", |
|
|
|
|
"update_time, exception_status, exception_msg, surplus_refund_count, surplus_refund_price, ", |
|
|
|
|
"surplus_refund_integral, ext_1, ext_2, ext_3", |
|
|
|
|
"from bs_order_goods", |
|
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
|
}) |
|
|
|
@ -169,6 +177,7 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="user_phone", property="userPhone", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_id", property="goodsId", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="img", property="img", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_name", property="goodsName", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="goods_type_id", property="goodsTypeId", jdbcType=JdbcType.BIGINT), |
|
|
|
@ -183,7 +192,6 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
@Result(column="total_deduction_price", property="totalDeductionPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="coupon_discount_price", property="couponDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="integral_discount_price", property="integralDiscountPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="platform_code", property="platformCode", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="pay_real_price", property="payRealPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="pay_channel", property="payChannel", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="pay_serial_no", property="paySerialNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@ -199,6 +207,9 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
@Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP), |
|
|
|
|
@Result(column="exception_status", property="exceptionStatus", jdbcType=JdbcType.BIT), |
|
|
|
|
@Result(column="exception_msg", property="exceptionMsg", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="surplus_refund_count", property="surplusRefundCount", jdbcType=JdbcType.INTEGER), |
|
|
|
|
@Result(column="surplus_refund_price", property="surplusRefundPrice", jdbcType=JdbcType.DECIMAL), |
|
|
|
|
@Result(column="surplus_refund_integral", property="surplusRefundIntegral", jdbcType=JdbcType.BIGINT), |
|
|
|
|
@Result(column="ext_1", property="ext1", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_2", property="ext2", jdbcType=JdbcType.VARCHAR), |
|
|
|
|
@Result(column="ext_3", property="ext3", jdbcType=JdbcType.VARCHAR) |
|
|
|
@ -228,6 +239,7 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
|
"user_phone = #{userPhone,jdbcType=VARCHAR},", |
|
|
|
|
"goods_id = #{goodsId,jdbcType=BIGINT},", |
|
|
|
|
"platform_code = #{platformCode,jdbcType=VARCHAR},", |
|
|
|
|
"img = #{img,jdbcType=VARCHAR},", |
|
|
|
|
"goods_name = #{goodsName,jdbcType=VARCHAR},", |
|
|
|
|
"goods_type_id = #{goodsTypeId,jdbcType=BIGINT},", |
|
|
|
@ -242,7 +254,6 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"total_deduction_price = #{totalDeductionPrice,jdbcType=DECIMAL},", |
|
|
|
|
"coupon_discount_price = #{couponDiscountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"integral_discount_price = #{integralDiscountPrice,jdbcType=DECIMAL},", |
|
|
|
|
"platform_code = #{platformCode,jdbcType=VARCHAR},", |
|
|
|
|
"pay_real_price = #{payRealPrice,jdbcType=DECIMAL},", |
|
|
|
|
"pay_channel = #{payChannel,jdbcType=INTEGER},", |
|
|
|
|
"pay_serial_no = #{paySerialNo,jdbcType=VARCHAR},", |
|
|
|
@ -258,6 +269,9 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
|
"update_time = #{updateTime,jdbcType=TIMESTAMP},", |
|
|
|
|
"exception_status = #{exceptionStatus,jdbcType=BIT},", |
|
|
|
|
"exception_msg = #{exceptionMsg,jdbcType=VARCHAR},", |
|
|
|
|
"surplus_refund_count = #{surplusRefundCount,jdbcType=INTEGER},", |
|
|
|
|
"surplus_refund_price = #{surplusRefundPrice,jdbcType=DECIMAL},", |
|
|
|
|
"surplus_refund_integral = #{surplusRefundIntegral,jdbcType=BIGINT},", |
|
|
|
|
"ext_1 = #{ext1,jdbcType=VARCHAR},", |
|
|
|
|
"ext_2 = #{ext2,jdbcType=VARCHAR},", |
|
|
|
|
"ext_3 = #{ext3,jdbcType=VARCHAR}", |
|
|
|
|