Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
aroad_aqsc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许言琪
aroad_aqsc
Commits
a8fbe73e
提交
a8fbe73e
authored
5月 28, 2019
作者:
xuyanqi
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/dev' into dev
# Conflicts: # src/main/java/com/elephant/framework/galaxy/aroad/security/config/ResourceServerConfiguration.java
上级
5a3802bf
5a10109a
全部展开
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
87 行增加
和
16 行删除
+87
-16
road_condition_event.sql
db/road_condition_event/road_condition_event.sql
+5
-12
路况-紧急事件对接表.sql
db/road_condition_event/路况-紧急事件对接表.sql
+0
-0
交通量视图.sql
db/traffic/交通量视图.sql
+0
-0
RoadConditionEventController.java
...oadcondition/controller/RoadConditionEventController.java
+5
-0
EventAmountDto.java
...galaxy/aroad/module/roadcondition/dto/EventAmountDto.java
+32
-0
RoadConditionEventMapper.java
...module/roadcondition/mapper/RoadConditionEventMapper.java
+4
-0
RoadConditionEventService.java
...dule/roadcondition/service/RoadConditionEventService.java
+2
-0
RoadConditionEventServiceImpl.java
...condition/service/impl/RoadConditionEventServiceImpl.java
+13
-1
ZhjcGhjhController.java
...laxy/aroad/module/zhjc/controller/ZhjcGhjhController.java
+1
-0
ResourceServerConfiguration.java
...xy/aroad/security/config/ResourceServerConfiguration.java
+1
-1
RoadConditionEventMapper.xml
...sources/mapper/roadcondition/RoadConditionEventMapper.xml
+19
-0
TrafficSpotMapper.xml
src/main/resources/mapper/traffic/TrafficSpotMapper.xml
+5
-2
没有找到文件。
db/road_condition_event/road_condition_event.sql
浏览文件 @
a8fbe73e
...
...
@@ -61,15 +61,7 @@ CREATE TABLE `road_condition_event`
SET
FOREIGN_KEY_CHECKS
=
1
;
INSERT
INTO
`aroad`
.
`sys_menu`
(
`menu_id`
,
`name`
,
`permission`
,
`path`
,
`parent_id`
,
`icon`
,
`component`
,
`sort`
,
`keep_alive`
,
`type`
,
`create_time`
,
`update_time`
,
`del_flag`
)
VALUES
(
70000
,
'路况管理'
,
NULL
,
'/roadcondition'
,
-
1
,
NULL
,
NULL
,
7
,
'0'
,
'0'
,
'2019-04-23 11:16:58'
,
'2019-04-23 11:17:22'
,
'0'
);
INSERT
INTO
`aroad`
.
`sys_menu`
(
`menu_id`
,
`name`
,
`permission`
,
`path`
,
`parent_id`
,
`icon`
,
`component`
,
`sort`
,
`keep_alive`
,
`type`
,
`create_time`
,
`update_time`
,
`del_flag`
)
VALUES
(
71000
,
'路况事件统计'
,
NULL
,
'/roadConditionShow'
,
70000
,
NULL
,
'views/roadcondition/roadConditionShow/index'
,
1
,
'0'
,
'0'
,
'2019-04-23 11:19:38'
,
NULL
,
'0'
);
INSERT
INTO
`aroad`
.
`sys_menu`
(
`menu_id`
,
`name`
,
`permission`
,
`path`
,
`parent_id`
,
`icon`
,
`component`
,
`sort`
,
`keep_alive`
,
`type`
,
`create_time`
,
`update_time`
,
`del_flag`
)
VALUES
(
72000
,
'路况事件查询'
,
NULL
,
'/roadConditionManage'
,
70000
,
NULL
,
'views/roadcondition/roadConditionManage/index'
,
2
,
'0'
,
'0'
,
'2019-04-24 17:18:24'
,
NULL
,
'0'
);
INSERT
INTO
`aroad`
.
`sys_menu`
VALUES
(
70000
,
'路况管理'
,
NULL
,
'/roadcondition'
,
-
1
,
NULL
,
NULL
,
7
,
'0'
,
'0'
,
'2019-04-23 11:16:58'
,
'2019-04-23 11:17:22'
,
'0'
);
INSERT
INTO
`aroad`
.
`sys_menu`
VALUES
(
71000
,
'路况事件统计'
,
NULL
,
'/roadConditionShow'
,
70000
,
NULL
,
'views/roadcondition/roadConditionShow/index'
,
1
,
'0'
,
'0'
,
'2019-04-23 11:19:38'
,
NULL
,
'0'
);
INSERT
INTO
`aroad`
.
`sys_menu`
VALUES
(
72000
,
'路况事件查询'
,
NULL
,
'/roadConditionManage'
,
70000
,
NULL
,
'views/roadcondition/roadConditionManage/index'
,
2
,
'0'
,
'0'
,
'2019-04-24 17:18:24'
,
NULL
,
'0'
);
INSERT
INTO
`aroad`
.
`sys_menu`
VALUES
(
73000
,
'路况权限管理'
,
NULL
,
'/userPermissionManage'
,
70000
,
NULL
,
'views/roadcondition/userPermissionManage/index'
,
3
,
'0'
,
'0'
,
'2019-05-20 09:19:35'
,
NULL
,
'0'
);
\ No newline at end of file
db/road_condition_event/路况-紧急事件对接表
→
db/road_condition_event/路况-紧急事件对接表
.sql
浏览文件 @
a8fbe73e
File moved
db/traffic/交通量视图.sql
浏览文件 @
a8fbe73e
差异被折叠。
点击展开。
src/main/java/com/elephant/framework/galaxy/aroad/module/roadcondition/controller/RoadConditionEventController.java
浏览文件 @
a8fbe73e
...
...
@@ -195,6 +195,11 @@ public class RoadConditionEventController extends BaseController {
return
new
R
<>(
roadConditionEventService
.
getSFZCoordinates
());
}
@GetMapping
(
"/geteventamount"
)
public
R
getEventAmount
()
{
return
new
R
<>(
roadConditionEventService
.
getEventAmount
());
}
/**
* @description : 部门和管理单位权限管理
* @author : Xingyuyang
...
...
src/main/java/com/elephant/framework/galaxy/aroad/module/roadcondition/dto/EventAmountDto.java
0 → 100644
浏览文件 @
a8fbe73e
package
com
.
elephant
.
framework
.
galaxy
.
aroad
.
module
.
roadcondition
.
dto
;
import
lombok.AllArgsConstructor
;
import
lombok.Builder
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
java.io.Serializable
;
/**
* @Author: XingYuyang
* @Description:
* @Date: Created in 2019/4/23 0023 1832
*/
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public
class
EventAmountDto
implements
Serializable
{
/**
* 视频数量
*/
public
String
spAmount
;
/**
* 路况事件数量
*/
public
String
lkAmount
;
/**
* 交通量数量
*/
public
String
jtlAmount
;
}
src/main/java/com/elephant/framework/galaxy/aroad/module/roadcondition/mapper/RoadConditionEventMapper.java
浏览文件 @
a8fbe73e
...
...
@@ -38,6 +38,10 @@ public interface RoadConditionEventMapper extends BaseMapper<RoadConditionEvent>
List
<
CoordinateDto
>
getCoordinates
(
@Param
(
"units"
)
List
units
);
EventAmountDto
getLKAmount
();
EventAmountDto
getSPAmount
();
EventAmountDto
getJTLAmount
();
List
<
CoordinateDto
>
getTQCoordinates
();
List
<
CoordinateDto
>
getYHCoordinates
();
...
...
src/main/java/com/elephant/framework/galaxy/aroad/module/roadcondition/service/RoadConditionEventService.java
浏览文件 @
a8fbe73e
...
...
@@ -170,6 +170,8 @@ public interface RoadConditionEventService extends IService<RoadConditionEvent>
List
<
DeptUnitDto
>
getUnitByDept
(
String
deptId
);
EventAmountDto
getEventAmount
();
boolean
saveUnit
();
boolean
deleteUnit
();
...
...
src/main/java/com/elephant/framework/galaxy/aroad/module/roadcondition/service/impl/RoadConditionEventServiceImpl.java
浏览文件 @
a8fbe73e
...
...
@@ -8,7 +8,6 @@ import com.elephant.framework.galaxy.aroad.module.roadcondition.dto.*;
import
com.elephant.framework.galaxy.aroad.module.roadcondition.entity.RoadConditionEvent
;
import
com.elephant.framework.galaxy.aroad.module.roadcondition.mapper.RoadConditionEventMapper
;
import
com.elephant.framework.galaxy.aroad.module.roadcondition.service.RoadConditionEventService
;
import
com.elephant.framework.galaxy.aroad.module.szgl.entity.SzglGsdGcz
;
import
lombok.AllArgsConstructor
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.cache.annotation.Cacheable
;
...
...
@@ -248,6 +247,19 @@ public class RoadConditionEventServiceImpl
return
baseMapper
.
getUnitByDept
(
deptId
);
}
public
EventAmountDto
getEventAmount
(){
List
<
EventAmountDto
>
amountList
=
new
ArrayList
<>();
amountList
.
add
(
baseMapper
.
getLKAmount
());
amountList
.
add
(
baseMapper
.
getSPAmount
());
amountList
.
add
(
baseMapper
.
getJTLAmount
());
//System.out.println(amountList);
EventAmountDto
eventAmountDto
=
new
EventAmountDto
();
eventAmountDto
.
setLkAmount
(
amountList
.
get
(
0
).
lkAmount
);
eventAmountDto
.
setSpAmount
(
amountList
.
get
(
1
).
spAmount
);
eventAmountDto
.
setJtlAmount
(
amountList
.
get
(
2
).
jtlAmount
);
return
eventAmountDto
;
}
// @Cacheable(value = "roadConditionCoordinates")
public
List
<
CoordinateDto
>
getCoordinates
(
@Param
(
"deptId"
)
String
deptId
)
{
List
<
DeptUnitDto
>
unitList
=
baseMapper
.
getUnitByDept
(
deptId
);
...
...
src/main/java/com/elephant/framework/galaxy/aroad/module/zhjc/controller/ZhjcGhjhController.java
浏览文件 @
a8fbe73e
...
...
@@ -11,6 +11,7 @@ import lombok.AllArgsConstructor;
import
org.springframework.boot.web.servlet.ServletComponentScan
;
import
org.springframework.web.bind.annotation.*
;
import
com.elephant.framework.galaxy.aroad.module.common.controller.BaseController
;
import
sun.net.www.http.HttpClient
;
import
java.util.UUID
;
...
...
src/main/java/com/elephant/framework/galaxy/aroad/security/config/ResourceServerConfiguration.java
浏览文件 @
a8fbe73e
...
...
@@ -22,7 +22,7 @@ public class ResourceServerConfiguration extends ResourceServerConfigurerAdapter
http
.
formLogin
()
.
and
()
.
authorizeRequests
()
.
antMatchers
(
"/roadconditionevent/**"
,
"/zhyh/lkpd/save"
,
"/zhyh/dzxgcglgcxx/**"
,
"/zhyh/dzxgcglgcjd/**"
,
"/zhyh/dzxgcgljlzf/**"
,
"/zhyh/dzxgcglysgl/**"
)
.
antMatchers
(
"/roadconditionevent/**"
,
"/zhyh/lkpd/save"
,
"/zhyh/dzxgcglgcxx/**"
,
"/zhyh/dzxgcglgcjd/**"
,
"/zhyh/dzxgcgljlzf/**"
,
"/zhyh/dzxgcglysgl/**"
,
"/zhjc/ghjhghjdzb/**"
,
"/zhjc/ghjh/**"
,
"/zhjc/ghjhfghjdzb/**"
)
.
permitAll
()
.
anyRequest
()
.
authenticated
()
...
...
src/main/resources/mapper/roadcondition/RoadConditionEventMapper.xml
浏览文件 @
a8fbe73e
...
...
@@ -110,6 +110,12 @@
<result
property=
"emergencyEventId"
column=
"emergency_event_id"
/>
</resultMap>
<resultMap
id=
"EventAmountMap"
type=
"com.elephant.framework.galaxy.aroad.module.roadcondition.dto.EventAmountDto"
>
<result
property=
"lkAmount"
column=
"lkAmount"
/>
<result
property=
"jtlAmount"
column=
"jtlAmount"
/>
<result
property=
"spAmount"
column=
"spAmount"
/>
</resultMap>
<!-- <insert id="saveEmergencyUnit">-->
<!-- INSERT INTO roadcondition_emergency ( event_id, emergency_event_id )-->
<!-- values (#{eventId},#{emergencyEventId})-->
...
...
@@ -265,6 +271,19 @@
where event_title = '收费站异常';
</select>
<select
id=
"getLKAmount"
resultMap=
"EventAmountMap"
>
select count(0) as lkAmount
from `road_condition_event`
</select>
<select
id=
"getSPAmount"
resultMap=
"EventAmountMap"
>
select count(0) as spAmount
from `t_szgl_gsd_spdw`
</select>
<select
id=
"getJTLAmount"
resultMap=
"EventAmountMap"
>
select count(0) as jtlAmount
from `t_szgl_gsd_gcz`
</select>
<select
id=
"selectRoadMaintainEvent"
parameterType=
"com.elephant.framework.galaxy.aroad.module.roadcondition.entity.RoadConditionEvent"
resultMap=
"roadConditionEventMap"
>
...
...
src/main/resources/mapper/traffic/TrafficSpotMapper.xml
浏览文件 @
a8fbe73e
...
...
@@ -44,18 +44,21 @@
lxmc like CONCAT('%',#{trafficSpot.roadName},'%')
or
lxbh like CONCAT('%',#{trafficSpot.roadName},'%')
and
</if>
LENGTH(lxbh)=4
</where>
</select>
<select
id=
"getCoordinates"
resultMap=
"CoordinateDtoMap"
>
select id, jd, wd
from `t_szgl_gsd_gcz`;
from `t_szgl_gsd_gcz`
where LENGTH(lxbh)=4;
</select>
<select
id=
"getById"
resultMap=
"trafficSpotMap"
>
select *
from `t_szgl_gsd_gcz`
where id=#{rowId};
where id=#{rowId}
and LENGTH(lxbh)=4
;
</select>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论