|
|
|
|
@ -312,6 +312,12 @@ class UserController extends BaseController
|
|
|
|
|
if (isset($all['is_chart'])) {
|
|
|
|
|
$q->where('is_chart', $all['is_chart']);
|
|
|
|
|
}
|
|
|
|
|
// from=跟班学员 时与 ganbu_total 口径一致:仅统计 is_count_genban=1 的课程类型
|
|
|
|
|
if (!empty($all['from']) && strpos((string) $all['from'], '跟班学员') !== false) {
|
|
|
|
|
$q->whereHas('typeDetail', function ($q) {
|
|
|
|
|
$q->where('is_count_genban', 1);
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
// 不通过的需要全部不通过
|
|
|
|
|
|