Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
lmp_server
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lmp
lmp_server
Commits
f229451e
Commit
f229451e
authored
Dec 06, 2023
by
linpeiqin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加接口免登录白名单注释
parent
bc070476
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
TuningRunController.java
...com/yice/webadmin/app/controller/TuningRunController.java
+8
-1
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/controller/TuningRunController.java
View file @
f229451e
...
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
...
@@ -7,6 +7,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
import
com.github.pagehelper.page.PageMethod
;
import
com.github.pagehelper.page.PageMethod
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.github.xiaoymin.knife4j.annotations.ApiOperationSupport
;
import
com.yice.common.core.annotation.MyRequestBody
;
import
com.yice.common.core.annotation.MyRequestBody
;
import
com.yice.common.core.annotation.NoAuthInterface
;
import
com.yice.common.core.constant.ErrorCodeEnum
;
import
com.yice.common.core.constant.ErrorCodeEnum
;
import
com.yice.common.core.object.*
;
import
com.yice.common.core.object.*
;
import
com.yice.common.core.util.MyCommonUtil
;
import
com.yice.common.core.util.MyCommonUtil
;
...
@@ -245,14 +246,20 @@ public class TuningRunController {
...
@@ -245,14 +246,20 @@ public class TuningRunController {
*
*
* @return 应答结果对象,包含查询结果集。
* @return 应答结果对象,包含查询结果集。
*/
*/
@NoAuthInterface
@OperationLog
(
type
=
SysOperationLogType
.
UPLOAD
,
saveResponse
=
false
)
@PostMapping
(
"/postRunStatus"
)
@PostMapping
(
"/postRunStatus"
)
public
ResponseResult
<
Void
>
postRunStatus
(
@MyRequestBody
Long
runId
,
public
ResponseResult
<
Void
>
postRunStatus
(
@MyRequestBody
Long
runId
,
@MyRequestBody
Long
runTime
,
@MyRequestBody
Long
runTime
,
@MyRequestBody
Integer
runStatus
)
{
@MyRequestBody
Integer
runStatus
)
{
String
errorMessage
;
TuningRun
tuningRun
=
this
.
tuningRunService
.
getById
(
runId
);
TuningRun
tuningRun
=
this
.
tuningRunService
.
getById
(
runId
);
if
(
tuningRun
==
null
)
{
errorMessage
=
"数据验证失败,当前微调运行并不存在,请联系管理员!"
;
return
ResponseResult
.
error
(
ErrorCodeEnum
.
DATA_NOT_EXIST
,
errorMessage
);
}
tuningRun
.
setRunStatus
(
runStatus
);
tuningRun
.
setRunStatus
(
runStatus
);
tuningRun
.
setRunTime
(
runTime
);
tuningRun
.
setRunTime
(
runTime
);
String
errorMessage
;
if
(!
tuningRunService
.
updateById
(
tuningRun
))
{
if
(!
tuningRunService
.
updateById
(
tuningRun
))
{
errorMessage
=
"运行状态信息提交错误!"
;
errorMessage
=
"运行状态信息提交错误!"
;
return
ResponseResult
.
error
(
ErrorCodeEnum
.
DATA_NOT_EXIST
,
errorMessage
);
return
ResponseResult
.
error
(
ErrorCodeEnum
.
DATA_NOT_EXIST
,
errorMessage
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment