1、回调类中改为属于策略一部分无action;
2、添加分组复用域配置新增和删除接口;只有属于分组复用的业务类型在新增MAAT规则时才能只不填写域配置;
This commit is contained in:
@@ -179,15 +179,9 @@ public class ConfigJedisServiceimpl implements ConfigRedisService {
|
||||
|
||||
} catch (Exception e) {
|
||||
transaction.discard();
|
||||
|
||||
if (e instanceof ServiceRuntimeException) {
|
||||
throw e;
|
||||
}else {
|
||||
String error = "保存非maat类配置发生了异常," + e.getMessage();
|
||||
// logger.error(error);
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.SaveDataInError.getValue());
|
||||
}
|
||||
|
||||
String error = "保存非maat类配置发生了异常," + e.getMessage();
|
||||
// logger.error(error);
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.SaveDataInError.getValue());
|
||||
} finally {
|
||||
// 释放连接到连接池
|
||||
JedisUtils.returnResource(resource);
|
||||
@@ -531,13 +525,9 @@ public class ConfigJedisServiceimpl implements ConfigRedisService {
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.CannotConnectionRedis.getValue());
|
||||
} catch (Exception e) {
|
||||
transaction.discard();
|
||||
if (e instanceof ServiceRuntimeException) {
|
||||
throw e;
|
||||
}else {
|
||||
String error = "保存maat类配置发生了异常" + e.getMessage();
|
||||
logger.error(error);
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.SaveDataInError.getValue());
|
||||
}
|
||||
String error = "保存maat类配置发生了异常" + e.getMessage();
|
||||
logger.error(error);
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.SaveDataInError.getValue());
|
||||
} finally {
|
||||
// 释放连接到连接池
|
||||
JedisUtils.returnResource(resource);
|
||||
@@ -952,13 +942,7 @@ public class ConfigJedisServiceimpl implements ConfigRedisService {
|
||||
transaction.discard();
|
||||
String error = "删除非maat类配置发生了异常," + e.getMessage();
|
||||
// logger.error(error);
|
||||
if (e instanceof ServiceRuntimeException) {
|
||||
throw e;
|
||||
}else {
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.DeleteDataInError.getValue());
|
||||
}
|
||||
|
||||
|
||||
throw new ServiceRuntimeException(error, RestBusinessCode.DeleteDataInError.getValue());
|
||||
} finally {
|
||||
// 释放连接到连接池
|
||||
JedisUtils.returnResource(resource);
|
||||
|
||||
Reference in New Issue
Block a user