From 13c5b38734983fab763f3451b4aea400b60fdfc3 Mon Sep 17 00:00:00 2001 From: shiyang Date: Thu, 23 Sep 2021 14:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A8=8B=E5=BA=8F=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E7=AB=AF-=E6=A0=B9=E6=8D=AE=E5=8C=BB=E9=99=A2id=E8=8E=B7?= =?UTF-8?q?=E5=8F=96=E5=8C=BB=E7=94=9F=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../talkonlineweb/controller/DoctorController.java | 25 +++++++-- .../talkonlineweb/domain/AppgetdoctorlistInfo.java | 63 ++++++++++++++++++++++ .../mapper/AppgetdoctorlistInfoMapper.java | 15 ++++++ .../service/AppgetdoctorlistInfoService.java | 11 ++++ .../impl/AppgetdoctorlistInfoServiceImpl.java | 20 +++++++ 5 files changed, 130 insertions(+), 4 deletions(-) create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/AppgetdoctorlistInfo.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/AppgetdoctorlistInfoMapper.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/AppgetdoctorlistInfoService.java create mode 100644 talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/AppgetdoctorlistInfoServiceImpl.java diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java index ff47310..661d58f 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java @@ -4,10 +4,7 @@ import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; import com.baomidou.mybatisplus.core.toolkit.Wrappers; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; -import com.lyms.talkonlineweb.domain.LymsDict; -import com.lyms.talkonlineweb.domain.LymsDoctor; -import com.lyms.talkonlineweb.domain.LymsHdepart; -import com.lyms.talkonlineweb.domain.LymsLogsCrud; +import com.lyms.talkonlineweb.domain.*; import com.lyms.talkonlineweb.result.BaseResponse; import com.lyms.talkonlineweb.service.*; import com.lyms.talkonlineweb.util.Constant; @@ -46,6 +43,9 @@ public class DoctorController { @Autowired private HXService hxService; + @Autowired + private AppgetdoctorlistInfoService appgetdoctorlistInfoService; + /** * 获取医生列表 * @param doctor @@ -223,4 +223,21 @@ public class DoctorController { baseResponse.setObject(doctor2); return baseResponse; } + + /** + * 小程序用户端-根据医院id获取医生信息 + * @param hid + * @param current + * @param size + * @return + */ + @GetMapping("appGetDoctorList") + public BaseResponse appGetDoctorList(AppgetdoctorlistInfo appgetdoctorlistInfo, int current, int size){ + BaseResponse baseResponse=new BaseResponse(); + Page page=new Page<>(current,size); + Page appgetdoctorlistInfoPage=appgetdoctorlistInfoService.page(page,Wrappers.query(appgetdoctorlistInfo)); + baseResponse.setObject(appgetdoctorlistInfoPage); + + return baseResponse; + } } diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/AppgetdoctorlistInfo.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/AppgetdoctorlistInfo.java new file mode 100644 index 0000000..ff9e2c4 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/AppgetdoctorlistInfo.java @@ -0,0 +1,63 @@ +package com.lyms.talkonlineweb.domain; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableField; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import java.io.Serializable; +import lombok.Data; + +/** + * 小程序用户端-根据医院id获取医生信息视图 + * @TableName appGetDoctorList_info + */ +@TableName(value ="appGetDoctorList_info") +@Data +public class AppgetdoctorlistInfo implements Serializable { + /** + * 医生id + */ + @TableField(value = "did") + private Integer did; + + /** + * 医院id + */ + @TableField(value = "hid") + private Integer hid; + + /** + * 医生名称 + */ + @TableField(value = "dname") + private String dname; + + /** + * 医生科室 + */ + @TableField(value = "dpname") + private String dpname; + + /** + * 医生职称 + */ + @TableField(value = "lvlname") + private String lvlname; + + /** + * 医院名称 + */ + @TableField(value = "hname") + private String hname; + + /** + * 医生简介 + */ + @TableField(value = "intro") + private String intro; + + @TableField(exist = false) + private static final long serialVersionUID = 1L; + + +} \ No newline at end of file diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/AppgetdoctorlistInfoMapper.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/AppgetdoctorlistInfoMapper.java new file mode 100644 index 0000000..06efb51 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/AppgetdoctorlistInfoMapper.java @@ -0,0 +1,15 @@ +package com.lyms.talkonlineweb.mapper; + +import com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Entity com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo + */ +public interface AppgetdoctorlistInfoMapper extends BaseMapper { + +} + + + + diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/AppgetdoctorlistInfoService.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/AppgetdoctorlistInfoService.java new file mode 100644 index 0000000..f3df869 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/AppgetdoctorlistInfoService.java @@ -0,0 +1,11 @@ +package com.lyms.talkonlineweb.service; + +import com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * + */ +public interface AppgetdoctorlistInfoService extends IService { + +} diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/AppgetdoctorlistInfoServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/AppgetdoctorlistInfoServiceImpl.java new file mode 100644 index 0000000..07e6853 --- /dev/null +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/AppgetdoctorlistInfoServiceImpl.java @@ -0,0 +1,20 @@ +package com.lyms.talkonlineweb.service.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo; +import com.lyms.talkonlineweb.service.AppgetdoctorlistInfoService; +import com.lyms.talkonlineweb.mapper.AppgetdoctorlistInfoMapper; +import org.springframework.stereotype.Service; + +/** + * + */ +@Service +public class AppgetdoctorlistInfoServiceImpl extends ServiceImpl + implements AppgetdoctorlistInfoService{ + +} + + + + -- 1.8.3.1