package com.ga.core.mapper.commission;

import com.ga.core.vo.commission.AgentGradeEvaluationResp;
import com.ga.core.vo.commission.AgentGradeEvaluationSearchParam;
import com.ga.core.vo.commission.AgentGradeEvaluationVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * agent_grade_evaluation Mapper.
 * 설계사 등급평가 원장: 월별 실적점수 기반 등급 산정 결과.
 */
@Mapper
public interface AgentGradeEvaluationMapper {

    AgentGradeEvaluationResp selectById(@Param("evalId") Long evalId);

    List<AgentGradeEvaluationResp> selectList(AgentGradeEvaluationSearchParam param);

    int insert(AgentGradeEvaluationVO vo);

    /**
     * 등급 반영 상태 변경 (EVALUATED → APPLIED).
     */
    int updateStatus(@Param("evalId") Long evalId, @Param("status") String status);

    int delete(@Param("evalId") Long evalId);
}
