1、防护对象和白名单按id查询 增加返回全部字段
This commit is contained in:
@@ -56,6 +56,16 @@ class ProtectObjectServiceTest extends ProtectionApplicationTests {
|
||||
// Boolean success = protectObjectService.newProtectObjects(protectObjects);
|
||||
// assertTrue(success);
|
||||
}
|
||||
@Test
|
||||
void queryProtectObjectByid() {
|
||||
|
||||
protectObjectService.newProtectObject(protectObject);
|
||||
|
||||
System.out.println(protectObjectService.queryProtectObject(protectObject.getProtectObjectId()));
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
@Test
|
||||
void queryProtectObject() {
|
||||
|
||||
@@ -141,6 +141,13 @@ class WhiteListServiceTest extends ProtectionApplicationTests {
|
||||
List<WhiteListObject> whiteListObjects = whiteListService.queryWhiteListObject(null, null, null, null, null, 1, 2);
|
||||
System.out.println(whiteListObjects);
|
||||
}
|
||||
@Test
|
||||
void testQueryWhiteListObjectbyid() {
|
||||
List<WhiteListObject> whiteListObjects = whiteListService.queryWhiteListObject(null, null, null, null, null, 1, 2);
|
||||
System.out.println(
|
||||
whiteListService.queryWhiteListObjectById(
|
||||
whiteListObjects.get(0).getWhiteListId()));
|
||||
}
|
||||
|
||||
@Test
|
||||
void testUpdateAuditStatusByIdBatch() {
|
||||
|
||||
Reference in New Issue
Block a user