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
a5769078
Commit
a5769078
authored
Nov 28, 2022
by
wuxiaokai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
路网管理-路口管理
parent
116b8526
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
75 additions
and
69 deletions
+75
-69
TBaseAreaInfoMapper.xml
...service/src/main/resources/mapper/TBaseAreaInfoMapper.xml
+36
-37
TBaseCrossInfoMapper.xml
...ervice/src/main/resources/mapper/TBaseCrossInfoMapper.xml
+39
-32
No files found.
signal-web-service/src/main/resources/mapper/TBaseAreaInfoMapper.xml
View file @
a5769078
...
...
@@ -15,11 +15,11 @@
<result
column=
"polylines"
property=
"polylines"
jdbcType=
"LONGVARCHAR"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, code, name, type, parent, location, gmt_create, gmt_modified
</sql>
id, code, name, type, parent, location, gmt_create, gmt_modified
</sql>
<sql
id=
"Blob_Column_List"
>
polylines
</sql>
polylines
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"ResultMapWithBLOBs"
parameterType=
"java.lang.Integer"
>
select
<include
refid=
"Base_Column_List"
/>
...
...
@@ -29,19 +29,18 @@
where id = #{id,jdbcType=INTEGER}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.Integer"
>
delete from t_base_area_info
where id = #{id,jdbcType=INTEGER}
</delete>
delete
from t_base_area_info
where id = #{id,jdbcType=INTEGER}
</delete>
<insert
id=
"insert"
parameterType=
"net.wanji.web.entity.TBaseAreaInfo"
>
insert into t_base_area_info (id, code, name,
type, parent, location,
gmt_create, gmt_modified, polylines
)
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{parent,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{polylines,jdbcType=LONGVARCHAR}
)
</insert>
insert into t_base_area_info (id, code, name,
type, parent, location,
gmt_create, gmt_modified, polylines)
values (#{id,jdbcType=INTEGER}, #{code,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR},
#{type,jdbcType=TINYINT}, #{parent,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP}, #{polylines,jdbcType=LONGVARCHAR})
</insert>
<insert
id=
"insertSelective"
parameterType=
"net.wanji.web.entity.TBaseAreaInfo"
>
insert into t_base_area_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -134,26 +133,26 @@
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKeyWithBLOBs"
parameterType=
"net.wanji.web.entity.TBaseAreaInfo"
>
update t_base_area_info
set code
= #{code,jdbcType=INTEGER},
name
= #{name,jdbcType=VARCHAR},
type
= #{type,jdbcType=TINYINT},
parent
= #{parent,jdbcType=INTEGER},
location
= #{location,jdbcType=VARCHAR},
gmt_create
= #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
polylines
= #{polylines,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
update t_base_area_info
set code
= #{code,jdbcType=INTEGER},
name
= #{name,jdbcType=VARCHAR},
type
= #{type,jdbcType=TINYINT},
parent
= #{parent,jdbcType=INTEGER},
location
= #{location,jdbcType=VARCHAR},
gmt_create
= #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP},
polylines
= #{polylines,jdbcType=LONGVARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"net.wanji.web.entity.TBaseAreaInfo"
>
update t_base_area_info
set code
= #{code,jdbcType=INTEGER},
name
= #{name,jdbcType=VARCHAR},
type
= #{type,jdbcType=TINYINT},
parent
= #{parent,jdbcType=INTEGER},
location
= #{location,jdbcType=VARCHAR},
gmt_create
= #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
update t_base_area_info
set code
= #{code,jdbcType=INTEGER},
name
= #{name,jdbcType=VARCHAR},
type
= #{type,jdbcType=TINYINT},
parent
= #{parent,jdbcType=INTEGER},
location
= #{location,jdbcType=VARCHAR},
gmt_create
= #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
signal-web-service/src/main/resources/mapper/TBaseCrossInfoMapper.xml
View file @
a5769078
...
...
@@ -28,30 +28,36 @@
<result
column=
"gmt_create"
property=
"gmtCreate"
jdbcType=
"TIMESTAMP"
/>
<result
column=
"gmt_modified"
property=
"gmtModified"
jdbcType=
"TIMESTAMP"
/>
</resultMap>
<sql
id=
"Base_Column_List"
>
id, name, type, level, area_code, location, is_signal, is_start, is_send, gmt_create,
gmt_modified
</sql>
<select
id=
"selectByPrimaryKey"
resultMap=
"BaseResultMap"
parameterType=
"java.lang.String"
>
select
<include
refid=
"Base_Column_List"
/>
select id,
name,
type,
level,
area_code,
location,
is_signal,
is_start,
is_send,
gmt_create,
gmt_modified
from t_base_cross_info
where id = #{id,jdbcType=CHAR}
</select>
<delete
id=
"deleteByPrimaryKey"
parameterType=
"java.lang.String"
>
delete from t_base_cross_info
where id = #{id,jdbcType=CHAR}
</delete>
delete
from t_base_cross_info
where id = #{id,jdbcType=CHAR}
</delete>
<insert
id=
"insert"
parameterType=
"net.wanji.web.entity.TBaseCrossInfo"
>
insert into t_base_cross_info (id, name, type,
level, area_code, location,
is_signal, is_start, is_send,
gmt_create, gmt_modified)
values (#{id,jdbcType=CHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
#{level,jdbcType=TINYINT}, #{areaCode,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR},
#{isSignal,jdbcType=TINYINT}, #{isStart,jdbcType=TINYINT}, #{isSend,jdbcType=TINYINT},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP})
</insert>
insert into t_base_cross_info (id, name, type,
level, area_code, location,
is_signal, is_start, is_send,
gmt_create, gmt_modified)
values (#{id,jdbcType=CHAR}, #{name,jdbcType=VARCHAR}, #{type,jdbcType=TINYINT},
#{level,jdbcType=TINYINT}, #{areaCode,jdbcType=INTEGER}, #{location,jdbcType=VARCHAR},
#{isSignal,jdbcType=TINYINT}, #{isStart,jdbcType=TINYINT}, #{isSend,jdbcType=TINYINT},
#{gmtCreate,jdbcType=TIMESTAMP}, #{gmtModified,jdbcType=TIMESTAMP})
</insert>
<insert
id=
"insertSelective"
parameterType=
"net.wanji.web.entity.TBaseCrossInfo"
>
insert into t_base_cross_info
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -162,22 +168,23 @@
where id = #{id,jdbcType=CHAR}
</update>
<update
id=
"updateByPrimaryKey"
parameterType=
"net.wanji.web.entity.TBaseCrossInfo"
>
update t_base_cross_info
set name
= #{name,jdbcType=VARCHAR},
type
= #{type,jdbcType=TINYINT},
level
= #{level,jdbcType=TINYINT},
area_code
= #{areaCode,jdbcType=INTEGER},
location
= #{location,jdbcType=VARCHAR},
is_signal
= #{isSignal,jdbcType=TINYINT},
is_start
= #{isStart,jdbcType=TINYINT},
is_send
= #{isSend,jdbcType=TINYINT},
gmt_create
= #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=CHAR}
</update>
update t_base_cross_info
set name
= #{name,jdbcType=VARCHAR},
type
= #{type,jdbcType=TINYINT},
level
= #{level,jdbcType=TINYINT},
area_code
= #{areaCode,jdbcType=INTEGER},
location
= #{location,jdbcType=VARCHAR},
is_signal
= #{isSignal,jdbcType=TINYINT},
is_start
= #{isStart,jdbcType=TINYINT},
is_send
= #{isSend,jdbcType=TINYINT},
gmt_create
= #{gmtCreate,jdbcType=TIMESTAMP},
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=CHAR}
</update>
<select
id=
"selectAll"
parameterType=
"net.wanji.web.vo.CrossInfoVO"
resultMap=
"SelectAllMap"
>
<bind
name=
"startNum"
value=
"(pageNum - 1) * pageSize"
/>
select c.id,c.name,c.type,c.level,c.area_code,a.name area_name,c.location,c.is_signal,c.is_start,c.is_send,c.gmt_create,c.gmt_modified
select c.id,c.name,c.type,c.level,c.area_code,a.name
area_name,c.location,c.is_signal,c.is_start,c.is_send,c.gmt_create,c.gmt_modified
from t_base_cross_info c
left join t_base_area_info a on c.area_code=a.code
<where>
...
...
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