|
|
|
@ -79,6 +79,7 @@ class ColumnCharts extends Chart
@@ -79,6 +79,7 @@ class ColumnCharts extends Chart
|
|
|
|
|
"status" => AdmissionNewStudents::STATUS_YES, |
|
|
|
|
"is_new_student" => AdmissionNewStudents::IS_NEW_STUDENT_YES, |
|
|
|
|
])->whereIn("speciality_id", $specialityIds)->get("idCard")->toArray(); |
|
|
|
|
|
|
|
|
|
if(!empty($importStudents)){ |
|
|
|
|
$idcardList = array_column($importStudents, "idCard"); |
|
|
|
|
//根据身份证集取出已注册的用户 |
|
|
|
@ -88,8 +89,7 @@ class ColumnCharts extends Chart
@@ -88,8 +89,7 @@ class ColumnCharts extends Chart
|
|
|
|
|
//线下迎新有几步 |
|
|
|
|
$stepCount = OfflineStep::query()->where("status", OfflineStep::STATUS_YES)->count(); |
|
|
|
|
//检测是否存在线下报到步骤,存在则视为已到校(实际报到学生) |
|
|
|
|
$completedOfflineStep = CompletedOfflineStep::query()->whereIn("unique_number", $userList)->where("annual_session", $config->data)->where("step_id",">=",$stepCount)->count(); |
|
|
|
|
|
|
|
|
|
$completedOfflineStep = CompletedOfflineStep::query()->where("annual_session", $config->data)->whereIn("unique_number", $userList)->distinct("unique_number")->count(); |
|
|
|
|
//报到率 |
|
|
|
|
if($completedOfflineStep == 0 || count($importStudents) == 0){ |
|
|
|
|
$registering = 0; |
|
|
|
|