1、防护对象和白名单按id查询 增加返回全部字段

This commit is contained in:
PushM
2024-06-04 20:39:10 +08:00
parent 6e3d48c63e
commit e4ebe2d791
6 changed files with 72 additions and 6 deletions

View File

@@ -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() {

View File

@@ -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() {