iot设备code字符问题修改
This commit is contained in:
parent
52f40b3acd
commit
4f2454d7dd
|
|
@ -40,4 +40,7 @@ public class IotLocationVo {
|
|||
/** 报警内容 */
|
||||
@ApiModelProperty(value = "报警内容")
|
||||
private String startAlarm;
|
||||
/** 电量百分比 */
|
||||
@ApiModelProperty(value = "电量百分比")
|
||||
private Double voltagepercent;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -413,6 +413,7 @@ public class LargeScreenServiceImpl implements ILargeScreenService {
|
|||
for (int i = 0; i < jsonArray.size(); i++) {
|
||||
JSONObject jsonObject = JSONObject.from(jsonArray.getJSONObject(i));
|
||||
iotLocationVo.setIotId(jsonObject.getString("deviceid"));
|
||||
iotLocationVo.setVoltagepercent(Double.valueOf(jsonObject.getString("voltagepercent")));
|
||||
iotLocationVo.setCallat(StringHelper.conversionBigDecimal(jsonObject.getString("callat")));
|
||||
iotLocationVo.setCallon(StringHelper.conversionBigDecimal(jsonObject.getString("callon")));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ public class IotDto {
|
|||
|
||||
/** iot设备ID */
|
||||
@ApiModelProperty(value = "iot设备ID")
|
||||
private Long iotId;
|
||||
private String iotId;
|
||||
|
||||
/** 类型id */
|
||||
@ApiModelProperty(value = "类型id")
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ public class IotVo {
|
|||
|
||||
/** iot设备ID */
|
||||
@ApiModelProperty(value = "iot设备ID")
|
||||
private Long iotId;
|
||||
private String iotId;
|
||||
|
||||
/** iot设备类型 */
|
||||
@ApiModelProperty(value = "iot设备类型")
|
||||
|
|
|
|||
|
|
@ -301,7 +301,7 @@ public class IotMachineServiceImpl implements IotMachineService {
|
|||
redisService.setCacheObject(TokenConstants.TOKEN_LOCATION,redisCode,23L, TimeUnit.HOURS);
|
||||
}
|
||||
map.clear();
|
||||
list.add(iotDto.getIotId().toString());
|
||||
list.add(iotDto.getIotId());
|
||||
map.put("deviceids",list);
|
||||
String param = JSON.toJSONString(map);
|
||||
String res = HttpHelper.doPost(HttpStatus.LAST_POSITION_URL+redisCode,param);
|
||||
|
|
|
|||
Loading…
Reference in New Issue