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
2f2930fa
Commit
2f2930fa
authored
May 31, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:删除预案冗余动作
parent
18a1f65a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
23 deletions
+1
-23
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+1
-23
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
2f2930fa
...
...
@@ -40,7 +40,6 @@ import com.yeejoin.amos.fas.dao.entity.ContingencyPlanInstance;
import
com.yeejoin.amos.fas.dao.entity.Equipment
;
import
com.yeejoin.amos.fas.dao.entity.PlanDetail
;
import
com.yeejoin.amos.fas.dao.entity.PlanOperationRecord
;
import
org.apache.commons.lang3.ArrayUtils
;
import
org.slf4j.Logger
;
import
org.slf4j.LoggerFactory
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -303,7 +302,7 @@ public class ContingencyAction implements CustomerAction {
String
msg
=
JSON
.
toJSONString
(
event
);
log
.
info
(
"RocketMQ发送的主题是: "
+
rocketTopic
+
", 消息体是: "
+
toipResponse
.
toJsonStr
()
+
"!"
);
try
{
rocketMQService
.
sendMsg
(
rocketTopic
,
"plan_process"
,
toipResponse
);
rocketMQService
.
sendMsg
(
rocketTopic
,
"plan_process"
,
toipResponse
);
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
(),
e
);
throw
new
RuntimeException
(
"RocketMQ消息发送失败!"
);
...
...
@@ -850,27 +849,6 @@ public class ContingencyAction implements CustomerAction {
this
.
sendcmd
(
"message"
,
paramObj
,
result
);
}
@RuleMethod
(
methodLabel
=
"自动执行动作"
,
project
=
"换流站消防专项预案"
)
public
void
autoExecuteAction
(
@MethodParam
(
paramLabel
=
"当前步骤"
)
String
currentSetup
,
@MethodParam
(
paramLabel
=
"按钮状态"
)
String
buttonStatus
,
@MethodParam
(
paramLabel
=
"按钮编码"
)
String
buttonCode
,
@MethodParam
(
paramLabel
=
"规则主题"
)
String
topic
,
@MethodParam
(
paramLabel
=
"预案对象"
)
Object
paramObj
)
{
ContingencyRo
contingencyRo
=
(
ContingencyRo
)
paramObj
;
contingencyRo
.
setButtonState
(
buttonStatus
);
contingencyRo
.
setButtonCode
(
buttonCode
);
contingencyRo
.
setStepState
(
topic
);
contingencyRo
.
setStep
(
currentSetup
);
try
{
//电力设备
Equipment
equipment
=
equipmentService
.
queryOne
(
Long
.
parseLong
(
contingencyRo
.
getEquipmentId
()));
ruleTrigger
.
publish
(
contingencyRo
,
equipment
.
getReservePlan
(),
ArrayUtils
.
toArray
(
contingencyRo
.
getEquipmentName
()));
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
@RuleMethod
(
methodLabel
=
"自动执行动作V2"
,
project
=
"换流站消防专项预案"
)
public
void
autoExecuteActionV2
(
@MethodParam
(
paramLabel
=
"步骤编码"
)
String
stepCode
,
...
...
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