|
|
|
@ -2416,7 +2416,7 @@ class CourseScheduleService extends BaseApiService |
|
|
|
$personId = $data['person_id'] ?? 0; |
|
|
|
$status = $data['status'] ?? 0; |
|
|
|
$reason = $data['reason'] ?? ''; |
|
|
|
|
|
|
|
$resources_id = $data['resources_id'] ?? 0; |
|
|
|
if (empty($scheduleId) || empty($personId)) { |
|
|
|
return [ |
|
|
|
'code' => 0, |
|
|
|
@ -2432,11 +2432,12 @@ class CourseScheduleService extends BaseApiService |
|
|
|
]; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 开启事务 |
|
|
|
Db::startTrans(); |
|
|
|
|
|
|
|
// 使用内部处理方法 |
|
|
|
$result = $this->processSingleStudentSignIn($scheduleId, $personId, 0, $status, $reason); |
|
|
|
$result = $this->processSingleStudentSignIn($scheduleId, $personId, $resources_id, $status, $reason); |
|
|
|
|
|
|
|
if (!$result['success']) { |
|
|
|
Db::rollback(); |
|
|
|
|