Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Task instance filter by execution user is not working #275

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ IPage<SeaTunnelJobInstanceDto> queryJobInstanceListPaging(
Date startTime,
Date endTime,
String jobDefineId,
String executorName,
String stateType,
JobMode jobMode);

List<JobInstance> getAllJobInstance(@NonNull List<Long> jobInstanceIdList);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,11 @@ public IPage<SeaTunnelJobInstanceDto> queryJobInstanceListPaging(
Date startTime,
Date endTime,
String jobDefineName,
String executorName,
String stateType,
JobMode jobMode) {
return jobInstanceMapper.queryJobInstanceListPaging(
page, startTime, endTime, jobDefineName, jobMode);
page, startTime, endTime, jobDefineName, executorName, stateType, jobMode);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ IPage<SeaTunnelJobInstanceDto> queryJobInstanceListPaging(
@Param("startTime") Date startTime,
@Param("endTime") Date endTime,
@Param("jobDefineName") String jobDefineName,
@Param("executorName") String executorName,
@Param("stateType") String stateType,
@Param("jobMode") JobMode jobMode);

JobInstance getJobExecutionStatus(@Param("jobInstanceId") Long jobInstanceId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,13 @@ public Result<PageInfo<SeaTunnelJobInstanceDto>> getSyncTaskInstancePaging(

IPage<SeaTunnelJobInstanceDto> jobInstanceIPage =
jobInstanceDao.queryJobInstanceListPaging(
new Page<>(pageNo, pageSize), startDate, endDate, jobDefineName, jobMode);
new Page<>(pageNo, pageSize),
startDate,
endDate,
jobDefineName,
executorName,
stateType,
jobMode);

List<SeaTunnelJobInstanceDto> records = jobInstanceIPage.getRecords();
if (CollectionUtils.isEmpty(records)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@
<if test="jobDefineName != null">
AND jd.name LIKE concat('%', #{jobDefineName}, '%')
</if>
<if test="executorName != null">
AND cu.username LIKE concat('%', #{executorName}, '%')
</if>
<if test="stateType != null">
AND ji.job_status LIKE concat('%', #{stateType}, '%')
</if>
<if test="jobMode != null">
AND ji.job_type = #{jobMode}
</if>
Expand Down
Loading