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
2f7e915d
Commit
2f7e915d
authored
Jan 16, 2024
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 更新方案管理-运行计划数据结构
parent
170f2203
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
RunningPlanDTO.java
...s/src/main/java/net/wanji/databus/dto/RunningPlanDTO.java
+5
-0
BaseCrossPlanMapper.xml
wj-databus/src/main/resources/mapper/BaseCrossPlanMapper.xml
+2
-0
No files found.
wj-databus/src/main/java/net/wanji/databus/dto/RunningPlanDTO.java
View file @
2f7e915d
...
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
...
@@ -4,6 +4,7 @@ import io.swagger.annotations.ApiModelProperty;
import
lombok.Data
;
import
lombok.Data
;
import
lombok.NoArgsConstructor
;
import
lombok.NoArgsConstructor
;
import
java.util.ArrayList
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -35,6 +36,8 @@ public class RunningPlanDTO {
...
@@ -35,6 +36,8 @@ public class RunningPlanDTO {
@NoArgsConstructor
@NoArgsConstructor
@Data
@Data
public
static
class
TimeListElement
{
public
static
class
TimeListElement
{
@ApiModelProperty
(
value
=
"时段ID"
,
required
=
true
)
private
Integer
sectionId
;
@ApiModelProperty
(
value
=
"开始时间"
,
required
=
true
)
@ApiModelProperty
(
value
=
"开始时间"
,
required
=
true
)
private
String
startTime
;
private
String
startTime
;
@ApiModelProperty
(
value
=
"结束时间"
,
required
=
true
)
@ApiModelProperty
(
value
=
"结束时间"
,
required
=
true
)
...
@@ -43,6 +46,8 @@ public class RunningPlanDTO {
...
@@ -43,6 +46,8 @@ public class RunningPlanDTO {
private
String
[]
startEndTime
;
private
String
[]
startEndTime
;
@ApiModelProperty
(
value
=
"方案名"
,
required
=
true
)
@ApiModelProperty
(
value
=
"方案名"
,
required
=
true
)
private
String
schemeName
;
private
String
schemeName
;
@ApiModelProperty
(
value
=
"被删除的时段ID"
,
required
=
true
)
private
List
<
Integer
>
deletedSectionIds
=
new
ArrayList
<>();
}
}
@NoArgsConstructor
@NoArgsConstructor
...
...
wj-databus/src/main/resources/mapper/BaseCrossPlanMapper.xml
View file @
2f7e915d
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
<id
column=
"planNo"
property=
"planNo"
/>
<id
column=
"planNo"
property=
"planNo"
/>
<result
column=
"name"
property=
"name"
/>
<result
column=
"name"
property=
"name"
/>
<collection
property=
"timeList"
ofType=
"net.wanji.databus.dto.RunningPlanDTO$TimeListElement"
>
<collection
property=
"timeList"
ofType=
"net.wanji.databus.dto.RunningPlanDTO$TimeListElement"
>
<result
column=
"sectionId"
property=
"sectionId"
/>
<result
column=
"startTime"
property=
"startTime"
/>
<result
column=
"startTime"
property=
"startTime"
/>
<result
column=
"endTime"
property=
"endTime"
/>
<result
column=
"endTime"
property=
"endTime"
/>
<result
column=
"schemeName"
property=
"schemeName"
/>
<result
column=
"schemeName"
property=
"schemeName"
/>
...
@@ -45,6 +46,7 @@
...
@@ -45,6 +46,7 @@
SELECT
SELECT
t1.plan_no as planNo,
t1.plan_no as planNo,
t1.name as name,
t1.name as name,
t2.id as sectionId,
t2.start_time as startTime,
t2.start_time as startTime,
t2.end_time as endTime,
t2.end_time as endTime,
t3.name as schemeName
t3.name as schemeName
...
...
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