作者 周海龙

合并分支 'zhl' 到 'master'

添加搜索条件



查看合并请求 !3341
... ... @@ -359,6 +359,7 @@ class GeoQuestionRes extends Command
$project_ids = GeoQuestion::where('status', GeoQuestion::STATUS_OPEN)
->where(function ($query){
$query->where('next_time', '<=', date('Y-m-d'))
->orWhereNull('current_time')
->orWhereNull('next_time');
})
->pluck('project_id')
... ... @@ -370,6 +371,7 @@ class GeoQuestionRes extends Command
->whereIn('project_id', $project_ids)
->where(function ($query){
$query->where('current_time', '<>', date('Y-m-d'))
->orWhereNull('current_time')
->orWhereNull('next_time');
})
->orderBy('next_time', 'asc')
... ...