|
|
@@ -57,7 +57,7 @@ public interface LifeUserOrderMapper extends BaseMapper<LifeUserOrder> {
|
|
|
"from life_user_order luo\n" +
|
|
|
"left join store_info si on si.id = luo.store_id -- 查询店铺相关 \n" +
|
|
|
"left join life_user lu on lu.id = luo.user_id and lu.delete_flag = 0 -- 查询用户相关 \n" +
|
|
|
- "left join order_coupon_middle ocm on ocm.order_id = luo.id and ocm.delete_flag = 0\n" +
|
|
|
+ "left join order_coupon_middle ocm on ocm.order_id = luo.id \n" +
|
|
|
"left join total_coupon tc on tc.coupon_id = ocm.coupon_id and tc.coupon_type = luo.coupon_type\n" +
|
|
|
"left join store_img simg on simg.id = tc.image_id and simg.delete_flag = 0 \n" +
|
|
|
"left join store_comment sc on sc.business_id = luo.id and sc.delete_flag = 0 and sc.business_type = 5\n" +
|