修复设备监控历史数据及最新一组数据点击最大化报错问题
This commit is contained in:
@@ -36,6 +36,8 @@ public class DevicDataTrendQueryParam {
|
|||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
|
||||||
@NotNull(message="结束时间不能为空!")
|
@NotNull(message="结束时间不能为空!")
|
||||||
private String endTime;
|
private String endTime;
|
||||||
|
|
||||||
|
private String devId;
|
||||||
@Data
|
@Data
|
||||||
public static class StatisticalParam{
|
public static class StatisticalParam{
|
||||||
private String classId;
|
private String classId;
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ public class DeviceDataTrendServiceImpl implements DeviceDataTrendService {
|
|||||||
LineParamDTO lineParamDTO = new LineParamDTO();
|
LineParamDTO lineParamDTO = new LineParamDTO();
|
||||||
lineParamDTO.setLineId(devicDataTrendQueryParam.getLineId());
|
lineParamDTO.setLineId(devicDataTrendQueryParam.getLineId());
|
||||||
List<CsLedger> data = csLedgerFeignClient.queryLine(lineParamDTO).getData();
|
List<CsLedger> data = csLedgerFeignClient.queryLine(lineParamDTO).getData();
|
||||||
List<CsEquipmentDeliveryDTO> data1 = equipmentFeignClient.queryDeviceById(Stream.of(data.get(0).getPid()).collect(Collectors.toList())).getData();
|
List<CsEquipmentDeliveryDTO> data1 = equipmentFeignClient.queryDeviceById(Stream.of((data == null || data.isEmpty()) ? devicDataTrendQueryParam.getDevId() : data.get(0).getPid()).collect(Collectors.toList())).getData();
|
||||||
devicDataTrendQueryParam.getStatisticalParams().forEach(temp->{
|
devicDataTrendQueryParam.getStatisticalParams().forEach(temp->{
|
||||||
CommonQueryParam commonQueryParam = new CommonQueryParam();
|
CommonQueryParam commonQueryParam = new CommonQueryParam();
|
||||||
commonQueryParam.setLineId(devicDataTrendQueryParam.getLineId());
|
commonQueryParam.setLineId(devicDataTrendQueryParam.getLineId());
|
||||||
|
|||||||
Reference in New Issue
Block a user