Commit 68570f3d by 张晓

controller 调试

1 parent a8da2b3a
......@@ -29,7 +29,7 @@ import java.util.List;
*/
@Slf4j
@RequestMapping("/dispatch-pre")
@RequestMapping("/dispatch/batch")
@RestController
public class BatchController {
......
......@@ -29,7 +29,7 @@ import java.util.*;
*/
@Slf4j
@RequestMapping("/dispatch-pre")
@RequestMapping("/dispatch/prepare")
@RestController
public class PrepareController {
......@@ -54,9 +54,9 @@ public class PrepareController {
/*
* 检查指定日期的小组是否有在运行的批次任务,有则返回,没有则创建后返回批次码
* 运行批次任务,直接返回结果
*/
@GetMapping("/prepare/solveTest/{groupId}/{batchNo}")
@GetMapping("/solveTest/{groupId}/{batchNo}")
public Result<?> prepareAndSolve(@PathVariable String groupId, @PathVariable String batchNo) {
log.info("prepareSolve, groupId:{}, day:{}", groupId, batchNo);
DispatchSolution solution = solveService.prepareAndSolveSolution(groupId, batchNo);
......@@ -71,7 +71,7 @@ public class PrepareController {
}
// 异步任务运行 todo
@GetMapping("/prepare/solveAsync/{groupId}/{batchNo}")
@GetMapping("/solveAsync/{groupId}/{batchNo}")
public Result<?> solveAsync(@PathVariable String groupId, @PathVariable String batchNo) {
log.info("调用引擎处理-异步处理, groupId:{}, batchNo:{}", groupId, batchNo);
UUID problemId = solveService.generateProblemId(groupId, batchNo);
......@@ -86,7 +86,7 @@ public class PrepareController {
return Result.success("已触发异步执行");
}
@GetMapping("/prepare/solveStatus/{groupId}/{batchNo}")
@GetMapping("/solveStatus/{groupId}/{batchNo}")
public Result<?> solveStatus(@PathVariable String groupId, @PathVariable String batchNo) {
log.info("查询引擎处理状态, groupId:{}, batchNo:{}", groupId, batchNo);
UUID problemId = solveService.generateProblemId(groupId, batchNo);
......@@ -95,7 +95,7 @@ public class PrepareController {
return Result.success(status);
}
@GetMapping("/prepare/solveStop/{groupId}/{batchNo}")
@GetMapping("/solveStop/{groupId}/{batchNo}")
public Result<?> solveStop(@PathVariable String groupId, @PathVariable String batchNo) {
log.info("停止引擎处理批次, groupId:{}, batchNo:{}", groupId, batchNo);
UUID problemId = solveService.generateProblemId(groupId, batchNo);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!