zss
2023-08-30 af9457d7ce94c7684a9439d46b0025bd6e66d8af
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 com.yuanchu.mom.service;
 
import com.yuanchu.mom.pojo.Device;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuanchu.mom.pojo.dto.DeviceDto;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 服务类
 * </p>
 *
 * @author 江苏鵷雏网络科技有限公司
 * @since 2023-07-31
 */
public interface DeviceService extends IService<Device> {
 
    /**
     * 查询设备维护-->左侧列表设备组展示
     * @param type
     * @param search_class
     * @return
     */
    List<Map<String, Object>> deviceTwoTree(Integer type, String search_class);
 
    /**
     * 查询设备维护-->右侧列表展示该设备组下的所有设备
     * @param father
     * @return
     */
    List<Map<String, Object>> selectTreeDevice(Integer type, String father, Integer deviceStatus, String message);
 
    /**
     * 查询所有设备
     * @return
     */
    List<Device> selectDevice();
 
    /**
     * 根据设备id查询设备名称
     * @param id
     */
    String getDeviceNameById(Integer id);
 
    /**
     * 新增仪器设备
     * @param deviceDto
     * @return
     */
    Integer addDevice(DeviceDto deviceDto);
 
    /**
     * 根据设备分组查询设备
     * @param deviceGroup
     * @return
     */
    List<Map<String, Object>> getDeviceNameByGroup(String deviceGroup);
 
    /**
     * 查询所有设备编号和设备名称
     * @return
     */
    List<Map<String, Object>> selectDeviceIdAndName();
 
    /**
     * 删除
     * @param id
     */
    void delDeviceById(Integer id);
 
    /**
     * 批量删除
     * @param ids
     */
    void delAllDevice(String ids);
}