229b09b895
Build & Deploy to K8s / build-and-deploy (push) Failing after 7m14s
Epic A: ai-assistant 디렉토리/Spring 프록시/프론트엔드 메뉴 완전 제거 Epic B: Flyway 도입 + 13 신규 테이블 마이그레이션 Epic C: 9 서비스 + 7 컨트롤러 + LlmClient 추상화 (Java 21/Spring/MyBatis) Epic D: ApiKey 인증 필터 (sk-pipe-* 키 SHA-256 검증) Epic E: OpenClaw 외부 엔진 docker-compose 통합 Epic F: Next.js 7 페이지 + lib/api/aiAgent.ts 이식 Epic G: 화면 그룹/메뉴 등록 마이그레이션 (V014) Epic H: 통합 빌드 검증 - DB: invyone PostgreSQL에 ai_agents/ai_agent_groups/... 13 테이블 + Quartz - 멀티테넌시: 모든 테이블에 company_code 강제 필터 - LLM: Anthropic/OpenAI/Google/Ollama 직접 클라이언트 (Spring AI 미도입) - 스케줄러: Quartz JDBC JobStore (cron 기반) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
631 B
Java
26 lines
631 B
Java
package com.erp.ai.mapper;
|
|
|
|
import com.erp.ai.model.AiAgentUsageLog;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
import java.util.Map;
|
|
|
|
@Mapper
|
|
public interface AiAgentUsageLogMapper {
|
|
int insert(AiAgentUsageLog log);
|
|
|
|
Map<String, Object> getTodayAggregate();
|
|
|
|
Map<String, Object> getMonthAggregate();
|
|
|
|
List<AiAgentUsageLog> list(@Param("limit") int limit, @Param("offset") int offset);
|
|
|
|
int count();
|
|
|
|
List<Map<String, Object>> getDailyUsage(@Param("days") int days);
|
|
|
|
long getMonthTokensByApiKey(@Param("apiKeyId") long apiKeyId);
|
|
}
|