提交 373ab4d5 作者: 925993793@qq.com

信息传播走势-时间参数不必传

上级 de5a69a5
......@@ -373,7 +373,7 @@ public class EventAnalysisController {
*/
@GetMapping("/flowData")
public Result<?> flowData(@RequestParam String eventId,
@RequestParam String startTime,
@RequestParam(required = false) String startTime,
@RequestParam(required = false) String endTime,
@RequestParam Integer type) {
Map<String, String> map = esStatisticsService.totalAndMax(eventId, null, null, type);
......@@ -381,6 +381,10 @@ public class EventAnalysisController {
List<CountVO> list = new ArrayList<>();
if (!totalCount.equals("0")) {
String maxTime = map.get("maxTime");
Event event = eventService.getById(eventId);
if (StringUtils.isEmpty(startTime)) {
startTime = DateUtil.formatDateTime(event.getStartTime());
}
Map<String, String> timeRangeMap = getTimeRange(startTime, endTime, maxTime, type);
startTime = timeRangeMap.get("startTime");
endTime = timeRangeMap.get("endTime");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论