Browse Source

环境报警查询报警列表增加page,size条件

lixing 2 years ago
parent
commit
600b930eb1

+ 6 - 0
src/main/java/com/persagy/apm/report/dependencies/dmpalarm/model/dto/QueryAlarmRecordDTO.java

@@ -17,4 +17,10 @@ import lombok.NoArgsConstructor;
 @AllArgsConstructor
 public class QueryAlarmRecordDTO {
     private AlarmRecordCriteria criteria;
+    private Integer page = 1;
+    private Integer size = Integer.MAX_VALUE;
+
+    public QueryAlarmRecordDTO(AlarmRecordCriteria criteria) {
+        this.criteria = criteria;
+    }
 }

+ 1 - 0
src/main/java/com/persagy/apm/report/dependencies/iotdataanalysis/service/impl/IDataAnalysisWebServiceImpl.java

@@ -41,6 +41,7 @@ public class IDataAnalysisWebServiceImpl implements IDataAnalysisWebService {
             paramObject.put("alarmStartTime", startTime);
             paramObject.put("alarmEndTime", endTime);
             String url = iotDataAnalysisUrl + "/alarm/show/view/queryList";
+            log.info("iot-data-analysis请求参数为:{}", paramObject);
             String response = HttpUtils.postJson(url, paramObject.toString());
             JSONObject responseObject = JSONObject.parseObject(response);
             if (DataConstants.SUCCESS.equals(responseObject.getString("respMsg"))) {