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
d9153fd2
Commit
d9153fd2
authored
Apr 08, 2024
by
pengxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
暂停更新状态。
parent
97a9b122
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
DatasetCleanController.java
.../yice/webadmin/app/controller/DatasetCleanController.java
+4
-4
DatasetCleanServiceImpl.java
...ce/webadmin/app/service/impl/DatasetCleanServiceImpl.java
+6
-7
No files found.
application-webadmin/src/main/java/com/yice/webadmin/app/controller/DatasetCleanController.java
View file @
d9153fd2
...
@@ -81,8 +81,8 @@ public class DatasetCleanController {
...
@@ -81,8 +81,8 @@ public class DatasetCleanController {
* @return 应答结果对象,包含新增对象主键Id。
* @return 应答结果对象,包含新增对象主键Id。
*/
*/
@OperationLog
(
type
=
SysOperationLogType
.
STOP_CLEAN
)
@OperationLog
(
type
=
SysOperationLogType
.
STOP_CLEAN
)
@
Pos
tMapping
(
"/stopClean"
)
@
Ge
tMapping
(
"/stopClean"
)
public
ResponseResult
<
Void
>
stopClean
(
@Request
Body
Long
cleanId
)
{
public
ResponseResult
<
Void
>
stopClean
(
@Request
Param
Long
cleanId
)
{
if
(
MyCommonUtil
.
existBlankArgument
(
cleanId
))
{
if
(
MyCommonUtil
.
existBlankArgument
(
cleanId
))
{
return
ResponseResult
.
error
(
ErrorCodeEnum
.
ARGUMENT_NULL_EXIST
);
return
ResponseResult
.
error
(
ErrorCodeEnum
.
ARGUMENT_NULL_EXIST
);
}
}
...
@@ -97,8 +97,8 @@ public class DatasetCleanController {
...
@@ -97,8 +97,8 @@ public class DatasetCleanController {
* @return 应答结果对象,包含新增对象主键Id。
* @return 应答结果对象,包含新增对象主键Id。
*/
*/
@OperationLog
(
type
=
SysOperationLogType
.
RESTART_CLEAN
)
@OperationLog
(
type
=
SysOperationLogType
.
RESTART_CLEAN
)
@
Pos
tMapping
(
"/restartClean"
)
@
Ge
tMapping
(
"/restartClean"
)
public
ResponseResult
<
Void
>
restartClean
(
@Request
Body
Long
cleanId
)
{
public
ResponseResult
<
Void
>
restartClean
(
@Request
Param
Long
cleanId
)
{
if
(
MyCommonUtil
.
existBlankArgument
(
cleanId
))
{
if
(
MyCommonUtil
.
existBlankArgument
(
cleanId
))
{
return
ResponseResult
.
error
(
ErrorCodeEnum
.
ARGUMENT_NULL_EXIST
);
return
ResponseResult
.
error
(
ErrorCodeEnum
.
ARGUMENT_NULL_EXIST
);
}
}
...
...
application-webadmin/src/main/java/com/yice/webadmin/app/service/impl/DatasetCleanServiceImpl.java
View file @
d9153fd2
...
@@ -175,14 +175,13 @@ public class DatasetCleanServiceImpl extends BaseService<DatasetClean, Long> imp
...
@@ -175,14 +175,13 @@ public class DatasetCleanServiceImpl extends BaseService<DatasetClean, Long> imp
Future
<?>
future
=
futures
.
remove
(
cleanId
);
Future
<?>
future
=
futures
.
remove
(
cleanId
);
if
(
future
!=
null
&&
!
future
.
isDone
())
{
if
(
future
!=
null
&&
!
future
.
isDone
())
{
future
.
cancel
(
true
);
future
.
cancel
(
true
);
//暂停清洗
DatasetClean
filter
=
new
DatasetClean
();
filter
.
setCleanStatus
(
DatasetConstant
.
PAUSE_FINISHED
);
filter
.
setFinishTime
(
null
);
filter
.
setCleanId
(
cleanId
);
this
.
updateById
(
filter
);
}
}
//暂停清洗
DatasetClean
filter
=
new
DatasetClean
();
filter
.
setCleanStatus
(
DatasetConstant
.
PAUSE_FINISHED
);
filter
.
setFinishTime
(
null
);
filter
.
setCleanId
(
cleanId
);
this
.
updateById
(
filter
);
}
}
/**
/**
...
...
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