whereNull
This commit is contained in:
parent
0dccbc380b
commit
f83701b303
@ -68,7 +68,7 @@ class CardService extends Service
|
||||
break;
|
||||
|
||||
case 1:
|
||||
$res = OrderCardPartition::selectRaw('DISTINCT(sim) sim, created_at')-whereNull('service_start_at')->whereHas('card', function ($relation) {
|
||||
$res = OrderCardPartition::selectRaw('DISTINCT(sim) sim, created_at')->whereNull('service_start_at')->whereHas('card', function ($relation) {
|
||||
$relation->whereNull('cancelled_at');
|
||||
})->where('created_at', '>=', Carbon::now()->subMonths(6))->orderBy('created_at', 'desc')->paginate($limit);
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user