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
c0ed1a43
Commit
c0ed1a43
authored
Dec 02, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:应急处置同步调整提交
parent
02fe2ef2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
12 deletions
+6
-12
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+0
-11
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+0
-0
ContingencyPlanServiceImpl.java
...fas/business/service/impl/ContingencyPlanServiceImpl.java
+1
-1
PlanRuleServiceImpl.java
...n/amos/fas/business/service/impl/PlanRuleServiceImpl.java
+5
-0
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
c0ed1a43
...
@@ -466,19 +466,8 @@ public class ContingencyAction implements CustomerAction {
...
@@ -466,19 +466,8 @@ public class ContingencyAction implements CustomerAction {
tempmap1
.
put
(
"button"
,
buttonJson
);
tempmap1
.
put
(
"button"
,
buttonJson
);
tempmap1
.
put
(
"caseId"
,
contingencyPlanId
);
tempmap1
.
put
(
"caseId"
,
contingencyPlanId
);
result
.
add
(
tempmap1
);
result
.
add
(
tempmap1
);
this
.
sendcmd
(
"optionarea"
,
paramObj
,
result
);
this
.
sendcmd
(
"optionarea"
,
paramObj
,
result
);
ContingencyPlanInstance
instance
=
contingencyInstance
.
getMessageById
(
contingencyPlanId
);
if
(
instance
!=
null
)
{
String
roleCode
=
contingencyInstance
.
getPlanStepRoleCodeByButtonCode
(
buttonCode
);
if
(
StringUtils
.
isNotBlank
(
roleCode
))
{
instance
.
setRoleCode
(
roleCode
);
}
else
{
instance
.
setRoleCode
(
defaultRoleCode
);
}
contingencyPlanInstanceMapper
.
updateMessageById
(
instance
);
}
try
{
try
{
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
c0ed1a43
This diff is collapsed.
Click to expand it.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyPlanServiceImpl.java
View file @
c0ed1a43
...
@@ -208,7 +208,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
...
@@ -208,7 +208,7 @@ public class ContingencyPlanServiceImpl implements IContingencyPlanService {
deviceData
.
setCode
(
equipmentSpecific
.
getCode
());
deviceData
.
setCode
(
equipmentSpecific
.
getCode
());
boolean
isMock
=
vo
.
getStatus
()
==
4
;
boolean
isMock
=
vo
.
getStatus
()
==
4
;
deviceData
.
setIsMock
(
isMock
);
deviceData
.
setIsMock
(
isMock
);
redisTemplate
.
opsForValue
().
set
(
"isMock"
,
isMock
?
"
1"
:
"0
"
);
redisTemplate
.
opsForValue
().
set
(
"isMock"
,
isMock
?
"
true"
:
"false
"
);
String
batchNo
=
equipmentHandlerService
.
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
,
operationRecord
.
getId
());
String
batchNo
=
equipmentHandlerService
.
executeDynamicPlan
(
deviceData
,
equipment
,
equipmentSpecific
,
toke
,
operationRecord
.
getId
());
//更新模型状态
//更新模型状态
PlanDetail
planDetail
=
PlanDetailOp
.
get
();
PlanDetail
planDetail
=
PlanDetailOp
.
get
();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanRuleServiceImpl.java
View file @
c0ed1a43
...
@@ -8,6 +8,7 @@ import org.apache.commons.io.IOUtils;
...
@@ -8,6 +8,7 @@ import org.apache.commons.io.IOUtils;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.beans.factory.annotation.Value
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.Resource
;
import
org.springframework.data.redis.core.RedisTemplate
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
import
java.io.IOException
;
import
java.io.IOException
;
...
@@ -25,6 +26,9 @@ public class PlanRuleServiceImpl implements IPlanRuleService {
...
@@ -25,6 +26,9 @@ public class PlanRuleServiceImpl implements IPlanRuleService {
@Value
(
"classpath:/json/plan-step.json"
)
@Value
(
"classpath:/json/plan-step.json"
)
private
Resource
planStepResource
;
private
Resource
planStepResource
;
@Autowired
private
RedisTemplate
redisTemplate
;
@Override
@Override
public
void
updatePlanRuleByBatchNo
(
String
batchNo
)
{
public
void
updatePlanRuleByBatchNo
(
String
batchNo
)
{
try
{
try
{
...
@@ -33,6 +37,7 @@ public class PlanRuleServiceImpl implements IPlanRuleService {
...
@@ -33,6 +37,7 @@ public class PlanRuleServiceImpl implements IPlanRuleService {
String
json
=
IOUtils
.
toString
(
planStepResource
.
getInputStream
(),
String
.
valueOf
(
StandardCharsets
.
UTF_8
));
String
json
=
IOUtils
.
toString
(
planStepResource
.
getInputStream
(),
String
.
valueOf
(
StandardCharsets
.
UTF_8
));
planRule
.
setPlanStep
(
json
);
planRule
.
setPlanStep
(
json
);
planRuleDao
.
save
(
planRule
);
planRuleDao
.
save
(
planRule
);
redisTemplate
.
delete
(
"isMock"
);
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
"初始化预案规则planStep数据失败!"
);
throw
new
RuntimeException
(
"初始化预案规则planStep数据失败!"
);
}
}
...
...
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