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
33ab2ed2
Commit
33ab2ed2
authored
Jun 05, 2023
by
KeYong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
ae9528bb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
7 deletions
+14
-7
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+0
-5
ContingencyPlanController.java
...os/fas/business/controller/ContingencyPlanController.java
+1
-1
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+9
-0
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+2
-0
plan-setp-node.json
...eAutoSysStart/src/main/resources/json/plan-setp-node.json
+2
-1
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
33ab2ed2
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.fas.business.action;
...
@@ -3,7 +3,6 @@ package com.yeejoin.amos.fas.business.action;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSONObject
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.yeejoin.amos.component.rule.MethodParam
;
import
com.yeejoin.amos.component.rule.MethodParam
;
import
com.yeejoin.amos.component.rule.RuleActionBean
;
import
com.yeejoin.amos.component.rule.RuleActionBean
;
import
com.yeejoin.amos.component.rule.RuleMethod
;
import
com.yeejoin.amos.component.rule.RuleMethod
;
...
@@ -24,7 +23,6 @@ import com.yeejoin.amos.fas.business.dao.repository.IPlanOperationRecordDao;
...
@@ -24,7 +23,6 @@ import com.yeejoin.amos.fas.business.dao.repository.IPlanOperationRecordDao;
import
com.yeejoin.amos.fas.business.feign.RemoteSecurityService
;
import
com.yeejoin.amos.fas.business.feign.RemoteSecurityService
;
import
com.yeejoin.amos.fas.business.service.impl.RuleRunigSnapshotServiceImpl
;
import
com.yeejoin.amos.fas.business.service.impl.RuleRunigSnapshotServiceImpl
;
import
com.yeejoin.amos.fas.business.service.intfc.*
;
import
com.yeejoin.amos.fas.business.service.intfc.*
;
import
com.yeejoin.amos.fas.business.service.model.ContingencyDeviceStatus
;
import
com.yeejoin.amos.fas.business.service.model.ToipResponse
;
import
com.yeejoin.amos.fas.business.service.model.ToipResponse
;
import
com.yeejoin.amos.fas.business.util.JSONUtil
;
import
com.yeejoin.amos.fas.business.util.JSONUtil
;
import
com.yeejoin.amos.fas.business.vo.ButtonJsonVO
;
import
com.yeejoin.amos.fas.business.vo.ButtonJsonVO
;
...
@@ -100,9 +98,6 @@ public class ContingencyAction implements CustomerAction {
...
@@ -100,9 +98,6 @@ public class ContingencyAction implements CustomerAction {
private
ContingencyLogPublisher
contingencyLogPublisher
;
private
ContingencyLogPublisher
contingencyLogPublisher
;
@Autowired
@Autowired
private
IRiskSourceService
riskSourceService
;
@Autowired
private
IEquipmentService
equipmentService
;
private
IEquipmentService
equipmentService
;
@Autowired
@Autowired
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/controller/ContingencyPlanController.java
View file @
33ab2ed2
...
@@ -175,7 +175,7 @@ public class ContingencyPlanController extends BaseController {
...
@@ -175,7 +175,7 @@ public class ContingencyPlanController extends BaseController {
vo
.
setUserName
(
user
.
getRealName
());
vo
.
setUserName
(
user
.
getRealName
());
ContingencyPlanResponseVo
result
=
null
;
ContingencyPlanResponseVo
result
=
null
;
try
{
try
{
result
=
contingencyPlanService
.
planStart
(
vo
,
toke
);
result
=
contingencyPlanService
.
planStart
(
vo
,
toke
);
}
catch
(
Exception
e
){
}
catch
(
Exception
e
){
e
.
printStackTrace
();
e
.
printStackTrace
();
return
CommonResponseUtil2
.
failure
();
return
CommonResponseUtil2
.
failure
();
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/ContingencyInstanceImpl.java
View file @
33ab2ed2
...
@@ -56,6 +56,8 @@ import java.nio.charset.StandardCharsets;
...
@@ -56,6 +56,8 @@ import java.nio.charset.StandardCharsets;
import
java.util.*
;
import
java.util.*
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
import
static
org
.
typroject
.
tyboot
.
core
.
foundation
.
context
.
RequestContext
.*;
@Service
@Service
public
class
ContingencyInstanceImpl
implements
IContingencyInstance
{
public
class
ContingencyInstanceImpl
implements
IContingencyInstance
{
...
@@ -518,6 +520,13 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -518,6 +520,13 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
}
catch
(
IOException
e
)
{
}
catch
(
IOException
e
)
{
throw
new
RuntimeException
(
"获取预案节点信息失败!"
);
throw
new
RuntimeException
(
"获取预案节点信息失败!"
);
}
}
if
(
"0"
.
equals
(
stepCode
))
{
contingencyInstance
.
fire
(
batchNo
,
stepCode
,
buttonJson
,
contingencyPlanId
,
"FIRE_CONFIRM"
,
buttonState
,
stepStateOnbutton
,
"true"
,
"true"
,
token
,
product
,
appKey
,
startUserName
);
}
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
json
);
JSONObject
jsonObject
=
JSONObject
.
parseObject
(
json
);
List
<
String
>
nodes
=
Arrays
.
stream
(
jsonObject
.
get
(
"nodes"
).
toString
().
split
(
","
)).
collect
(
Collectors
.
toList
());
List
<
String
>
nodes
=
Arrays
.
stream
(
jsonObject
.
get
(
"nodes"
).
toString
().
split
(
","
)).
collect
(
Collectors
.
toList
());
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
33ab2ed2
...
@@ -722,6 +722,8 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
...
@@ -722,6 +722,8 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
bool
=
contingencyPlanInstanceMapper
.
updateTaskStatusById
(
id
,
null
,
runStatus
,
userName
,
userId
,
img
,
PlanReplyMessageEnum
.
TEXT
.
getCode
(),
roleNames
);
bool
=
contingencyPlanInstanceMapper
.
updateTaskStatusById
(
id
,
null
,
runStatus
,
userName
,
userId
,
img
,
PlanReplyMessageEnum
.
TEXT
.
getCode
(),
roleNames
);
}
}
if
(
bool
)
{
if
(
bool
)
{
if
(
redisTemplate
.
hasKey
(
"planTask"
))
{
if
(
redisTemplate
.
hasKey
(
"planTask"
))
{
redisTemplate
.
delete
(
"planTask"
);
redisTemplate
.
delete
(
"planTask"
);
...
...
YeeAmosFireAutoSysStart/src/main/resources/json/plan-setp-node.json
View file @
33ab2ed2
{
{
"nodes"
:
"0,2,5,15,19"
"nodes"
:
"0,1,2,5,9,10,11"
,
"nodes_pyh"
:
"0,2,5,15,19"
}
}
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