Commit 66c231ce5d1072dc9771adaec3f30eab259da2d4

Authored by zhangchao
1 parent c61b7ee678
Exists in dev

#fix:优化医生查询规则增加按科室查询

Showing 1 changed file with 4 additions and 2 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java View file @ 66c231c
... ... @@ -195,7 +195,6 @@
195 195  
196 196 /**
197 197 * 删除医生
198   - * @param did
199 198 * @return
200 199 */
201 200 @GetMapping("delDoctor")
202 201  
... ... @@ -602,9 +601,12 @@
602 601 * @return
603 602 */
604 603 @GetMapping("/getDoctorList")
605   - public BaseResponse getDoctorList(Integer hid,String dname){
  604 + public BaseResponse getDoctorList(Integer hid,Integer dpid,String dname){
606 605 QueryWrapper<LymsDoctor> query = new QueryWrapper();
607 606 query.eq("hid",hid);
  607 + if (dpid!=null){
  608 + query.eq("dpid",dpid);
  609 + }
608 610 if (StringUtil.isNotEmpty(dname)){
609 611 query.like("dname",dname);
610 612 }