From ca3414e89d294d00eaf4dde5a52d9dfc6dcac442 Mon Sep 17 00:00:00 2001 From: anthonywj Date: Tue, 5 Dec 2023 09:24:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B4=B4=E5=9C=B0=E9=A3=9E=E7=BA=BF=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../api/controller/stat/BigVisController.java | 15 +++++--- .../glxp/api/dao/stat/StatAmapFlowMapper.java | 9 +++++ .../api/entity/stat/StatAmapFlowEntity.java | 38 +++++++++++++++++++ .../api/service/stat/StatAmapFlowService.java | 10 +++++ .../mapper/stat/StatAmapFlowMapper.xml | 18 +++++++++ 5 files changed, 85 insertions(+), 5 deletions(-) create mode 100644 src/main/java/com/glxp/api/dao/stat/StatAmapFlowMapper.java create mode 100644 src/main/java/com/glxp/api/entity/stat/StatAmapFlowEntity.java create mode 100644 src/main/java/com/glxp/api/service/stat/StatAmapFlowService.java create mode 100644 src/main/resources/mybatis/mapper/stat/StatAmapFlowMapper.xml diff --git a/src/main/java/com/glxp/api/controller/stat/BigVisController.java b/src/main/java/com/glxp/api/controller/stat/BigVisController.java index bf2374a..55ae616 100644 --- a/src/main/java/com/glxp/api/controller/stat/BigVisController.java +++ b/src/main/java/com/glxp/api/controller/stat/BigVisController.java @@ -2,8 +2,6 @@ package com.glxp.api.controller.stat; import cn.hutool.core.util.StrUtil; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; -import com.github.pagehelper.PageInfo; -import com.glxp.api.annotation.AuthRuleAnnotation; import com.glxp.api.common.res.BaseResponse; import com.glxp.api.common.util.ResultVOUtils; import com.glxp.api.controller.BaseController; @@ -11,7 +9,6 @@ import com.glxp.api.entity.stat.*; import com.glxp.api.req.replicate.FilterReplicateRequest; import com.glxp.api.req.stat.StatCityCorpRequest; import com.glxp.api.req.trace.TraceTaskDetailRequest; -import com.glxp.api.res.PageSimpleResponse; import com.glxp.api.res.trace.TraceTaskDlResponse; import com.glxp.api.service.stat.*; import com.glxp.api.service.trace.TraceTaskService; @@ -43,6 +40,8 @@ public class BigVisController extends BaseController { TraceTaskService traceTaskService; @Resource StatCityCorpService statCityCorpService; + @Resource + StatAmapFlowService amapFlowService; /** @@ -148,8 +147,14 @@ public class BigVisController extends BaseController { return ResultVOUtils.success(traceTaskDlResponses); } + /** - * + * 贴地飞行数据 */ - + @ApiOperation(value = "查询任务列表", response = TraceTaskDlResponse.class) + @GetMapping("/cpt/bigVis/amap/flow/list") + public BaseResponse amapList(StatCityCorpRequest statCityCorpRequest) { + List statAmapFlowEntities = amapFlowService.list(); + return ResultVOUtils.success(statAmapFlowEntities); + } } diff --git a/src/main/java/com/glxp/api/dao/stat/StatAmapFlowMapper.java b/src/main/java/com/glxp/api/dao/stat/StatAmapFlowMapper.java new file mode 100644 index 0000000..4f63ac2 --- /dev/null +++ b/src/main/java/com/glxp/api/dao/stat/StatAmapFlowMapper.java @@ -0,0 +1,9 @@ +package com.glxp.api.dao.stat; + +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.glxp.api.entity.stat.StatAmapFlowEntity; +import org.apache.ibatis.annotations.Mapper; + +@Mapper +public interface StatAmapFlowMapper extends BaseMapper { +} diff --git a/src/main/java/com/glxp/api/entity/stat/StatAmapFlowEntity.java b/src/main/java/com/glxp/api/entity/stat/StatAmapFlowEntity.java new file mode 100644 index 0000000..df62418 --- /dev/null +++ b/src/main/java/com/glxp/api/entity/stat/StatAmapFlowEntity.java @@ -0,0 +1,38 @@ +package com.glxp.api.entity.stat; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +@TableName(value = "stat_amap_flow") +public class StatAmapFlowEntity implements Serializable { + @TableId(value = "id", type = IdType.INPUT) + private Integer id; + + @TableField(value = "x") + private String x; + + @TableField(value = "y") + private String y; + + @TableField(value = "x1") + private String x1; + + @TableField(value = "y1") + private String y1; + + @TableField(value = "`count`") + private String count; + + private static final long serialVersionUID = 1L; +} diff --git a/src/main/java/com/glxp/api/service/stat/StatAmapFlowService.java b/src/main/java/com/glxp/api/service/stat/StatAmapFlowService.java new file mode 100644 index 0000000..7950e13 --- /dev/null +++ b/src/main/java/com/glxp/api/service/stat/StatAmapFlowService.java @@ -0,0 +1,10 @@ +package com.glxp.api.service.stat; + +import org.springframework.stereotype.Service; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.glxp.api.dao.stat.StatAmapFlowMapper; +import com.glxp.api.entity.stat.StatAmapFlowEntity; +@Service +public class StatAmapFlowService extends ServiceImpl { + +} diff --git a/src/main/resources/mybatis/mapper/stat/StatAmapFlowMapper.xml b/src/main/resources/mybatis/mapper/stat/StatAmapFlowMapper.xml new file mode 100644 index 0000000..79256a5 --- /dev/null +++ b/src/main/resources/mybatis/mapper/stat/StatAmapFlowMapper.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + id, x, y, x1, y1, `count` + +