Files
sam-manage/routes/console.php
김보곤 0e2ea39328 feat: [barobill] 카드 사용내역 자동 동기화 스케줄러 추가
- BarobillCardSyncService: 전체/테넌트별 카드거래 자동 동기화
- SyncBarobillCardTransactions: artisan 커맨드 (barobill:sync-cards)
- 2시간마다 영업시간(08~22시) 자동 실행
- 신규 거래 자동 등록, 기존 거래 바로빌 원본 필드만 갱신 (사용자 편집 보존)
2026-03-19 19:03:57 +09:00

19 lines
573 B
PHP

<?php
use Illuminate\Foundation\Inspiring;
use Illuminate\Support\Facades\Artisan;
use Illuminate\Support\Facades\Schedule;
Artisan::command('inspire', function () {
$this->comment(Inspiring::quote());
})->purpose('Display an inspiring quote');
// 매일 23:50 자동 결근 처리
Schedule::command('attendance:mark-absent')->dailyAt('23:50');
// 2시간마다 바로빌 카드 사용내역 자동 동기화 (영업시간 08~22시)
Schedule::command('barobill:sync-cards --days=7')
->everyTwoHours()
->between('08:00', '22:00')
->withoutOverlapping();