package com.securitycontrol.background.mapper;

import com.securitycontrol.entity.background.dto.TodayTaskDto;
import com.securitycontrol.entity.background.vo.DeviceUpDownVo;
import com.securitycontrol.entity.background.vo.TodayTaskVo;
import org.apache.ibatis.annotations.MapKey;
import org.springframework.stereotype.Repository;

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

/**
 * @author：cwchen
 * @date：2024-03-23-12:49
 * @version：1.0
 * @description：当日任务-数据库访问层
 */
@Repository(value = "ITodayTaskMapper")
public interface ITodayTaskMapper {
    /**
     * 获取当日任务列表
     *
     * @param dto
     * @return List<TodayTaskVo>
     * @description
     * @author cwchen
     * @date 2024/3/23 13:36
     */
    List<TodayTaskVo> getToDayTaskLists(TodayTaskDto dto);

    /**
     * 查询督查人
     *
     * @param checkUserId
     * @return String
     * @description
     * @author cwchen
     * @date 2024/3/23 14:38
     */
    String getCheckUser(String checkUserId);

    /**
     * 站班会详情
     *
     * @param dto
     * @return Map<String>
     * @description
     * @author cwchen
     * @date 2024/3/23 15:41
     */
    @MapKey("classId")
    Map<String, Map<String, String>> getClassDetail(TodayTaskDto dto);

    /**
     * 施工人员
     *
     * @param dto
     * @return List<Map < String>>
     * @description
     * @author cwchen
     * @date 2024/3/23 15:42
     */
    @MapKey("id")
    List<Map<String, String>> getWorkPeopleLists(TodayTaskDto dto);

    /**
     * 球机在线时长
     * @param dto
     * @return List<DeviceUpDownVo>
     * @description
     * @author cwchen
     * @date 2024/3/23 16:47
     */
    List<DeviceUpDownVo> getBallTimeList(TodayTaskDto dto);
}
