新增了评论1
This commit is contained in:
@@ -7,6 +7,7 @@ import com.example.caseData.common.Response;
|
||||
import com.example.caseData.dao.*;
|
||||
import com.example.caseData.dto.T;
|
||||
import com.example.caseData.dto.caseClinicalVideo.CaseClinicalVideoDto;
|
||||
import com.example.caseData.dto.userCommentClinicalArticle.UserCommentClinicalArticleDto;
|
||||
import com.example.caseData.dto.userCommentClinicalVideo.UserCommentClinicalVideoDto;
|
||||
import com.example.caseData.exception.BusinessException;
|
||||
import com.example.caseData.model.*;
|
||||
@@ -313,14 +314,16 @@ public class CaseClinicalVideoController {
|
||||
dto.setUserIden(null);
|
||||
|
||||
// 获取次级评论
|
||||
if (dto.getRootId() == null){
|
||||
List<UserCommentClinicalVideoDto> subComments = userCommentClinicalVideoDao.getClinicalVideoCommentList(
|
||||
dto.getVideoId(),
|
||||
dto.getCommentId(),
|
||||
5
|
||||
);
|
||||
if (request.getIsHaveSubComment() == 1){
|
||||
if (dto.getRootId() == null){
|
||||
List<UserCommentClinicalVideoDto> subComments = userCommentClinicalVideoDao.getClinicalVideoCommentList(
|
||||
dto.getVideoId(),
|
||||
dto.getCommentId(),
|
||||
5
|
||||
);
|
||||
|
||||
dto.setSubComment(subComments);
|
||||
dto.setSubComment(subComments);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user