正在显示
1 个修改的文件
包含
2 行增加
和
0 行删除
| @@ -359,6 +359,7 @@ class GeoQuestionRes extends Command | @@ -359,6 +359,7 @@ class GeoQuestionRes extends Command | ||
| 359 | $project_ids = GeoQuestion::where('status', GeoQuestion::STATUS_OPEN) | 359 | $project_ids = GeoQuestion::where('status', GeoQuestion::STATUS_OPEN) |
| 360 | ->where(function ($query){ | 360 | ->where(function ($query){ |
| 361 | $query->where('next_time', '<=', date('Y-m-d')) | 361 | $query->where('next_time', '<=', date('Y-m-d')) |
| 362 | + ->orWhereNull('current_time') | ||
| 362 | ->orWhereNull('next_time'); | 363 | ->orWhereNull('next_time'); |
| 363 | }) | 364 | }) |
| 364 | ->pluck('project_id') | 365 | ->pluck('project_id') |
| @@ -370,6 +371,7 @@ class GeoQuestionRes extends Command | @@ -370,6 +371,7 @@ class GeoQuestionRes extends Command | ||
| 370 | ->whereIn('project_id', $project_ids) | 371 | ->whereIn('project_id', $project_ids) |
| 371 | ->where(function ($query){ | 372 | ->where(function ($query){ |
| 372 | $query->where('current_time', '<>', date('Y-m-d')) | 373 | $query->where('current_time', '<>', date('Y-m-d')) |
| 374 | + ->orWhereNull('current_time') | ||
| 373 | ->orWhereNull('next_time'); | 375 | ->orWhereNull('next_time'); |
| 374 | }) | 376 | }) |
| 375 | ->orderBy('next_time', 'asc') | 377 | ->orderBy('next_time', 'asc') |
-
请 注册 或 登录 后发表评论