Commit 13c5b38734983fab763f3451b4aea400b60fdfc3

Authored by shiyang
1 parent 34f2a053ef
Exists in master

小程序用户端-根据医院id获取医生信息

Showing 5 changed files with 130 additions and 4 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java View file @ 13c5b38
... ... @@ -4,10 +4,7 @@
4 4 import com.alibaba.fastjson.JSONObject;
5 5 import com.baomidou.mybatisplus.core.toolkit.Wrappers;
6 6 import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
7   -import com.lyms.talkonlineweb.domain.LymsDict;
8   -import com.lyms.talkonlineweb.domain.LymsDoctor;
9   -import com.lyms.talkonlineweb.domain.LymsHdepart;
10   -import com.lyms.talkonlineweb.domain.LymsLogsCrud;
  7 +import com.lyms.talkonlineweb.domain.*;
11 8 import com.lyms.talkonlineweb.result.BaseResponse;
12 9 import com.lyms.talkonlineweb.service.*;
13 10 import com.lyms.talkonlineweb.util.Constant;
... ... @@ -46,6 +43,9 @@
46 43 @Autowired
47 44 private HXService hxService;
48 45  
  46 + @Autowired
  47 + private AppgetdoctorlistInfoService appgetdoctorlistInfoService;
  48 +
49 49 /**
50 50 * 获取医生列表
51 51 * @param doctor
... ... @@ -221,6 +221,23 @@
221 221 BaseResponse baseResponse=new BaseResponse();
222 222 LymsDoctor doctor2=lymsDoctorService.getOne(Wrappers.query(doctor));
223 223 baseResponse.setObject(doctor2);
  224 + return baseResponse;
  225 + }
  226 +
  227 + /**
  228 + * 小程序用户端-根据医院id获取医生信息
  229 + * @param hid
  230 + * @param current
  231 + * @param size
  232 + * @return
  233 + */
  234 + @GetMapping("appGetDoctorList")
  235 + public BaseResponse appGetDoctorList(AppgetdoctorlistInfo appgetdoctorlistInfo, int current, int size){
  236 + BaseResponse baseResponse=new BaseResponse();
  237 + Page<AppgetdoctorlistInfo> page=new Page<>(current,size);
  238 + Page<AppgetdoctorlistInfo> appgetdoctorlistInfoPage=appgetdoctorlistInfoService.page(page,Wrappers.query(appgetdoctorlistInfo));
  239 + baseResponse.setObject(appgetdoctorlistInfoPage);
  240 +
224 241 return baseResponse;
225 242 }
226 243 }
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/AppgetdoctorlistInfo.java View file @ 13c5b38
  1 +package com.lyms.talkonlineweb.domain;
  2 +
  3 +import com.baomidou.mybatisplus.annotation.IdType;
  4 +import com.baomidou.mybatisplus.annotation.TableField;
  5 +import com.baomidou.mybatisplus.annotation.TableId;
  6 +import com.baomidou.mybatisplus.annotation.TableName;
  7 +import java.io.Serializable;
  8 +import lombok.Data;
  9 +
  10 +/**
  11 + * 小程序用户端-根据医院id获取医生信息视图
  12 + * @TableName appGetDoctorList_info
  13 + */
  14 +@TableName(value ="appGetDoctorList_info")
  15 +@Data
  16 +public class AppgetdoctorlistInfo implements Serializable {
  17 + /**
  18 + * 医生id
  19 + */
  20 + @TableField(value = "did")
  21 + private Integer did;
  22 +
  23 + /**
  24 + * 医院id
  25 + */
  26 + @TableField(value = "hid")
  27 + private Integer hid;
  28 +
  29 + /**
  30 + * 医生名称
  31 + */
  32 + @TableField(value = "dname")
  33 + private String dname;
  34 +
  35 + /**
  36 + * 医生科室
  37 + */
  38 + @TableField(value = "dpname")
  39 + private String dpname;
  40 +
  41 + /**
  42 + * 医生职称
  43 + */
  44 + @TableField(value = "lvlname")
  45 + private String lvlname;
  46 +
  47 + /**
  48 + * 医院名称
  49 + */
  50 + @TableField(value = "hname")
  51 + private String hname;
  52 +
  53 + /**
  54 + * 医生简介
  55 + */
  56 + @TableField(value = "intro")
  57 + private String intro;
  58 +
  59 + @TableField(exist = false)
  60 + private static final long serialVersionUID = 1L;
  61 +
  62 +
  63 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/AppgetdoctorlistInfoMapper.java View file @ 13c5b38
  1 +package com.lyms.talkonlineweb.mapper;
  2 +
  3 +import com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo;
  4 +import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  5 +
  6 +/**
  7 + * @Entity com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo
  8 + */
  9 +public interface AppgetdoctorlistInfoMapper extends BaseMapper<AppgetdoctorlistInfo> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/AppgetdoctorlistInfoService.java View file @ 13c5b38
  1 +package com.lyms.talkonlineweb.service;
  2 +
  3 +import com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo;
  4 +import com.baomidou.mybatisplus.extension.service.IService;
  5 +
  6 +/**
  7 + *
  8 + */
  9 +public interface AppgetdoctorlistInfoService extends IService<AppgetdoctorlistInfo> {
  10 +
  11 +}
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/AppgetdoctorlistInfoServiceImpl.java View file @ 13c5b38
  1 +package com.lyms.talkonlineweb.service.impl;
  2 +
  3 +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
  4 +import com.lyms.talkonlineweb.domain.AppgetdoctorlistInfo;
  5 +import com.lyms.talkonlineweb.service.AppgetdoctorlistInfoService;
  6 +import com.lyms.talkonlineweb.mapper.AppgetdoctorlistInfoMapper;
  7 +import org.springframework.stereotype.Service;
  8 +
  9 +/**
  10 + *
  11 + */
  12 +@Service
  13 +public class AppgetdoctorlistInfoServiceImpl extends ServiceImpl<AppgetdoctorlistInfoMapper, AppgetdoctorlistInfo>
  14 + implements AppgetdoctorlistInfoService{
  15 +
  16 +}