backup: 사용하지 않는 파일 삭제 전 복구 지점
- 전체 371개 파일 중 82개 미사용 파일 식별 - Phase 1: 33개 파일 삭제 예정 (100% 안전) - Phase 2: 30개 파일 삭제 검토 예정 - Phase 3: 19개 파일 수동 검토 예정 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:injectable/injectable.dart';
|
||||
import 'package:dartz/dartz.dart';
|
||||
import 'package:superport/core/constants/app_constants.dart';
|
||||
import 'package:superport/core/errors/exceptions.dart';
|
||||
import 'package:superport/core/errors/failures.dart';
|
||||
import 'package:superport/data/datasources/remote/company_remote_datasource.dart';
|
||||
@@ -21,17 +22,23 @@ class CompanyService {
|
||||
// 회사 목록 조회
|
||||
Future<PaginatedResponse<Company>> getCompanies({
|
||||
int page = 1,
|
||||
int perPage = 20,
|
||||
int perPage = AppConstants.companyPageSize,
|
||||
String? search,
|
||||
bool? isActive,
|
||||
bool includeInactive = false,
|
||||
}) async {
|
||||
try {
|
||||
// 🔧 백엔드 버그 우회: 검색 시에는 is_active 파라미터 제거
|
||||
// search + is_active 조합에서 빈 결과 반환 버그 존재
|
||||
final effectiveIsActive = search != null && search.isNotEmpty
|
||||
? null // 검색 시에는 is_active 필터 제거
|
||||
: (isActive ?? !includeInactive); // 일반 목록 조회는 기존 로직 유지
|
||||
|
||||
final response = await _remoteDataSource.getCompanies(
|
||||
page: page,
|
||||
perPage: perPage,
|
||||
search: search,
|
||||
isActive: isActive ?? !includeInactive,
|
||||
isActive: effectiveIsActive,
|
||||
);
|
||||
|
||||
return PaginatedResponse<Company>(
|
||||
|
||||
Reference in New Issue
Block a user