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
4e4a2dca
Commit
4e4a2dca
authored
Feb 10, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配车道数据表新增字段
parent
09734f43
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
LaneInfoPO.java
...ice/src/main/java/net/wanji/web/po/scheme/LaneInfoPO.java
+2
-0
LaneInfoMapper.xml
...rvice/src/main/resources/mapper/scheme/LaneInfoMapper.xml
+6
-5
No files found.
signal-control-service/src/main/java/net/wanji/web/po/scheme/LaneInfoPO.java
View file @
4e4a2dca
...
@@ -66,6 +66,8 @@ public class LaneInfoPO {
...
@@ -66,6 +66,8 @@ public class LaneInfoPO {
*/
*/
@ApiModelProperty
(
value
=
"车道宽度"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"车道宽度"
,
notes
=
""
)
private
Double
width
=
0.0
;
private
Double
width
=
0.0
;
@ApiModelProperty
(
value
=
"wkt"
,
notes
=
""
)
private
String
wkt
=
""
;
/**
/**
* 创建时间
* 创建时间
*/
*/
...
...
signal-control-service/src/main/resources/mapper/scheme/LaneInfoMapper.xml
View file @
4e4a2dca
...
@@ -15,12 +15,13 @@
...
@@ -15,12 +15,13 @@
<result
property=
"rid"
column=
"rid"
/>
<result
property=
"rid"
column=
"rid"
/>
<result
property=
"length"
column=
"length"
/>
<result
property=
"length"
column=
"length"
/>
<result
property=
"width"
column=
"width"
/>
<result
property=
"width"
column=
"width"
/>
<result
property=
"wkt"
column=
"wkt"
/>
<result
property=
"gmtCreate"
column=
"gmt_create"
/>
<result
property=
"gmtCreate"
column=
"gmt_create"
/>
<result
property=
"gmtModified"
column=
"gmt_modified"
/>
<result
property=
"gmtModified"
column=
"gmt_modified"
/>
</resultMap>
</resultMap>
<insert
id=
"insertBatch"
>
<insert
id=
"insertBatch"
>
insert into t_base_lane_info(id,code,sort,type,dir,turn,category,cross_id,rid,length,width)
insert into t_base_lane_info(id,code,sort,type,dir,turn,category,cross_id,rid,length,width
,wkt
)
values
values
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
<foreach
collection=
"entities"
item=
"entity"
separator=
","
>
(#{entity.id},#{entity.code},#{entity.sort},#{entity.type},#{entity.dir},#{entity.turn},#{entity.category},#{entity.crossId},#{entity.rid},#{entity.length},#{entity.width})
(#{entity.id},#{entity.code},#{entity.sort},#{entity.type},#{entity.dir},#{entity.turn},#{entity.category},#{entity.crossId},#{entity.rid},#{entity.length},#{entity.width})
...
@@ -34,21 +35,21 @@
...
@@ -34,21 +35,21 @@
<select
id=
"selectByCrossIdAndDir"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByCrossIdAndDir"
resultMap=
"BaseResultMap"
>
select
select
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,
wkt,
gmt_create,gmt_modified
from t_base_lane_info
from t_base_lane_info
where cross_id = #{crossId} and dir = #{dir} and type = 2
where cross_id = #{crossId} and dir = #{dir} and type = 2
</select>
</select>
<select
id=
"selectBycrossId"
resultMap=
"BaseResultMap"
>
<select
id=
"selectBycrossId"
resultMap=
"BaseResultMap"
>
select
select
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,
wkt,
gmt_create,gmt_modified
from t_base_lane_info
from t_base_lane_info
where cross_id = #{crossId} and type = 2
where cross_id = #{crossId} and type = 2
</select>
</select>
<select
id=
"selectByCrossIdDirCode"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByCrossIdDirCode"
resultMap=
"BaseResultMap"
>
select
select
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
id,code,sort,type,dir,turn,category,cross_id,rid,length,width,
wkt,
gmt_create,gmt_modified
from t_base_lane_info
from t_base_lane_info
where cross_id = #{crossId} and dir = #{dir} and code = #{code} and type = 2
where cross_id = #{crossId} and dir = #{dir} and code = #{code} and type = 2
</select>
</select>
...
@@ -61,7 +62,7 @@
...
@@ -61,7 +62,7 @@
</select>
</select>
<select
id=
"selectByLaneIds"
resultMap=
"BaseResultMap"
>
<select
id=
"selectByLaneIds"
resultMap=
"BaseResultMap"
>
select id,code,sort,type,dir,turn,category,cross_id,rid,length,width,gmt_create,gmt_modified
select id,code,sort,type,dir,turn,category,cross_id,rid,length,width,
wkt,
gmt_create,gmt_modified
from t_base_lane_info
from t_base_lane_info
where id in
where id in
<foreach
collection=
"laneIds"
item=
"laneId"
separator=
","
open=
"("
close=
")"
>
<foreach
collection=
"laneIds"
item=
"laneId"
separator=
","
open=
"("
close=
")"
>
...
...
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