|
@@ -15,15 +15,15 @@ import org.springframework.stereotype.Component;
|
|
public class RedisRepComponent {
|
|
public class RedisRepComponent {
|
|
|
|
|
|
@Autowired
|
|
@Autowired
|
|
- private RedisTemplate<String,String> redisTemplate;
|
|
|
|
|
|
+ private RedisTemplate<String,Object> redisTemplate;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 实时数据入redis
|
|
* 实时数据入redis
|
|
* @param wellId
|
|
* @param wellId
|
|
* @param datas
|
|
* @param datas
|
|
*/
|
|
*/
|
|
- public void put(String wellId,Map<String,String> datas) {
|
|
|
|
- HashOperations<String, String, String> ops=redisTemplate.opsForHash();
|
|
|
|
|
|
+ public void put(String wellId,Map<String,Float> datas) {
|
|
|
|
+ HashOperations<String, String, Float> ops=redisTemplate.opsForHash();
|
|
ops.putAll(wellId, datas);
|
|
ops.putAll(wellId, datas);
|
|
}
|
|
}
|
|
}
|
|
}
|