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
261d00b0
Commit
261d00b0
authored
Jul 08, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 绿波路口表添加日期类型字段
parent
5f40c615
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
1 deletion
+17
-1
GreenwaveCrossPO.java
...n/java/net/wanji/databus/dao/entity/GreenwaveCrossPO.java
+2
-0
GreenwaveCrossMapper.java
...va/net/wanji/databus/dao/mapper/GreenwaveCrossMapper.java
+1
-0
GreenwaveCrossMapper.xml
...atabus/src/main/resources/mapper/GreenwaveCrossMapper.xml
+14
-1
No files found.
wj-databus/src/main/java/net/wanji/databus/dao/entity/GreenwaveCrossPO.java
View file @
261d00b0
...
@@ -54,4 +54,6 @@ public class GreenwaveCrossPO {
...
@@ -54,4 +54,6 @@ public class GreenwaveCrossPO {
@ApiModelProperty
(
value
=
"结束时间"
,
notes
=
""
)
@ApiModelProperty
(
value
=
"结束时间"
,
notes
=
""
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"HH:mm:ss"
,
timezone
=
"GMT+8"
)
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
,
pattern
=
"HH:mm:ss"
,
timezone
=
"GMT+8"
)
private
String
endTime
;
private
String
endTime
;
@ApiModelProperty
(
value
=
"星期类型"
,
notes
=
"0工作日 1周末 2特殊日期"
)
private
Integer
week
;
}
}
wj-databus/src/main/java/net/wanji/databus/dao/mapper/GreenwaveCrossMapper.java
View file @
261d00b0
...
@@ -13,6 +13,7 @@ import java.util.List;
...
@@ -13,6 +13,7 @@ import java.util.List;
@Repository
@Repository
public
interface
GreenwaveCrossMapper
{
public
interface
GreenwaveCrossMapper
{
List
<
GreenwaveCrossPO
>
selectByGreenwaveId
(
Integer
id
);
List
<
GreenwaveCrossPO
>
selectByGreenwaveId
(
Integer
id
);
List
<
GreenwaveCrossPO
>
selectByIdAndWeek
(
Integer
id
,
Integer
week
);
List
<
GreenwaveCrossPO
>
selectByGreenwaveIdAndKeyRoute
(
Integer
greenwaveId
);
List
<
GreenwaveCrossPO
>
selectByGreenwaveIdAndKeyRoute
(
Integer
greenwaveId
);
...
...
wj-databus/src/main/resources/mapper/GreenwaveCrossMapper.xml
View file @
261d00b0
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<sql
id=
"Base_Column_List"
>
<sql
id=
"Base_Column_List"
>
id,green_id,cross_id,in_dir,out_dir,offset,sort,section_id,next_cross_len,
id,green_id,cross_id,in_dir,out_dir,offset,sort,section_id,next_cross_len,
is_key_route,gmt_create,gmt_modified, start_time, end_time
is_key_route,gmt_create,gmt_modified, start_time, end_time
, week
</sql>
</sql>
<select
id=
"selectByGreenwaveId"
resultType=
"net.wanji.databus.dao.entity.GreenwaveCrossPO"
>
<select
id=
"selectByGreenwaveId"
resultType=
"net.wanji.databus.dao.entity.GreenwaveCrossPO"
>
...
@@ -14,6 +14,19 @@
...
@@ -14,6 +14,19 @@
order by sort
order by sort
</select>
</select>
<select
id=
"selectByIdAndWeek"
resultType=
"net.wanji.databus.dao.entity.GreenwaveCrossPO"
>
select
<include
refid=
"Base_Column_List"
/>
from t_greenwave_cross
<where>
<if
test=
"id != null and id != ''"
>
and green_id = #{id}
</if>
<if
test=
"week != null and week != ''"
>
and week = #{week}
</if>
</where>
</select>
<select
id=
"selectByGreenwaveIdAndKeyRoute"
resultType=
"net.wanji.databus.dao.entity.GreenwaveCrossPO"
>
<select
id=
"selectByGreenwaveIdAndKeyRoute"
resultType=
"net.wanji.databus.dao.entity.GreenwaveCrossPO"
>
select
<include
refid=
"Base_Column_List"
/>
select
<include
refid=
"Base_Column_List"
/>
from t_greenwave_cross
from t_greenwave_cross
...
...
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