| | |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | | import org.springframework.data.redis.core.ListOperations; |
| | | import org.springframework.data.redis.core.RedisTemplate; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.util.ObjectUtils; |
| | | |
| | | import com.moral.mapper.SensorMapper; |
| | | import com.moral.service.SensorService; |
| | | import com.moral.util.RedisUtils; |
| | | |
| | | @Service |
| | | public class SensorServiceImpl implements SensorService { |
| | |
| | | SensorMapper sensorMapper; |
| | | |
| | | @Override |
| | | public List<String> querySensorNamesByKeys(List<String> keys) { |
| | | return sensorMapper.selectSensorNamesByKeys(keys); |
| | | } |
| | | |
| | | @Override |
| | | public List<String> getSensorKeys() { |
| | | return sensorMapper.getSensorKeys(); |
| | | } |