mirror of
https://github.com/WeiYe-Jing/datax-web.git
synced 2026-06-30 21:17:37 +08:00
api更新
This commit is contained in:
parent
71368ab294
commit
6bfb6f41b1
@ -21,8 +21,7 @@ import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* job code controller
|
||||
* @author xuxueli 2015-12-19 16:13:16
|
||||
* Created by jingwk on 2019/11/17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/jobcode")
|
||||
|
||||
@ -17,8 +17,7 @@ import javax.annotation.Resource;
|
||||
import java.util.*;
|
||||
|
||||
/**
|
||||
* job group controller
|
||||
* @author xuxueli 2016-10-02 20:52:56
|
||||
* Created by jingwk on 2019/11/17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/jobgroup")
|
||||
|
||||
@ -34,7 +34,7 @@ import java.util.*;
|
||||
*/
|
||||
@Api(tags = "任务配置接口")
|
||||
@RestController
|
||||
@RequestMapping("/jobinfo")
|
||||
@RequestMapping("/api")
|
||||
public class JobInfoController {
|
||||
|
||||
@Resource
|
||||
@ -95,11 +95,9 @@ public class JobInfoController {
|
||||
|
||||
@GetMapping("/pageList")
|
||||
@ApiOperation("任务列表")
|
||||
public Map<String, Object> pageList(@RequestParam(required = false, defaultValue = "0") int start,
|
||||
@RequestParam(required = false, defaultValue = "10") int length,
|
||||
int jobGroup, int triggerStatus, String jobDesc, String executorHandler, String author) {
|
||||
public Map<String, Object> pageList() {
|
||||
|
||||
return xxlJobService.pageList(start, length, jobGroup, triggerStatus, jobDesc, executorHandler, author);
|
||||
return xxlJobService.pageList(0, 10, 1, -1, null, null, null);
|
||||
}
|
||||
|
||||
@PostMapping("/add")
|
||||
|
||||
@ -28,8 +28,7 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* index controller
|
||||
* @author xuxueli 2015-12-19 16:13:16
|
||||
* Created by jingwk on 2019/11/17
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/joblog")
|
||||
|
||||
@ -113,7 +113,7 @@ public class XxlJobExecutor {
|
||||
if (adminAddresses!=null && adminAddresses.trim().length()>0) {
|
||||
for (String address: adminAddresses.trim().split(",")) {
|
||||
if (address!=null && address.trim().length()>0) {
|
||||
|
||||
//实例化AdminBizClient
|
||||
AdminBiz adminBiz = new AdminBizClient(address.trim(), accessToken);
|
||||
|
||||
if (adminBizList == null) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user