Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
aroad_aqsc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许言琪
aroad_aqsc
Commits
770e5a67
提交
770e5a67
authored
5月 20, 2019
作者:
朱运伟
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
数字公路
上级
fe581b97
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
79 行增加
和
11 行删除
+79
-11
SzglGsdGczController.java
...xy/aroad/module/szgl/controller/SzglGsdGczController.java
+5
-0
SzglGsdSpdwController.java
...y/aroad/module/szgl/controller/SzglGsdSpdwController.java
+10
-7
SzglGsdGcz.java
...framework/galaxy/aroad/module/szgl/entity/SzglGsdGcz.java
+7
-0
SzglGsdGczMapper.java
...ork/galaxy/aroad/module/szgl/mapper/SzglGsdGczMapper.java
+10
-1
SzglGsdGczService.java
...k/galaxy/aroad/module/szgl/service/SzglGsdGczService.java
+7
-1
SzglGsdGczServiceImpl.java
...aroad/module/szgl/service/impl/SzglGsdGczServiceImpl.java
+7
-0
SzglGsdGczMapper.xml
src/main/resources/mapper/szgl/SzglGsdGczMapper.xml
+33
-2
没有找到文件。
src/main/java/com/elephant/framework/galaxy/aroad/module/szgl/controller/SzglGsdGczController.java
浏览文件 @
770e5a67
...
@@ -9,6 +9,7 @@ import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdGczService
...
@@ -9,6 +9,7 @@ import com.elephant.framework.galaxy.aroad.module.szgl.service.SzglGsdGczService
import
com.elephant.framework.galaxy.aroad.response.R
;
import
com.elephant.framework.galaxy.aroad.response.R
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
import
org.springframework.web.bind.annotation.RestController
;
...
@@ -55,5 +56,9 @@ public class SzglGsdGczController extends BaseController {
...
@@ -55,5 +56,9 @@ public class SzglGsdGczController extends BaseController {
return
new
R
<>(
szglGsdGczService
.
list
(
queryWrapper
));
return
new
R
<>(
szglGsdGczService
.
list
(
queryWrapper
));
}
}
@GetMapping
(
"/getGczFroQS/{lxbh}/{zxzh}"
)
public
R
getGczForQS
(
@PathVariable
String
lxbh
,
@PathVariable
double
zxzh
){
return
new
R
<>(
szglGsdGczService
.
getGczForQS
(
lxbh
,
zxzh
));
}
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/szgl/controller/SzglGsdSpdwController.java
浏览文件 @
770e5a67
...
@@ -11,6 +11,8 @@ import lombok.AllArgsConstructor;
...
@@ -11,6 +11,8 @@ import lombok.AllArgsConstructor;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
com.elephant.framework.galaxy.aroad.module.common.controller.BaseController
;
import
com.elephant.framework.galaxy.aroad.module.common.controller.BaseController
;
import
java.util.List
;
/**
/**
* 数字公路-视频点
* 数字公路-视频点
...
@@ -68,7 +70,7 @@ public class SzglGsdSpdwController extends BaseController {
...
@@ -68,7 +70,7 @@ public class SzglGsdSpdwController extends BaseController {
* @param lat 维度
* @param lat 维度
* @return
* @return
*/
*/
@GetMapping
(
"getZbjk/{radius}/{lng}/{lat}"
)
@GetMapping
(
"getZbjk
ForQS
/{radius}/{lng}/{lat}"
)
public
R
getZbjkForQS
(
@PathVariable
double
radius
,
@PathVariable
double
lng
,
@PathVariable
double
lat
)
{
public
R
getZbjkForQS
(
@PathVariable
double
radius
,
@PathVariable
double
lng
,
@PathVariable
double
lat
)
{
//先计算查询点的经纬度范围
//先计算查询点的经纬度范围
...
@@ -82,12 +84,13 @@ public class SzglGsdSpdwController extends BaseController {
...
@@ -82,12 +84,13 @@ public class SzglGsdSpdwController extends BaseController {
double
minlng
=
lng
-
dlng
;
double
minlng
=
lng
-
dlng
;
double
maxlng
=
lng
+
dlng
;
double
maxlng
=
lng
+
dlng
;
QueryWrapper
<
SzglGsdSpdw
>
queryWrapper
=
new
QueryWrapper
<>();
QueryWrapper
<
SzglGsdSpdw
>
queryWrapper
=
new
QueryWrapper
<>();
// queryWrapper.lambda()
queryWrapper
.
lambda
()
// .ge("jd",minlng);
.
ge
(
SzglGsdSpdw:
:
getJd
,
minlng
)
.
le
(
SzglGsdSpdw:
:
getJd
,
maxlng
)
.
ge
(
SzglGsdSpdw:
:
getWd
,
minlat
)
.
le
(
SzglGsdSpdw:
:
getWd
,
maxlat
);
return
null
;
List
<
SzglGsdSpdw
>
list
=
szglGsdSpdwService
.
list
(
queryWrapper
);
return
new
R
(
list
);
}
}
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/szgl/entity/SzglGsdGcz.java
浏览文件 @
770e5a67
...
@@ -3,10 +3,13 @@ package com.elephant.framework.galaxy.aroad.module.szgl.entity;
...
@@ -3,10 +3,13 @@ package com.elephant.framework.galaxy.aroad.module.szgl.entity;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableId
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.annotation.TableName
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.baomidou.mybatisplus.extension.activerecord.Model
;
import
com.elephant.framework.galaxy.aroad.module.traffic.entity.TrafficRoadsection
;
import
com.elephant.framework.galaxy.aroad.module.traffic.entity.TrafficRoute
;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.EqualsAndHashCode
;
import
lombok.EqualsAndHashCode
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.time.LocalDateTime
;
import
java.time.LocalDateTime
;
import
java.util.List
;
/**
/**
* 数字公路-观测站
* 数字公路-观测站
...
@@ -125,5 +128,9 @@ private static final long serialVersionUID = 1L;
...
@@ -125,5 +128,9 @@ private static final long serialVersionUID = 1L;
*
*
*/
*/
private
Integer
nian
;
private
Integer
nian
;
/**
* 路段交通量
*/
private
List
<
TrafficRoadsection
>
trfList
;
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/szgl/mapper/SzglGsdGczMapper.java
浏览文件 @
770e5a67
...
@@ -2,6 +2,9 @@ package com.elephant.framework.galaxy.aroad.module.szgl.mapper;
...
@@ -2,6 +2,9 @@ package com.elephant.framework.galaxy.aroad.module.szgl.mapper;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.baomidou.mybatisplus.core.mapper.BaseMapper
;
import
com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz
;
import
com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz
;
import
org.apache.ibatis.annotations.Param
;
import
java.util.List
;
/**
/**
* 数字公路-观测站
* 数字公路-观测站
...
@@ -10,5 +13,11 @@ import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
...
@@ -10,5 +13,11 @@ import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
* @date 2019-05-13 11:08:50
* @date 2019-05-13 11:08:50
*/
*/
public
interface
SzglGsdGczMapper
extends
BaseMapper
<
SzglGsdGcz
>
{
public
interface
SzglGsdGczMapper
extends
BaseMapper
<
SzglGsdGcz
>
{
/**
* 根据路线编号与中心桩号查询观测站及交通量
* @param lxbh
* @param zxzh
* @return
*/
List
<
SzglGsdGcz
>
getGczJtl
(
@Param
(
"lxbh"
)
String
lxbh
,
@Param
(
"zxzh"
)
Double
zxzh
);
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/szgl/service/SzglGsdGczService.java
浏览文件 @
770e5a67
...
@@ -10,5 +10,11 @@ import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
...
@@ -10,5 +10,11 @@ import com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz;
* @date 2019-05-13 11:08:50
* @date 2019-05-13 11:08:50
*/
*/
public
interface
SzglGsdGczService
extends
IService
<
SzglGsdGcz
>
{
public
interface
SzglGsdGczService
extends
IService
<
SzglGsdGcz
>
{
/***
* 根据路线与中心桩号查询交通量
* @param lxbh
* @param zxzh
* @return
*/
Object
getGczForQS
(
String
lxbh
,
double
zxzh
);
}
}
src/main/java/com/elephant/framework/galaxy/aroad/module/szgl/service/impl/SzglGsdGczServiceImpl.java
浏览文件 @
770e5a67
...
@@ -15,4 +15,11 @@ import org.springframework.stereotype.Service;
...
@@ -15,4 +15,11 @@ import org.springframework.stereotype.Service;
@Service
@Service
public
class
SzglGsdGczServiceImpl
extends
ServiceImpl
<
SzglGsdGczMapper
,
SzglGsdGcz
>
implements
SzglGsdGczService
{
public
class
SzglGsdGczServiceImpl
extends
ServiceImpl
<
SzglGsdGczMapper
,
SzglGsdGcz
>
implements
SzglGsdGczService
{
@Override
public
Object
getGczForQS
(
String
lxbh
,
double
zxzh
)
{
return
null
;
}
}
}
src/main/resources/mapper/szgl/SzglGsdGczMapper.xml
浏览文件 @
770e5a67
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<mapper
namespace=
"com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdGczMapper"
>
<mapper
namespace=
"com.elephant.framework.galaxy.aroad.module.szgl.mapper.SzglGsdGczMapper"
>
<resultMap
id=
"szglGsdGczMap"
type=
"com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz"
>
<resultMap
id=
"szglGsdGczMap"
type=
"com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz"
>
<id
property=
"id"
column=
"id"
/>
<id
property=
"id"
column=
"id"
/>
<result
property=
"gczbh"
column=
"gczbh"
/>
<result
property=
"gczbh"
column=
"gczbh"
/>
<result
property=
"gczmc"
column=
"gczmc"
/>
<result
property=
"gczmc"
column=
"gczmc"
/>
...
@@ -31,5 +31,36 @@
...
@@ -31,5 +31,36 @@
<result
property=
"wd"
column=
"wd"
/>
<result
property=
"wd"
column=
"wd"
/>
<result
property=
"gs"
column=
"gs"
/>
<result
property=
"gs"
column=
"gs"
/>
<result
property=
"nian"
column=
"nian"
/>
<result
property=
"nian"
column=
"nian"
/>
</resultMap>
<collection
property=
"trfList"
ofType=
"com.elephant.framework.galaxy.aroad.module.traffic.entity.TrafficRoadsection"
>
<result
property=
"jdcCurrentAmount"
column=
"jdcCurrentAmount"
/>
<result
property=
"jdcNaturalAmount"
column=
"jdcNaturalAmount"
/>
<result
property=
"year"
column=
"year"
/>
</collection>
</resultMap>
<select
id=
"getGczJtl"
resultType=
"com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz"
>
select gcz.*,
jtl.JDC_current_amount as jdcCurrentAmount,
jtl.JDC_natural_amount as jdcNaturalAmount,
jtl.year
from t_szgl_gsd_gcz gcz
left join v_traffic_roadsection jtl on gcz.gczbh =jtl.spot_code
<where>
<if
test=
"lxbh !=null and lxbh !''"
>
gcz.lxbh =#{lxbh}
</if>
<if
test=
"zxzh !=null"
>
gcz.qdzh
<![CDATA[ <= ]]>
#{zxzh} and gcz.zdzh
<![CDATA[ >= ]]>
#{zxzh}
</if>
</where>
</select>
</mapper>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论