fix(缺陷管理): 模板字段被删除缺陷管理报错问题

--bug=1036737 --user=宋昌昌 【缺陷管理】查看缺陷管理模块失败 https://www.tapd.cn/55049933/s/1468807
This commit is contained in:
song-cc-rock 2024-03-04 16:51:01 +08:00 committed by 刘瑞斌
parent 3b64b8ca76
commit 8baf7f5c13
2 changed files with 2 additions and 2 deletions

View File

@ -114,7 +114,7 @@ public class BaseTemplateService {
// 封装自定义字段信息
List<TemplateCustomFieldDTO> fieldDTOS = templateCustomFields.stream()
.filter(i -> !BooleanUtils.isTrue(i.getSystemField()))
.filter(i -> !BooleanUtils.isTrue(i.getSystemField()) && fieldMap.containsKey(i.getFieldId()))
.sorted(Comparator.comparingInt(TemplateCustomField::getPos))
.map(i -> {
CustomField customField = fieldMap.get(i.getFieldId());