|
@@ -5,9 +5,11 @@ import com.gyee.frame.common.conf.AjaxStatus;
|
|
import com.gyee.frame.common.domain.AjaxResult;
|
|
import com.gyee.frame.common.domain.AjaxResult;
|
|
import com.gyee.frame.common.spring.InitialRunner;
|
|
import com.gyee.frame.common.spring.InitialRunner;
|
|
import com.gyee.frame.model.custom.DataVo;
|
|
import com.gyee.frame.model.custom.DataVo;
|
|
|
|
+import com.gyee.frame.model.custom.PowercurveVo;
|
|
import com.gyee.frame.service.ForecastwindspeedService;
|
|
import com.gyee.frame.service.ForecastwindspeedService;
|
|
import com.gyee.frame.service.WindpowerstationPGService;
|
|
import com.gyee.frame.service.WindpowerstationPGService;
|
|
import com.gyee.frame.service.websocket.*;
|
|
import com.gyee.frame.service.websocket.*;
|
|
|
|
+import com.gyee.frame.util.DateUtils;
|
|
import com.gyee.frame.util.StringUtils;
|
|
import com.gyee.frame.util.StringUtils;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
import io.swagger.annotations.ApiImplicitParam;
|
|
@@ -27,7 +29,7 @@ import java.util.Map;
|
|
|
|
|
|
@Controller
|
|
@Controller
|
|
@RequestMapping("/genreset")
|
|
@RequestMapping("/genreset")
|
|
-@Api(value = "驾驶舱" ,tags = "驾驶舱")
|
|
|
|
|
|
+@Api(value = "驾驶舱", tags = "驾驶舱")
|
|
public class GenreSetPushController {
|
|
public class GenreSetPushController {
|
|
|
|
|
|
@Resource
|
|
@Resource
|
|
@@ -62,12 +64,12 @@ public class GenreSetPushController {
|
|
public AjaxResult getAgcValues() throws Exception {
|
|
public AjaxResult getAgcValues() throws Exception {
|
|
|
|
|
|
|
|
|
|
- List<Map<String, Object>> vos= new ArrayList<>();
|
|
|
|
|
|
+ List<Map<String, Object>> vos = new ArrayList<>();
|
|
|
|
|
|
|
|
|
|
- vos=agcService.getAgcValues();
|
|
|
|
|
|
+ vos = agcService.getAgcValues();
|
|
|
|
|
|
- if (null!=vos){
|
|
|
|
|
|
+ if (null != vos) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, vos);
|
|
return AjaxResult.successData(AjaxStatus.success.code, vos);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, vos);
|
|
return AjaxResult.successData(AjaxStatus.error.code, vos);
|
|
@@ -78,22 +80,21 @@ public class GenreSetPushController {
|
|
@GetMapping("/findBasicDataInfo")
|
|
@GetMapping("/findBasicDataInfo")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
|
|
|
|
- map=genreSetPushService.findBasicDataInfo(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -102,25 +103,23 @@ public class GenreSetPushController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
@GetMapping("/findBasicDataInfo_fcmap")
|
|
@GetMapping("/findBasicDataInfo_fcmap")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo_fcmap(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo_fcmap(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findBasicDataInfo_fcmap(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo_fcmap(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -132,21 +131,20 @@ public class GenreSetPushController {
|
|
@GetMapping("/findBasicDataInfo_mxztmap")
|
|
@GetMapping("/findBasicDataInfo_mxztmap")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo_mxztmap(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo_mxztmap(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findBasicDataInfo_mxztmap(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo_mxztmap(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -158,21 +156,20 @@ public class GenreSetPushController {
|
|
@GetMapping("/findBasicDataInfo_jczbmap")
|
|
@GetMapping("/findBasicDataInfo_jczbmap")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo_jczbmap(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo_jczbmap(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findBasicDataInfo_jczbmap(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo_jczbmap(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -184,21 +181,20 @@ public class GenreSetPushController {
|
|
@GetMapping("/findBasicDataInfo_tqmap_xtmap")
|
|
@GetMapping("/findBasicDataInfo_tqmap_xtmap")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo_tqmap_xtmap(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo_tqmap_xtmap(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findBasicDataInfo_tqmap_xtmap(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo_tqmap_xtmap(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -210,21 +206,20 @@ public class GenreSetPushController {
|
|
@GetMapping("/findBasicDataInfo_wxssmap")
|
|
@GetMapping("/findBasicDataInfo_wxssmap")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo_wxssmap(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo_wxssmap(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findBasicDataInfo_wxssmap(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo_wxssmap(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -235,21 +230,20 @@ public class GenreSetPushController {
|
|
@GetMapping("/findBasicDataInfo_gxkmap")
|
|
@GetMapping("/findBasicDataInfo_gxkmap")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
@ApiOperation(value = "获取驾驶舱基础信息", notes = "获取驾驶舱基础信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findBasicDataInfo_gxkmap(String id) throws Exception {
|
|
public AjaxResult findBasicDataInfo_gxkmap(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findBasicDataInfo_gxkmap(id);
|
|
|
|
|
|
+ map = genreSetPushService.findBasicDataInfo_gxkmap(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -260,21 +254,20 @@ public class GenreSetPushController {
|
|
@GetMapping("/findPowerInfo")
|
|
@GetMapping("/findPowerInfo")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "获取驾驶舱功率曲线图和电量柱状图信息", notes = "获取驾驶舱功率曲线图和电量柱状图信息")
|
|
@ApiOperation(value = "获取驾驶舱功率曲线图和电量柱状图信息", notes = "获取驾驶舱功率曲线图和电量柱状图信息")
|
|
- @ApiImplicitParams({ @ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
|
|
+ @ApiImplicitParams({@ApiImplicitParam(name = "id", value = "对象编号", required = true, dataType = "string", paramType = "query")})
|
|
public AjaxResult findPowerInfo(String id) throws Exception {
|
|
public AjaxResult findPowerInfo(String id) throws Exception {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if(StringUtils.notEmp(id))
|
|
|
|
- {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
- map=genreSetPushService.findPowerInfo(id);
|
|
|
|
|
|
+ map = genreSetPushService.findPowerInfo(id);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -294,10 +287,10 @@ public class GenreSetPushController {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName) ) {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
|
|
|
|
@@ -314,7 +307,7 @@ public class GenreSetPushController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -335,11 +328,11 @@ public class GenreSetPushController {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName) ) {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName)) {
|
|
|
|
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
|
|
|
|
@@ -356,7 +349,7 @@ public class GenreSetPushController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -376,10 +369,10 @@ public class GenreSetPushController {
|
|
|
|
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
|
|
|
|
- if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName) ) {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
|
|
|
|
@@ -396,8 +389,7 @@ public class GenreSetPushController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -416,11 +408,11 @@ public class GenreSetPushController {
|
|
|
|
|
|
|
|
|
|
List<DataVo> vos = new ArrayList<DataVo>();
|
|
List<DataVo> vos = new ArrayList<DataVo>();
|
|
- if (StringUtils.notEmp(id) ) {
|
|
|
|
|
|
+ if (StringUtils.notEmp(id)) {
|
|
|
|
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
if (InitialRunner.wpmap.containsKey(id)) {
|
|
|
|
|
|
@@ -437,8 +429,7 @@ public class GenreSetPushController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
- if (null!=vos){
|
|
|
|
|
|
+ if (null != vos) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, vos);
|
|
return AjaxResult.successData(AjaxStatus.success.code, vos);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, vos);
|
|
return AjaxResult.successData(AjaxStatus.error.code, vos);
|
|
@@ -458,16 +449,16 @@ public class GenreSetPushController {
|
|
|
|
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
if (id.equals(QS) || id.equals(FD) || id.equals(GF)) {
|
|
|
|
|
|
- id=QY+id;
|
|
|
|
|
|
+ id = QY + id;
|
|
}
|
|
}
|
|
List<Object> vos = new ArrayList<Object>();
|
|
List<Object> vos = new ArrayList<Object>();
|
|
// Map<String, List> vos = new HashMap<String, List>();
|
|
// Map<String, List> vos = new HashMap<String, List>();
|
|
|
|
|
|
- if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName) ) {
|
|
|
|
- vos = realPowerPushService.findGLDetail(id,targetName);
|
|
|
|
|
|
+ if (StringUtils.notEmp(id) && StringUtils.notEmp(targetName)) {
|
|
|
|
+ vos = realPowerPushService.findGLDetail(id, targetName);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=vos){
|
|
|
|
|
|
+ if (null != vos) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, vos);
|
|
return AjaxResult.successData(AjaxStatus.success.code, vos);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, vos);
|
|
return AjaxResult.successData(AjaxStatus.error.code, vos);
|
|
@@ -508,14 +499,14 @@ public class GenreSetPushController {
|
|
|
|
|
|
if (wpId.equals(QS) || wpId.equals(FD) || wpId.equals(GF)) {
|
|
if (wpId.equals(QS) || wpId.equals(FD) || wpId.equals(GF)) {
|
|
|
|
|
|
- wpId=QY+wpId;
|
|
|
|
|
|
+ wpId = QY + wpId;
|
|
}
|
|
}
|
|
- Map<String,Object> retValue = new HashMap<String, Object>();
|
|
|
|
- if (StringUtils.notEmp(wpId) ) {
|
|
|
|
|
|
+ Map<String, Object> retValue = new HashMap<String, Object>();
|
|
|
|
+ if (StringUtils.notEmp(wpId)) {
|
|
retValue = genreSetPushService.getWeatherRealDay5Info(wpId);
|
|
retValue = genreSetPushService.getWeatherRealDay5Info(wpId);
|
|
}
|
|
}
|
|
|
|
|
|
- if (null!=retValue){
|
|
|
|
|
|
+ if (null != retValue) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, retValue);
|
|
return AjaxResult.successData(AjaxStatus.success.code, retValue);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, retValue);
|
|
return AjaxResult.successData(AjaxStatus.error.code, retValue);
|
|
@@ -533,18 +524,18 @@ public class GenreSetPushController {
|
|
|
|
|
|
if (wpId.equals(QS) || wpId.equals(FD) || wpId.equals(GF)) {
|
|
if (wpId.equals(QS) || wpId.equals(FD) || wpId.equals(GF)) {
|
|
|
|
|
|
- wpId=QY+wpId;
|
|
|
|
|
|
+ wpId = QY + wpId;
|
|
}
|
|
}
|
|
- Map<String,Object> map=new HashMap<>();
|
|
|
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
List<DataVo> retValue = new ArrayList<>();
|
|
List<DataVo> retValue = new ArrayList<>();
|
|
- List<String> datels=new ArrayList<>();
|
|
|
|
|
|
+ List<String> datels = new ArrayList<>();
|
|
|
|
|
|
retValue = forecastwindspeedService.getForecastwindspeedInfo(wpId);
|
|
retValue = forecastwindspeedService.getForecastwindspeedInfo(wpId);
|
|
datels = forecastwindspeedService.getDayInfo();
|
|
datels = forecastwindspeedService.getDayInfo();
|
|
|
|
|
|
- map.put("retValue",retValue);
|
|
|
|
- map.put("datels",datels);
|
|
|
|
- if (null!=map){
|
|
|
|
|
|
+ map.put("retValue", retValue);
|
|
|
|
+ map.put("datels", datels);
|
|
|
|
+ if (null != map) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
return AjaxResult.successData(AjaxStatus.success.code, map);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
return AjaxResult.successData(AjaxStatus.error.code, map);
|
|
@@ -558,12 +549,13 @@ public class GenreSetPushController {
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
@CrossOrigin(origins = "*", maxAge = 3600)
|
|
public R wtls() {
|
|
public R wtls() {
|
|
List<Map> resultList = windpowerstationPGService.hso();
|
|
List<Map> resultList = windpowerstationPGService.hso();
|
|
- if (null != resultList){
|
|
|
|
|
|
+ if (null != resultList) {
|
|
return R.ok().data(resultList);
|
|
return R.ok().data(resultList);
|
|
- }else {
|
|
|
|
|
|
+ } else {
|
|
return R.error().data("查询失败!");
|
|
return R.error().data("查询失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
@GetMapping("/Stationinformation")
|
|
@GetMapping("/Stationinformation")
|
|
@ResponseBody
|
|
@ResponseBody
|
|
@ApiOperation(value = "场站容量信息", notes = "场站容量信息")
|
|
@ApiOperation(value = "场站容量信息", notes = "场站容量信息")
|
|
@@ -574,11 +566,31 @@ public class GenreSetPushController {
|
|
|
|
|
|
Map m = genreSetPushService.Stationinformation(wpId);
|
|
Map m = genreSetPushService.Stationinformation(wpId);
|
|
|
|
|
|
- if (null!=m){
|
|
|
|
|
|
+ if (null != m) {
|
|
return AjaxResult.successData(AjaxStatus.success.code, m);
|
|
return AjaxResult.successData(AjaxStatus.success.code, m);
|
|
} else {
|
|
} else {
|
|
return AjaxResult.successData(AjaxStatus.error.code, m);
|
|
return AjaxResult.successData(AjaxStatus.error.code, m);
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @GetMapping("/Powercurve24")
|
|
|
|
+ @ResponseBody
|
|
|
|
+ @ApiOperation(value = "24小时功率曲线", notes = "24小时功率曲线")
|
|
|
|
+ @ApiImplicitParams({
|
|
|
|
+ @ApiImplicitParam(name = "wpId", value = "场站编号", required = true, dataType = "string", paramType = "query")})
|
|
|
|
+ public AjaxResult Powercurve24(String wpId) throws Exception {
|
|
|
|
+
|
|
|
|
+ List<PowercurveVo> resultList = new ArrayList<>();
|
|
|
|
+ if (StringUtils.notEmp(wpId)) {
|
|
|
|
+ resultList = genreSetPushService.Powercurve24(wpId);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ if (resultList != null) {
|
|
|
|
+ return AjaxResult.successData(AjaxStatus.success.code, resultList);
|
|
|
|
+ } else {
|
|
|
|
+ return AjaxResult.successData(AjaxStatus.success.code, resultList);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|