【fix】 修复近七日无数据问题

This commit is contained in:
wujiawei
2024-05-29 16:11:31 +08:00
parent 87b7a10166
commit 50876878c7
2 changed files with 13 additions and 2 deletions

View File

@ -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.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.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.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.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.database.lazy.web.plus.stereotype.LazyApplication;
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)
.applyOther(clientPerDayFlows -> clientPerDayFlows);
if (ObjectUtils.isEmpty(lazyVisitorPortPerDayFlowList)) {
return ResultFactory.successOf();
}
List<List<LazyVisitorPortPerDayFlow>> collect = lazyVisitorPortPerDayFlowList
.stream()
.collect(Collectors