Skip to content

Commit

Permalink
[Bug] Task instance filter by execution user is not working
Browse files Browse the repository at this point in the history
  • Loading branch information
arshadmohammad committed Jan 20, 2025
1 parent a901300 commit a1dcddd
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 2 deletions.
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

0 comments on commit a1dcddd

Please sign in to comment.