贴地飞线接口

master
anthonywj 1 year ago
parent 065afe5e36
commit ca3414e89d

@ -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<StatAmapFlowEntity> statAmapFlowEntities = amapFlowService.list();
return ResultVOUtils.success(statAmapFlowEntities);
}
}

@ -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<StatAmapFlowEntity> {
}

@ -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;
}

@ -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<StatAmapFlowMapper, StatAmapFlowEntity> {
}

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glxp.api.dao.stat.StatAmapFlowMapper">
<resultMap id="BaseResultMap" type="com.glxp.api.entity.stat.StatAmapFlowEntity">
<!--@mbg.generated-->
<!--@Table stat_amap_flow-->
<id column="id" jdbcType="INTEGER" property="id" />
<result column="x" jdbcType="VARCHAR" property="x" />
<result column="y" jdbcType="VARCHAR" property="y" />
<result column="x1" jdbcType="VARCHAR" property="x1" />
<result column="y1" jdbcType="VARCHAR" property="y1" />
<result column="count" jdbcType="INTEGER" property="count" />
</resultMap>
<sql id="Base_Column_List">
<!--@mbg.generated-->
id, x, y, x1, y1, `count`
</sql>
</mapper>
Loading…
Cancel
Save