1、task分页查询bugfix

2、新增审批人属性
3、loginservice修改权限系统url

(cherry picked from commit e943a787d4)
This commit is contained in:
PushM
2024-05-09 21:58:05 +08:00
parent 8cc0af06a1
commit 8c79cf3e25
11 changed files with 85 additions and 5 deletions

View File

@@ -1,6 +1,7 @@
package com.realtime.protection.server.defense.template;
import com.realtime.protection.ProtectionApplicationTests;
import com.realtime.protection.configuration.entity.defense.object.ProtectObject;
import com.realtime.protection.configuration.entity.defense.template.ProtectLevel;
import com.realtime.protection.configuration.entity.defense.template.Template;
import org.junit.jupiter.api.AfterEach;
@@ -11,6 +12,7 @@ import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.dao.DuplicateKeyException;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.List;
import static org.junit.jupiter.api.Assertions.*;
@@ -112,4 +114,14 @@ class TemplateServiceTest extends ProtectionApplicationTests {
templateService.updateAuditStatus(testTemplate.getTemplateId(), 2);
}
@Test
void updateAuditInfo() {
List<Template> protectObjectList = templateService.queryTemplates(null, null, null, null, null, 1, 1);
List<Integer> idList = new ArrayList<>();
idList.add(protectObjectList.get(0).getTemplateId());
System.out.println(idList);
assertTrue(templateService.updateAuditInfo( idList, "te2st"));
assertEquals("te2st", templateService.queryAuditInfo(idList.get(0)));
}
}

View File

@@ -107,8 +107,9 @@ class TaskServiceTest extends ProtectionApplicationTests {
@Test
void testPageQueryTask(){
List<Task> tasks = taskService.queryTasks(null, null, null, null, null,null, null, null, null, 1, 10);
System.out.println(tasks);
List<Task> tasks = taskService.queryTasks(null, null, "", "", null,"", null, "", "", 1, 10);
// System.out.println(tasks);
tasks.forEach(task -> System.out.println(task));
}
@Test
@@ -353,4 +354,9 @@ class TaskServiceTest extends ProtectionApplicationTests {
map.put(43849,0);
System.out.println(taskService.queryAuditStatusBatch(map));
}
@Test
void testQueryTaskTotalNum(){
System.out.println(taskService.queryTaskTotalNum(null, null, "", "", null, "", "", "", ""));
}
}