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
9b17fec7
Commit
9b17fec7
authored
Dec 01, 2022
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:应急处置同步调整提交
parent
bf2bd3a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
27 deletions
+20
-27
ContingencyAction.java
...m/yeejoin/amos/fas/business/action/ContingencyAction.java
+11
-24
PlanVisual3dServiceImpl.java
...os/fas/business/service/impl/PlanVisual3dServiceImpl.java
+9
-3
No files found.
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/action/ContingencyAction.java
View file @
9b17fec7
...
...
@@ -27,6 +27,7 @@ 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.util.JSONUtil
;
import
com.yeejoin.amos.fas.business.vo.ButtonJsonVO
;
import
com.yeejoin.amos.fas.business.vo.MessageVO
;
import
com.yeejoin.amos.fas.business.vo.PlanStepJsonVO
;
import
com.yeejoin.amos.fas.business.vo.Toke
;
...
...
@@ -482,30 +483,16 @@ public class ContingencyAction implements CustomerAction {
contingencyPlanInstanceMapper
.
updateMessageById
(
instance
);
}
try
{
String
code
=
Objects
.
requireNonNull
(
redisTemplate
.
opsForValue
().
get
(
"stepCode"
)).
toString
();
if
(
StringUtils
.
isNotBlank
(
code
))
{
if
(
Integer
.
parseInt
(
stepCode
)
>
Integer
.
parseInt
(
code
))
{
redisTemplate
.
opsForValue
().
set
(
"stepCode"
,
stepCode
);
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
System
.
out
.
println
(
"batchNo-->"
+
batchNo
);
System
.
out
.
println
(
"stepCode-->"
+
stepCode
);
System
.
out
.
println
(
"contingencyPlanId-->"
+
contingencyPlanId
);
System
.
out
.
println
(
"buttonCode-->"
+
buttonCode
);
iContingencyInstance
.
fire
(
batchNo
,
stepCode
,
contingencyPlanId
,
buttonCode
,
"CANCEL_0"
,
"A"
,
RequestContext
.
getToken
(),
RequestContext
.
getProduct
(),
RequestContext
.
getAppKey
());
}
}
else
if
(
StringUtils
.
isBlank
(
code
)
&&
"0"
.
equals
(
stepCode
))
{
redisTemplate
.
opsForValue
().
set
(
"stepCode"
,
stepCode
);
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
System
.
out
.
println
(
"batchNo-->"
+
batchNo
);
System
.
out
.
println
(
"stepCode-->"
+
stepCode
);
System
.
out
.
println
(
"contingencyPlanId-->"
+
contingencyPlanId
);
System
.
out
.
println
(
"buttonCode-->"
+
buttonCode
);
iContingencyInstance
.
fire
(
batchNo
,
stepCode
,
contingencyPlanId
,
buttonCode
,
"CANCEL_0"
,
"A"
,
RequestContext
.
getToken
(),
RequestContext
.
getProduct
(),
RequestContext
.
getAppKey
());
}
else
if
(
StringUtils
.
isBlank
(
code
))
{
redisTemplate
.
opsForValue
().
set
(
"stepCode"
,
stepCode
);
}
System
.
out
.
println
(
"======optionarea 加入队列参数信息======action====="
);
ButtonJsonVO
buttonJsonVO
=
JSONObject
.
parseObject
(
buttonJson
,
ButtonJsonVO
.
class
);
Map
<
String
,
Object
>
map
=
buttonJsonVO
.
getOperate
().
get
(
buttonJsonVO
.
getOperate
().
size
()
-
1
);
System
.
out
.
println
(
"batchNo-->"
+
batchNo
);
System
.
out
.
println
(
"stepCode-->"
+
stepCode
);
System
.
out
.
println
(
"stepCodeNew-->"
+
buttonJsonVO
.
getStepCode
());
System
.
out
.
println
(
"contingencyPlanId-->"
+
contingencyPlanId
);
System
.
out
.
println
(
"buttonCode-->"
+
map
.
get
(
"code"
).
toString
());
iContingencyInstance
.
fire
(
batchNo
,
buttonJsonVO
.
getStepCode
(),
contingencyPlanId
,
map
.
get
(
"code"
).
toString
(),
"CANCEL_0"
,
"A"
,
RequestContext
.
getToken
(),
RequestContext
.
getProduct
(),
RequestContext
.
getAppKey
());
}
catch
(
Exception
e
)
{
log
.
error
(
"optionarea 加入队列失败-->"
+
e
.
getMessage
());
}
...
...
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanVisual3dServiceImpl.java
View file @
9b17fec7
...
...
@@ -417,13 +417,19 @@ public class PlanVisual3dServiceImpl implements IPlanVisual3dService {
// 通过contingencyPlanId获取buttonJson数据
ContingencyPlanInstance
planInstance
=
iContingencyPlanInstanceRepository
.
getOne
(
contingencyPlanId
);
x
.
setButtonJson
(
planInstance
.
getContent
());
// 更新进度条标志位
x
.
setShowLine
(
Integer
.
parseInt
(
x
.
getStepCode
())
<=
Integer
.
parseInt
(
stepCode
));
}
}).
collect
(
Collectors
.
toList
());
List
<
PlanStepJsonVO
>
collect1
=
collect
.
stream
().
peek
(
x
->
{
if
(
isExecute
)
{
if
(
Integer
.
parseInt
(
x
.
getStepCode
())
<=
Integer
.
parseInt
(
stepCode
))
{
// 更新进度条标志位
x
.
setShowLine
(
Integer
.
parseInt
(
x
.
getStepCode
())
<=
Integer
.
parseInt
(
stepCode
));
}
}
}).
collect
(
Collectors
.
toList
());
PlanStepVo
planStepVo
=
new
PlanStepVo
();
planStepVo
.
setBatchNo
(
batchNo
);
planStepVo
.
setPlanStep
(
JSON
.
toJSONString
(
collect
));
planStepVo
.
setPlanStep
(
JSON
.
toJSONString
(
collect
1
));
updatePlanStep
(
planStepVo
);
}
}
...
...
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