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
d30cbfff
Commit
d30cbfff
authored
Oct 25, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:应急处置流程优化
parent
25ade279
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
15 deletions
+20
-15
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+5
-0
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+6
-3
EquipmentFireEquipmentServiceImpl.java
...iness/service/impl/EquipmentFireEquipmentServiceImpl.java
+2
-6
plan-step.json
...osFireAutoSysStart/src/main/resources/json/plan-step.json
+7
-6
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
d30cbfff
...
@@ -196,6 +196,11 @@ public class ContingencyAction implements CustomerAction {
...
@@ -196,6 +196,11 @@ public class ContingencyAction implements CustomerAction {
stringStringMap
=
new
HashMap
<>();
stringStringMap
=
new
HashMap
<>();
returnMap
=
new
HashMap
<>();
returnMap
=
new
HashMap
<>();
Toke
toke
=
remoteSecurityService
.
getServerToken
();
RequestContext
.
setToken
(
toke
.
getToke
());
RequestContext
.
setProduct
(
toke
.
product
);
RequestContext
.
setAppKey
(
toke
.
appKey
);
ResponseModel
responseModel
=
jcsFeign
.
dutyPersonList
();
ResponseModel
responseModel
=
jcsFeign
.
dutyPersonList
();
if
(
"SUCCESS"
.
equals
(
responseModel
.
getDevMessage
()))
{
if
(
"SUCCESS"
.
equals
(
responseModel
.
getDevMessage
()))
{
String
JSONStr
=
JSON
.
toJSONString
(
responseModel
.
getResult
());
String
JSONStr
=
JSON
.
toJSONString
(
responseModel
.
getResult
());
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
d30cbfff
...
@@ -338,19 +338,22 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -338,19 +338,22 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
throw
new
Exception
(
"请勿重复操作."
);
throw
new
Exception
(
"请勿重复操作."
);
}
}
if
(
"CONFIRM"
.
equals
(
buttonState
))
{
if
(
"CONFIRM"
.
equals
(
buttonState
))
{
if
(
code
.
equals
(
operate
.
getCode
()))
{
if
(
code
.
equals
(
operate
.
getCode
()))
{
operate
.
setState
(
"executed"
);
operate
.
setState
(
"executed"
);
if
(
"FIRE_CANCEL"
.
equals
(
code
)
||
"END_EMERGENCY"
.
equals
(
code
))
{
if
(
"FIRE_CANCEL"
.
equals
(
code
)
||
"END_EMERGENCY"
.
equals
(
code
))
{
redisTemplate
.
delete
(
RiskSourceServiceImpl
.
cacheKeyForCanBeRunning
());
redisTemplate
.
delete
(
RiskSourceServiceImpl
.
cacheKeyForCanBeRunning
());
}
if
(
"END_EMERGENCY"
.
equals
(
code
))
{
// 应急处置中断,初始化planStep,json数据
// 应急处置中断,初始化planStep,json数据
planRuleService
.
updatePlanRuleByBatchNo
(
batchNo
);
planRuleService
.
updatePlanRuleByBatchNo
(
batchNo
);
// 应急处置中断,更新预案信息表结束时间
// 应急处置中断,更新预案信息表结束时间
contingencyInstanceInfoService
.
updateEndTimeById
(
batchNo
);
contingencyInstanceInfoService
.
updateEndTimeById
(
batchNo
);
}
}
// if ("END_EMERGENCY".equals(code)) {
// // 应急处置中断,初始化planStep,json数据
// planRuleService.updatePlanRuleByBatchNo(batchNo);
// // 应急处置中断,更新预案信息表结束时间
// contingencyInstanceInfoService.updateEndTimeById(batchNo);
// }
}
else
{
}
else
{
operate
.
setState
(
"disable"
);
operate
.
setState
(
"disable"
);
}
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/EquipmentFireEquipmentServiceImpl.java
View file @
d30cbfff
...
@@ -108,13 +108,9 @@ public class EquipmentFireEquipmentServiceImpl implements IEquipmentFireEquipmen
...
@@ -108,13 +108,9 @@ public class EquipmentFireEquipmentServiceImpl implements IEquipmentFireEquipmen
Integer
total
=
Integer
.
parseInt
(
map
.
get
(
"total"
).
toString
());
Integer
total
=
Integer
.
parseInt
(
map
.
get
(
"total"
).
toString
());
Integer
count
=
Integer
.
parseInt
(
map
.
get
(
"count"
).
toString
());
Integer
count
=
Integer
.
parseInt
(
map
.
get
(
"count"
).
toString
());
if
(
SqlKeyWordEnum
.
AND
.
getKey
().
equalsIgnoreCase
(
type
))
{
if
(
SqlKeyWordEnum
.
AND
.
getKey
().
equalsIgnoreCase
(
type
))
{
if
(
total
.
equals
(
count
))
{
return
total
.
equals
(
count
);
return
true
;
}
}
else
if
(
SqlKeyWordEnum
.
OR
.
getKey
().
equalsIgnoreCase
(
type
))
{
}
else
if
(
SqlKeyWordEnum
.
OR
.
getKey
().
equalsIgnoreCase
(
type
))
{
if
(
count
!=
0
)
{
return
count
!=
0
;
return
true
;
}
}
}
}
}
return
false
;
return
false
;
...
...
YeeAmosFireAutoSysStart/src/main/resources/json/plan-step.json
View file @
d30cbfff
...
@@ -69,7 +69,7 @@
...
@@ -69,7 +69,7 @@
"stepStatus"
:
"0"
,
"stepStatus"
:
"0"
,
"buttonCode"
:
"HANDOVER_COMMAND"
,
"buttonCode"
:
"HANDOVER_COMMAND"
,
"isParallel"
:
"1"
,
"isParallel"
:
"1"
,
"roleCode"
:
"Digital_Responsing_Plan_
A
"
"roleCode"
:
"Digital_Responsing_Plan_
B
"
},
},
{
{
"stepCode"
:
"9"
,
"stepCode"
:
"9"
,
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"stepStatus"
:
"0"
,
"stepStatus"
:
"0"
,
"buttonCode"
:
"START_VALVE_HALL_CONTINGENCY"
,
"buttonCode"
:
"START_VALVE_HALL_CONTINGENCY"
,
"isParallel"
:
"0"
,
"isParallel"
:
"0"
,
"roleCode"
:
"Digital_Responsing_Plan_
A
"
"roleCode"
:
"Digital_Responsing_Plan_
B
"
},
},
{
{
"stepCode"
:
"11"
,
"stepCode"
:
"11"
,
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
"stepStatus"
:
"0"
,
"stepStatus"
:
"0"
,
"buttonCode"
:
"PLUG_CABLETRENCH"
,
"buttonCode"
:
"PLUG_CABLETRENCH"
,
"isParallel"
:
"0"
,
"isParallel"
:
"0"
,
"roleCode"
:
"Digital_Responsing_Plan_
A
"
"roleCode"
:
"Digital_Responsing_Plan_
B
"
},
},
{
{
"stepCode"
:
"12"
,
"stepCode"
:
"12"
,
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
"stepStatus"
:
"0"
,
"stepStatus"
:
"0"
,
"buttonCode"
:
"HANDOVER_FIGTHHING"
,
"buttonCode"
:
"HANDOVER_FIGTHHING"
,
"isParallel"
:
"0"
,
"isParallel"
:
"0"
,
"roleCode"
:
"Digital_Responsing_Plan_
A
"
"roleCode"
:
"Digital_Responsing_Plan_
B
"
},
},
{
{
"stepCode"
:
"13"
,
"stepCode"
:
"13"
,
...
@@ -109,7 +109,7 @@
...
@@ -109,7 +109,7 @@
"stepStatus"
:
"0"
,
"stepStatus"
:
"0"
,
"buttonCode"
:
"FIRE_EXTINCT"
,
"buttonCode"
:
"FIRE_EXTINCT"
,
"isParallel"
:
"0"
,
"isParallel"
:
"0"
,
"roleCode"
:
"Digital_Responsing_Plan_
A
"
"roleCode"
:
"Digital_Responsing_Plan_
B
"
},
},
{
{
"stepCode"
:
"14"
,
"stepCode"
:
"14"
,
...
@@ -117,6 +117,6 @@
...
@@ -117,6 +117,6 @@
"stepStatus"
:
"0"
,
"stepStatus"
:
"0"
,
"buttonCode"
:
"END_EMERGENCY"
,
"buttonCode"
:
"END_EMERGENCY"
,
"isParallel"
:
"1"
,
"isParallel"
:
"1"
,
"roleCode"
:
"Digital_Responsing_Plan_
A
"
"roleCode"
:
"Digital_Responsing_Plan_
B
"
}
}
]
]
\ No newline at end of file
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