diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/CaseReviewHistoryDTO.java b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/CaseReviewHistoryDTO.java index 34e226a599..90d02479ac 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/dto/CaseReviewHistoryDTO.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/dto/CaseReviewHistoryDTO.java @@ -13,7 +13,13 @@ public class CaseReviewHistoryDTO extends CaseReviewHistory { @Schema(description = "评审人名") private String userName; + @Schema(description = "评审人邮箱") + private String email; + @Schema(description = "评审解析内容") private String contentText; + @Schema(description = "评审名称") + private String reviewName; + } diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewHistoryMapper.xml b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewHistoryMapper.xml index 2ccbdc540c..8183e922bf 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewHistoryMapper.xml +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/mapper/ExtCaseReviewHistoryMapper.xml @@ -36,11 +36,14 @@ ch.create_time, ch.content, u.name as userName, - ux.avatar as userLogo + ux.avatar as userLogo, + cr.name as reviewName, + u.email as email FROM case_review_history ch left join user u on ch.create_user = u.id left join user_extend ux on ch.create_user = ux.id + left join case_review cr on ch.review_id = cr.id where ch.case_id = #{caseId} and ch.review_id = #{reviewId}