admin EmployeeService.is_sign

main
panliang 2024-05-11 15:45:01 +08:00
parent 3ee46efb5d
commit c9b8a3a969
1 changed files with 2 additions and 0 deletions

View File

@ -99,12 +99,14 @@ class EmployeeService extends BaseService
'leave_at' => $options['leave_at'] ?? now(),
'store_id' => 0,
'employee_status' => EmployeeStatus::Offline,
'is_sign' => 0,
]);
} else {
$user->update([
'join_at' => now(),
'leave_at' => null,
'employee_status' => EmployeeStatus::Online,
'is_sign' => 1,
]);
}