Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YeeAmosFireAutoSysRoot
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
station
YeeAmosFireAutoSysRoot
Commits
523ef780
Commit
523ef780
authored
Sep 05, 2024
by
李秀明
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
装备确警返回增加属性赋值
parent
84879fa1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+4
-0
ContingencyPlanParamVo.java
.../yeejoin/amos/fas/business/vo/ContingencyPlanParamVo.java
+3
-2
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
523ef780
...
...
@@ -475,8 +475,12 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
List
<
PlanEquipment
>
all
=
planEquipmentDao
.
findAllByFireEquipmentIdIn
(
ids
);
PlanEquipment
planEquipment
=
all
.
isEmpty
()
?
null
:
all
.
get
(
0
);
if
(
planEquipment
!=
null
)
{
Equipment
equipment
=
equipmentService
.
queryOne
(
planEquipment
.
getFireEquipmentId
());
vo
=
new
ContingencyPlanParamVo
();
vo
.
setFireEquipmentId
(
planEquipment
.
getFireEquipmentId
());
if
(
Objects
.
nonNull
(
equipment
))
{
vo
.
setFireEquipmentName
(
equipment
.
getName
());
}
vo
.
setPlanId
(
planEquipment
.
getPlanId
().
toString
());
vo
.
setStatus
(
ContingencyPlanStatusEnum
.
ONGOING
.
getCode
());
vo
.
setRiskType
(
riskType
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/vo/ContingencyPlanParamVo.java
View file @
523ef780
...
...
@@ -10,6 +10,7 @@ import lombok.Data;
public
class
ContingencyPlanParamVo
{
public
Long
fireEquipmentId
;
public
String
fireEquipmentName
;
public
String
planId
;
...
...
@@ -22,7 +23,7 @@ public class ContingencyPlanParamVo {
* 触发方式automatic(自动)manual(手动)
*/
public
String
triggerMode
=
"manual"
;
}
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