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 0bbe6dc..8f79057 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java @@ -188,9 +188,9 @@ public class DoctorController { * @return */ @GetMapping("statDoctor") - public BaseResponse statDoctor(Integer hid){ + public BaseResponse statDoctor(Integer hid,Integer dpid,String dname){ BaseResponse baseResponse=new BaseResponse(); - Map stat=lymsDoctorService.statDoctor(hid); + Map stat=lymsDoctorService.statDoctor(hid,dpid,dname); baseResponse.setObject(stat); return baseResponse; } diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsDoctorMapper.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsDoctorMapper.java index 27153fe..80e87da 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsDoctorMapper.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsDoctorMapper.java @@ -18,8 +18,14 @@ public interface LymsDoctorMapper extends BaseMapper { "", "and hid=#{hid}", "", + "", + "and dpid=#{dpid}", + "", + "", + "and dname like '%#{dname}%' ", + "", ""}) - Map statDoctor(@Param("hid") Integer hid); + Map statDoctor(@Param("hid") Integer hid,@Param("dpid") Integer dpid,@Param("dname") String dname); } diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsDoctorService.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsDoctorService.java index 173d5e7..d237988 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsDoctorService.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsDoctorService.java @@ -10,5 +10,5 @@ import java.util.Map; */ public interface LymsDoctorService extends IService { - Map statDoctor(Integer hid); + Map statDoctor(Integer hid,Integer dpid,String dname); } diff --git a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsDoctorServiceImpl.java b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsDoctorServiceImpl.java index 91e9065..8d5d3ed 100644 --- a/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsDoctorServiceImpl.java +++ b/talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsDoctorServiceImpl.java @@ -20,8 +20,8 @@ public class LymsDoctorServiceImpl extends ServiceImpl statDoctor(Integer hid) { - return lymsDoctorMapper.statDoctor(hid); + public Map statDoctor(Integer hid,Integer dpid,String dname) { + return lymsDoctorMapper.statDoctor(hid,dpid,dname); } }