Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
byit-myth-job
Overview
Overview
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
liyuan
byit-myth-job
Commits
e5cc550c
Commit
e5cc550c
authored
Jan 26, 2021
by
huangfu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改内存溢出的BUG
parent
5a5a19bb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
ApiFlowOperatingServiceImpl.java
...va/com/byit/service/impl/ApiFlowOperatingServiceImpl.java
+4
-3
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowOperatingServiceImpl.java
View file @
e5cc550c
...
@@ -99,10 +99,11 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
...
@@ -99,10 +99,11 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
ValidationUtil
.
dataNotBank
(
nowTimeFormatName
,
"nowDate时间类型不允许为空"
);
ValidationUtil
.
dataNotBank
(
nowTimeFormatName
,
"nowDate时间类型不允许为空"
);
//获取公共参数
//获取公共参数
Map
<
String
,
String
>
publicParam
=
specialJobParam
.
getPublicParam
();
Map
<
String
,
String
>
publicParam
=
specialJobParam
.
getPublicParam
();
Map
<
String
,
String
>
newPublicParam
=
new
HashMap
<>(
8
);
//新参数
//新参数
publicParam
.
forEach
((
key
,
value
)
->{
publicParam
.
forEach
((
key
,
value
)
->{
publicParam
.
put
(
String
.
format
(
"%s*"
,
key
),
value
);
newPublicParam
.
put
(
key
,
value
);
newPublicParam
.
put
(
String
.
format
(
"%s*"
,
key
),
value
);
});
});
//补批时间
//补批时间
...
@@ -140,7 +141,7 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
...
@@ -140,7 +141,7 @@ public class ApiFlowOperatingServiceImpl implements ApiFlowOperatingService {
}
}
if
(
CollectionUtil
.
isNotEmpty
(
nodeRelyDtoSet
))
{
if
(
CollectionUtil
.
isNotEmpty
(
nodeRelyDtoSet
))
{
//构建等待队列
//构建等待队列
List
<
WaitingRecord
>
waitingRecords
=
buildWaitingRecordList
(
flowByName
,
nodeRelyDtoSet
.
size
(),
operator
,
repairTimeList
,
JSON
.
toJSONString
(
p
ublicParam
));
List
<
WaitingRecord
>
waitingRecords
=
buildWaitingRecordList
(
flowByName
,
nodeRelyDtoSet
.
size
(),
operator
,
repairTimeList
,
JSON
.
toJSONString
(
newP
ublicParam
));
waitingRecords
.
forEach
(
waitingRecordMapper:
:
insertSelective
);
waitingRecords
.
forEach
(
waitingRecordMapper:
:
insertSelective
);
List
<
RunRecording
>
runRecordings
=
buildRunRecordingList
(
waitingRecords
);
List
<
RunRecording
>
runRecordings
=
buildRunRecordingList
(
waitingRecords
);
List
<
WaitingTask
>
waitingTaskList
=
buildWaitingTaskResult
(
waitingRecords
,
nodeRelyDtoSet
,
specialJobParam
.
getPublicParam
(),
timeFormatName
,
nowTimeFormatName
);
List
<
WaitingTask
>
waitingTaskList
=
buildWaitingTaskResult
(
waitingRecords
,
nodeRelyDtoSet
,
specialJobParam
.
getPublicParam
(),
timeFormatName
,
nowTimeFormatName
);
...
...
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