Commit 82e3e2fc authored by yanzg's avatar yanzg

表结构修改

parent 63faedb0
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());
} }
} }
...@@ -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;
......
...@@ -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);
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment