Authored by qinchao

zk权限修改

@@ -66,7 +66,7 @@ public class CacheInfoServiceImpl implements CacheInfoService { @@ -66,7 +66,7 @@ public class CacheInfoServiceImpl implements CacheInfoService {
66 @Override 66 @Override
67 public int addCacheInfoConfig(CacheInfoReq req) { 67 public int addCacheInfoConfig(CacheInfoReq req) {
68 // 修改zk 68 // 修改zk
69 - modifyZkConfig(req); 69 + //modifyZkConfig(req);
70 70
71 CacheInfoConfig cacheInfoConfig = new CacheInfoConfig(); 71 CacheInfoConfig cacheInfoConfig = new CacheInfoConfig();
72 BeanUtils.copyProperties(req,cacheInfoConfig); 72 BeanUtils.copyProperties(req,cacheInfoConfig);
@@ -77,7 +77,7 @@ public class CacheInfoServiceImpl implements CacheInfoService { @@ -77,7 +77,7 @@ public class CacheInfoServiceImpl implements CacheInfoService {
77 @Override 77 @Override
78 public int updateCacheInfoConfig(CacheInfoReq req) { 78 public int updateCacheInfoConfig(CacheInfoReq req) {
79 // 修改zk 79 // 修改zk
80 - modifyZkConfig(req); 80 + //modifyZkConfig(req);
81 CacheInfoConfig cacheInfoConfig = new CacheInfoConfig(); 81 CacheInfoConfig cacheInfoConfig = new CacheInfoConfig();
82 BeanUtils.copyProperties(req,cacheInfoConfig); 82 BeanUtils.copyProperties(req,cacheInfoConfig);
83 // 修改db 83 // 修改db
@@ -256,7 +256,7 @@ public class CacheInfoServiceImpl implements CacheInfoService { @@ -256,7 +256,7 @@ public class CacheInfoServiceImpl implements CacheInfoService {
256 return zkMoitorService.getAllChildren(server, path); 256 return zkMoitorService.getAllChildren(server, path);
257 } 257 }
258 258
259 - private void modifyZkConfig(CacheInfoReq req) { 259 + /*private void modifyZkConfig(CacheInfoReq req) {
260 ZkTreeAllReq zkTreeAllReq = new ZkTreeAllReq(); 260 ZkTreeAllReq zkTreeAllReq = new ZkTreeAllReq();
261 zkTreeAllReq.setZkPath(ZK_PATH+"/"+req.getConfigName()); 261 zkTreeAllReq.setZkPath(ZK_PATH+"/"+req.getConfigName());
262 zkTreeAllReq.setZkValue(req.getConfigValue()); 262 zkTreeAllReq.setZkValue(req.getConfigValue());
@@ -284,5 +284,5 @@ public class CacheInfoServiceImpl implements CacheInfoService { @@ -284,5 +284,5 @@ public class CacheInfoServiceImpl implements CacheInfoService {
284 zkTreeAllReq.setIp(serverType); 284 zkTreeAllReq.setIp(serverType);
285 zkMoitorService.editZkMonitorDetail(zkTreeAllReq); 285 zkMoitorService.editZkMonitorDetail(zkTreeAllReq);
286 } 286 }
287 - } 287 + }*/
288 } 288 }