|
|
@@ -42,6 +42,7 @@
|
|
|
<result column="quan_id" property="quanId"/>
|
|
|
<result column="total_refund_time" property="totalRefundTime"/>
|
|
|
<result column="business_status" property="businessStatus"/>
|
|
|
+ <result column="type" property="type"/>
|
|
|
|
|
|
<result column="business_type" property="businessType"/>
|
|
|
<result column="collect_num" property="collectNum"/>
|
|
|
@@ -50,6 +51,7 @@
|
|
|
<result column="end_time" property="endTime"/>
|
|
|
<result column="end_date" property="endDate"/>
|
|
|
<result column="reservation_rules" property="reservationRules"/>
|
|
|
+ <result column="original_price" property="originalPrice"/>
|
|
|
|
|
|
<collection property="orderCouponMiddleList" ofType="shop.alien.entity.store.vo.OrderCouponMiddleVo">
|
|
|
<id column="ocmId" property="id" />
|
|
|
@@ -65,18 +67,18 @@
|
|
|
<!-- 查询用户订单详情 -->
|
|
|
<select id="queryUserOrderDetail" resultMap="BaseResultMap">
|
|
|
with total_coupon as(
|
|
|
- select id coupon_id,2 coupon_type,lgbm.group_name coupon_name,preferential_price offprice,SUBSTRING_INDEX(image_id, ',', 1) AS image_id,
|
|
|
+ select id coupon_id,2 coupon_type,lgbm.group_name coupon_name,preferential_price offprice,original_price, SUBSTRING_INDEX(image_id, ',', 1) AS image_id,
|
|
|
effective_date_type,effective_date_value,use_rules,reservation_rules,applicable_num,quota_type,quota_value,inventory_num single_qty
|
|
|
from life_group_buy_main lgbm where lgbm.delete_flag = 0
|
|
|
union all
|
|
|
- select id coupon_id,1 coupon_type,lc.name coupon_name,lc.offprice offprice,SUBSTRING_INDEX(image_path, ',', 1) AS image_id,
|
|
|
+ select id coupon_id,1 coupon_type,lc.name coupon_name,lc.offprice offprice,price original_price,SUBSTRING_INDEX(image_path, ',', 1) AS image_id,
|
|
|
0 effective_date_type,expiration_date effective_date_value,use_rule use_rules,reservation_rules,applicable_num,1 quota_type,buy_limit quota_value,single_qty
|
|
|
from life_coupon lc where lc.delete_flag = 0
|
|
|
)
|
|
|
select luo.id,luo.order_no,luo.created_time , luo.price ,luo.final_price
|
|
|
,luo.pay_method,luo.buy_time,luo.cancel_time,luo.pay_time,luo.finish_time,luo.status order_status,luo.quan_id,luo.refund_time total_refund_time,
|
|
|
tc.*,
|
|
|
- ldc.nominal_value,
|
|
|
+ ldc.nominal_value,ldc.type,
|
|
|
lu.user_phone,lu.user_name,lu.id user_id,
|
|
|
ocm.id ocmId,ocm.status,ocm.coupon_code,ocm.refund_time,ocm.refund_reason,ocm.price refundPrice,
|
|
|
si.id store_id,si.store_name,si.commission_rate,si.store_address,si.store_tel,si.business_status,si.collect_num,
|