package com.zioinfo.hrm.performance;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

@Mapper
public interface PerformanceMapper {
    List<Map<String, Object>> findReviews(@Param("year") int year, @Param("empId") Long empId,
                                           @Param("status") String status,
                                           @Param("offset") int offset, @Param("limit") int limit);
    long countReviews(@Param("year") int year, @Param("empId") Long empId, @Param("status") String status);
    Map<String, Object> findReviewById(@Param("id") Long id);
    int insertReview(Map<String, Object> review);
    int updateReview(Map<String, Object> review);
    int updateReviewStatus(@Param("id") Long id, @Param("status") String status);
    List<Map<String, Object>> findGoals(@Param("empId") Long empId, @Param("year") int year);
    int insertGoal(Map<String, Object> goal);
    int updateGoal(Map<String, Object> goal);
    List<Map<String, Object>> findCompetencies(@Param("empId") Long empId, @Param("year") int year);
    int insertCompetencyScore(Map<String, Object> score);
}
