XiaoRuby
2023-08-09 ea1f48f286fa96abcd70f7063c1f5bdc94f13cc5
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
package com.yuanchu.mom.service;
 
import com.yuanchu.mom.pojo.Device;
import com.baomidou.mybatisplus.extension.service.IService;
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> {
 
    Map<String, Object> selectTechnology(String deviceGroup);
 
    List<Device> selectDevice();
 
    /**
     * 根据设备id查询设备名称
     * @param id
     */
    String getDeviceNameById(Integer id);
 
    @Transactional(rollbackFor = Exception.class)
    Boolean addDevice(Device device);
 
    List<Map<String, Object>> deviceTwoTree(Integer type);
}