- BarobillCardSyncService: 전체/테넌트별 카드거래 자동 동기화 - SyncBarobillCardTransactions: artisan 커맨드 (barobill:sync-cards) - 2시간마다 영업시간(08~22시) 자동 실행 - 신규 거래 자동 등록, 기존 거래 바로빌 원본 필드만 갱신 (사용자 편집 보존)
19 lines
573 B
PHP
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();
|