package com.bonus.system.dept.dao;

import com.bonus.system.dept.entity.EightMembersVacancyVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

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

/**
 * @className:EightMembersVacancyDao
 * @author:cwchen
 * @date:2025-02-10-13:41
 * @version:1.0
 * @description:八大员缺员兼职-数据库层
 */
@Repository(value = "EightMembersVacancyDao")
public interface EightMembersVacancyDao {

    /**
     * 八大员缺员兼职查询-列表查询
     * @param vo
     * @return List<EightMembersVacancyVo>
     * @author cwchen
     * @date 2025/2/10 14:15
     */
    List<EightMembersVacancyVo> getList(EightMembersVacancyVo vo);

    /**
     *
     * @param id 角色id
     * @param type 1.缺员项目部数量 2.兼职项目部数量
     * @return Integer
     * @author cwchen
     * @date 2025/2/10 15:11
     */
    List<Long> getNumByType(@Param("id")Long id,@Param("type") int type);

    /**
     * 八大员缺员兼职查询-缺员/兼职项目部详情
     * @param list
     * @return List<VacancyDetail>
     * @author cwchen
     * @date 2025/2/10 16:36
     */
    List<EightMembersVacancyVo.VacancyDetail> getStaffingList(@Param("list")List<Long> list,@Param("params") EightMembersVacancyVo vo);

    /**
     * 角色下拉选
     * @return List<Map<String,Object>>
     * @author cwchen
     * @date 2025/2/10 17:50
     */
    List<Map<String, Object>> getRoleList();

}
