Skip to content

Commit

Permalink
1. formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
sjgllgh committed Feb 22, 2024
1 parent f25a1c4 commit ce77f46
Show file tree
Hide file tree
Showing 6 changed files with 231 additions and 224 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,22 +132,24 @@ List<JobHistory> selectFailoverJobHistory(
@Param("limit") Integer limit);

List<JobHistory> taskDurationTopN(
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("umUser") String username,
@Param("engineType") String engineType);
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("umUser") String username,
@Param("engineType") String engineType);

List<JobHistory> taskDurationTopNWithUserCreator(
@Param("umUser") String username,
@Param("userCreatorKey") String userCreatorKey,
@Param("userCreatorValue") String userCreator,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("engineType") String engineType);
@Param("umUser") String username,
@Param("userCreatorKey") String userCreatorKey,
@Param("userCreatorValue") String userCreator,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("engineType") String engineType);

List<JobHistory> taskDurationTopNWithCreatorOnly(
@Param("umUser") String username,
@Param("userCreatorKey") String userCreatorKey,
@Param("creator") String userCreator,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("engineType") String engineType);
@Param("umUser") String username,
@Param("userCreatorKey") String userCreatorKey,
@Param("creator") String userCreator,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("engineType") String engineType);
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,38 +26,38 @@
public interface JobStatisticsMapper {

JobStatistics taskExecutionStatistics(
@Param("umUser") String username,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("engineType") String engineType);
@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);
@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);
@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);
@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);
@Param("umUser") String username,
@Param("creator") String userCreator,
@Param("startDate") Date startDate,
@Param("endDate") Date endDate,
@Param("engineType") String engineType);
}
Original file line number Diff line number Diff line change
Expand Up @@ -416,26 +416,30 @@ public Message listundone(
/** Method list should not contain subjob, which may cause performance problems. */
@ApiOperation(value = "listDurationTop", notes = "listDurationTop", response = Message.class)
@ApiImplicitParams({
@ApiImplicitParam(name = "startDate", dataType = "long", example = "1658937600001"),
@ApiImplicitParam(name = "endDate", dataType = "long", example = "1658937600000"),
@ApiImplicitParam(name = "executeApplicationName", dataType = "String"),
@ApiImplicitParam(name = "creator", required = false, dataType = "String", value = "creator"),
@ApiImplicitParam(name = "proxyUser", required = false, dataType = "String", value = "proxyUser"),
@ApiImplicitParam(name = "pageNow", required = false, dataType = "Integer", value = "page now"),
@ApiImplicitParam(name = "pageSize", dataType = "Integer"),
@ApiImplicitParam(name = "startDate", dataType = "long", example = "1658937600001"),
@ApiImplicitParam(name = "endDate", dataType = "long", example = "1658937600000"),
@ApiImplicitParam(name = "executeApplicationName", dataType = "String"),
@ApiImplicitParam(name = "creator", required = false, dataType = "String", value = "creator"),
@ApiImplicitParam(
name = "proxyUser",
required = false,
dataType = "String",
value = "proxyUser"),
@ApiImplicitParam(name = "pageNow", required = false, dataType = "Integer", value = "page now"),
@ApiImplicitParam(name = "pageSize", dataType = "Integer"),
})
@RequestMapping(path = "/listDurationTop", method = RequestMethod.GET)
public Message listDurationTop(
HttpServletRequest req,
@RequestParam(value = "startDate", required = false) Long startDate,
@RequestParam(value = "endDate", required = false) Long endDate,
@RequestParam(value = "executeApplicationName", required = false)
HttpServletRequest req,
@RequestParam(value = "startDate", required = false) Long startDate,
@RequestParam(value = "endDate", required = false) Long endDate,
@RequestParam(value = "executeApplicationName", required = false)
String executeApplicationName,
@RequestParam(value = "creator", required = false) String creator,
@RequestParam(value = "proxyUser", required = false) String proxyUser,
@RequestParam(value = "pageNow", required = false) Integer pageNow,
@RequestParam(value = "pageSize", required = false) Integer pageSize)
throws QueryException {
@RequestParam(value = "creator", required = false) String creator,
@RequestParam(value = "proxyUser", required = false) String proxyUser,
@RequestParam(value = "pageNow", required = false) Integer pageNow,
@RequestParam(value = "pageSize", required = false) Integer pageSize)
throws QueryException {
if (StringUtils.isEmpty(pageNow)) {
pageNow = 1;
}
Expand Down Expand Up @@ -483,7 +487,8 @@ public Message listDurationTop(
PageHelper.startPage(pageNow, pageSize);
try {
queryTasks =
jobHistoryQueryService.taskDurationTopN(sDate, eDate, proxyUser, creator, executeApplicationName);
jobHistoryQueryService.taskDurationTopN(
sDate, eDate, proxyUser, creator, executeApplicationName);
} finally {
PageHelper.clearPage();
}
Expand Down
Loading

0 comments on commit ce77f46

Please sign in to comment.