|
@@ -90,7 +90,8 @@
|
|
|
left join store_info si on si.id = luo.store_id and si.delete_flag = 0
|
|
left join store_info si on si.id = luo.store_id and si.delete_flag = 0
|
|
|
left join order_coupon_middle ocm on ocm.order_id = luo.id and ocm.delete_flag = 0
|
|
left join order_coupon_middle ocm on ocm.order_id = luo.id and ocm.delete_flag = 0
|
|
|
left join total_coupon tc on tc.coupon_id = ocm.coupon_id and tc.coupon_type = luo.coupon_type
|
|
left join total_coupon tc on tc.coupon_id = ocm.coupon_id and tc.coupon_type = luo.coupon_type
|
|
|
- left join life_discount_coupon ldc on ldc.id = luo.quan_id and ldc.delete_flag = 0
|
|
|
|
|
|
|
+ left join life_discount_coupon_user ldcu on ldcu.id = luo.quan_id and ldcu.delete_flag = 0
|
|
|
|
|
+ left join life_discount_coupon ldc on ldc.id = ldcu.coupon_id and ldc.delete_flag = 0
|
|
|
left join life_user lu on lu.id = luo.user_id and lu.delete_flag = 0
|
|
left join life_user lu on lu.id = luo.user_id and lu.delete_flag = 0
|
|
|
left join store_img simg on simg.id = tc.image_id and simg.delete_flag = 0
|
|
left join store_img simg on simg.id = tc.image_id and simg.delete_flag = 0
|
|
|
left join store_business_info sbi on sbi.store_id = si.id and sbi.delete_flag = 0
|
|
left join store_business_info sbi on sbi.store_id = si.id and sbi.delete_flag = 0
|