Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
tool
/
xxl-job
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 56ef1357
authored
Nov 20, 2019
by
Zhouchuanwen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Fix typos and clean some code.
1 parent
8512a344
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java
xxl-job-admin/src/main/java/com/xxl/job/admin/core/conf/XxlJobAdminConfig.java
View file @
56ef135
...
@@ -34,7 +34,7 @@ public class XxlJobAdminConfig implements InitializingBean, DisposableBean {
...
@@ -34,7 +34,7 @@ public class XxlJobAdminConfig implements InitializingBean, DisposableBean {
private
XxlJobScheduler
xxlJobScheduler
;
private
XxlJobScheduler
xxlJobScheduler
;
@Override
@Override
public
void
afterPropertiesSet
()
{
public
void
afterPropertiesSet
()
throws
Exception
{
adminConfig
=
this
;
adminConfig
=
this
;
xxlJobScheduler
=
new
XxlJobScheduler
();
xxlJobScheduler
=
new
XxlJobScheduler
();
...
...
xxl-job-admin/src/main/java/com/xxl/job/admin/service/impl/AdminBizImpl.java
View file @
56ef135
...
@@ -129,15 +129,15 @@ public class AdminBizImpl implements AdminBiz {
...
@@ -129,15 +129,15 @@ public class AdminBizImpl implements AdminBiz {
public
ReturnT
<
String
>
registry
(
RegistryParam
registryParam
)
{
public
ReturnT
<
String
>
registry
(
RegistryParam
registryParam
)
{
// valid
// valid
if
(!
StringUtils
.
hasText
(
registryParam
.
getRegistGroup
())
if
(!
StringUtils
.
hasText
(
registryParam
.
getRegist
ry
Group
())
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryKey
())
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryKey
())
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryValue
()))
{
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryValue
()))
{
return
new
ReturnT
<
String
>(
ReturnT
.
FAIL_CODE
,
"Illegal Argument."
);
return
new
ReturnT
<
String
>(
ReturnT
.
FAIL_CODE
,
"Illegal Argument."
);
}
}
int
ret
=
xxlJobRegistryDao
.
registryUpdate
(
registryParam
.
getRegistGroup
(),
registryParam
.
getRegistryKey
(),
registryParam
.
getRegistryValue
(),
new
Date
());
int
ret
=
xxlJobRegistryDao
.
registryUpdate
(
registryParam
.
getRegist
ry
Group
(),
registryParam
.
getRegistryKey
(),
registryParam
.
getRegistryValue
(),
new
Date
());
if
(
ret
<
1
)
{
if
(
ret
<
1
)
{
xxlJobRegistryDao
.
registrySave
(
registryParam
.
getRegistGroup
(),
registryParam
.
getRegistryKey
(),
registryParam
.
getRegistryValue
(),
new
Date
());
xxlJobRegistryDao
.
registrySave
(
registryParam
.
getRegist
ry
Group
(),
registryParam
.
getRegistryKey
(),
registryParam
.
getRegistryValue
(),
new
Date
());
// fresh
// fresh
freshGroupRegistryInfo
(
registryParam
);
freshGroupRegistryInfo
(
registryParam
);
...
@@ -149,13 +149,13 @@ public class AdminBizImpl implements AdminBiz {
...
@@ -149,13 +149,13 @@ public class AdminBizImpl implements AdminBiz {
public
ReturnT
<
String
>
registryRemove
(
RegistryParam
registryParam
)
{
public
ReturnT
<
String
>
registryRemove
(
RegistryParam
registryParam
)
{
// valid
// valid
if
(!
StringUtils
.
hasText
(
registryParam
.
getRegistGroup
())
if
(!
StringUtils
.
hasText
(
registryParam
.
getRegist
ry
Group
())
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryKey
())
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryKey
())
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryValue
()))
{
||
!
StringUtils
.
hasText
(
registryParam
.
getRegistryValue
()))
{
return
new
ReturnT
<
String
>(
ReturnT
.
FAIL_CODE
,
"Illegal Argument."
);
return
new
ReturnT
<
String
>(
ReturnT
.
FAIL_CODE
,
"Illegal Argument."
);
}
}
int
ret
=
xxlJobRegistryDao
.
registryDelete
(
registryParam
.
getRegistGroup
(),
registryParam
.
getRegistryKey
(),
registryParam
.
getRegistryValue
());
int
ret
=
xxlJobRegistryDao
.
registryDelete
(
registryParam
.
getRegist
ry
Group
(),
registryParam
.
getRegistryKey
(),
registryParam
.
getRegistryValue
());
if
(
ret
>
0
)
{
if
(
ret
>
0
)
{
// fresh
// fresh
...
...
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