|
|
@@ -192,6 +192,9 @@ public class IotDeviceStatusServiceImpl extends ServiceImpl<IotDeviceStatusMappe
|
|
|
|
|
|
final JSONArray data = (JSONArray) req.getData();
|
|
|
final List<AlarmDataReq> dataReqList = data.toJavaList(AlarmDataReq.class);
|
|
|
+ if (dataReqList == null || dataReqList.isEmpty()){
|
|
|
+ return null;
|
|
|
+ }
|
|
|
for (AlarmDataReq dataReq : dataReqList) {
|
|
|
IotDeviceInfo deviceInfo = iotDeviceInfoService.selectByTokenProductAndDeviceCode(iotCode, req.getProductName(), dataReq.getDeviceCode());
|
|
|
if (ObjectUtil.isNull(deviceInfo)) {
|