| 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(); | 
| } |