eight
2024-12-10 f77fbfc8c07881f5239ce49b0dc78faaec3628b0
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
package cn.lihu.jh.module.ecg.service.devmanage;
 
import java.time.LocalDateTime;
import java.util.*;
import cn.lihu.jh.module.ecg.controller.admin.devmanage.vo.*;
import cn.lihu.jh.module.ecg.dal.dataobject.devmanage.DeviceDO;
import cn.lihu.jh.framework.common.pojo.PageResult;
import cn.lihu.jh.framework.common.pojo.PageParam;
import cn.lihu.jh.module.ecg.dal.dataobject.devmanage.DeviceStatisticDO;
import cn.lihu.jh.module.ecg.dal.dataobject.jobrecord.JobRecordStatisticDO;
 
import javax.validation.Valid;
 
/**
 * 设备 Service 接口
 *
 * @author majianbo
 */
public interface DeviceService {
 
    /**
     * 创建设备
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Integer createDevice(@Valid DeviceSaveReqVO createReqVO);
 
    /**
     * 更新设备
     *
     * @param updateReqVO 更新信息
     */
    void updateDevice(@Valid DeviceSaveReqVO updateReqVO);
 
    /**
     * 更新设备状态
     *
     * @param updateReqVO 更新信息
     */
    Integer updateDeviceState(@Valid DeviceSaveReqVO updateReqVO);
 
    /**
     * 删除设备
     *
     * @param id 编号
     */
    void deleteDevice(Integer id);
 
    /**
     * 获得设备
     *
     * @param id 编号
     * @return 设备
     */
    DeviceDO getDevice(Integer id);
 
    /**
     * 获得设备
     *
     * @param devId 编号
     * @return 设备
     */
    DeviceDO getDevice(String devId);
 
    /**
     * 获得设备分页
     *
     * @param pageReqVO 分页查询
     * @return 设备分页
     */
    PageResult<DeviceDO> getDevicePage(DevicePageReqVO pageReqVO);
 
    /**
     * 设备统计
     * @return
     */
    List<DeviceStatisticDO> getDeviceStatistic(DevicePageReqVO pageReqVO);
}