diff --git a/rds-console/console-system/src/main/resources/mapper/console/NodeStatMapper.xml b/rds-console/console-system/src/main/resources/mapper/console/NodeStatMapper.xml index b4034d4154ea2f51f5067574a08eaec16e8715b3..952499b5ff4ed3abcf63906a8890d0b0ab0a7a73 100644 --- a/rds-console/console-system/src/main/resources/mapper/console/NodeStatMapper.xml +++ b/rds-console/console-system/src/main/resources/mapper/console/NodeStatMapper.xml @@ -79,7 +79,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" min(create_time) as create_time, round(avg(create_second)) as create_second FROM cnsl_node_stat - where node_id=#{nodeId} and create_second>=#{beginCreateSecond} and expired=0 group by create_second-create_second%(#{groupSeconds}); + where node_id=#{nodeId} + and create_second>=#{beginCreateSecond} + + AND create_second <= #{endCreateSecond} + + and expired=0 group by create_second-create_second%(#{groupSeconds}); diff --git a/rds-console/console-system/src/main/resources/mapper/console/ServiceStatMapper.xml b/rds-console/console-system/src/main/resources/mapper/console/ServiceStatMapper.xml index 84ea80fd268c6426c81c959a769a41a5d76f03df..9eeb3157acf4f01a8a0951706a2aacdfdce5496c 100644 --- a/rds-console/console-system/src/main/resources/mapper/console/ServiceStatMapper.xml +++ b/rds-console/console-system/src/main/resources/mapper/console/ServiceStatMapper.xml @@ -72,6 +72,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" round(avg(create_second)) as create_second FROM cnsl_service_stat where service_id=#{serviceId} and create_second >= #{beginCreateSecond} + + AND create_second <= #{endCreateSecond} + group by service_id diff --git a/rds-console/console-ui/src/views/console/rdsmonitor/detail.vue b/rds-console/console-ui/src/views/console/rdsmonitor/detail.vue index f37318b8953325e80b0fa1bc15af12c9e8a35f83..5bbe6c08c6457f0350d9196516e1d2b8fe25be5b 100644 --- a/rds-console/console-ui/src/views/console/rdsmonitor/detail.vue +++ b/rds-console/console-ui/src/views/console/rdsmonitor/detail.vue @@ -7,10 +7,13 @@
监控时间范围: - + + +
@@ -53,7 +56,8 @@
- +
@@ -64,7 +68,8 @@
- +
@@ -73,7 +78,7 @@