1、DynamicRule的新增、更新添加对id、protectObjectId的判断;分页查询添加creator、sourceSystem查询条件;按id查询新增template_id为null的判断
2、StaticRule新增usedTaskStatus字段,多查单查返回usedTaskStatus;增、改、查、改审核状态添加id无效判断; 分页新增creator、ip查询条件 3、whiteList修改审核status,添加id无效判断
This commit is contained in:
@@ -54,14 +54,15 @@ public class DynamicRuleServiceTest {
|
||||
object.setDynamicRuleRange("北京");
|
||||
object.setDynamicRuleProtectLevel(2);
|
||||
object.setTemplateId(1);
|
||||
//object.setProtectObjectIds(List.of(new Integer[]{5521, 5520}));
|
||||
object.setProtectObjectIds(List.of(new Integer[]{5521, 5520}));
|
||||
|
||||
dynamicRuleService.updateDynamicRuleObject(2, object);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testQueryDynamicRuleObject() {
|
||||
List<DynamicRuleObject> objects = dynamicRuleService.queryDynamicRuleObject( null,null,1, 10);
|
||||
List<DynamicRuleObject> objects = dynamicRuleService.queryDynamicRuleObject(
|
||||
null,null,"1", null,1, 10);
|
||||
System.out.println(objects);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -111,12 +111,6 @@ public class StaticRuleServiceTest {
|
||||
System.out.println(object);
|
||||
}
|
||||
|
||||
@Test
|
||||
void testQueryStaticRuleList(){
|
||||
|
||||
List<StaticRuleObject> objectList = staticRuleService.queryStaticRule(null,null,1,10);
|
||||
System.out.println(objectList);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user