feature #I61D1N 规则层面增加一个enable的选项,可以禁用规则

This commit is contained in:
everywhere.z 2024-04-11 13:38:21 +08:00
parent 7291914402
commit 3b3dab92c8
3 changed files with 3 additions and 3 deletions

View File

@ -165,7 +165,7 @@ public class ApolloParseHelper {
.setId(nodeSimpleVO.getNodeId()) .setId(nodeSimpleVO.getNodeId())
.setType(NodeTypeEnum.getEnumByCode(nodeSimpleVO.getType())) .setType(NodeTypeEnum.getEnumByCode(nodeSimpleVO.getType()))
.setName(nodeSimpleVO.getName()) .setName(nodeSimpleVO.getName())
.setScript(nodeSimpleVO.getScript()) .setScript(newValue)
.setLanguage(nodeSimpleVO.getLanguage()) .setLanguage(nodeSimpleVO.getLanguage())
.build(); .build();
} }

View File

@ -169,7 +169,7 @@ public class EtcdParserHelper {
.setId(nodeSimpleVO.getNodeId()) .setId(nodeSimpleVO.getNodeId())
.setType(NodeTypeEnum.getEnumByCode(nodeSimpleVO.getType())) .setType(NodeTypeEnum.getEnumByCode(nodeSimpleVO.getType()))
.setName(nodeSimpleVO.getName()) .setName(nodeSimpleVO.getName())
.setScript(nodeSimpleVO.getScript()) .setScript(updateValue)
.setLanguage(nodeSimpleVO.getLanguage()) .setLanguage(nodeSimpleVO.getLanguage())
.build(); .build();
} }

View File

@ -178,7 +178,7 @@ public class ZkParserHelper {
.setId(nodeSimpleVO.getNodeId()) .setId(nodeSimpleVO.getNodeId())
.setType(NodeTypeEnum.getEnumByCode(nodeSimpleVO.getType())) .setType(NodeTypeEnum.getEnumByCode(nodeSimpleVO.getType()))
.setName(nodeSimpleVO.getName()) .setName(nodeSimpleVO.getName())
.setScript(nodeSimpleVO.getScript()) .setScript(value)
.setLanguage(nodeSimpleVO.getLanguage()) .setLanguage(nodeSimpleVO.getLanguage())
.build(); .build();
} }