Commit 5fd96cd7 by zhouhaibao

[+]新增预警管理

1 parent a734c84d
package cn.com.glsx.dj.mindworkplate.dto.monitoring; package cn.com.glsx.dj.mindworkplate.dto.monitoring;
import java.util.List; import java.util.List;
import javax.validation.constraints.NotNull;
import lombok.Data; import lombok.Data;
/** /**
...@@ -12,6 +13,7 @@ public class MonitorBaseRequest implements java.io.Serializable{ ...@@ -12,6 +13,7 @@ public class MonitorBaseRequest implements java.io.Serializable{
/** /**
* 业务 1.延保 2.轻改 3.权益 * 业务 1.延保 2.轻改 3.权益
*/ */
@NotNull
private Integer businessType; private Integer businessType;
/** /**
...@@ -25,18 +27,21 @@ public class MonitorBaseRequest implements java.io.Serializable{ ...@@ -25,18 +27,21 @@ public class MonitorBaseRequest implements java.io.Serializable{
private Integer metricTypeId; private Integer metricTypeId;
/** /**
* 日期类型:0,按日;1,按周;2,按月;3,按年;4,按查询时间段汇总; * 日期类型:0,按日;1,按周;2,按月;3,按年;4,自定义;
*/ */
@NotNull
private Integer periodType; private Integer periodType;
/** /**
* 开始日期,格式:yyyy-MM-dd * 开始日期,格式:yyyy-MM-dd
*/ */
@NotNull
private String startDate; private String startDate;
/** /**
* 结束日期,格式:yyyy-MM-dd * 结束日期,格式:yyyy-MM-dd
*/ */
@NotNull
private String endDate; private String endDate;
/** /**
......
...@@ -128,7 +128,7 @@ public class MonitoringService { ...@@ -128,7 +128,7 @@ public class MonitoringService {
return storeResponses; return storeResponses;
} }
private List<MonitoringMsgDTO> getMonitorListByCondition(MonitorBaseRequest request) { public List<MonitoringMsgDTO> getMonitorListByCondition(MonitorBaseRequest request) {
List<Rule> rules = ruleMapper.selectByTypeAndMetricType(request.getBusinessType(),request.getMonitorType(),request.getMetricTypeId()); List<Rule> rules = ruleMapper.selectByTypeAndMetricType(request.getBusinessType(),request.getMonitorType(),request.getMetricTypeId());
if (CollectionUtils.isEmpty(rules)){ if (CollectionUtils.isEmpty(rules)){
return new ArrayList<>(); return new ArrayList<>();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!