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
976d75e1
Commit
976d75e1
authored
Mar 14, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 优化路口表参数
parent
75261828
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
67 additions
and
10 deletions
+67
-10
CrossInfoPageVO.java
...s/src/main/java/net/wanji/databus/vo/CrossInfoPageVO.java
+18
-0
CrossInfoVO.java
...tabus/src/main/java/net/wanji/databus/vo/CrossInfoVO.java
+47
-8
CrossInfoMapper.xml
wj-databus/src/main/resources/mapper/CrossInfoMapper.xml
+2
-2
No files found.
wj-databus/src/main/java/net/wanji/databus/vo/CrossInfoPageVO.java
0 → 100644
View file @
976d75e1
package
net
.
wanji
.
databus
.
vo
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
/**
* @author duanruiming
* @date 2023/02/07 15:48
*/
@Data
@ApiModel
(
value
=
"路口信息实体"
)
public
class
CrossInfoPageVO
extends
PageVO
{
@ApiModelProperty
(
value
=
"路口名称"
)
String
crossName
;
@ApiModelProperty
(
value
=
"信号机厂商"
)
String
manufacturerNick
;
}
wj-databus/src/main/java/net/wanji/databus/vo/CrossInfoVO.java
View file @
976d75e1
...
...
@@ -5,14 +5,53 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
/**
* @author
duanruiming
* @date 202
3/02/07 15:48
* @author
wj
* @date 202
2/11/28 9:42:39
*/
@Data
@ApiModel
(
value
=
"路口信息实体"
)
public
class
CrossInfoVO
extends
PageVO
{
@ApiModelProperty
(
value
=
"路口名称"
)
String
crossName
;
@ApiModelProperty
(
value
=
"信号机厂商"
)
String
manufacturerNick
;
@ApiModel
(
value
=
"CrossInfoVO"
,
description
=
"查询路口管理输入参数"
)
public
class
CrossInfoVO
{
/**
* 路口名称
*/
@ApiModelProperty
(
value
=
"路口名称"
,
required
=
true
)
private
String
name
;
/**
* 行政区划代码
*/
@ApiModelProperty
(
value
=
"行政区划代码"
,
required
=
true
)
private
Integer
areaCode
;
/**
* 行政区划名称
*/
@ApiModelProperty
(
value
=
"行政区划名称"
,
required
=
true
)
private
String
areaName
;
/**
* 是否信控路口:1是;0否
*/
@ApiModelProperty
(
value
=
"是否信控路口:1是;0否"
,
required
=
true
)
private
Integer
isSignal
;
/**
* 是否启动优化:1是;0否
*/
@ApiModelProperty
(
value
=
"是否启动优化:1是;0否"
,
required
=
true
)
private
Integer
isStart
;
/**
* 是否下发方案:1是;0否
*/
@ApiModelProperty
(
value
=
"是否下发方案:1是;0否"
,
required
=
true
)
private
Integer
isSend
;
@ApiModelProperty
(
value
=
"当前页"
)
private
Integer
pageNum
;
@ApiModelProperty
(
value
=
"每页的数量"
)
private
Integer
pageSize
;
}
wj-databus/src/main/resources/mapper/CrossInfoMapper.xml
View file @
976d75e1
...
...
@@ -177,7 +177,7 @@
gmt_modified = #{gmtModified,jdbcType=TIMESTAMP}
where id = #{id,jdbcType=CHAR}
</update>
<select
id=
"selectAll"
parameterType=
"net.wanji.databus.vo.CrossInfoVO"
resultMap=
"SelectAllMap"
>
<select
id=
"selectAll"
parameterType=
"net.wanji.databus.vo.CrossInfo
Page
VO"
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
...
...
@@ -207,7 +207,7 @@
limit #{startNum}, #{pageSize}
</if>
</select>
<select
id=
"countSelectAll"
parameterType=
"net.wanji.databus.vo.CrossInfoVO"
resultType=
"integer"
>
<select
id=
"countSelectAll"
parameterType=
"net.wanji.databus.vo.CrossInfo
Page
VO"
resultType=
"integer"
>
select count(1)
from t_base_cross_info c
left join t_base_area_info a on c.area_code=a.code
...
...
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