|
|
@@ -272,6 +272,10 @@ public class IotYfScdServiceImpl extends IIotScdCommService {
|
|
|
}
|
|
|
|
|
|
List<IotYfScddata> iotYfScddataList = getExportDataList(iotDeviceDataListReqVo);
|
|
|
+ if(iotYfScddataList == null || iotYfScddataList.isEmpty()){
|
|
|
+ throw new IotBizException(ErrorCode.INVALID_PARAMETER.getCode(), "数据不存在");
|
|
|
+ }
|
|
|
+
|
|
|
if (Objects.equals(findDevice.getDevtypeBid(), IotDeviceDictConst.TYPE_YF_SCD)) {
|
|
|
List<IotYfScdDataExportVo> exportVoList = new ArrayList<>();
|
|
|
for (IotYfScddata iotYfScddata : iotYfScddataList) {
|
|
|
@@ -344,6 +348,10 @@ public class IotYfScdServiceImpl extends IIotScdCommService {
|
|
|
}
|
|
|
|
|
|
List<IotYfScddata> iotYfScddataList = getExportDataList(iotDeviceDataListReqVo);
|
|
|
+ if(iotYfScddataList == null || iotYfScddataList.isEmpty()){
|
|
|
+ throw new IotBizException(ErrorCode.INVALID_PARAMETER.getCode(), "数据不存在");
|
|
|
+ }
|
|
|
+
|
|
|
List<IotYfScdStatusExportVo> exportVoList = new ArrayList<>();
|
|
|
for (IotYfScddata iotYfScddata : iotYfScddataList) {
|
|
|
JSONObject jsonObject = iotYfScddata.getScddataContent();
|