/*
|
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
*
|
* Redistribution and use in source and binary forms, with or without
|
* modification, are permitted provided that the following conditions are met:
|
*
|
* Redistributions of source code must retain the above copyright notice,
|
* this list of conditions and the following disclaimer.
|
* Redistributions in binary form must reproduce the above copyright
|
* notice, this list of conditions and the following disclaimer in the
|
* documentation and/or other materials provided with the distribution.
|
* Neither the name of the dreamlu.net developer nor the names of its
|
* contributors may be used to endorse or promote products derived from
|
* this software without specific prior written permission.
|
* Author: Chill 庄骞 (smallchill@163.com)
|
*/
|
package org.springblade.modules.equipment.service;
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.extension.service.IService;
|
import org.springblade.modules.equipment.entity.Equipment;
|
import org.springblade.modules.equipment.entity.EquipmentPlayInfo;
|
import org.springblade.modules.equipment.vo.EquipmentVO;
|
import org.springblade.modules.equipment.vo.EquipmentVOS;
|
import org.springblade.modules.parcel.vo.ConditionVo;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* 服务类
|
*
|
* @author BladeX
|
* @since 2020-07-01
|
*/
|
public interface IEquipmentService extends IService<Equipment> {
|
|
IPage<EquipmentVO> selectEquipmentPage(IPage<EquipmentVO> page, EquipmentVO equipment,List childList);
|
IPage<EquipmentVO> selectPage(IPage<EquipmentVO> page, EquipmentVO equipment,String pid);
|
|
|
IPage<EquipmentVO> selectDeptPages(IPage<EquipmentVO> page, EquipmentVO equipment,String pid,String dxtype);
|
|
/**
|
* 树形结构
|
*
|
* @return
|
*/
|
List<EquipmentVOS> tree();
|
|
List<EquipmentVO> listAll(EquipmentVO equipment);
|
|
void updateOne(Equipment equipment);
|
|
void saveImg(EquipmentVO equipment);
|
|
void s(Equipment equipment);
|
|
void updataType(String arr);
|
|
void updataTypeC(String arr);
|
|
/**
|
* 懒加载
|
*
|
* @param parentId
|
* @param param
|
* @return
|
*/
|
List<EquipmentVOS> lazyList(Long parentId, Map<String, Object> param);
|
|
EquipmentVOS selectInfo(Equipment equipment);
|
List<Map<String, Object>> selectInfos(String deviceNumber);
|
|
/**
|
* 设备列表
|
*
|
* @param deviceType
|
* @return
|
*/
|
List<EquipmentVOS> selectList(String deviceType);
|
void updateChannel(String heartbeat, String deviceNumber);
|
|
/**
|
* 查询在线设备总数
|
* @param conditionVo status 状态码 0:本日 1:本周 2:本月
|
* @return
|
*/
|
Integer selectEquipmentCount(ConditionVo conditionVo);
|
void updateexpireTime(String expireTime, String deviceNumber);
|
void updateExstate(String state,String reason, String deviceNumber);
|
|
Integer selectEqCz();
|
Integer selectEqCd();
|
List<Map<String, Object>> selectEqCy(String time);
|
Integer selectEqCg();
|
|
/**
|
* 获取各个设备状态统计数量
|
* @return
|
*/
|
Map<String,Object> selEqTypeSum();
|
|
/**
|
* 更新设备状态
|
*/
|
void updateEquipmentDtype();
|
|
/**
|
* 获取设备视频播放的信息
|
* @param equipmentPlayInfo 视频播放地址对象,只需包含设备编号,以及视频播放格式即可
|
* @return
|
*/
|
EquipmentPlayInfo selectEquimentPlayInfo(EquipmentPlayInfo equipmentPlayInfo);
|
|
/**
|
* 新增或修改设备视频播放的信息
|
* @param equipmentPlayInfo 视频播放地址对象
|
* @return
|
*/
|
boolean saveOrUpdateEquipmentPlayInfo(EquipmentPlayInfo equipmentPlayInfo);
|
}
|