|
|
@ -42,7 +42,8 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
"insert into bs_order_goods (logistics_no, freight_price, ", |
|
|
|
"insert into bs_order_goods (logistics_no, freight_price, ", |
|
|
|
"delivery_address_id, delivery_address, ", |
|
|
|
"delivery_address_id, delivery_address, ", |
|
|
|
"order_no, child_order_no, ", |
|
|
|
"order_no, child_order_no, ", |
|
|
|
"mer_id, mer_name, user_id, ", |
|
|
|
"third_order_no, mer_id, ", |
|
|
|
|
|
|
|
"mer_name, user_id, ", |
|
|
|
"user_phone, goods_id, ", |
|
|
|
"user_phone, goods_id, ", |
|
|
|
"img, goods_name, ", |
|
|
|
"img, goods_name, ", |
|
|
|
"goods_type_id, goods_type_name, ", |
|
|
|
"goods_type_id, goods_type_name, ", |
|
|
@ -63,7 +64,8 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
"values (#{logisticsNo,jdbcType=VARCHAR}, #{freightPrice,jdbcType=DECIMAL}, ", |
|
|
|
"values (#{logisticsNo,jdbcType=VARCHAR}, #{freightPrice,jdbcType=DECIMAL}, ", |
|
|
|
"#{deliveryAddressId,jdbcType=BIGINT}, #{deliveryAddress,jdbcType=VARCHAR}, ", |
|
|
|
"#{deliveryAddressId,jdbcType=BIGINT}, #{deliveryAddress,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{orderNo,jdbcType=VARCHAR}, #{childOrderNo,jdbcType=VARCHAR}, ", |
|
|
|
"#{merId,jdbcType=BIGINT}, #{merName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{thirdOrderNo,jdbcType=VARCHAR}, #{merId,jdbcType=BIGINT}, ", |
|
|
|
|
|
|
|
"#{merName,jdbcType=VARCHAR}, #{userId,jdbcType=BIGINT}, ", |
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
"#{userPhone,jdbcType=VARCHAR}, #{goodsId,jdbcType=BIGINT}, ", |
|
|
|
"#{img,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{img,jdbcType=VARCHAR}, #{goodsName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", |
|
|
|
"#{goodsTypeId,jdbcType=BIGINT}, #{goodsTypeName,jdbcType=VARCHAR}, ", |
|
|
@ -98,6 +100,7 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
@Result(column="delivery_address", property="deliveryAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="delivery_address", property="deliveryAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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="third_order_no", property="thirdOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
@ -142,13 +145,13 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
@Select({ |
|
|
|
@Select({ |
|
|
|
"select", |
|
|
|
"select", |
|
|
|
"id, logistics_no, freight_price, delivery_address_id, delivery_address, order_no, ", |
|
|
|
"id, logistics_no, freight_price, delivery_address_id, delivery_address, order_no, ", |
|
|
|
"child_order_no, mer_id, mer_name, user_id, user_phone, goods_id, img, goods_name, ", |
|
|
|
"child_order_no, third_order_no, mer_id, mer_name, user_id, user_phone, goods_id, ", |
|
|
|
"goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, goods_specs_id, ", |
|
|
|
"img, goods_name, goods_type_id, goods_type_name, goods_brand_id, goods_brand_name, ", |
|
|
|
"goods_specs_name, goods_specs_original_price, goods_count, total_price, total_deduction_price, ", |
|
|
|
"goods_specs_id, goods_specs_name, goods_specs_original_price, goods_count, total_price, ", |
|
|
|
"coupon_discount_price, integral_discount_price, platform_code, pay_real_price, ", |
|
|
|
"total_deduction_price, coupon_discount_price, integral_discount_price, platform_code, ", |
|
|
|
"pay_channel, pay_serial_no, pay_type, `status`, logistics_status_desc, logistics_status, ", |
|
|
|
"pay_real_price, pay_channel, pay_serial_no, pay_type, `status`, logistics_status_desc, ", |
|
|
|
"create_time, pay_time, cancel_time, refund_time, finish_time, update_time, exception_status, ", |
|
|
|
"logistics_status, create_time, pay_time, cancel_time, refund_time, finish_time, ", |
|
|
|
"exception_msg, ext_1, ext_2, ext_3", |
|
|
|
"update_time, exception_status, exception_msg, ext_1, ext_2, ext_3", |
|
|
|
"from bs_order_goods", |
|
|
|
"from bs_order_goods", |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
"where id = #{id,jdbcType=BIGINT}" |
|
|
|
}) |
|
|
|
}) |
|
|
@ -160,6 +163,7 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
@Result(column="delivery_address", property="deliveryAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="delivery_address", property="deliveryAddress", jdbcType=JdbcType.VARCHAR), |
|
|
|
@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="third_order_no", property="thirdOrderNo", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_id", property="merId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="mer_name", property="merName", jdbcType=JdbcType.VARCHAR), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
|
@Result(column="user_id", property="userId", jdbcType=JdbcType.BIGINT), |
|
|
@ -218,6 +222,7 @@ public interface BsOrderGoodsMapper extends BsOrderGoodsMapperExt { |
|
|
|
"delivery_address = #{deliveryAddress,jdbcType=VARCHAR},", |
|
|
|
"delivery_address = #{deliveryAddress,jdbcType=VARCHAR},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"order_no = #{orderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
"child_order_no = #{childOrderNo,jdbcType=VARCHAR},", |
|
|
|
|
|
|
|
"third_order_no = #{thirdOrderNo,jdbcType=VARCHAR},", |
|
|
|
"mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
"mer_id = #{merId,jdbcType=BIGINT},", |
|
|
|
"mer_name = #{merName,jdbcType=VARCHAR},", |
|
|
|
"mer_name = #{merName,jdbcType=VARCHAR},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|
"user_id = #{userId,jdbcType=BIGINT},", |
|
|
|