1. 重构审核状态,将其转换为状态模式,添加Using状态(使用中)
2. 策略模板添加方法,通过反射判断防护等级中是否有字段为true
This commit is contained in:
@@ -49,7 +49,7 @@ public class DynamicRuleServiceTest extends ProtectionApplicationTests {
|
||||
object.setDynamicRuleRange("北京");
|
||||
object.setDynamicRuleProtectLevel(2);
|
||||
object.setTemplateId(templates.get(0).getTemplateId());
|
||||
object.setLogRuleId(1);
|
||||
object.setLogRuleId(1L);
|
||||
object.setProtectObjectIds(List.of(new Integer[]{protectObject.get(0).getProtectObjectId()}));
|
||||
Integer dynamicRuleId = dynamicRuleService.newDynamicRuleObject(object);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user