|
@@ -2,6 +2,7 @@ package com.persagy.apm.energyalarmstarter.alarmdata.model.dto.alarmrecord;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fasterxml.jackson.annotation.JsonInclude;
|
|
|
+import com.persagy.apm.energyalarmstarter.alarmdata.enums.EnumAlarmListType;
|
|
|
import com.persagy.apm.energyalarmstarter.alarmdata.model.dto.common.UrlParamDTO;
|
|
|
import com.persagy.apm.energyalarmstarter.alarmdata.utils.DateUtils;
|
|
|
import lombok.AccessLevel;
|
|
@@ -99,6 +100,11 @@ public class QueryAlarmRecordDTO extends UrlParamDTO {
|
|
|
@Getter(AccessLevel.NONE)
|
|
|
private List<String> projectIds;
|
|
|
|
|
|
+ /**
|
|
|
+ * 列表类型(当前列表、历史列表)
|
|
|
+ */
|
|
|
+ private EnumAlarmListType listType;
|
|
|
+
|
|
|
public List<String> getProjectId() {
|
|
|
// 使用projectIds字段来存储查询条件中包含的项目id,和UrlParamDTO中的projectId做一个区分
|
|
|
if (!CollectionUtils.isEmpty(projectIds)) {
|