package cn.besteam.modules.medical.mapper;
|
|
import cn.besteam.modules.medical.entity.MwDataStatistics;
|
import cn.besteam.modules.system.entity.SysDepartment;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @Description: 大屏数据
|
* @author: besteam
|
* @date: 2020-04-25
|
* @version: V1.0
|
*/
|
public interface MwDataStatisticsMapper extends BaseMapper<MwDataStatistics> {
|
/**
|
* 获取所有的县级数据
|
* @return
|
*/
|
List<SysDepartment> getAreaDepartment();
|
|
/**
|
* 根据县级获取医院数和预警数据统计数据
|
* @param parentId
|
* @return
|
*/
|
List<Map<String,Object>> getWarningRecordCount(@Param("parentId")Integer parentId);
|
|
/**
|
* 根据县级获取收集统计数据
|
* @param parentId
|
* @return
|
*/
|
List<Map<String,Object>> getCollectRecordSum(@Param("parentId")Integer parentId);
|
|
/**
|
* 七日数据集合
|
* @param parentId
|
* @param state
|
* @return
|
*/
|
List<Map<String,Object>> getCollectRecordDays7(@Param("parentId")Integer parentId,@Param("state") String state);
|
|
/**
|
* 根据id获取大屏数据
|
* @param parentIds
|
* @return
|
*/
|
List<MwDataStatistics> getDataStatisticsByParentIds(@Param("parentIds")String parentIds,@Param("type")Integer type);
|
|
/**
|
* 根据登录的省市区id获取下级的区县id
|
* @param departmentId
|
* @return
|
*/
|
List<Integer> getDepartmentIds(@Param("departmentId")Integer departmentId);
|
List<Integer> getDepartmentIdsAll(@Param("departmentId")Integer departmentId);
|
|
/**
|
* 获取今日收集排行
|
* @param parentIds
|
* @return
|
*/
|
List<Map<String,Object>> getTodayWeightAnalyse(@Param("parentIds")String parentIds,@Param("type")Integer type,@Param("sortType")Integer sortType);
|
|
|
|
|
|
}
|