Commit 7baa5154347490a663acf7877099809997ad1189

Authored by shiyang
1 parent 76a2eaf4d4
Exists in master

医生管理-医生信息统计

Showing 4 changed files with 12 additions and 6 deletions

talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/DoctorController.java View file @ 7baa515
... ... @@ -188,9 +188,9 @@
188 188 * @return
189 189 */
190 190 @GetMapping("statDoctor")
191   - public BaseResponse statDoctor(Integer hid){
  191 + public BaseResponse statDoctor(Integer hid,Integer dpid,String dname){
192 192 BaseResponse baseResponse=new BaseResponse();
193   - Map<String,Object> stat=lymsDoctorService.statDoctor(hid);
  193 + Map<String,Object> stat=lymsDoctorService.statDoctor(hid,dpid,dname);
194 194 baseResponse.setObject(stat);
195 195 return baseResponse;
196 196 }
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/LymsDoctorMapper.java View file @ 7baa515
... ... @@ -18,7 +18,13 @@
18 18 "<when test='hid!=null' >",
19 19 "and hid=#{hid}",
20 20 "</when>",
  21 + "<when test='dpid!=null' >",
  22 + "and dpid=#{dpid}",
  23 + "</when>",
  24 + "<when test='dname!=null' >",
  25 + "and dname like '%#{dname}%' ",
  26 + "</when>",
21 27 "</script>"})
22   - Map<String, Object> statDoctor(@Param("hid") Integer hid);
  28 + Map<String, Object> statDoctor(@Param("hid") Integer hid,@Param("dpid") Integer dpid,@Param("dname") String dname);
23 29 }
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/LymsDoctorService.java View file @ 7baa515
... ... @@ -10,6 +10,6 @@
10 10 */
11 11 public interface LymsDoctorService extends IService<LymsDoctor> {
12 12  
13   - Map<String, Object> statDoctor(Integer hid);
  13 + Map<String, Object> statDoctor(Integer hid,Integer dpid,String dname);
14 14 }
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/LymsDoctorServiceImpl.java View file @ 7baa515
... ... @@ -20,8 +20,8 @@
20 20 private LymsDoctorMapper lymsDoctorMapper;
21 21  
22 22 @Override
23   - public Map<String, Object> statDoctor(Integer hid) {
24   - return lymsDoctorMapper.statDoctor(hid);
  23 + public Map<String, Object> statDoctor(Integer hid,Integer dpid,String dname) {
  24 + return lymsDoctorMapper.statDoctor(hid,dpid,dname);
25 25 }
26 26 }