Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
aroad_aqsc
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
许言琪
aroad_aqsc
Commits
90ff8695
提交
90ff8695
authored
7月 01, 2019
作者:
Phyday
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
对接翰高数据库(交通量/应急资源/路况)
上级
9ddd3117
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
38 行增加
和
38 行删除
+38
-38
EmergencyTeamEquipmentMapper.xml
...sources/mapper/emergency/EmergencyTeamEquipmentMapper.xml
+1
-1
EmergencyTeamMapper.xml
src/main/resources/mapper/emergency/EmergencyTeamMapper.xml
+1
-1
MaterialHouseMapper.xml
src/main/resources/mapper/emergency/MaterialHouseMapper.xml
+1
-1
RoadConditionEventMapper.xml
...sources/mapper/roadcondition/RoadConditionEventMapper.xml
+31
-31
TrafficRoadsectionMapper.xml
...ain/resources/mapper/traffic/TrafficRoadsectionMapper.xml
+1
-1
TrafficRouteMapper.xml
src/main/resources/mapper/traffic/TrafficRouteMapper.xml
+1
-1
TrafficSpotMapper.xml
src/main/resources/mapper/traffic/TrafficSpotMapper.xml
+2
-2
没有找到文件。
src/main/resources/mapper/emergency/EmergencyTeamEquipmentMapper.xml
浏览文件 @
90ff8695
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
<select
id=
"getCoordinates"
resultMap=
"teamEquipmentCoordinateMap"
>
<select
id=
"getCoordinates"
resultMap=
"teamEquipmentCoordinateMap"
>
select row_id, longitude, latitude
select row_id, longitude, latitude
from
`emergency_team_equipment`
;
from
emergency_team_equipment
;
</select>
</select>
<insert
id=
"save"
>
<insert
id=
"save"
>
...
...
src/main/resources/mapper/emergency/EmergencyTeamMapper.xml
浏览文件 @
90ff8695
...
@@ -232,7 +232,7 @@
...
@@ -232,7 +232,7 @@
<select
id=
"getCoordinates"
resultMap=
"teamCoordinateDtoMap"
>
<select
id=
"getCoordinates"
resultMap=
"teamCoordinateDtoMap"
>
select row_id, longitude, latitude
select row_id, longitude, latitude
from
`emergency_team`
;
from
emergency_team
;
</select>
</select>
<select
id=
"getGoalTeamVo"
resultMap=
"emergencyMaterialAndEquipmentVoMap"
>
<select
id=
"getGoalTeamVo"
resultMap=
"emergencyMaterialAndEquipmentVoMap"
>
...
...
src/main/resources/mapper/emergency/MaterialHouseMapper.xml
浏览文件 @
90ff8695
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<select
id=
"getCoordinates"
resultMap=
"materialHouseCoordinateDtoMap"
>
<select
id=
"getCoordinates"
resultMap=
"materialHouseCoordinateDtoMap"
>
select row_id, longitude, latitude
select row_id, longitude, latitude
from
`material_house`
;
from
material_house
;
</select>
</select>
<select
id=
"getTeams"
resultMap=
"teamMap"
>
<select
id=
"getTeams"
resultMap=
"teamMap"
>
...
...
src/main/resources/mapper/roadcondition/RoadConditionEventMapper.xml
浏览文件 @
90ff8695
...
@@ -116,34 +116,35 @@
...
@@ -116,34 +116,35 @@
<result
property=
"jtlAmount"
column=
"jtlAmount"
/>
<result
property=
"jtlAmount"
column=
"jtlAmount"
/>
<result
property=
"spAmount"
column=
"spAmount"
/>
<result
property=
"spAmount"
column=
"spAmount"
/>
</resultMap>
</resultMap>
<!-- <insert id="saveEmergencyUnit">-->
<!-- INSERT INTO roadcondition_emergency ( event_id, emergency_event_id )-->
<insert
id=
"saveEmergencyUnit"
>
<!-- values (#{eventId},#{emergencyEventId})-->
INSERT INTO roadcondition_emergency ( event_id, emergency_event_id )
<!-- </insert>-->
values (#{eventId},#{emergencyEventId})
</insert>
<select
id=
"getUnitTree"
resultMap=
"SaveUnitMap"
>
<select
id=
"getUnitTree"
resultMap=
"SaveUnitMap"
>
select *
select *
from roadcondition_unit
from roadcondition_unit
</select>
</select>
<!-- <insert id="saveUnit">--
>
<insert
id=
"saveUnit"
>
<!-- INSERT INTO roadcondition_unit ( unit_id, unit_name )-->
INSERT INTO roadcondition_unit ( unit_id, unit_name )
<!-- SELECT start_unit_no, maintain_unit FROM road_condition_event-->
SELECT start_unit_no, maintain_unit FROM road_condition_event
<!-- GROUP BY start_unit_no, maintain_unit-->
GROUP BY start_unit_no, maintain_unit
<!-- </insert>--
>
</insert
>
<!-- <delete id="deleteUnitByDept">--
>
<delete
id=
"deleteUnitByDept"
>
<!-- delete from roadcondition_emergencyevent where dept_id=#{deptId}-->
delete from roadcondition_emergencyevent where dept_id=#{deptId}
<!-- </delete>--
>
</delete
>
<!-- <insert id="saveUnitWithDept">--
>
<insert
id=
"saveUnitWithDept"
>
<!-- insert into roadcondition_emergencyevent (dept_id, unit_id) values (#{deptId},#{unit})-->
insert into roadcondition_emergencyevent (dept_id, unit_id) values (#{deptId},#{unit})
<!-- </insert>--
>
</insert
>
<select
id=
"getRoadConditionEventPage"
resultMap=
"roadConditionEventMap"
<select
id=
"getRoadConditionEventPage"
resultMap=
"roadConditionEventMap"
parameterType=
"com.elephant.framework.galaxy.aroad.module.roadcondition.entity.RoadConditionEvent"
>
parameterType=
"com.elephant.framework.galaxy.aroad.module.roadcondition.entity.RoadConditionEvent"
>
SELECT rce.*,count(re.event_id) as count
SELECT rce.*,count(re.event_id) as count
FROM
`road_condition_event` rce left join `roadcondition_emergency`
re
FROM
road_condition_event rce left join roadcondition_emergency
re
on (rce.event_id = re.event_id)
on (rce.event_id = re.event_id)
<where>
<where>
<if
test=
"roadConditionEvent.startUnit != null"
>
maintain_unit like
<if
test=
"roadConditionEvent.startUnit != null"
>
maintain_unit like
...
@@ -162,7 +163,7 @@
...
@@ -162,7 +163,7 @@
<foreach
item=
"item"
collection=
"units"
separator=
","
open=
"("
close=
")"
index=
""
>
<foreach
item=
"item"
collection=
"units"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
#{item}
</foreach>
</foreach>
group by event_id
group by
rce.
event_id
</where>
</where>
</select>
</select>
...
@@ -193,12 +194,12 @@
...
@@ -193,12 +194,12 @@
<select
id=
"staticByMonth"
resultMap=
"staticByMonthMap"
>
<select
id=
"staticByMonth"
resultMap=
"staticByMonthMap"
>
SELECT count(*) AS count,
SELECT count(*) AS count,
YEAR(start_time
) AS year,
to_char(t.start_time,'YYYY'
) AS year,
MONTH(start_time
) AS month
to_char(t.start_time,'MM'
) AS month
FROM road_condition_event
FROM road_condition_event
t
WHERE event_type = '养护施工信息'
WHERE event_type = '养护施工信息'
GROUP BY
YEAR(start_time
),
GROUP BY
to_char(t.start_time,'YYYY'
),
MONTH(start_time
)
to_char(t.start_time,'MM'
)
</select>
</select>
<select
id=
"staticByRoadCode"
resultMap=
"staticByRoadCodeMap"
>
<select
id=
"staticByRoadCode"
resultMap=
"staticByRoadCodeMap"
>
...
@@ -211,7 +212,6 @@
...
@@ -211,7 +212,6 @@
<select
id=
"staticByCity"
resultMap=
"staticByCityMap"
>
<select
id=
"staticByCity"
resultMap=
"staticByCityMap"
>
SELECT count(*) AS count,
SELECT count(*) AS count,
# maintain_unit,
SUBSTRING(maintain_unit FROM 1 FOR 2) as city
SUBSTRING(maintain_unit FROM 1 FOR 2) as city
FROM road_condition_event
FROM road_condition_event
where SUBSTRING(maintain_unit FROM 1 FOR 2) != '山东'
where SUBSTRING(maintain_unit FROM 1 FOR 2) != '山东'
...
@@ -244,7 +244,7 @@
...
@@ -244,7 +244,7 @@
<select
id=
"getCoordinates"
resultMap=
"CoordinateDtoMap"
parameterType=
"list"
>
<select
id=
"getCoordinates"
resultMap=
"CoordinateDtoMap"
parameterType=
"list"
>
select event_id, longitude, latitude, event_type,event_title
select event_id, longitude, latitude, event_type,event_title
from
`road_condition_event`
from
road_condition_event
where start_unit_no in
where start_unit_no in
<foreach
item=
"item"
collection=
"units"
separator=
","
open=
"("
close=
")"
index=
""
>
<foreach
item=
"item"
collection=
"units"
separator=
","
open=
"("
close=
")"
index=
""
>
#{item}
#{item}
...
@@ -253,38 +253,38 @@
...
@@ -253,38 +253,38 @@
<select
id=
"getTQCoordinates"
resultMap=
"CoordinateDtoMap"
>
<select
id=
"getTQCoordinates"
resultMap=
"CoordinateDtoMap"
>
select event_id, longitude, latitude, event_type, event_title
select event_id, longitude, latitude, event_type, event_title
from
`road_condition_event`
from
road_condition_event
where event_title = '异常天气';
where event_title = '异常天气';
</select>
</select>
<select
id=
"getYHCoordinates"
resultMap=
"roadConditionEventMap"
>
<select
id=
"getYHCoordinates"
resultMap=
"roadConditionEventMap"
>
select event_id, longitude, latitude, event_type, event_title
select event_id, longitude, latitude, event_type, event_title
from
`road_condition_event`
;
from
road_condition_event
;
</select>
</select>
<select
id=
"getTFCoordinates"
resultMap=
"CoordinateDtoMap"
>
<select
id=
"getTFCoordinates"
resultMap=
"CoordinateDtoMap"
>
select event_id, longitude, latitude, event_type, event_title
select event_id, longitude, latitude, event_type, event_title
from
`road_condition_event`
from
road_condition_event
where event_title = '突发事件';
where event_title = '突发事件';
</select>
</select>
<select
id=
"getSFZCoordinates"
resultMap=
"CoordinateDtoMap"
>
<select
id=
"getSFZCoordinates"
resultMap=
"CoordinateDtoMap"
>
select event_id, longitude, latitude, event_type, event_title
select event_id, longitude, latitude, event_type, event_title
from
`road_condition_event`
from
road_condition_event
where event_title = '收费站异常';
where event_title = '收费站异常';
</select>
</select>
<select
id=
"getLKAmount"
resultMap=
"EventAmountMap"
>
<select
id=
"getLKAmount"
resultMap=
"EventAmountMap"
>
select count(0) as lkAmount
select count(0) as lkAmount
from
`road_condition_event`
from
road_condition_event
</select>
</select>
<select
id=
"getSPAmount"
resultMap=
"EventAmountMap"
>
<select
id=
"getSPAmount"
resultMap=
"EventAmountMap"
>
select count(0) as spAmount
select count(0) as spAmount
from
`t_szgl_gsd_spdw`
from
t_szgl_gsd_spdw
</select>
</select>
<select
id=
"getJTLAmount"
resultMap=
"EventAmountMap"
>
<select
id=
"getJTLAmount"
resultMap=
"EventAmountMap"
>
select count(0) as jtlAmount
select count(0) as jtlAmount
from
`t_szgl_gsd_gcz`
from
t_szgl_gsd_gcz
</select>
</select>
<select
id=
"selectRoadMaintainEvent"
<select
id=
"selectRoadMaintainEvent"
...
...
src/main/resources/mapper/traffic/TrafficRoadsectionMapper.xml
浏览文件 @
90ff8695
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</resultMap>
</resultMap>
<select
id=
"getTrafficRoadsectionPage"
resultMap=
"trafficRoadsectionMap"
>
<select
id=
"getTrafficRoadsectionPage"
resultMap=
"trafficRoadsectionMap"
>
select * from
v_traffic_roadsection
select * from
t_lwjc_gsd_ldnpjrjtl
<where>
<where>
<if
test=
"trafficRoadsection.spotName != null"
>
<if
test=
"trafficRoadsection.spotName != null"
>
spot_name like CONCAT('%',#{trafficRoadsection.spotName},'%')
spot_name like CONCAT('%',#{trafficRoadsection.spotName},'%')
...
...
src/main/resources/mapper/traffic/TrafficRouteMapper.xml
浏览文件 @
90ff8695
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
<select
id=
"getTrafficRoutePage"
resultMap=
"trafficRouteMap"
<select
id=
"getTrafficRoutePage"
resultMap=
"trafficRouteMap"
parameterType=
"com.elephant.framework.galaxy.aroad.module.traffic.entity.TrafficRoute"
>
parameterType=
"com.elephant.framework.galaxy.aroad.module.traffic.entity.TrafficRoute"
>
select * from
v_traffic_route
select * from
t_lwjc_gsd_lxjtl
<where>
<where>
<if
test=
"trafficRoute.roadName != null"
>
<if
test=
"trafficRoute.roadName != null"
>
road_name like CONCAT('%',#{trafficRoute.roadName},'%')
road_name like CONCAT('%',#{trafficRoute.roadName},'%')
...
...
src/main/resources/mapper/traffic/TrafficSpotMapper.xml
浏览文件 @
90ff8695
...
@@ -52,13 +52,13 @@
...
@@ -52,13 +52,13 @@
<select
id=
"getCoordinates"
resultMap=
"CoordinateDtoMap"
>
<select
id=
"getCoordinates"
resultMap=
"CoordinateDtoMap"
>
select id, jd, wd
select id, jd, wd
from
`t_szgl_gsd_gcz`
from
t_szgl_gsd_gcz
where LENGTH(lxbh)=4;
where LENGTH(lxbh)=4;
</select>
</select>
<select
id=
"getById"
resultMap=
"trafficSpotMap"
>
<select
id=
"getById"
resultMap=
"trafficSpotMap"
>
select *
select *
from
`t_szgl_gsd_gcz`
from
t_szgl_gsd_gcz
where id=#{rowId} and LENGTH(lxbh)=4;
where id=#{rowId} and LENGTH(lxbh)=4;
</select>
</select>
</mapper>
</mapper>
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论