|
|
@@ -2,14 +2,8 @@ package com.ruoyi.business.util; |
|
|
|
|
|
|
|
import cn.hutool.json.JSONUtil; |
|
|
|
import com.alibaba.fastjson2.JSON; |
|
|
|
import com.ruoyi.business.domain.bo.ApplyStartBO; |
|
|
|
import com.ruoyi.business.domain.bo.JobQueryBO; |
|
|
|
import com.ruoyi.business.domain.bo.ListApplyBO; |
|
|
|
import com.ruoyi.business.domain.bo.ListRebotBO; |
|
|
|
import com.ruoyi.business.domain.vo.JobQueryVO; |
|
|
|
import com.ruoyi.business.domain.vo.JobStartVO; |
|
|
|
import com.ruoyi.business.domain.vo.ListApplyVO; |
|
|
|
import com.ruoyi.business.domain.vo.ListRebotVO; |
|
|
|
import com.ruoyi.business.domain.bo.*; |
|
|
|
import com.ruoyi.business.domain.vo.*; |
|
|
|
import com.ruoyi.business.yddoman.BaseDTO; |
|
|
|
import com.ruoyi.business.yddoman.CreateTokenDTO; |
|
|
|
import com.ruoyi.common.exception.ServiceException; |
|
|
@@ -44,6 +38,8 @@ public class YinDaoHttpUtils { |
|
|
|
private static final String APP_START = REQUEST_PREFIX + "/dispatch/v2/job/start"; |
|
|
|
// 查询应用运行结果 |
|
|
|
private static final String QUERY_APP_START_RESULT = REQUEST_PREFIX + "/dispatch/v2/job/query"; |
|
|
|
// 查询应用运行日志(异常时可以查询原因) |
|
|
|
private static final String QUERY_APP_START_RESULT_LOG = REQUEST_PREFIX + "/dispatch/v2/job/list"; |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
@@ -66,6 +62,16 @@ public class YinDaoHttpUtils { |
|
|
|
return JSON.parseObject(baseDTO.getData().toString(), JobQueryVO.class); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询应用运行结果 |
|
|
|
*/ |
|
|
|
public static JobQueryLogVO queryAppStartResultLog(JobQueryLogBO jobQueryLogBO) throws IllegalAccessException { |
|
|
|
// 实体类转map |
|
|
|
Map<String, Object> data = BeanToMapUtil.convertEntityToMap(jobQueryLogBO); |
|
|
|
BaseDTO baseDTO = sendPost(QUERY_APP_START_RESULT_LOG, data); |
|
|
|
return JSON.parseObject(baseDTO.getData().toString(), JobQueryLogVO.class); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* 查询应用列表 |
|
|
|
*/ |
|
|
|