洪城义警-正式版后台
zengh
2021-11-05 b39cc2beacc1ec2e37cff349cae42e420105c8a6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
/*
 *      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);
}