mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-02 12:09:13 +08:00
fix(测试跟踪): 测试计划报告-功能用例列表-责任人为空
--bug=1018361 --user=陈建星 【测试跟踪】测试计划-报告统计-功能用例统计分析-所有用例-责任人为空 https://www.tapd.cn/55049933/s/1270626
This commit is contained in:
parent
7183e066de
commit
26f513d2a4
@ -520,8 +520,10 @@ public class TestPlanTestCaseService {
|
||||
if (CollectionUtils.isNotEmpty(cases)) {
|
||||
Map<String, Project> projectMap = ServiceUtils.getProjectMap(
|
||||
cases.stream().map(TestPlanCaseDTO::getProjectId).collect(Collectors.toList()));
|
||||
Map<String, String> userNameMap = ServiceUtils.getUserNameMap(
|
||||
cases.stream().map(TestPlanCaseDTO::getExecutor).collect(Collectors.toList()));
|
||||
List<String> userIds = new ArrayList();
|
||||
userIds.addAll(cases.stream().map(TestPlanCaseDTO::getExecutor).collect(Collectors.toList()));
|
||||
userIds.addAll(cases.stream().map(TestPlanCaseDTO::getMaintainer).collect(Collectors.toList()));
|
||||
Map<String, String> userNameMap = ServiceUtils.getUserNameMap(userIds);
|
||||
cases.forEach(item -> {
|
||||
if (projectMap.containsKey(item.getProjectId())) {
|
||||
item.setProjectName(projectMap.get(item.getProjectId()).getName());
|
||||
|
Loading…
Reference in New Issue
Block a user