Commit c08f8e71ac3c28165ff97a655337efcfac552269
1 parent
53ed56314b
Exists in
master
首页-问诊统计
Showing 6 changed files with 68 additions and 7 deletions
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/IndexController.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/TkRecordStatDateInfo.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/TkRecordStatRankingInfo.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/TkRecordStatMapper.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/TkRecordStatService.java
- talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/TkRecordStatServiceImpl.java
talkonlineweb/src/main/java/com/lyms/talkonlineweb/controller/IndexController.java
View file @
c08f8e7
... | ... | @@ -67,8 +67,8 @@ |
67 | 67 | @GetMapping("getTkRecordStatM") |
68 | 68 | public BaseResponse getTkRecordStatM(Integer hid){ |
69 | 69 | BaseResponse baseResponse=new BaseResponse(); |
70 | - List<TkRecordStatMInfo> tkRecordStatW = tkRecordStatService.getTkRecordStatM(hid); | |
71 | - baseResponse.setObject(tkRecordStatW); | |
70 | + List<TkRecordStatMInfo> tkRecordStatM = tkRecordStatService.getTkRecordStatM(hid); | |
71 | + baseResponse.setObject(tkRecordStatM); | |
72 | 72 | return baseResponse; |
73 | 73 | } |
74 | 74 | /** |
... | ... | @@ -79,8 +79,8 @@ |
79 | 79 | @GetMapping("getTkRecordStatY") |
80 | 80 | public BaseResponse getTkRecordStatY(Integer hid){ |
81 | 81 | BaseResponse baseResponse=new BaseResponse(); |
82 | - List<TkRecordStatYInfo> tkRecordStatW = tkRecordStatService.getTkRecordStatY(hid); | |
83 | - baseResponse.setObject(tkRecordStatW); | |
82 | + List<TkRecordStatYInfo> tkRecordStatY = tkRecordStatService.getTkRecordStatY(hid); | |
83 | + baseResponse.setObject(tkRecordStatY); | |
84 | 84 | return baseResponse; |
85 | 85 | } |
86 | 86 | /** |
... | ... | @@ -91,8 +91,20 @@ |
91 | 91 | @GetMapping("getTkRecordStatDate") |
92 | 92 | public BaseResponse getTkRecordStatDate(String startdate,String enddate,Integer hid){ |
93 | 93 | BaseResponse baseResponse=new BaseResponse(); |
94 | - List<TkRecordStatDateInfo> tkRecordStatW = tkRecordStatService.getTkRecordStatDate(startdate,enddate,hid); | |
95 | - baseResponse.setObject(tkRecordStatW); | |
94 | + List<TkRecordStatDateInfo> tkRecordStatDate = tkRecordStatService.getTkRecordStatDate(startdate,enddate,hid); | |
95 | + baseResponse.setObject(tkRecordStatDate); | |
96 | + return baseResponse; | |
97 | + } | |
98 | + /** | |
99 | + * 首页-医院总问诊量排名 | |
100 | + * @param | |
101 | + * @return | |
102 | + */ | |
103 | + @GetMapping("getTkRecordStatRanking") | |
104 | + public BaseResponse getTkRecordStatRanking(){ | |
105 | + BaseResponse baseResponse=new BaseResponse(); | |
106 | + List<TkRecordStatRankingInfo> tkRecordStatRanking = tkRecordStatService.getTkRecordStatRanking(); | |
107 | + baseResponse.setObject(tkRecordStatRanking); | |
96 | 108 | return baseResponse; |
97 | 109 | } |
98 | 110 |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/TkRecordStatDateInfo.java
View file @
c08f8e7
talkonlineweb/src/main/java/com/lyms/talkonlineweb/domain/TkRecordStatRankingInfo.java
View file @
c08f8e7
1 | +package com.lyms.talkonlineweb.domain; | |
2 | + | |
3 | + | |
4 | +import com.baomidou.mybatisplus.annotation.TableField; | |
5 | +import com.baomidou.mybatisplus.annotation.TableName; | |
6 | +import lombok.Data; | |
7 | + | |
8 | +/** | |
9 | + *首页-日期筛选问诊量视图 | |
10 | + * @TableName tkRecordStat_ranking_info | |
11 | + */ | |
12 | +@Data | |
13 | +@TableName(value ="tkRecordStat_ranking_info") | |
14 | +public class TkRecordStatRankingInfo { | |
15 | + | |
16 | + /** | |
17 | + * 医院ID | |
18 | + */ | |
19 | + @TableField(value = "hid") | |
20 | + private long hid; | |
21 | + /** | |
22 | + * 医院名称 | |
23 | + */ | |
24 | + @TableField(value = "hid") | |
25 | + private String hname; | |
26 | + /** | |
27 | + * 医院总问诊量 | |
28 | + */ | |
29 | + @TableField(value = "hid") | |
30 | + private long total; | |
31 | + | |
32 | + | |
33 | + | |
34 | + | |
35 | +} |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/mapper/TkRecordStatMapper.java
View file @
c08f8e7
... | ... | @@ -157,5 +157,12 @@ |
157 | 157 | "</script>"}) |
158 | 158 | List<TkRecordStatDateInfo> getTkRecordStatDate(@Param("startdate") String startdate,@Param("enddate") String enddate,@Param("hid") Integer hid); |
159 | 159 | |
160 | + /** | |
161 | + * 医院问诊量排名 | |
162 | + * @param hid | |
163 | + * @return | |
164 | + */ | |
165 | + @Select("select hid,hname,total from tkRecordStat_ranking_info") | |
166 | + List<TkRecordStatRankingInfo> getTkRecordStatRanking(); | |
160 | 167 | } |
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/TkRecordStatService.java
View file @
c08f8e7
talkonlineweb/src/main/java/com/lyms/talkonlineweb/service/impl/TkRecordStatServiceImpl.java
View file @
c08f8e7
... | ... | @@ -41,5 +41,10 @@ |
41 | 41 | public List<TkRecordStatDateInfo> getTkRecordStatDate(String startdate, String enddate, Integer hid) { |
42 | 42 | return tkRecordStatMapper.getTkRecordStatDate(startdate, enddate, hid); |
43 | 43 | } |
44 | + | |
45 | + @Override | |
46 | + public List<TkRecordStatRankingInfo> getTkRecordStatRanking() { | |
47 | + return tkRecordStatMapper.getTkRecordStatRanking(); | |
48 | + } | |
44 | 49 | } |