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
2797f75f
Commit
2797f75f
authored
Apr 03, 2020
by
guominglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改参数类型为String
parent
43de15d2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
ApiFlowServiceImpl.java
...c/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
+3
-2
RunRecordingMapper.java
...ore/src/main/java/com/byit/mapper/RunRecordingMapper.java
+2
-2
No files found.
byit-myth-admin/src/main/java/com/byit/service/impl/ApiFlowServiceImpl.java
View file @
2797f75f
...
@@ -44,6 +44,7 @@ import static com.alibaba.fastjson.serializer.SerializerFeature.WriteClassName;
...
@@ -44,6 +44,7 @@ import static com.alibaba.fastjson.serializer.SerializerFeature.WriteClassName;
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
class
ApiFlowServiceImpl
implements
ApiFlowService
{
public
class
ApiFlowServiceImpl
implements
ApiFlowService
{
private
final
static
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
private
final
static
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyyMMdd"
);
private
final
static
SimpleDateFormat
dateTimeFormat
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
@Resource
@Resource
private
FlowMapper
flowMapper
;
private
FlowMapper
flowMapper
;
...
@@ -667,8 +668,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
...
@@ -667,8 +668,8 @@ public class ApiFlowServiceImpl implements ApiFlowService {
if
(
StringUtils
.
isNotEmpty
(
executeStatus
)){
if
(
StringUtils
.
isNotEmpty
(
executeStatus
)){
executeStatusList
=
Arrays
.
asList
(
executeStatus
.
split
(
","
));
executeStatusList
=
Arrays
.
asList
(
executeStatus
.
split
(
","
));
}
}
Date
startDate
=
new
Date
(
startTime
);
String
startDate
=
dateTimeFormat
.
format
(
new
Date
(
startTime
)
);
Date
endDate
=
new
Date
(
endTime
);
String
endDate
=
dateTimeFormat
.
format
(
new
Date
(
endTime
)
);
List
<
RunRecording
>
runRecordList
=
runRecordingMapper
.
findByStartAndEndTime
(
startDate
,
endDate
,
flowIds
,
scheduleStatusList
,
executeStatusList
);
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 @
2797f75f
...
@@ -139,8 +139,8 @@ public interface RunRecordingMapper {
...
@@ -139,8 +139,8 @@ public interface RunRecordingMapper {
*/
*/
List
<
RunRecording
>
findUnFinishByRunId
(
String
runId
);
List
<
RunRecording
>
findUnFinishByRunId
(
String
runId
);
List
<
RunRecording
>
findByStartAndEndTime
(
@Param
(
"startDate"
)
Date
startDate
,
List
<
RunRecording
>
findByStartAndEndTime
(
@Param
(
"startDate"
)
String
startDate
,
@Param
(
"endDate"
)
Date
endDate
,
@Param
(
"endDate"
)
String
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
);
...
...
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