package com.mortals.xhx.module.staff.service;
import com.mortals.framework.exception.AppException;
import com.mortals.framework.service.ICRUDService;
import com.mortals.xhx.module.staff.model.StaffPerformStatEntity;
import com.mortals.xhx.module.staff.dao.StaffPerformStatDao;
import com.mortals.xhx.module.staff.model.vo.StaffSummaryTopQuery;

import java.util.List;

/**
* StaffPerformStatService
*
* 员工绩效统计 service接口
*
* @author zxfei
* @date 2023-05-17
*/
public interface StaffPerformStatService extends ICRUDService<StaffPerformStatEntity,Long>{

    StaffPerformStatDao getDao();

    /**
     * 获取部门个人绩效排行榜
     * @param query
     * @return
     */
    List<StaffPerformStatEntity> getSummaryTopList(StaffSummaryTopQuery query) throws AppException;

    /**
     * 获取异常分值统计
     * @param query
     * @return
     */
    List<StaffPerformStatEntity> getExceptionList(StaffSummaryTopQuery query) throws AppException;
}