|
@@ -825,6 +825,7 @@ class OrderService extends BaseService
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
$data = $this->model->where(['user_id' => $userId, 'meal_id' => $goodsId, 'mark' => 1])
|
|
$data = $this->model->where(['user_id' => $userId, 'meal_id' => $goodsId, 'mark' => 1])
|
|
|
|
|
+ ->where('main_no', '')
|
|
|
->where('status', '<=', 5)
|
|
->where('status', '<=', 5)
|
|
|
->where('refund_status', '<=', 0)
|
|
->where('refund_status', '<=', 0)
|
|
|
->count('id');
|
|
->count('id');
|