fix(工作台): 修复数据显示问题

This commit is contained in:
guoyuqi 2024-11-21 11:26:10 +08:00 committed by Craftsman
parent a48513e6f7
commit 417d17f99c
2 changed files with 4 additions and 2 deletions

View File

@ -813,7 +813,9 @@
FROM api_definition
WHERE api_definition.deleted = false
AND api_definition.project_id = #{projectId}
AND api_definition.update_time BETWEEN #{startTime} AND #{endTime} order by api_definition.update_time desc
AND api_definition.update_time BETWEEN #{startTime} AND #{endTime}
AND api_definition.update_time > api_definition.create_time
order by api_definition.update_time desc
</select>
<select id="scenarioRefApiCount" resultType="io.metersphere.api.dto.definition.ApiRefSourceCountDTO">

View File

@ -1389,7 +1389,7 @@ public class DashboardService {
List<NameCountDTO> nameCountDTOS = buildBugRetentionRateList(totalSize, statusSize);
Map<String, List<NameCountDTO>> statusStatisticsMap = new HashMap<>();
statusStatisticsMap.put("retentionRate", nameCountDTOS);
Map<String, List<SelectOption>> bugMap = legacyBugList.stream().collect(Collectors.groupingBy(SelectOption::getValue));
Map<String, List<SelectOption>> bugMap = legacyBugList.stream().collect(Collectors.groupingBy(SelectOption::getText));
List<StatusPercentDTO> statusPercentList = new ArrayList<>();
for (SelectOption selectOption : headerStatusOption) {
StatusPercentDTO statusPercentDTO = new StatusPercentDTO();