diff --git a/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/JobQueryLogBO.java b/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/JobQueryLogBO.java new file mode 100644 index 0000000..0dc08e3 --- /dev/null +++ b/ruoyi-business/src/main/java/com/ruoyi/business/domain/bo/JobQueryLogBO.java @@ -0,0 +1,27 @@ +package com.ruoyi.business.domain.bo; + +import lombok.Data; + +/** + * 查询运行日志 + * + * @author boyi + * @since 2022/8/26 10:16 + */ +@Data +public class JobQueryLogBO { + + /** + * 计划uuid + */ + private String scheduleUuid; + /** + * 翻页方向 + */ + private String cursorDirection; + /** + * 每页数量 + */ + private Integer size; +} + diff --git a/ruoyi-business/src/main/java/com/ruoyi/business/domain/vo/JobQueryLogVO.java b/ruoyi-business/src/main/java/com/ruoyi/business/domain/vo/JobQueryLogVO.java new file mode 100644 index 0000000..4b0c4c2 --- /dev/null +++ b/ruoyi-business/src/main/java/com/ruoyi/business/domain/vo/JobQueryLogVO.java @@ -0,0 +1,65 @@ +package com.ruoyi.business.domain.vo; + +import com.fasterxml.jackson.annotation.JsonFormat; +import lombok.Data; + +import java.util.Date; +import java.util.List; + +/** + * 查询job响应 + * + * @author boyi + * @since 2022/8/26 10:17 + */ +@Data +public class JobQueryLogVO { + + /** + * 用于判断继续翻页时是否有数据,可用作翻页按钮置灰操作比如当往下翻页到20页时,第21页没有数据,则在20页时hasData为false,表示不能继续往下翻页,只能往上翻页 + */ + private Boolean hasData; + + + /** + * 往下翻页时,可作为 cursorId 使用,表示从这个id开始往下翻页 + */ + private Long nextId; + + /** + * 往上翻页时,可作为 cursorId 使用,表示从这个id开始往上翻页 + */ + private Long preId; + + /** + * 当前的翻页方向 next表示当前往下翻页 pre表示当前往上翻页 + */ + private String cursorDirection; + + /** + * 日志 + */ + private List dataList; + + /** + * 任务结束运行的时 + + /** + * 应用运行参数 + */ + @Data + public static class DataList { + private String id; + private String jobUuid; + private String status; + private String taskName; + private String robotUuid; + private String robotName; + private String triggerTime; + private String robotClientUuid; + // remark + private String remark; + + } + +} \ No newline at end of file diff --git a/ruoyi-business/src/main/java/com/ruoyi/business/service/IApplyPlanService.java b/ruoyi-business/src/main/java/com/ruoyi/business/service/IApplyPlanService.java index ecab306..f4bca8a 100644 --- a/ruoyi-business/src/main/java/com/ruoyi/business/service/IApplyPlanService.java +++ b/ruoyi-business/src/main/java/com/ruoyi/business/service/IApplyPlanService.java @@ -19,19 +19,23 @@ public interface IApplyPlanService extends IService { /** * 更新计划应用执行结果 + * * @param * @return */ void queryAppStartResult() throws IllegalAccessException; + /** * 获取应用执行结果 + * * @return */ boolean execPlan(ApplyStartBO applyStartBO) throws IllegalAccessException; /** * 定时查询指定时间执行的数据 + * * @return */ boolean runAppBySetTime() throws IllegalAccessException; @@ -43,6 +47,7 @@ public interface IApplyPlanService extends IService { /** * 创建计划 + * * @param addApplyPlanBO * @return */ @@ -50,10 +55,12 @@ public interface IApplyPlanService extends IService { /** * 修改计划 + * * @param addApplyPlanBO * @return */ boolean update(AddApplyPlanBO addApplyPlanBO); + /** * 查询应用执行计划管理列表 * diff --git a/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/ApplyPlanServiceImpl.java b/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/ApplyPlanServiceImpl.java index 35819e7..66624cd 100644 --- a/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/ApplyPlanServiceImpl.java +++ b/ruoyi-business/src/main/java/com/ruoyi/business/service/impl/ApplyPlanServiceImpl.java @@ -12,6 +12,7 @@ import com.ruoyi.business.domain.Apply; import com.ruoyi.business.domain.Rebot; import com.ruoyi.business.domain.ResourceLibrary; import com.ruoyi.business.domain.bo.*; +import com.ruoyi.business.domain.vo.JobQueryLogVO; import com.ruoyi.business.domain.vo.JobQueryVO; import com.ruoyi.business.domain.vo.JobStartVO; import com.ruoyi.business.domain.vo.ListRebotVO; @@ -307,7 +308,7 @@ public class ApplyPlanServiceImpl extends ServiceImpl data = BeanToMapUtil.convertEntityToMap(jobQueryLogBO); + BaseDTO baseDTO = sendPost(QUERY_APP_START_RESULT_LOG, data); + return JSON.parseObject(baseDTO.getData().toString(), JobQueryLogVO.class); + } + /** * 查询应用列表 */ diff --git a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java index 193a450..8577f96 100644 --- a/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java +++ b/ruoyi-quartz/src/main/java/com/ruoyi/quartz/task/RyTask.java @@ -71,8 +71,4 @@ public class RyTask { - - - - }