package com.fdkankan.ucenter.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fdkankan.ucenter.entity.ScenePro;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fdkankan.ucenter.vo.request.AppSceneParam;
import com.fdkankan.ucenter.vo.request.SceneParam;
import com.fdkankan.ucenter.vo.response.GroupByCount;
import com.fdkankan.ucenter.vo.response.SceneVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * pro场景表 Mapper 接口
 * </p>
 *
 * @author 
 * @since 2022-07-04
 */
@Mapper
public interface ISceneProMapper extends BaseMapper<ScenePro> {

    List<GroupByCount> findSceneProNumByCameraIds(@Param("cameraIds") List<Long> cameraIdList);
    List<GroupByCount> findScenePlusNumByCameraIds(@Param("cameraIds") List<Long> cameraIdList);

    Page<SceneVo> pageListAndFolder(Page<SceneVo>page,SceneParam param);

    Long getCountByUserId(@Param("userId") Long userId, @Param("cameraType") Integer cameraType);

    Long getSpaceSumByCameraId(@Param("cameraId") Long cameraId);
}
