This commit is contained in:
wucongxing8150 2025-07-30 16:50:16 +08:00
parent a14c951cac
commit b165524210
2 changed files with 12 additions and 1 deletions

View File

@ -351,6 +351,16 @@ public class CaseClinicalArticleController {
5
);
for (UserCommentClinicalArticleDto subComment : subComments) {
// 查询医生
doctorQueryWrapper = new LambdaQueryWrapper<>();
doctorQueryWrapper.eq(CaseClinicalDoctorModel::getDoctorIden, subComment.getUserIden());
caseClinicalDoctor = caseClinicalDoctorDao.selectOne(doctorQueryWrapper);
if (caseClinicalDoctor != null) {
subComment.setDoctorId(String.valueOf(caseClinicalDoctor.getDoctorId()));
}
}
dto.setSubComment(subComments);
}
}

View File

@ -46,7 +46,8 @@
SELECT
a.*,
b.user_name,
b.user_iden
b.user_iden,
b.avatar
FROM user_comment_clinical_article a
LEFT JOIN user b ON a.user_id = b.user_id
WHERE a.status = 1