Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
8c7f15b1
Commit
8c7f15b1
authored
Dec 29, 2022
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
车道表增加type字段
parent
e2ccbab4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
LaneInfoPO.java
...ice/src/main/java/net/wanji/web/po/scheme/LaneInfoPO.java
+3
-0
CrossConfigServiceImpl.java
...wanji/web/service/scheme/impl/CrossConfigServiceImpl.java
+1
-2
LaneInfoMapper.xml
...trol-service/src/main/resources/mapper/LaneInfoMapper.xml
+5
-4
No files found.
signal-control-service/src/main/java/net/wanji/web/po/scheme/LaneInfoPO.java
View file @
8c7f15b1
...
...
@@ -26,6 +26,9 @@ public class LaneInfoPO {
*/
@ApiModelProperty
(
name
=
"车道序号"
,
notes
=
"从左车道开始编号11、12、13..."
)
private
Integer
sort
;
/** 车道类型:1路段车道;2进口车道;3出口车道;4左转弯待转区;6直行待行区 */
@ApiModelProperty
(
name
=
"车道类型:1路段车道;2进口车道;3出口车道;4左转弯待转区;6直行待行区"
,
notes
=
""
)
private
Integer
type
=
2
;
// todo 信控只用到进口车道
/**
* 车道方向:1北;2东北;3东;4东南;5南;6西南;7西;8西北
*/
...
...
signal-control-service/src/main/java/net/wanji/web/service/scheme/impl/CrossConfigServiceImpl.java
View file @
8c7f15b1
...
...
@@ -106,9 +106,8 @@ public class CrossConfigServiceImpl implements CrossConfigService {
}
private
static
String
getId
(
String
crossId
,
DirListElement
dirListElement
)
{
CrossDirInfoPO
crossDirInfoPO
=
new
CrossDirInfoPO
();
Integer
dir
=
dirListElement
.
getDir
();
String
id
=
crossId
+
dir
+
1
+
0
;
// todo 暂无主辅路序号,赋值0
String
id
=
crossId
+
"_"
+
dir
+
"_"
+
1
+
"_"
+
0
;
// todo 暂无主辅路序号,赋值0
return
id
;
}
...
...
signal-control-service/src/main/resources/mapper/LaneInfoMapper.xml
View file @
8c7f15b1
...
...
@@ -7,6 +7,7 @@
<result
property=
"id"
column=
"id"
/>
<result
property=
"code"
column=
"code"
/>
<result
property=
"sort"
column=
"sort"
/>
<result
property=
"type"
column=
"type"
/>
<result
property=
"dir"
column=
"dir"
/>
<result
property=
"turn"
column=
"turn"
/>
<result
property=
"category"
column=
"category"
/>
...
...
@@ -19,10 +20,10 @@
</resultMap>
<insert
id=
"insertBatch"
>
insert into t_base_lane_info(id,code,sort,dir,turn,category,cross_id)
insert into t_base_lane_info(id,code,sort,
type,
dir,turn,category,cross_id)
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.id},#{entity.code},#{entity.sort},#{entity.dir},#{entity.turn},#{entity.category},#{entity.crossId})
(#{entity.id},#{entity.code},#{entity.sort},#{entity.
type},#{entity.
dir},#{entity.turn},#{entity.category},#{entity.crossId})
</foreach>
</insert>
...
...
@@ -33,14 +34,14 @@
<select
id=
"selectByCrossIdAndDir"
resultMap=
"BaseResultMap"
>
select
id,code,sort,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
id,code,sort,
type,
dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
from t_base_lane_info
where cross_id = #{crossId} and dir = #{dir}
</select>
<select
id=
"selectBycrossId"
resultMap=
"BaseResultMap"
>
select
id,code,sort,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
id,code,sort,
type,
dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
from t_base_lane_info
where cross_id = #{crossId}
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment