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
b6203261
Commit
b6203261
authored
Nov 29, 2022
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
获取方案信息逻辑修改
parent
4261c952
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
122 additions
and
124 deletions
+122
-124
PhaseCache.java
.../src/main/java/net/wanji/utc/entity/cache/PhaseCache.java
+8
-9
CrossPhaseMapper.java
.../src/main/java/net/wanji/utc/mapper/CrossPhaseMapper.java
+3
-1
CrossSchemeMapper.java
...src/main/java/net/wanji/utc/mapper/CrossSchemeMapper.java
+2
-2
HkSchemePhaseLightsServiceImpl.java
...rvice/staticinfo/impl/HkSchemePhaseLightsServiceImpl.java
+102
-110
CrossPhaseMapper.xml
...tc-service/src/main/resources/mapper/CrossPhaseMapper.xml
+7
-2
No files found.
signal-utc-service/src/main/java/net/wanji/utc/entity/cache/PhaseCache.java
View file @
b6203261
...
@@ -2,20 +2,19 @@ package net.wanji.utc.entity.cache;
...
@@ -2,20 +2,19 @@ package net.wanji.utc.entity.cache;
import
lombok.Data
;
import
lombok.Data
;
import
java.util.List
;
/**
/**
* @author Kent HAN
* @author Kent HAN
* @date 2022/11/18 9:12
* @date 2022/11/18 9:12
*/
*/
@Data
@Data
public
class
PhaseCache
{
public
class
PhaseCache
{
private
Integer
ringNo
;
// 环号
private
Integer
phaseNo
;
// 相位号
private
String
phaseName
;
// "北向进口通行"
private
Integer
phaseSequence
;
// 相位序
private
Integer
phaseLength
;
// 相位时间
private
Integer
schemeId
;
// 方案ID
private
Integer
phaseId
;
// 相位ID
private
Integer
phaseId
;
// 相位ID
private
List
<
Integer
>
laneNoList
;
// 车道号列表
private
Integer
phaseNo
;
// 相位号
private
String
desc
;
// "北向进口通行"
private
Integer
yellow
;
// 黄灯时间
private
Integer
allred
;
// 红灯时间
private
Integer
greenFlash
;
// 绿闪时间
private
Integer
redFlash
;
// 红闪时间
private
Integer
minGreen
;
// 最小绿灯时间
private
Integer
maxGreen
;
// 最大绿灯时间
}
}
signal-utc-service/src/main/java/net/wanji/utc/mapper/CrossPhaseMapper.java
View file @
b6203261
...
@@ -10,9 +10,11 @@ import java.util.List;
...
@@ -10,9 +10,11 @@ import java.util.List;
* @date 2022/11/18 10:44
* @date 2022/11/18 10:44
*/
*/
public
interface
CrossPhaseMapper
{
public
interface
CrossPhaseMapper
{
void
delete
One
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"phaseNo"
)
String
phaseNo
);
void
delete
Batch
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"schemeId"
)
String
schemeId
);
void
insertOne
(
CrossPhasePO
crossPhasePO
);
void
insertOne
(
CrossPhasePO
crossPhasePO
);
List
<
CrossPhasePO
>
selectByCrossIdAndPlanId
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"planId"
)
String
planId
);
List
<
CrossPhasePO
>
selectByCrossIdAndPlanId
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"planId"
)
String
planId
);
List
<
Integer
>
selectIdsByPhaseNo
(
@Param
(
"phaseNo"
)
Integer
phaseNo
);
}
}
signal-utc-service/src/main/java/net/wanji/utc/mapper/CrossSchemeMapper.java
View file @
b6203261
...
@@ -16,6 +16,6 @@ public interface CrossSchemeMapper {
...
@@ -16,6 +16,6 @@ public interface CrossSchemeMapper {
void
deleteOne
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"patternNo"
)
String
patternNo
);
void
deleteOne
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"patternNo"
)
String
patternNo
);
CrossSchemePO
selectByCrossIdAndSchemeNo
(
@Param
(
"crossId"
)
String
crossId
,
CrossSchemePO
selectByCrossIdAndSchemeNo
(
@Param
(
"crossId"
)
String
crossId
,
@Param
(
"schemeNo"
)
Integer
schemeNo
);
@Param
(
"schemeNo"
)
Integer
schemeNo
);
}
}
signal-utc-service/src/main/java/net/wanji/utc/service/staticinfo/impl/HkSchemePhaseLightsServiceImpl.java
View file @
b6203261
This diff is collapsed.
Click to expand it.
signal-utc-service/src/main/resources/mapper/CrossPhaseMapper.xml
View file @
b6203261
...
@@ -27,9 +27,9 @@
...
@@ -27,9 +27,9 @@
values (#{phaseNo},#{name},#{sort},#{crossId},#{planId},#{ringNo},#{controlMode},#{phaseTime},#{greenTime},#{greenFlashTime},#{pedFlashTime},#{yellowTime},#{redTime},#{minGreenTime},#{maxGreenTime})
values (#{phaseNo},#{name},#{sort},#{crossId},#{planId},#{ringNo},#{controlMode},#{phaseTime},#{greenTime},#{greenFlashTime},#{pedFlashTime},#{yellowTime},#{redTime},#{minGreenTime},#{maxGreenTime})
</insert>
</insert>
<delete
id=
"delete
One
"
>
<delete
id=
"delete
Batch
"
>
delete from t_cross_phase
delete from t_cross_phase
where cross_id = #{crossId} and p
hase_no = #{phaseNo
}
where cross_id = #{crossId} and p
lan_id = #{schemeId
}
</delete>
</delete>
<sql
id=
"baseColumn"
>
<sql
id=
"baseColumn"
>
...
@@ -43,4 +43,9 @@
...
@@ -43,4 +43,9 @@
from t_cross_phase where cross_id = #{crossId} and planId = #{planId}
from t_cross_phase where cross_id = #{crossId} and planId = #{planId}
</select>
</select>
<select
id=
"selectIdsByPhaseNo"
resultType=
"java.lang.Integer"
>
select id from t_cross_phase
where phase_no = #{phaseNo}
</select>
</mapper>
</mapper>
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