Commit bb174c54 authored by zengtianlai3's avatar zengtianlai3

修改monitor

parent 8b373441
...@@ -67,8 +67,8 @@ public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> impl ...@@ -67,8 +67,8 @@ public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> impl
for (Monitor monitor : monitorList) { for (Monitor monitor : monitorList) {
Integer hour = monitor.getHour(); Integer hour = monitor.getHour();
if (i == hour) { if (i == hour) {
count = monitor.getCount(); count += monitor.getCount();
break;
} }
} }
listX.add(i); listX.add(i);
...@@ -92,8 +92,7 @@ public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> impl ...@@ -92,8 +92,7 @@ public class MonitorServiceImpl extends ServiceImpl<MonitorMapper, Monitor> impl
for (Monitor monitor : monitorList) { for (Monitor monitor : monitorList) {
LocalDate tempDate = monitor.getDate(); LocalDate tempDate = monitor.getDate();
if (target.isEqual(tempDate)) { if (target.isEqual(tempDate)) {
count = monitor.getCount(); count += monitor.getCount();
break;
} }
} }
listX.add(i); listX.add(i);
......
spring: spring:
profiles: profiles:
active: test active: dev
application: application:
name: iot_license #当前服务的名称 name: iot_license #当前服务的名称
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment