package com.erp.ai.mapper;

import com.erp.ai.model.AiAnalysisLog;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

@Mapper
public interface AiAnalysisLogMapper {
    int insert(AiAnalysisLog log);

    List<AiAnalysisLog> getRecentLogs(@Param("groupId") long groupId,
                                      @Param("days") int days,
                                      @Param("limit") int limit);

    BigDecimal getAverageAccuracy(@Param("groupId") long groupId);
}
