package com.bonus.system.mapper;

import com.bonus.system.domain.SysParamsDto;
import com.bonus.system.domain.vo.SysSelectVo;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

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

/**
 * @className:SelectMapper
 * @author:cwchen
 * @date:2024-07-15-10:26
 * @version:1.0
 * @description:公共下拉选-mapper
 */
@Repository(value = "SelectMapper")
public interface SelectMapper {
    /**
     * 获取班组下拉选
     *
     * @param dto
     * @return List<SysSelectVo>
     * @author cwchen
     * @date 2024/7/15 10:45
     */
    List<SysSelectVo> getTeamList(SysParamsDto dto);

    /**
     * 班组下拉选
     *
     * @param dto
     * @return List<SysSelectVo>
     * @author cwchen
     * @date 2024/7/17 15:59
     */
    List<SysSelectVo> getProList(SysParamsDto dto);

    /**
     * 班组下拉选2
     * @param dto
     * @return List<Map < String, Object>>
     * @author cwchen
     * @date 2024/8/5 17:49
     */
    @MapKey("teamId")
    List<Map<String, Object>> getTeamLists(SysParamsDto dto);

    /**
     * 根据工程获取杆塔下拉选
     * @param dto
     * @return List<SysSelectVo>
     * @author cwchen
     * @date 2024/8/5 17:55
     */
    List<SysSelectVo> getPowerLists(SysParamsDto dto);

    /**
     * 根据班组id获取班组所属人员
     * @param dto
     * @return List<SysSelectVo>
     * @author cwchen
     * @date 2024/8/7 18:25
     */
    List<SysSelectVo> getTeamPeople(SysParamsDto dto);
}
