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
af9cbd4b
Commit
af9cbd4b
authored
Dec 03, 2020
by
huangfusuper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询运行实例时增加一个操作人
parent
4bcaea17
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
16 deletions
+5
-16
JobUtils.java
...xecutor-plugin/src/main/java/com/byit/utils/JobUtils.java
+5
-16
No files found.
byit-myth-executor/myth-executor-plugin/src/main/java/com/byit/utils/JobUtils.java
View file @
af9cbd4b
...
...
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSON;
import
com.byit.dto.api.JavaCallbackLogDto
;
import
com.byit.dto.executor.PluginBeanJobInfo
;
import
com.byit.dto.plugin.*
;
import
com.byit.dto.recording.LoadScheduleCondition
;
import
com.byit.dto.recording.SelectRecordingStatusCondition
;
import
com.byit.dto.specials.RepairFlow
;
import
com.byit.dto.specials.SpecialJobParam
;
...
...
@@ -569,23 +570,11 @@ public class JobUtils {
/**
* 获取运行实例接口
*
* @param startTime 开始时间 毫秒级别时间
* @param endTime 结束时间 毫秒级别时间
* @param workspaceName 工作空间名称
* @param flowName 工作流名称
* @param scheduleStatus 调度状态 1 未开始 2运行中 3暂停 4完成 多个以“,”隔开
* @param executeStatus 执行结果 1 成功 2 失败 3 补批成功 4 补批失败 5.kill 多个以“,”隔开
* @return
* @param loadScheduleCondition 查询条件
* @return 对应的数据
*/
public
static
ResponseResult
loadScheduleResult
(
Long
startTime
,
Long
endTime
,
String
workspaceName
,
String
flowName
,
String
scheduleStatus
,
String
executeStatus
)
{
Map
<
String
,
Object
>
param
=
new
HashMap
<>();
param
.
put
(
"startTime"
,
startTime
);
param
.
put
(
"endTime"
,
endTime
);
param
.
put
(
"workspaceName"
,
workspaceName
);
param
.
put
(
"flowName"
,
flowName
);
param
.
put
(
"scheduleStatus"
,
scheduleStatus
);
param
.
put
(
"executeStatus"
,
executeStatus
);
String
response
=
createHttpRequest
(
REQUEST_LOADSCHEDULE
,
"param="
+
JSON
.
toJSONString
(
param
));
public
static
ResponseResult
loadScheduleResult
(
LoadScheduleCondition
loadScheduleCondition
)
{
String
response
=
createHttpRequest
(
REQUEST_LOADSCHEDULE
,
JSON
.
toJSONString
(
loadScheduleCondition
,
WriteClassName
));
log
.
debug
(
"--------------------获取运行实例接口调用成功,结果为:{}------------------------"
,
response
);
return
JSON
.
parseObject
(
response
,
ResponseResult
.
class
);
}
...
...
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