package com.platform.modules.live.dao;

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

import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.platform.modules.live.vo.SceneCommentCountVo;
import com.platform.modules.live.vo.SceneSortEntityVo;
import org.apache.ibatis.annotations.Mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.platform.modules.live.entity.LiveSceneEntity;
import com.platform.modules.live.vo.SceneEntityVo;
import org.apache.ibatis.annotations.Param;

/**
 * 现场表
 * 
 * @author TROY
 * @email 
 * @date 2019-01-19 14:50:50
 */
@Mapper
public interface LiveSceneDao extends BaseMapper<LiveSceneEntity> {

	void save(LiveSceneEntity liveScene);
	
	List<SceneEntityVo> queryPageMap(Page<SceneEntityVo> page, Map<String, Object> params);
	
	LiveSceneEntity queryById(Integer id);

    List<SceneCommentCountVo> querySceneCommentCountByParams(Pagination pagination);

	Integer updateByIdSelective(@Param("entity") LiveSceneEntity liveScene, @Param("fields") String[] fields);

	/**
	 * 拖动排序列表页查询
	 *
	 * @param params 参数
	 * */
	List<SceneSortEntityVo> querySort(Page<SceneSortEntityVo> page, Map<String, Object> params);
}
