Commit bfd2edc0e8457da10a449c5f194789a86e3236aa

Authored by shiyang
1 parent dd97927781
Exists in master and in 1 other branch dev

小程序-查询用户是否关注该医生

Showing 1 changed file with 18 additions and 0 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/PatientController.java View file @ bfd2edc
... ... @@ -644,5 +644,23 @@
644 644 }
645 645 return baseResponse;
646 646 }
  647 + /**
  648 + * 小程序-查询用户是否关注该医生
  649 + * @param pid 患者id
  650 + * @param did 医生id
  651 + */
  652 + @GetMapping("getDoctorById")
  653 + public BaseResponse getDoctorById(LymsAttention lymsAttention){
  654 + BaseResponse baseResponse=new BaseResponse();
  655 + try {
  656 + LymsAttention attention=lymsAttentionService.getOne(Wrappers.query(lymsAttention));
  657 + baseResponse.setObject(null==attention?true:false);
  658 + baseResponse.setErrormsg("成功");
  659 + } catch (Exception e) {
  660 + baseResponse.setErrormsg("失败");
  661 + e.printStackTrace();
  662 + }
  663 + return baseResponse;
  664 + }
647 665 }