From bfd2edc0e8457da10a449c5f194789a86e3236aa Mon Sep 17 00:00:00 2001 From: shiyang Date: Thu, 23 Sep 2021 16:44:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F-=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=98=AF=E5=90=A6=E5=85=B3=E6=B3=A8=E8=AF=A5?= =?UTF-8?q?=E5=8C=BB=E7=94=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../talkonlineweb/controller/PatientController.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java index 679ba5c..8cb064c 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java @@ -644,4 +644,22 @@ public class PatientController { } return baseResponse; } + /** + * 小程序-查询用户是否关注该医生 + * @param pid 患者id + * @param did 医生id + */ + @GetMapping("getDoctorById") + public BaseResponse getDoctorById(LymsAttention lymsAttention){ + BaseResponse baseResponse=new BaseResponse(); + try { + LymsAttention attention=lymsAttentionService.getOne(Wrappers.query(lymsAttention)); + baseResponse.setObject(null==attention?true:false); + baseResponse.setErrormsg("成功"); + } catch (Exception e) { + baseResponse.setErrormsg("失败"); + e.printStackTrace(); + } + return baseResponse; + } } -- 1.8.3.1