1111
This commit is contained in:
parent
046d7d9c74
commit
a14c951cac
@ -328,6 +328,14 @@ public class CaseClinicalArticleController {
|
||||
|
||||
// 处理返回值
|
||||
for (UserCommentClinicalArticleDto dto : resultPage.getRecords()) {
|
||||
// 查询医生
|
||||
LambdaQueryWrapper<CaseClinicalDoctorModel> doctorQueryWrapper = new LambdaQueryWrapper<>();
|
||||
doctorQueryWrapper.eq(CaseClinicalDoctorModel::getDoctorIden, dto.getUserIden());
|
||||
CaseClinicalDoctorModel caseClinicalDoctor = caseClinicalDoctorDao.selectOne(doctorQueryWrapper);
|
||||
if (caseClinicalDoctor != null) {
|
||||
dto.setDoctorId(String.valueOf(caseClinicalDoctor.getDoctorId()));
|
||||
}
|
||||
|
||||
// 去除用户唯一标识
|
||||
dto.setUserIden(null);
|
||||
|
||||
|
||||
@ -21,6 +21,12 @@ public class UserCommentClinicalArticleDto {
|
||||
@JsonProperty("user_id")
|
||||
private String userId;
|
||||
|
||||
/**
|
||||
* 医生id
|
||||
*/
|
||||
@JsonProperty("doctor_id")
|
||||
private String doctorId;
|
||||
|
||||
/**
|
||||
* 临床文章id
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user