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
dd9dbf5c
Commit
dd9dbf5c
authored
Jun 08, 2023
by
litengwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug 提交
parent
f9387773
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
12 deletions
+14
-12
ContingencyInstanceImpl.java
...os/fas/business/service/impl/ContingencyInstanceImpl.java
+11
-10
PlanStepServiceImpl.java
...n/amos/fas/business/service/impl/PlanStepServiceImpl.java
+1
-1
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/service/impl/ContingencyInstanceImpl.java
View file @
dd9dbf5c
...
@@ -452,7 +452,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -452,7 +452,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
public
void
updateStep
(
String
step
,
String
batchNo
)
{
public
void
updateStep
(
String
step
,
String
batchNo
)
{
int
update
=
iContingencyOriginalDataDao
.
updateByButtonStep
(
step
,
batchNo
);
int
update
=
iContingencyOriginalDataDao
.
updateByButtonStep
(
step
,
batchNo
);
// 异步数据同步之消息发送
// 异步数据同步之消息发送
// contingencyOriginalDataDataSync(batchNo, update);
// contingencyOriginalDataDataSync(batchNo, update);
}
}
@Override
@Override
...
@@ -531,14 +531,14 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -531,14 +531,14 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
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
());
List
<
String
>
strs
=
nodes
.
stream
().
filter
(
x
->
x
.
equals
(
stepCode
)).
collect
(
Collectors
.
toList
());
List
<
String
>
strs
=
nodes
.
stream
().
filter
(
x
->
x
.
equals
(
stepCode
)).
collect
(
Collectors
.
toList
());
if
(
0
<
strs
.
size
())
{
ContingencyPlanInstance
instance
=
contingencyPlanInstanceMapper
.
getMessageById
(
contingencyPlanId
);
ContingencyPlanInstance
instance
=
contingencyPlanInstanceMapper
.
getMessageById
(
contingencyPlanId
);
instance
.
setId
(
null
);
instance
.
setId
(
null
);
instance
.
setRecordType
(
"REPLYMESSAGE"
);
instance
.
setRecordType
(
"REPLYMESSAGE"
);
instance
.
setCreateDate
(
new
Date
()
);
instance
.
setCreateDate
(
new
Date
());
instance
.
setContent
(
instance
.
getCategory
());
instance
.
setContent
(
instance
.
getCategory
()
);
ContingencyPlanInstance
res
=
repository
.
save
(
instance
);
ContingencyPlanInstance
res
=
repository
.
save
(
instance
);
if
(!
ObjectUtils
.
isEmpty
(
res
))
{
if
(
!
ObjectUtils
.
isEmpty
(
res
))
{
if
(
0
<
strs
.
size
(
))
{
PlanExecuteVo
vo
=
new
PlanExecuteVo
();
PlanExecuteVo
vo
=
new
PlanExecuteVo
();
vo
.
setConfirm
(
buttonState
);
vo
.
setConfirm
(
buttonState
);
vo
.
setStepState
(
stepStateOnbutton
);
vo
.
setStepState
(
stepStateOnbutton
);
...
@@ -696,7 +696,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -696,7 +696,7 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
}
}
// @Scheduled(cron = "*/2 * * * * ?")
// @Scheduled(cron = "*/2 * * * * ?")
public
void
runFireQueue
()
throws
Exception
{
public
void
runFireQueue
()
throws
Exception
{
if
(
fireQueue
.
size
()
==
0
)
if
(
fireQueue
.
size
()
==
0
)
...
@@ -755,3 +755,4 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
...
@@ -755,3 +755,4 @@ public class ContingencyInstanceImpl implements IContingencyInstance {
}
}
}
}
YeeAmosFireAutoSysService/src/main/java/com/yeejoin/amos/fas/business/service/impl/PlanStepServiceImpl.java
View file @
dd9dbf5c
...
@@ -81,6 +81,6 @@ public class PlanStepServiceImpl implements IPlanStepService {
...
@@ -81,6 +81,6 @@ public class PlanStepServiceImpl implements IPlanStepService {
@Override
@Override
public
void
initPlanTask
()
{
public
void
initPlanTask
()
{
redisTemplate
.
delete
(
"planTask"
);
redisTemplate
.
delete
(
"planTask"
);
redisTemplate
.
opsForValue
().
set
(
"planTask"
,
""
);
//
redisTemplate.opsForValue().set("planTask", "");
}
}
}
}
YeeAmosFireAutoSysStart/src/main/resources/json/plan-setp-node.json
View file @
dd9dbf5c
{
{
"nodes"
:
"0,1,2,5,9,10,11"
,
"nodes"
:
"0,1,2,5,9,10,11"
,
"nodes_pyh"
:
"0,2,5,15,19"
"nodes_pyh"
:
"0,2,5,15,19"
,
"nodes_yn"
:
"0,1,2,5,9,10,11"
}
}
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