kaiyu
2021-12-28 4c890bb6132e5971d9ec8bdadf66f985f9ab92e9
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
package com.moral.api.service;
 
import com.moral.api.entity.Sensor;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.transaction.annotation.Transactional;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * 服务类
 * </p>
 *
 * @author moral
 * @since 2021-05-08
 */
@Transactional
public interface SensorService extends IService<Sensor> {
 
    @Transactional
    Map<String, Object> insertOne(Sensor sensor);
 
    @Transactional
    Map<String, Object> updateSensor(Map<String, Object> updateSensorMap);
 
    Map<String, Object> getAllSensor(Map map);
 
    Map<String, Object> getAllSensorWithoutPage();
 
    @Transactional
    Map<String, Object> deleteSensor(Map map);
 
    Map<String, Object> getSensorByFuzzy(Map map);
 
    Map<String, Sensor> getAllSensorFromCache();
 
    /**
    * @Description: 通过code获取sensor对象
            * @Param: [code]
            * @return: com.moral.api.entity.Sensor
            * @Author: 陈凯裕
            * @Date: 2021/8/26
            */
    Sensor getSensorByCode(String code);
 
    void refreshCache();
}