123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674 |
- package com.gyee.runeconomy.controller;
- import com.baomidou.mybatisplus.core.toolkit.StringUtils;
- import com.gyee.runeconomy.config.AjaxStatus;
- import com.gyee.runeconomy.dto.AjaxResult;
- import com.gyee.runeconomy.dto.SawVo;
- import com.gyee.runeconomy.model.auto.Curvefittingmain;
- import com.gyee.runeconomy.model.auto.Curvefittingmonthmain;
- import com.gyee.runeconomy.model.vo.Tablepar;
- import com.gyee.runeconomy.service.auto.impl.LeaderboardService;
- import com.gyee.runeconomy.util.DateUtils;
- 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;
- import java.util.*;
- @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(@RequestBody Tablepar tablepar, String wpIps, String beginDate, String endDate) {
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // List<StatisticalAnalysisTopVo> vos= leaderboardService.getRnewTopDate(wpIps, beginDate_d, endDate_d);
- //
- // for (StatisticalAnalysisTopVo vo : vos) {
- // if (vo.getPower() > 1) {
- // vo.setPower(1.0);
- // }
- // }
- //
- // if (tablepar.getOrderByColumn().equals("power")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getPower().compareTo(arg1.getPower());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getPower().compareTo(arg0.getPower());
- // }
- //
- // });
- // }
- // } else if (tablepar.getOrderByColumn().equals("speed")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getSpeed().compareTo(arg1.getSpeed());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getSpeed().compareTo(arg0.getSpeed());
- // }
- //
- // });
- // }
- // }
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /**查询拟合优度图表**/
- // @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(String wtIds, String beginDate, String endDate) throws Exception {
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // Map<String, List> map =new HashMap<>();
- // if (StringUtils.notEmp(wtIds) && StringUtils.notEmp(beginDate) && StringUtils.notEmp(endDate)) {
- // map = leaderboardService.fittingtopchart(wtIds, beginDate_d, endDate_d);
- // }
- //
- // if (map != null && !map.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, map);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, map);
- // }
- // }
- /**查询总发电量排行列表**/
- // @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(@RequestBody Tablepar tablepar, String wpIps, String beginDate, String endDate) {
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // List<StatisticalAnalysisTopVo> vos= leaderboardService.totalPowerCapacityTopList(wpIps, beginDate_d, endDate_d);
- //
- //
- // if (tablepar.getOrderByColumn().equals("power")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getPower().compareTo(arg1.getPower());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getPower().compareTo(arg0.getPower());
- // }
- //
- // });
- // }
- // } else if (tablepar.getOrderByColumn().equals("speed")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getSpeed().compareTo(arg1.getSpeed());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getSpeed().compareTo(arg0.getSpeed());
- // }
- //
- // });
- // }
- // } else if (tablepar.getOrderByColumn().equals("generatingcapacity")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getSpeed().compareTo(arg1.getSpeed());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getSpeed().compareTo(arg0.getSpeed());
- // }
- //
- // });
- // }
- // }
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /**查询利用率排行榜列表**/
- // @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(@RequestBody Tablepar tablepar, String wpId, String beginDate, String endDate,String type) {
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- //
- // List<Windturbineinfoday3> vos= leaderboardService.utilizationList(tablepar, wpId, beginDate_d, endDate_d, type);
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /**查询损失率排行榜列表**/
- // @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(@RequestBody Tablepar tablepar, String wpId, String beginDate, String endDate,String type) {
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // List<Windturbineinfoday3> vos= leaderboardService.lossList(tablepar, wpId, beginDate_d, endDate_d, type);
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /**查询负荷率排行榜列表**/
- // @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(@RequestBody Tablepar tablepar,String type, String wpId, String beginDate, String endDate) {
- //
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // List<StatisticalAnalysisTopVo> vos= leaderboardService.loadfactortoplist(type, wpId, beginDate_d, endDate_d);
- //
- // if (null!=tablepar.getOrderByColumn() && tablepar.getOrderByColumn().equals("power")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getPower().compareTo(arg1.getPower());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getPower().compareTo(arg0.getPower());
- // }
- //
- // });
- // }
- // } else if (null!=tablepar.getOrderByColumn() &&tablepar.getOrderByColumn().equals("speed")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getSpeed().compareTo(arg1.getSpeed());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getSpeed().compareTo(arg0.getSpeed());
- // }
- //
- // });
- // }
- // } else if (null!=tablepar.getOrderByColumn() &&tablepar.getOrderByColumn().equals("generatingcapacity")) {
- // if (tablepar.getIsAsc().equals("asc")) {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg0.getSpeed().compareTo(arg1.getSpeed());
- // }
- //
- // });
- //
- // } else {
- // Collections.sort(vos, new Comparator<StatisticalAnalysisTopVo>() {
- // public int compare(StatisticalAnalysisTopVo arg0, StatisticalAnalysisTopVo arg1) {
- // return arg1.getSpeed().compareTo(arg0.getSpeed());
- // }
- //
- // });
- // }
- // }
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /**查询报警排行榜列表**/
- // @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(@RequestBody Tablepar tablepar, String type, String beginDate, String endDate) {
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // List<SawVo> vos= leaderboardService.getWarningTopDate( tablepar, type, beginDate_d, endDate_d);
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /**查询报警排行榜图表**/
- // @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(String type, String beginDate, String endDate) {
- //
- // Date beginDate_d=null;
- // Date endDate_d=null;
- // if (StringUtils.isNotEmpty(beginDate))
- // {
- // beginDate_d= DateUtils.parseDate(beginDate);
- // }
- // if (StringUtils.isNotEmpty(endDate))
- // {
- // endDate_d= DateUtils.parseDate(endDate);
- // }
- // List<SawVo> vos=
- // leaderboardService.getWarningTopDatePercentage( type, beginDate_d, endDate_d);
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- //
- // }
- /*******************************************************************************************************************************/
- /**查询日曲线偏差率列表**/
- @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(@RequestBody Tablepar tablepar, String wpId, String recorddate) {
- List<Curvefittingmain> vos=new ArrayList<>();
- if (StringUtils.isNotEmpty(recorddate))
- {
- Date date= DateUtils.parseDate(recorddate);
- vos= leaderboardService.curvefittingmainList( tablepar, wpId, date);
- }
- if (vos != null && !vos.isEmpty()) {
- return AjaxResult.successData(AjaxStatus.success.code, vos);
- } else {
- return AjaxResult.successData(AjaxStatus.success.code, vos);
- }
- }
- /**查询日曲线(实际/保证 实际/最优 最优/保证)图表**/
- // @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(String type,String wtId, String recorddate) {
- // Map<String, Object> vos=new HashMap<>();
- // if (StringUtils.isNotEmpty(recorddate))
- // {
- // Date date= DateUtils.parseDate(recorddate);
- // vos= leaderboardService.getCurvechatAjax( type,wtId, date);
- // }
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /**查询日曲线同比图表**/
- // @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(String type,String wtId, String recorddate) {
- //
- // Map<String, Object> vos=new HashMap<>();
- // if (StringUtils.isNotEmpty(recorddate))
- // {
- // Date date= DateUtils.parseDate(recorddate);
- // vos= leaderboardService.curvechatAjaxtb( type,wtId, date);
- // }
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /**查询日曲线环比图表**/
- // @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(String type,String wtId, String recorddate) {
- // Map<String, Object> vos=new HashMap<>();
- // if (StringUtils.isNotEmpty(recorddate))
- // {
- // Date date= DateUtils.parseDate(recorddate);
- // vos= leaderboardService.curvechatAjaxhb( type,wtId, date);
- // }
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /**查询日曲线标杆图表**/
- // @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(String type,String wtId, String recorddate) {
- // Map<String, Object> vos=new HashMap<>();
- // if (StringUtils.isNotEmpty(recorddate))
- // {
- // Date date= DateUtils.parseDate(recorddate);
- // vos= leaderboardService.curvechatAjaxbg( type,wtId, date);
- // }
- //
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /*******************************************************************************************************************************/
- /**查询月曲线偏差率列表**/
- @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(@RequestBody Tablepar tablepar, String wpId, String year,String month) {
- List<Curvefittingmonthmain> vos= leaderboardService.curvefittingmonthmainList( tablepar, wpId, year, month);
- if (vos != null && !vos.isEmpty()) {
- return AjaxResult.successData(AjaxStatus.success.code, vos);
- } else {
- return AjaxResult.successData(AjaxStatus.success.code, vos);
- }
- }
- /**查询月曲线(实际/保证 实际/最优 最优/保证)图表**/
- // @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(String type,String wtId, String year,String month) {
- //
- // Map<String, Object> vos= leaderboardService.curveMonthchatAjax( type,wtId, year, month);
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /**查询月曲线同比图表**/
- // @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(String type,String wtId, String year,String month) {
- //
- // Map<String, Object> vos= leaderboardService.curveMonthchatAjaxtb( type,wtId, year, month);
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /**查询月曲线环比图表**/
- // @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(String type,String wtId, String year,String month) {
- //
- // Map<String, Object> vos= leaderboardService.curveMonthchatAjaxhb( type,wtId, year, month);
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- /**查询月曲线标杆图表**/
- // @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(String type,String wtId, String year,String month) {
- //
- // Map<String, Object> vos= leaderboardService.curveMonthchatAjaxbg( type,wtId, year, month);
- //
- // if (vos != null && !vos.isEmpty()) {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // } else {
- // return AjaxResult.successData(AjaxStatus.success.code, vos);
- // }
- // }
- }
|