4444
This commit is contained in:
parent
a14c951cac
commit
b165524210
@ -351,6 +351,16 @@ public class CaseClinicalArticleController {
|
|||||||
5
|
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);
|
dto.setSubComment(subComments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -46,7 +46,8 @@
|
|||||||
SELECT
|
SELECT
|
||||||
a.*,
|
a.*,
|
||||||
b.user_name,
|
b.user_name,
|
||||||
b.user_iden
|
b.user_iden,
|
||||||
|
b.avatar
|
||||||
FROM user_comment_clinical_article a
|
FROM user_comment_clinical_article a
|
||||||
LEFT JOIN user b ON a.user_id = b.user_id
|
LEFT JOIN user b ON a.user_id = b.user_id
|
||||||
WHERE a.status = 1
|
WHERE a.status = 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user