-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEATURE] add kanban in linkisweb (#5089)
* Add new features to the Kanban view * Add new features to the Kanban view * Add query parameters to the interface * Add code to the front-end section of the Kanban view * 1. 增加筛选项目 2. 拆分mysql/pgsql * 1. 修复resultMap重复的bug 2. 去除无用字段 * 1. 优化mapper sql * 1. 调整显示格式 * 1. formatted code * 1. fix error name * 1. formatted code * fotmatted code * matted code
- Loading branch information
Showing
23 changed files
with
2,410 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
...linkis-jobhistory/src/main/java/org/apache/linkis/jobhistory/dao/JobStatisticsMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.linkis.jobhistory.dao; | ||
|
||
import org.apache.linkis.jobhistory.entity.JobStatistics; | ||
|
||
import org.apache.ibatis.annotations.Param; | ||
|
||
import java.util.Date; | ||
|
||
public interface JobStatisticsMapper { | ||
|
||
JobStatistics taskExecutionStatistics( | ||
@Param("umUser") String username, | ||
@Param("startDate") Date startDate, | ||
@Param("endDate") Date endDate, | ||
@Param("engineType") String engineType); | ||
|
||
JobStatistics taskExecutionStatisticsWithUserCreator( | ||
@Param("umUser") String username, | ||
@Param("userCreatorKey") String userCreatorKey, | ||
@Param("userCreatorValue") String userCreator, | ||
@Param("startDate") Date startDate, | ||
@Param("endDate") Date endDate, | ||
@Param("engineType") String engineType); | ||
|
||
JobStatistics taskExecutionStatisticsWithCreatorOnly( | ||
@Param("umUser") String username, | ||
@Param("userCreatorKey") String userCreatorKey, | ||
@Param("creator") String userCreator, | ||
@Param("startDate") Date startDate, | ||
@Param("endDate") Date endDate, | ||
@Param("engineType") String engineType); | ||
|
||
JobStatistics engineExecutionStatisticsWithUserCreator( | ||
@Param("umUser") String username, | ||
@Param("userCreatorValue") String userCreator, | ||
@Param("startDate") Date startDate, | ||
@Param("endDate") Date endDate, | ||
@Param("engineType") String engineType); | ||
|
||
JobStatistics engineExecutionStatistics( | ||
@Param("umUser") String username, | ||
@Param("creator") String userCreator, | ||
@Param("startDate") Date startDate, | ||
@Param("endDate") Date endDate, | ||
@Param("engineType") String engineType); | ||
} |
76 changes: 76 additions & 0 deletions
76
...ts/linkis-jobhistory/src/main/java/org/apache/linkis/jobhistory/entity/JobStatistics.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. | ||
* The ASF licenses this file to You under the Apache License, Version 2.0 | ||
* (the "License"); you may not use this file except in compliance with | ||
* the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package org.apache.linkis.jobhistory.entity; | ||
|
||
public class JobStatistics { | ||
|
||
private Long id; | ||
|
||
private Integer sumCount; | ||
|
||
private Integer succeedCount; | ||
|
||
private Integer failedCount; | ||
|
||
private Integer cancelledCount; | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public void setId(Long id) { | ||
this.id = id; | ||
} | ||
|
||
public Integer getSumCount() { | ||
return sumCount; | ||
} | ||
|
||
public void setSumCount(Integer sumCount) { | ||
this.sumCount = sumCount; | ||
} | ||
|
||
public Integer getSucceedCount() { | ||
return succeedCount; | ||
} | ||
|
||
public void setSucceedCount(Integer succeedCount) { | ||
this.succeedCount = succeedCount; | ||
} | ||
|
||
public Integer getFailedCount() { | ||
return failedCount; | ||
} | ||
|
||
public void setFailedCount(Integer failedCount) { | ||
this.failedCount = failedCount; | ||
} | ||
|
||
public Integer getCancelledCount() { | ||
return cancelledCount; | ||
} | ||
|
||
public void setCancelledCount(Integer cancelledCount) { | ||
this.cancelledCount = cancelledCount; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return "JobHistory{" + "id=" + id + '}'; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.