das接口修改
This commit is contained in:
parent
4bf71ac950
commit
6574babc9e
@ -27,6 +27,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
import java.text.MessageFormat;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
@ -231,7 +232,7 @@ public class DataServiceImpl implements DataService {
|
||||
// 先从redis里面获取设备的初始化数据
|
||||
JsonNode jsonNode = data.getData();
|
||||
String deviceId = jsonNode.get("deviceId").asText();
|
||||
String key = String.format(DEVICE_DATA, deviceId);
|
||||
String key = MessageFormat.format(DEVICE_DATA, deviceId);
|
||||
HashMap<String, Object> initValue = adminRedisTemplate.get(key);
|
||||
JsonNode values = jsonNode.get("values");
|
||||
List<Map.Entry<String, Object>> entryList = new ArrayList<>(initValue.entrySet());
|
||||
|
Loading…
Reference in New Issue
Block a user