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
38af93cf
Commit
38af93cf
authored
Jan 20, 2021
by
吴俊凯
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
代码提交
parent
606d1f52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+1
-0
ContingencyPlanController.java
...os/fas/business/controller/ContingencyPlanController.java
+1
-1
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+2
-2
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
38af93cf
...
...
@@ -663,6 +663,7 @@ public class ContingencyAction implements CustomerAction {
if
(
planOperationRecord
!=
null
){
planOperationRecord
.
setStatus
(
PlanRecordStatusEnum
.
COMPLETE
.
getCode
());
planOperationRecord
.
setEndTime
(
new
Date
());
planOperationRecordDao
.
save
(
planOperationRecord
);
Optional
<
PlanDetail
>
optionalPlanDetail
=
planDetailDao
.
findById
(
planOperationRecord
.
getPlanId
());
if
(
optionalPlanDetail
.
get
()!=
null
){
PlanDetail
planDetail
=
optionalPlanDetail
.
get
();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/ContingencyPlanController.java
View file @
38af93cf
...
...
@@ -165,7 +165,7 @@ public class ContingencyPlanController extends BaseController {
toke
.
setToke
(
getToken
());
AgencyUserModel
user
=
getUserInfo
();
vo
.
setUserId
(
user
.
getUserId
());
vo
.
setUserName
(
user
.
get
User
Name
());
vo
.
setUserName
(
user
.
get
Real
Name
());
ContingencyPlanResponseVo
result
=
contingencyPlanService
.
planStart
(
vo
,
toke
);
return
CommonResponseUtil2
.
success
(
result
);
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
38af93cf
...
...
@@ -144,7 +144,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
planOperationRecord
.
setStartUserName
(
vo
.
getUserName
());
planOperationRecord
.
setEquipmentCode
(
equipmentSpecific
.
getCode
());
planOperationRecord
.
setEquipmentName
(
equipmentSpecific
.
getName
());
if
(
ContingencyPlanStatusEnum
.
SIMULATION_START
.
getCode
()
.
equals
(
vo
.
getStatus
()
)){
if
(
ContingencyPlanStatusEnum
.
SIMULATION_START
.
getCode
()
==
vo
.
getStatus
(
)){
planOperationRecord
.
setExecutionType
(
ExecutionTypeEnum
.
PLANCHECK
.
getCode
());
}
else
{
planOperationRecord
.
setExecutionType
(
ExecutionTypeEnum
.
FIREMANAGEMENT
.
getCode
());
...
...
@@ -199,7 +199,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
map
.
put
(
"startType"
,
"自动"
);
}
map
.
put
(
"executionType"
,
planOperationRecord
.
getExecutionType
());
map
.
put
(
"equipmentName"
,
equipment
.
ge
tName
());
map
.
put
(
"equipmentName"
,
planOperationRecord
.
getEquipmen
tName
());
map
.
put
(
"PlanName"
,
planDetail
.
getPlanName
());
}
return
map
;
...
...
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