|
@@ -0,0 +1,322 @@
|
|
|
+package com.gyee.consumer.controller.leaderboard;
|
|
|
+
|
|
|
+import com.gyee.common.domain.AjaxResult;
|
|
|
+import com.gyee.consumer.model.Tablepar;
|
|
|
+import com.gyee.consumer.service.leaderboard.LeaderboardService;
|
|
|
+import io.swagger.annotations.Api;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
+import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
+@Controller
|
|
|
+@RequestMapping("/leaderboard")
|
|
|
+@Api(value = "排行榜功能",tags = "排行榜功能")
|
|
|
+public class LeaderboardController {
|
|
|
+ @Resource
|
|
|
+ private LeaderboardService leaderboardService;
|
|
|
+
|
|
|
+ /**查询拟合优度列表**/
|
|
|
+ @PostMapping("/fittingtoplist")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询拟合优度列表", notes = "查询拟合优度列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpIps", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult fittingtoplist(Tablepar tablepar, @RequestParam("wpIps") String wpIps, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate) {
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.fittingtoplist(tablepar,wpIps,beginDate,endDate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**查询拟合优度图表**/
|
|
|
+ @GetMapping("/fittingtopchart")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询拟合优度图表", notes = "查询拟合优度图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "wtIds", value = "风机编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult fittingtopchart(@RequestParam("wtIds") String wtIds, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate) throws Exception
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.fittingtopchart(wtIds,beginDate,endDate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**查询总发电量排行列表**/
|
|
|
+ @PostMapping("/totalPowerCapacityTopList")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询总发电量排行列表", notes = "查询总发电量排行列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpIps", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult totalPowerCapacityTopList(Tablepar tablepar, @RequestParam("wpIps") String wpIps, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate)
|
|
|
+ {
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.totalPowerCapacityTopList(tablepar,wpIps,beginDate,endDate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询利用率排行榜列表**/
|
|
|
+ @PostMapping("/utilizationList")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询总发电量排行列表", notes = "查询总发电量排行列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 0:风场,1:项目,2:线路,3:风机,", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult utilizationList(Tablepar tablepar, @RequestParam("wpId") String wpId, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate,@RequestParam("type") String type) {
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.utilizationList(tablepar,wpId,beginDate,endDate,type);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ /**查询损失率排行榜列表**/
|
|
|
+ @PostMapping("/lossList")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询损失率排行榜列表", notes = "查询损失率排行榜列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 0:风场,1:项目,2:线路,3:风机,", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult lossList(Tablepar tablepar, @RequestParam("wpId") String wpId, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate,@RequestParam("type") String type) {
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.lossList(tablepar,wpId,beginDate,endDate,type);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询负荷率排行榜列表**/
|
|
|
+ @PostMapping("/loadfactortoplist")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询负荷率排行榜列表", notes = "查询负荷率排行榜列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 0:风场,1:项目,2:线路,3:风机,", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult loadfactortoplist(Tablepar tablepar,@RequestParam("type") String type, @RequestParam("wpId") String wpId, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate) {
|
|
|
+
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.loadfactortoplist(tablepar,type,wpId,beginDate,endDate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询报警排行榜列表**/
|
|
|
+ @PostMapping("/querywarningStatistical")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询报警排行榜列表", notes = "查询报警排行榜列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 1报警:,2:报警类型,3:厂家", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult querywarningStatistical(Tablepar tablepar,@RequestParam("type") String type, @RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate) {
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.querywarningStatistical(tablepar,type,beginDate,endDate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询报警排行榜图表**/
|
|
|
+ @GetMapping("/querywarningStatisticalPie")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询报警排行榜列表", notes = "查询报警排行榜列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 1报警:,2:报警类型,3:厂家", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "beginDate", value = "开始日期", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "endDate", value = "结束日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult querywarningStatisticalPie(@RequestParam("type") String type, @RequestParam("beginDate") String beginDate,@RequestParam("endDate") String endDate) {
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.querywarningStatisticalPie(type,beginDate,endDate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询日曲线偏差率列表**/
|
|
|
+ @PostMapping("/curvefittingmainList")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询日曲线偏差率列表", notes = "查询日曲线偏差率列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "recorddate", value = "日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curvefittingmainList(Tablepar tablepar,@RequestParam("wpId") String wpId,@RequestParam("recorddate") String recorddate) {
|
|
|
+ AjaxResult ajax=leaderboardService.curvefittingmainList(tablepar,wpId,recorddate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询日曲线(实际/保证 实际/最优 最优/保证)图表**/
|
|
|
+ @GetMapping("/getCurvechatAjax")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询日曲线", notes = "查询日曲线")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 sjbz:实际/保证,sjzy:实际/最优,zybz:最优/保证", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "recorddate", value = "日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult getCurvechatAjax(@RequestParam("type") String type,@RequestParam("wtId") String wtId, @RequestParam("recorddate") String recorddate) {
|
|
|
+ AjaxResult ajax=leaderboardService.getCurvechatAjax(type,wtId,recorddate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询日曲线同比图表**/
|
|
|
+ @GetMapping("/curvechatAjaxtb")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询日曲线同比图表", notes = "查询日曲线同比图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 tb:同比,hb:环比,bg:标杆", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "recorddate", value = "日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curvechatAjaxtb(@RequestParam("type") String type,@RequestParam("wtId") String wtId,@RequestParam("recorddate") String recorddate) {
|
|
|
+
|
|
|
+ AjaxResult ajax=leaderboardService.curvechatAjaxtb(type,wtId,recorddate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+ /**查询日曲线环比图表**/
|
|
|
+ @GetMapping("/curvechatAjaxhb")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询日曲线环比图表", notes = "查询日曲线环比图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 tb:同比,hb:环比,bg:标杆", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "recorddate", value = "日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curvechatAjaxhb(@RequestParam("type") String type,@RequestParam("wtId") String wtId, @RequestParam("recorddate") String recorddate) {
|
|
|
+ AjaxResult ajax=leaderboardService.curvechatAjaxhb(type,wtId,recorddate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+ /**查询日曲线标杆图表**/
|
|
|
+ @GetMapping("/curvechatAjaxbg")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询日曲线标杆图表", notes = "查询日曲线标杆图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 tb:同比,hb:环比,bg:标杆", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风机编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "recorddate", value = "日期", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curvechatAjaxbg(@RequestParam("type") String type,@RequestParam("wtId") String wtId,@RequestParam("recorddate") String recorddate) {
|
|
|
+ AjaxResult ajax=leaderboardService.curvechatAjaxbg(type,wtId,recorddate);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询月曲线偏差率列表**/
|
|
|
+ @PostMapping("/curvefittingmonthmainList")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询月曲线偏差率列表", notes = "查询月曲线偏差率列表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "tablepar", value = "分页排序对象", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "year", value = "年份", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "month", value = "月份", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curvefittingmonthmainList(Tablepar tablepar, @RequestParam("wpId") String wpId, @RequestParam("year") String year,@RequestParam("month") String month) {
|
|
|
+ AjaxResult ajax=leaderboardService.curvefittingmonthmainList(tablepar,wpId,year,month);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询月曲线(实际/保证 实际/最优 最优/保证)图表**/
|
|
|
+ @GetMapping("/curveMonthchatAjax")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询月曲线偏差率", notes = "查询月曲线偏差率")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 sjbz:实际/保证,sjzy:实际/最优,zybz:最优/保证", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "year", value = "年份", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "month", value = "月份", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curveMonthchatAjax(@RequestParam("type") String type,@RequestParam("wtId") String wtId, @RequestParam("year") String year,@RequestParam("month") String month) {
|
|
|
+ AjaxResult ajax=leaderboardService.curveMonthchatAjax(type,wtId,year,month);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**查询月曲线同比图表**/
|
|
|
+ @GetMapping("/curveMonthchatAjaxtb")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询月曲线同比图表", notes = "查询月曲线同比图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 tb:同比,hb:环比,bg:标杆", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "year", value = "年份", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "month", value = "月份", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curveMonthchatAjaxtb(@RequestParam("type") String type,@RequestParam("wtId") String wtId,@RequestParam("year") String year,@RequestParam("month") String month) {
|
|
|
+ AjaxResult ajax=leaderboardService.curveMonthchatAjaxtb(type,wtId,year,month);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+ /**查询月曲线环比图表**/
|
|
|
+ @GetMapping("/curveMonthchatAjaxhb")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询月曲线环比图表", notes = "查询月曲线环比图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 tb:同比,hb:环比,bg:标杆", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "year", value = "年份", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "month", value = "月份", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curveMonthchatAjaxhb(@RequestParam("type") String type,@RequestParam("wtId") String wtId, @RequestParam("year") String year,@RequestParam("month") String month) {
|
|
|
+ AjaxResult ajax=leaderboardService.curveMonthchatAjaxhb(type,wtId,year,month);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+ /**查询月曲线标杆图表**/
|
|
|
+ @GetMapping("/curveMonthchatAjaxbg")
|
|
|
+ @ResponseBody
|
|
|
+ @ApiOperation(value = "查询月曲线标杆图表", notes = "查询月曲线标杆图表")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "type", value = "类型 tb:同比,hb:环比,bg:标杆", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "wtId", value = "风场编号", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "year", value = "年份", required = true, dataType = "string", paramType = "query"),
|
|
|
+ @ApiImplicitParam(name = "month", value = "月份", required = true, dataType = "string", paramType = "query")})
|
|
|
+
|
|
|
+ public AjaxResult curveMonthchatAjaxbg(@RequestParam("type") String type,@RequestParam("wtId") String wtId,@RequestParam("year") String year,@RequestParam("month") String month) {
|
|
|
+ AjaxResult ajax=leaderboardService.curveMonthchatAjaxbg(type,wtId,year,month);
|
|
|
+
|
|
|
+ return ajax;
|
|
|
+ }
|
|
|
+
|
|
|
+}
|