style: Pint 포맷팅 적용
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Http\Response;
|
||||
use Illuminate\Support\Facades\Log;
|
||||
|
||||
/**
|
||||
* 바로빌 사용량조회 API 컨트롤러
|
||||
@@ -44,7 +43,7 @@ public function index(Request $request): JsonResponse|Response
|
||||
$apiEndDate = str_replace('-', '', $endDate);
|
||||
|
||||
// 테넌트 필터링
|
||||
$filterTenantId = (!$isHeadquarters && !$allTenants && $tenantId) ? $tenantId : null;
|
||||
$filterTenantId = (! $isHeadquarters && ! $allTenants && $tenantId) ? $tenantId : null;
|
||||
|
||||
// 사용량 목록 조회
|
||||
$usageList = $this->usageService->getUsageList($apiStartDate, $apiEndDate, $filterTenantId);
|
||||
@@ -117,7 +116,7 @@ public function stats(Request $request): JsonResponse|Response
|
||||
$apiEndDate = str_replace('-', '', $endDate);
|
||||
|
||||
// 테넌트 필터링
|
||||
$filterTenantId = (!$isHeadquarters && !$allTenants && $tenantId) ? $tenantId : null;
|
||||
$filterTenantId = (! $isHeadquarters && ! $allTenants && $tenantId) ? $tenantId : null;
|
||||
|
||||
// 사용량 목록 조회 및 통계 집계
|
||||
$usageList = $this->usageService->getUsageList($apiStartDate, $apiEndDate, $filterTenantId);
|
||||
@@ -145,7 +144,7 @@ public function show(Request $request, int $memberId): JsonResponse|Response
|
||||
{
|
||||
$member = BarobillMember::with('tenant:id,company_name')->find($memberId);
|
||||
|
||||
if (!$member) {
|
||||
if (! $member) {
|
||||
return response()->json([
|
||||
'success' => false,
|
||||
'message' => '회원사를 찾을 수 없습니다.',
|
||||
@@ -209,7 +208,7 @@ public function export(Request $request)
|
||||
$apiEndDate = str_replace('-', '', $endDate);
|
||||
|
||||
// 테넌트 필터링
|
||||
$filterTenantId = (!$isHeadquarters && !$allTenants && $tenantId) ? $tenantId : null;
|
||||
$filterTenantId = (! $isHeadquarters && ! $allTenants && $tenantId) ? $tenantId : null;
|
||||
|
||||
// 사용량 목록 조회
|
||||
$usageList = $this->usageService->getUsageList($apiStartDate, $apiEndDate, $filterTenantId);
|
||||
@@ -227,7 +226,7 @@ public function export(Request $request)
|
||||
$file = fopen('php://output', 'w');
|
||||
|
||||
// BOM for Excel UTF-8
|
||||
fprintf($file, chr(0xEF) . chr(0xBB) . chr(0xBF));
|
||||
fprintf($file, chr(0xEF).chr(0xBB).chr(0xBF));
|
||||
|
||||
// 헤더
|
||||
$headerRow = ['사업자번호', '상호', '바로빌ID', '세금계산서(건)', '계좌조회(건)', '카드내역(건)', '홈텍스(건)', '과금액(원)'];
|
||||
|
||||
Reference in New Issue
Block a user