传感器参数配置修改

This commit is contained in:
zhanghan11 2024-08-09 16:26:11 +08:00
parent c76a15ef05
commit 0306205381

View File

@ -116,10 +116,14 @@ public class SysConfigServiceImpl implements ISysConfigService
*/ */
@Override @Override
public Map<String,Object> selectSharedKeys(){ public Map<String,Object> selectSharedKeys(){
Map<String,Object> returnMap = new HashMap<>(); Map<String,Object> parameter = new HashMap<>();
Map<String,Integer> map = new HashMap<>(); Map<String,Object> map = new HashMap<>();
map.put("time",Integer.parseInt(selectConfigByKey("shared.time"))); map.put("time",Integer.parseInt(selectConfigByKey("shared.time")));
returnMap.put("shared",map); map.put("otaflag",selectConfigByKey("shared.otaflag"));
map.put("ver",selectConfigByKey("shared.ver"));
parameter.put("parameter",map);
Map<String,Object> returnMap = new HashMap<>();
returnMap.put("shared",parameter);
return returnMap; return returnMap;
} }