fix(消息通知): 缺陷通知自定义字段获取不到实际值

--bug=1047046 --user=宋昌昌 【消息通知】缺陷管理的消息通知中自定义字段获取不到实际值 https://www.tapd.cn/55049933/s/1597207
This commit is contained in:
song-cc-rock 2024-10-24 15:31:59 +08:00 committed by Craftsman
parent 9821e2bd64
commit 1afb421f05
2 changed files with 4 additions and 1 deletions

View File

@ -14,4 +14,7 @@ public class BugCustomFieldDTO extends CustomField {
@Schema(description = "缺陷ID") @Schema(description = "缺陷ID")
private String bugId; private String bugId;
@Schema(description = "字段文本")
private String text;
} }

View File

@ -66,7 +66,7 @@ public class BugNoticeService {
// 其他自定义字段 // 其他自定义字段
OptionDTO fieldDTO = new OptionDTO(); OptionDTO fieldDTO = new OptionDTO();
fieldDTO.setId(field.getName()); fieldDTO.setId(field.getName());
fieldDTO.setName(field.getValue()); fieldDTO.setName(StringUtils.isEmpty(field.getText()) ? field.getValue() : field.getText());
fields.add(fieldDTO); fields.add(fieldDTO);
} }
}); });