refactor(测试计划): 用例执行历史增加区别显示步骤的标识

This commit is contained in:
guoyuqi 2024-08-09 16:34:43 +08:00 committed by Craftsman
parent 87c50418b9
commit 28d9aa8d6e
3 changed files with 4 additions and 3 deletions

View File

@ -6,7 +6,6 @@ import io.metersphere.dto.BugProviderDTO;
import io.metersphere.plan.constants.TestPlanResourceConfig; import io.metersphere.plan.constants.TestPlanResourceConfig;
import io.metersphere.plan.dto.request.*; import io.metersphere.plan.dto.request.*;
import io.metersphere.plan.dto.response.*; import io.metersphere.plan.dto.response.*;
import io.metersphere.plan.mapper.ExtTestPlanMapper;
import io.metersphere.plan.service.TestPlanCaseLogService; import io.metersphere.plan.service.TestPlanCaseLogService;
import io.metersphere.plan.service.TestPlanFunctionalCaseService; import io.metersphere.plan.service.TestPlanFunctionalCaseService;
import io.metersphere.plan.service.TestPlanManagementService; import io.metersphere.plan.service.TestPlanManagementService;
@ -49,8 +48,6 @@ public class TestPlanFunctionalCaseController {
private TestPlanManagementService testPlanManagementService; private TestPlanManagementService testPlanManagementService;
@Resource @Resource
private TestPlanFunctionalCaseService testPlanFunctionalCaseService; private TestPlanFunctionalCaseService testPlanFunctionalCaseService;
@Resource
private ExtTestPlanMapper extTestPlanMapper;
@PostMapping(value = "/sort") @PostMapping(value = "/sort")
@Operation(summary = "测试计划功能用例-功能用例拖拽排序") @Operation(summary = "测试计划功能用例-功能用例拖拽排序")

View File

@ -24,4 +24,7 @@ public class TestPlanCaseExecHistoryResponse extends TestPlanCaseExecuteHistory
@Schema(description = "执行人邮箱") @Schema(description = "执行人邮箱")
private String email; private String email;
@Schema(description = "步骤描述")
private boolean isStep = false;
} }

View File

@ -705,6 +705,7 @@ public class TestPlanFunctionalCaseService extends TestPlanResourceService {
item.setContentText(new String(item.getContent(), StandardCharsets.UTF_8)); item.setContentText(new String(item.getContent(), StandardCharsets.UTF_8));
} }
if (item.getSteps() != null) { if (item.getSteps() != null) {
item.setStep(true);
item.setStepsExecResult(new String(item.getSteps(), StandardCharsets.UTF_8)); item.setStepsExecResult(new String(item.getSteps(), StandardCharsets.UTF_8));
} }
}); });