mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-06 21:37:56 +08:00
【fix】 修复近七日无数据问题
This commit is contained in:
parent
87b7a10166
commit
50876878c7
@ -7,12 +7,11 @@ import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.
|
|||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.visitor.port.per.day.flow.*;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.visitor.port.per.day.flow.*;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyClientFlowPerDayEchartsDTO;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyClientFlowPerDayEchartsDTO;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyClientPortFlowPerDayEchartsDTO;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyClientPortFlowPerDayEchartsDTO;
|
||||||
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyVisitorPortPerDayFlowDTO;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.netty.client.state.LazyNettyClientState;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.netty.client.state.LazyNettyClientState;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.netty.client.state.LazyNettyClientStateRepository;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.netty.client.state.LazyNettyClientStateRepository;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.visitor.port.per.day.flow.LazyVisitorPortPerDayFlow;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.visitor.port.per.day.flow.LazyVisitorPortPerDayFlow;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.visitor.port.per.day.flow.LazyVisitorPortPerDayFlowRepository;
|
import org.framework.lazy.cloud.network.heartbeat.server.standalone.domain.model.visitor.port.per.day.flow.LazyVisitorPortPerDayFlowRepository;
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.command.visitor.port.per.day.flow.*;
|
|
||||||
import org.framework.lazy.cloud.network.heartbeat.server.standalone.application.dto.LazyVisitorPortPerDayFlowDTO;
|
|
||||||
import org.wu.framework.core.utils.ObjectUtils;
|
import org.wu.framework.core.utils.ObjectUtils;
|
||||||
import org.wu.framework.database.lazy.web.plus.stereotype.LazyApplication;
|
import org.wu.framework.database.lazy.web.plus.stereotype.LazyApplication;
|
||||||
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
import org.wu.framework.lazy.orm.database.lambda.domain.LazyPage;
|
||||||
@ -207,6 +206,9 @@ public class LazyVisitorPortPerDayFlowApplicationImpl implements LazyVisitorPort
|
|||||||
List<LazyVisitorPortPerDayFlow> lazyVisitorPortPerDayFlowList = lazyVisitorPortPerDayFlowRepository.findList(lazyVisitorPortPerDayFlow1)
|
List<LazyVisitorPortPerDayFlow> lazyVisitorPortPerDayFlowList = lazyVisitorPortPerDayFlowRepository.findList(lazyVisitorPortPerDayFlow1)
|
||||||
.applyOther(clientPerDayFlows -> clientPerDayFlows);
|
.applyOther(clientPerDayFlows -> clientPerDayFlows);
|
||||||
|
|
||||||
|
if (ObjectUtils.isEmpty(lazyVisitorPortPerDayFlowList)) {
|
||||||
|
return ResultFactory.successOf();
|
||||||
|
}
|
||||||
List<List<LazyVisitorPortPerDayFlow>> collect = lazyVisitorPortPerDayFlowList
|
List<List<LazyVisitorPortPerDayFlow>> collect = lazyVisitorPortPerDayFlowList
|
||||||
.stream()
|
.stream()
|
||||||
.collect(Collectors
|
.collect(Collectors
|
||||||
|
@ -7,6 +7,15 @@ spring:
|
|||||||
username: sa
|
username: sa
|
||||||
driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
---
|
---
|
||||||
|
# h2 web
|
||||||
|
spring:
|
||||||
|
h2:
|
||||||
|
console:
|
||||||
|
enabled: true
|
||||||
|
path: /h2-console
|
||||||
|
settings:
|
||||||
|
web-allow-others: true
|
||||||
|
---
|
||||||
#spring:
|
#spring:
|
||||||
# datasource:
|
# datasource:
|
||||||
# url: jdbc:mysql://127.0.0.1:3306/wu_lazy_cloud_netty_server?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
|
# url: jdbc:mysql://127.0.0.1:3306/wu_lazy_cloud_netty_server?allowMultiQueries=true&useUnicode=true&autoReconnect=true&useAffectedRows=true&useSSL=false&serverTimezone=Asia/Shanghai&allowPublicKeyRetrieval=true&databaseTerm=SCHEMA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user