package com.yuchen.saas.park.service.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yuchen.saas.park.api.entity.park.PmgBatParkVisitor;
import org.apache.ibatis.annotations.Param;

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

/**
 * @author 刘通
 * @date 2020/12/8 11:04
 */
public interface PmgBatParkVisitorMapper extends BaseMapper<PmgBatParkVisitor> {

    /**
     * 人员去向-园区场景显示栋
     * 区分、本月、今日
     * @param parkId
     * @return
     */
    List<Map<String,String>> getPeopleMakeForPark(@Param("parkId")String parkId, @Param("timeFormat")String timeFormat, @Param("dayOrMonth")String dayOrMonth);

    /**
     * 人员去向-楼栋场景显示层
     * 区分、本月、今日
     * @param buildingId
     * @return
     */
    List<Map<String,String>> getPeopleMakeForBuilding(@Param("parkId") String parkId,@Param("buildingId")String buildingId,@Param("timeFormat")String timeFormat,@Param("dayOrMonth")String dayOrMonth);

    /**
     * 人员去向-楼层场景显示房间
     * 区分、本月、今日
     * @param floorId
     * @return
     */
    List<Map<String,String>> getPeopleMakeForRoom(@Param("parkId") String parkId,@Param("buildingId")String buildingId,@Param("floorId")String floorId,@Param("timeFormat")String timeFormat,@Param("dayOrMonth")String dayOrMonth);

}
