Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
yangxiujun
/
paidan_demo
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 68570f3d
authored
Jul 06, 2023
by
张晓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
controller 调试
1 parent
a8da2b3a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
project-dispatch/src/main/java/com/dituhui/pea/dispatch/controller/BatchController.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/controller/PrepareController.java
project-dispatch/src/main/java/com/dituhui/pea/dispatch/controller/BatchController.java
View file @
68570f3
...
...
@@ -29,7 +29,7 @@ import java.util.List;
*/
@Slf4j
@RequestMapping
(
"/dispatch
-pre
"
)
@RequestMapping
(
"/dispatch
/batch
"
)
@RestController
public
class
BatchController
{
...
...
project-dispatch/src/main/java/com/dituhui/pea/dispatch/controller/PrepareController.java
View file @
68570f3
...
...
@@ -29,7 +29,7 @@ import java.util.*;
*/
@Slf4j
@RequestMapping
(
"/dispatch
-p
re"
)
@RequestMapping
(
"/dispatch
/prepa
re"
)
@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
);
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment