Browse Source

排行榜接口获取方式修改

lizaixun 3 years ago
parent
commit
afe12e51d0

+ 8 - 6
src/main/java/com/gyee/frame/controller/leaderboard/LeaderboardController.java

@@ -11,9 +11,11 @@ import com.gyee.frame.model.custom.Tablepar;
 import com.gyee.frame.service.leaderboard.LeaderboardService;
 import com.gyee.frame.util.DateUtils;
 import com.gyee.frame.util.StringUtils;
+import oracle.jdbc.proxy.annotation.Post;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Controller;
 import org.springframework.web.bind.annotation.GetMapping;
+import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.ResponseBody;
 
@@ -200,7 +202,7 @@ public class LeaderboardController {
 
 
     /**查询利用率排行榜列表**/
-    @GetMapping("/utilizationList")
+    @PostMapping("/utilizationList")
     @ResponseBody
     public AjaxResult utilizationList(Tablepar tablepar, String wpId, String beginDate, String endDate,String type) {
 
@@ -253,7 +255,7 @@ public class LeaderboardController {
     }
 
     /**查询负荷率排行榜列表**/
-    @GetMapping("/loadfactortoplist")
+    @PostMapping("/loadfactortoplist")
     @ResponseBody
     public AjaxResult loadfactortoplist(Tablepar tablepar, String wpId, String beginDate, String endDate) {
 
@@ -333,7 +335,7 @@ public class LeaderboardController {
     }
 
     /**查询报警排行榜列表**/
-    @GetMapping("/querywarningStatistical")
+    @PostMapping("/querywarningStatistical")
     @ResponseBody
     public AjaxResult querywarningStatistical(Tablepar tablepar, String type, String beginDate, String endDate) {
 
@@ -359,7 +361,7 @@ public class LeaderboardController {
     }
 
     /**查询报警排行榜图表**/
-    @GetMapping("/querywarningStatisticalPie")
+    @PostMapping("/querywarningStatisticalPie")
     @ResponseBody
     public AjaxResult querywarningStatisticalPie(String type,  String beginDate, String endDate) {
 
@@ -386,7 +388,7 @@ public class LeaderboardController {
     }
 /*******************************************************************************************************************************/
     /**查询日曲线偏差率列表**/
-    @GetMapping("/curvefittingmainList")
+    @PostMapping("/curvefittingmainList")
     @ResponseBody
     public AjaxResult curvefittingmainList(Tablepar tablepar, String wpId, String recorddate) {
         List<Curvefittingmain> vos=new ArrayList<>();
@@ -481,7 +483,7 @@ public class LeaderboardController {
 
     /*******************************************************************************************************************************/
     /**查询月曲线偏差率列表**/
-    @GetMapping("/curvefittingmonthmainList")
+    @PostMapping("/curvefittingmonthmainList")
     @ResponseBody
     public AjaxResult curvefittingmonthmainList(Tablepar tablepar, String wpId, String year,String month) {