Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
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
YZG
yzg-util
Commits
82e3e2fc
Commit
82e3e2fc
authored
May 19, 2023
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
表结构修改
parent
63faedb0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
3 deletions
+4
-3
PlanNameDefault.java
.../main/java/com.yanzuoguang.redis/def/PlanNameDefault.java
+3
-2
PlanRegister.java
...main/java/com.yanzuoguang.redis/service/PlanRegister.java
+1
-0
PlanService.java
.../main/java/com.yanzuoguang.redis/service/PlanService.java
+0
-1
No files found.
yzg-util-redis/src/main/java/com.yanzuoguang.redis/def/PlanNameDefault.java
View file @
82e3e2fc
package
com
.
yanzuoguang
.
redis
.
def
;
package
com
.
yanzuoguang
.
redis
.
def
;
import
com.yanzuoguang.redis.PlanName
;
import
com.yanzuoguang.redis.PlanName
;
import
com.yanzuoguang.util.helper.TypeHelper
;
/**
/**
* 默认任务名称
* 默认任务名称
...
@@ -17,11 +18,11 @@ public class PlanNameDefault implements PlanName {
...
@@ -17,11 +18,11 @@ public class PlanNameDefault implements PlanName {
@Override
@Override
public
String
getPlanKey
()
{
public
String
getPlanKey
()
{
return
cls
.
getName
(
);
return
TypeHelper
.
getProxyClassName
(
cls
.
getName
()
);
}
}
@Override
@Override
public
String
getPlanName
()
{
public
String
getPlanName
()
{
return
cls
.
getSimpleName
(
);
return
TypeHelper
.
getProxyClassName
(
cls
.
getSimpleName
()
);
}
}
}
}
yzg-util-redis/src/main/java/com.yanzuoguang.redis/service/PlanRegister.java
View file @
82e3e2fc
...
@@ -8,6 +8,7 @@ import com.yanzuoguang.redis.vo.PlanConfigVo;
...
@@ -8,6 +8,7 @@ import com.yanzuoguang.redis.vo.PlanConfigVo;
import
com.yanzuoguang.redis.vo.PlanLevelType
;
import
com.yanzuoguang.redis.vo.PlanLevelType
;
import
com.yanzuoguang.util.exception.CodeException
;
import
com.yanzuoguang.util.exception.CodeException
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.StringHelper
;
import
com.yanzuoguang.util.helper.TypeHelper
;
import
com.yanzuoguang.util.log.Log
;
import
com.yanzuoguang.util.log.Log
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
...
...
yzg-util-redis/src/main/java/com.yanzuoguang.redis/service/PlanService.java
View file @
82e3e2fc
...
@@ -159,7 +159,6 @@ public class PlanService {
...
@@ -159,7 +159,6 @@ public class PlanService {
private
String
getCacheKey
(
PlanConfigVo
config
,
String
key
)
{
private
String
getCacheKey
(
PlanConfigVo
config
,
String
key
)
{
PlanLevelNamespace
planLevelNamespace
=
config
.
getPlanLevelNamespace
();
PlanLevelNamespace
planLevelNamespace
=
config
.
getPlanLevelNamespace
();
PlanLevelType
level
=
planLevelNamespace
.
getLevel
();
PlanLevelType
level
=
planLevelNamespace
.
getLevel
();
String
toKey
=
TypeHelper
.
getProxyClassName
(
key
);
return
StringHelper
.
getId
(
level
.
getName
(),
planLevelNamespace
.
getLevelNamespace
(),
key
);
return
StringHelper
.
getId
(
level
.
getName
(),
planLevelNamespace
.
getLevelNamespace
(),
key
);
}
}
}
}
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