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
43de15d2
Commit
43de15d2
authored
Apr 03, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参数类型
parent
2585c728
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
5 deletions
+8
-5
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+3
-1
RunRecordingMapper.java
...ore/src/main/java/com/byit/mapper/RunRecordingMapper.java
+3
-2
RunRecordingMapper.xml
...min-core/src/main/resources/mapper/RunRecordingMapper.xml
+2
-2
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
43de15d2
...
@@ -667,7 +667,9 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -667,7 +667,9 @@ public class ApiFlowServiceImpl implements ApiFlowService {
if
(
StringUtils
.
isNotEmpty
(
executeStatus
)){
if
(
StringUtils
.
isNotEmpty
(
executeStatus
)){
executeStatusList
=
Arrays
.
asList
(
executeStatus
.
split
(
","
));
executeStatusList
=
Arrays
.
asList
(
executeStatus
.
split
(
","
));
}
}
List
<
RunRecording
>
runRecordList
=
runRecordingMapper
.
findByStartAndEndTime
(
startTime
,
endTime
,
flowIds
,
scheduleStatusList
,
executeStatusList
);
Date
startDate
=
new
Date
(
startTime
);
Date
endDate
=
new
Date
(
endTime
);
List
<
RunRecording
>
runRecordList
=
runRecordingMapper
.
findByStartAndEndTime
(
startDate
,
endDate
,
flowIds
,
scheduleStatusList
,
executeStatusList
);
return
runRecordList
;
return
runRecordList
;
}
}
...
...
byit-myth-core/myth-admin-core/src/main/java/com/byit/mapper/RunRecordingMapper.java
View file @
43de15d2
...
@@ -5,6 +5,7 @@ import com.byit.model.RunRecording;
...
@@ -5,6 +5,7 @@ import com.byit.model.RunRecording;
import
org.apache.ibatis.annotations.Param
;
import
org.apache.ibatis.annotations.Param
;
import
org.springframework.stereotype.Repository
;
import
org.springframework.stereotype.Repository
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
/**
/**
...
@@ -138,8 +139,8 @@ public interface RunRecordingMapper {
...
@@ -138,8 +139,8 @@ public interface RunRecordingMapper {
*/
*/
List
<
RunRecording
>
findUnFinishByRunId
(
String
runId
);
List
<
RunRecording
>
findUnFinishByRunId
(
String
runId
);
List
<
RunRecording
>
findByStartAndEndTime
(
@Param
(
"startDate"
)
long
startDate
,
List
<
RunRecording
>
findByStartAndEndTime
(
@Param
(
"startDate"
)
Date
startDate
,
@Param
(
"endDate"
)
long
endDate
,
@Param
(
"endDate"
)
Date
endDate
,
@Param
(
"flowIds"
)
List
<
Integer
>
flowIds
,
@Param
(
"flowIds"
)
List
<
Integer
>
flowIds
,
@Param
(
"scheduleStatusList"
)
List
<
String
>
scheduleStatusList
,
@Param
(
"scheduleStatusList"
)
List
<
String
>
scheduleStatusList
,
@Param
(
"executeStatusList"
)
List
<
String
>
executeStatusList
);
@Param
(
"executeStatusList"
)
List
<
String
>
executeStatusList
);
...
...
byit-myth-core/myth-admin-core/src/main/resources/mapper/RunRecordingMapper.xml
View file @
43de15d2
...
@@ -108,8 +108,8 @@
...
@@ -108,8 +108,8 @@
select
select
<include
refid=
"Base_Column_List"
/>
<include
refid=
"Base_Column_List"
/>
from run_recording
from run_recording
where
unix_timestamp(start_time)
>
= ${startDate}
where
start_time
>
= ${startDate}
and
unix_timestamp(end_time)
<
= ${endDate}
and
end_time
<
= ${endDate}
<if
test=
"flowIds != null"
>
<if
test=
"flowIds != null"
>
and flow_id in (
and flow_id in (
<foreach
collection=
"flowIds"
item=
"flowId"
separator=
","
>
<foreach
collection=
"flowIds"
item=
"flowId"
separator=
","
>
...
...
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