|
@@ -4,10 +4,17 @@ import com.jiayue.biz.service.HomePageService;
|
|
|
import com.jiayue.common.core.controller.BaseController;
|
|
|
import com.jiayue.common.core.domain.AjaxResult;
|
|
|
import com.jiayue.common.core.page.TableDataInfo;
|
|
|
+import io.swagger.annotations.ApiImplicitParam;
|
|
|
+import io.swagger.annotations.ApiImplicitParams;
|
|
|
+import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.boot.actuate.endpoint.OperationType;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 首页Controller
|
|
@@ -26,9 +33,9 @@ public class HomePageController extends BaseController {
|
|
|
* 首页风速曲线
|
|
|
*/
|
|
|
@GetMapping("/windChats")
|
|
|
- public AjaxResult homePageCharts(String equipmentId,String month) {
|
|
|
+ public AjaxResult homePageCharts(String equipmentId, String month) {
|
|
|
|
|
|
- return AjaxResult.success(homePageService.homePageCharts(equipmentId,month));
|
|
|
+ return AjaxResult.success(homePageService.homePageCharts(equipmentId, month));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -36,9 +43,9 @@ public class HomePageController extends BaseController {
|
|
|
* 首页风向玫瑰图
|
|
|
*/
|
|
|
@GetMapping("/roseChats")
|
|
|
- public AjaxResult homePageRose(String equipmentId, String height,String month) {
|
|
|
+ public AjaxResult homePageRose(String equipmentId, String height, String month) {
|
|
|
|
|
|
- return AjaxResult.success(homePageService.homePageRose(equipmentId, height,month));
|
|
|
+ return AjaxResult.success(homePageService.homePageRose(equipmentId, height, month));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -49,12 +56,13 @@ public class HomePageController extends BaseController {
|
|
|
|
|
|
return AjaxResult.success(homePageService.selectWpdAndWs(equipmentId));
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 首页风功率密度与风速(柱状图)
|
|
|
*/
|
|
|
@GetMapping("/getWsAndWpdForHeight")
|
|
|
- public AjaxResult getWsAndWpdForHeight(String equipmentId,String month){
|
|
|
- return AjaxResult.success(homePageService.getWsAndWpdForHeight(equipmentId,month));
|
|
|
+ public AjaxResult getWsAndWpdForHeight(String equipmentId, String month) {
|
|
|
+ return AjaxResult.success(homePageService.getWsAndWpdForHeight(equipmentId, month));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -62,8 +70,8 @@ public class HomePageController extends BaseController {
|
|
|
* 首页风速占比以及平均风速
|
|
|
*/
|
|
|
@GetMapping("/getHeightForAveWs")
|
|
|
- public AjaxResult getHeightForAveWs(String equipmentId,String height){
|
|
|
- return AjaxResult.success(homePageService.getHeightForAveWs(equipmentId,height));
|
|
|
+ public AjaxResult getHeightForAveWs(String equipmentId, String height) {
|
|
|
+ return AjaxResult.success(homePageService.getHeightForAveWs(equipmentId, height));
|
|
|
}
|
|
|
|
|
|
|
|
@@ -73,7 +81,7 @@ public class HomePageController extends BaseController {
|
|
|
@GetMapping("/selectTForAir")
|
|
|
public AjaxResult selectTForAir(String equipmentId, String month) {
|
|
|
|
|
|
- return AjaxResult.success(homePageService.getAirAndPaAndT(equipmentId,month));
|
|
|
+ return AjaxResult.success(homePageService.getAirAndPaAndT(equipmentId, month));
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -84,6 +92,7 @@ public class HomePageController extends BaseController {
|
|
|
|
|
|
return AjaxResult.success(homePageService.homePageMap());
|
|
|
}
|
|
|
+
|
|
|
/**
|
|
|
* 首页所有塔地图
|
|
|
*/
|
|
@@ -92,4 +101,300 @@ public class HomePageController extends BaseController {
|
|
|
|
|
|
return AjaxResult.success(homePageService.homePageAllWindMap());
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation(value = "全省数据", notes = "全省数据查询")
|
|
|
+ @ApiImplicitParams({})
|
|
|
+ @GetMapping("/provincialEnergyInfo")
|
|
|
+ public AjaxResult provincialEnergy() {
|
|
|
+ // resourcesOverview: '黑龙江处于高纬度地区,日照强度较大,太阳能转换率较高,为开发太阳能源提供了有理条件。特别是大兴安岭一带常年受到东亚西风带影响,具有风速大,气候干燥特点,与同维度地图相比,风资源更丰富,利于风能资源的开发与利用。'
|
|
|
+ //全省场站坐标、信息
|
|
|
+// provinceInfo:{//全省信息
|
|
|
+// fNum:'100',
|
|
|
+// fHours:'2496h',
|
|
|
+// gNum:'41',
|
|
|
+// gHours:'1620h'
|
|
|
+// }
|
|
|
+
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ HashMap<Object, Object> provinceInfo = new HashMap<>();
|
|
|
+ hashMap.put("resourcesOverview", "黑龙江处于高纬度地区,日照强度较大,太阳能转换率较高,为开发太阳能源提供了有理条件。特别是大兴安岭一带常年受到东亚西风带影响,具有风速大,气候干燥特点,与同维度地图相比,风资源更丰富,利于风能资源的开发与利用。");
|
|
|
+
|
|
|
+ provinceInfo.put("fNum", "100");
|
|
|
+ provinceInfo.put("fHours", "2496h");
|
|
|
+ provinceInfo.put("gNum", "41");
|
|
|
+ provinceInfo.put("gHours", "1620h");
|
|
|
+ hashMap.put("provinceInfo", provinceInfo);
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "华富总体信息", notes = "华富数据查询")
|
|
|
+ @ApiImplicitParams({})
|
|
|
+ @GetMapping("/hauFuInfo")
|
|
|
+ public AjaxResult hauFuInfo() {
|
|
|
+ // hdInfo:{ //华电信息
|
|
|
+// fNum:'10',
|
|
|
+// fEName:'瑞信风电场',//风场站名称
|
|
|
+// fHours:'3256h',
|
|
|
+// gNum:'4',
|
|
|
+// gEName:'宁姜环球光伏',//光伏站名称
|
|
|
+// gHours:'1636h'
|
|
|
+// }
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ HashMap<Object, Object> hdInfo = new HashMap<>();
|
|
|
+
|
|
|
+ hdInfo.put("fNum", "10");
|
|
|
+ hdInfo.put("fEName", "瑞信风电场");
|
|
|
+ hdInfo.put("fHours", "3256h");
|
|
|
+ hdInfo.put("gEName", "宁姜环球光伏");
|
|
|
+ hdInfo.put("gHours", "1636h");
|
|
|
+ hashMap.put("hdInfo", hdInfo);
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "华富前期信息", notes = "华富前期查询")
|
|
|
+ @ApiImplicitParams({})
|
|
|
+ @GetMapping("/projectInfo")
|
|
|
+ public AjaxResult projectInfo() {
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ HashMap<String, Object> projectOne = new HashMap<>();
|
|
|
+ HashMap<String, Object> projectTwo = new HashMap<>();
|
|
|
+ HashMap<String, Object> projectThree = new HashMap<>();
|
|
|
+ hashMap.put("initiatedNum", "31");
|
|
|
+ hashMap.put("approvalNum", "5");
|
|
|
+ hashMap.put("buildNum", "4");
|
|
|
+ hashMap.put("electricNum", "1");
|
|
|
+
|
|
|
+
|
|
|
+ projectOne.put("id", "222");
|
|
|
+ projectOne.put("name", "黑龙江华电哈尔滨依兰鸡冠山四期200MW风电项目");
|
|
|
+ projectOne.put("projectOverview", "依兰县位于黑龙江省中南部。 黑龙江华电哈尔滨依兰鸡冠山四期200MW风电项目中心位于黑龙江省哈尔滨市依兰县东侧15km的鸡冠砬子山上,整个场址为低山丘陵区,场区实际可利用面积约63km2");
|
|
|
+ projectOne.put("resourcesOverview", "根据风能资源推测120m数据分析,年平均风速为8.007m/s,平均风功率密度为567W/m²,属于3级风场。主风向为WSW,次风向为W,空气密度为1.2kg/m³");
|
|
|
+
|
|
|
+
|
|
|
+ hashMap.put("projectOne", projectOne);
|
|
|
+ hashMap.put("projectOne", projectTwo);
|
|
|
+ hashMap.put("projectOne", projectThree);
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+
|
|
|
+
|
|
|
+// initiatedNum :'31',//已发起项目数目
|
|
|
+// approvalNum:'5',//已完成核准项目数目
|
|
|
+// buildNum:'4',//正在实施项目数目
|
|
|
+// electricNum:'1',//投产发电项目数目
|
|
|
+
|
|
|
+ // 前期-----塔信息 塔坐标
|
|
|
+
|
|
|
+ //一类项目列表
|
|
|
+// projectOne: [
|
|
|
+// {
|
|
|
+// id :'222'
|
|
|
+// ,name: '黑龙江华电哈尔滨依兰鸡冠山四期200MW风电项目'
|
|
|
+// ,projectOverview: '依兰县位于黑龙江省中南部。 黑龙江华电哈尔滨依兰鸡冠山四期200MW风电项目中心位于黑龙江省哈尔滨市依兰县东侧15km的鸡冠砬子山上,整个场址为低山丘陵区,场区实际可利用面积约63km2
|
|
|
+// , resourcesOverview: '根据风能资源推测120m数据分析,年平均风速为8.007m/s,平均风功率密度为567W/m²,属于3级风场。主风向为WSW,次风向为W,空气密度为1.2kg/m³
|
|
|
+
|
|
|
+// }
|
|
|
+// {name: '黑龙江华电哈尔滨巴彦二期100MW风电项目',label: '巴彦二期100MW风电项目', value: '2'},
|
|
|
+// {name: '黑龙江华电哈尔滨呼兰风电二期200MW风电项目',label: '呼兰风电二期200MW风电项目', value: '3'}
|
|
|
+// ],
|
|
|
+// // 二类项目列表
|
|
|
+// projectTwo: [
|
|
|
+// {name: '黑龙江华电哈尔滨呼兰风电三期300MW项目',label: '呼兰风电三期300MW项目', value: '4'},
|
|
|
+// {name: '黑龙江华电齐齐哈尔富拉尔基200MW风电项目',label: '富拉尔基200MW风电项目', value: '5'},
|
|
|
+// {name: '黑龙江华电宁安风水山200MW风电项目',label: '宁安风水山200MW风电项目', value: '6'},
|
|
|
+// {name: '黑龙江华电泰来胜利100MW风电项目', label: '泰来胜利100MW风电项目', value: '7'},
|
|
|
+// {name: '黑龙江华电哈尔滨方正100MW风电项目',label: '方正100MW风电项目', value: '8'}
|
|
|
+// ],
|
|
|
+// // 三类项目列表
|
|
|
+// projectThree: [
|
|
|
+// {name: '黑龙江华电佳木斯汤原100MW风电项目',label: '汤原100MW风电项目', value: '9'},
|
|
|
+// {name: '黑龙江华电哈尔滨巴彦三期300MW风电项目',label: '巴彦三期300MW风电项目', value: '10'},
|
|
|
+// {name: '黑龙江华电依兰五期200MW风电项目',label: '依兰五期200MW风电项目', value: '11'},
|
|
|
+// {name: '黑龙江华电甘南巨宝200MW风电项目',label: '甘南巨宝200MW风电项目', value: '12'},
|
|
|
+// {name: '黑龙江华电种马场20MW风电项目',label: '种马场20MW风电项目', value: '13'},
|
|
|
+// {name: '黑龙江华电富拉尔基灰场100MW光伏项目',label: '富拉尔基灰场100MW光伏项目', value: '14'},
|
|
|
+// {name: '黑龙江华电佳木斯灰场50MW光伏项目',label: '佳木斯灰场50MW光伏项目', value: '15'},
|
|
|
+// {name: '黑龙江华电哈三灰场100MW光伏项目',label: '哈三灰场100MW光伏项目', value: '16'}]
|
|
|
+// }
|
|
|
+
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ //TODO 参数不一定
|
|
|
+ @ApiOperation(value = "前期项目塔坐标以及周边风机坐标", notes = "前期项目塔坐标以及周边风机坐标查询")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "id", paramType = "query", dataType = "String"),
|
|
|
+ })
|
|
|
+ @GetMapping("/projectMapInfo")
|
|
|
+ public AjaxResult projectMapInfo() {
|
|
|
+ //项目中所有的塔、拐点坐标、 TODO 地图四个角信息
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "所有项目下拉框", notes = "所有项目下拉框查询")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ })
|
|
|
+ @GetMapping("/projectSelect")
|
|
|
+ public AjaxResult projectSelect() {
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ HashMap<String, Object> towerInfo = new HashMap<>();
|
|
|
+ HashMap<String, Object> towerInfo2 = new HashMap<>();
|
|
|
+
|
|
|
+ ArrayList<Object> arrayList = new ArrayList<>();
|
|
|
+
|
|
|
+ towerInfo.put("label", "依兰四起06171");
|
|
|
+ towerInfo.put("value", "006171");
|
|
|
+ towerInfo2.put("label", "依兰四起06171");
|
|
|
+ towerInfo2.put("value", "006171");
|
|
|
+ arrayList.add(towerInfo);
|
|
|
+ arrayList.add(towerInfo2);
|
|
|
+
|
|
|
+ hashMap.put("towerInfo", arrayList);
|
|
|
+
|
|
|
+// label: 依兰四期
|
|
|
+// value : 项目id
|
|
|
+// towerInfo:[{label:‘依兰四起06171’value:‘006171’},{label:value}]
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "项目进展情况", notes = "查询项目进展情况")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "项目编号", value = "eqId", paramType = "query", dataType = "String"),
|
|
|
+ })
|
|
|
+ @GetMapping("/projectEvolve")
|
|
|
+ public AjaxResult projectEvolve(String eqId) {
|
|
|
+ //表格
|
|
|
+// {
|
|
|
+// index: '一',
|
|
|
+// taskContent: '成立项目公司',
|
|
|
+// planTime: '2023/2/15',
|
|
|
+// detailedTaskContent: '',
|
|
|
+// realTime: '',
|
|
|
+// status: '已完成',
|
|
|
+// },
|
|
|
+// {index: '二', taskContent: '项目核准', planTime: '3月5日前必须完成', detailedTaskContent: '', realTime: '', status: '',},
|
|
|
+// {
|
|
|
+// index: '1',
|
|
|
+// taskContent: '项目土地预审批复',
|
|
|
+// planTime: '2023/2/20',
|
|
|
+// detailedTaskContent: '1.修编可研,将15万千瓦改成20万千瓦',
|
|
|
+// realTime: '2023/2/5',
|
|
|
+// status: '已完成',
|
|
|
+// },
|
|
|
+// {
|
|
|
+// index: '1',
|
|
|
+// taskContent: '项目土地预审批复',
|
|
|
+// planTime: '2023/2/20',
|
|
|
+// detailedTaskContent: '2.完成场址区1:2000和升压站1:500地形图测绘',
|
|
|
+// realTime: '2023/2/28',
|
|
|
+// status: '正在开展',
|
|
|
+// },
|
|
|
+
|
|
|
+
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "场站总体信息", notes = "查询场站总体信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ })
|
|
|
+ @GetMapping("/stationTotalityInfo")
|
|
|
+ public AjaxResult stationTotalityInfo() {
|
|
|
+ //华富所有场站信息 、 坐标 、 名称
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ hashMap.put("木兰风电场", "1");
|
|
|
+ hashMap.put("依兰鸡冠山风电场 ", "2");
|
|
|
+ hashMap.put("依兰珠山风电场", "3");
|
|
|
+ hashMap.put("东宁绥阳风电场", "4");
|
|
|
+ hashMap.put("东宁绥阳风电场", "5");
|
|
|
+ hashMap.put("瑞信风电场", "6");
|
|
|
+ hashMap.put("汤原渠首风电场", "7");
|
|
|
+ hashMap.put("虎林石青山风电场", "8");
|
|
|
+
|
|
|
+// stationOptions: [
|
|
|
+// {label: '木兰风电场 ', value: '编号---id'},
|
|
|
+// {label: '依兰鸡冠山风电场 ', value: '编号' ,
|
|
|
+// {label: '依兰珠山风电场 ', value: '3},
|
|
|
+// {label: '东宁绥阳风电场 ', value: '4'},
|
|
|
+// {label: '东宁绥阳风电场 ', value: '5'},
|
|
|
+// {label: '瑞信风电场 ', value: '6'},
|
|
|
+// {label: '汤原渠首风电场 ', value: '7'},
|
|
|
+// {label: '虎林石青山风电场 ', value: '8'},
|
|
|
+// {label: '七里嘎风电场 ', value: '9'},
|
|
|
+// {label: '宏浩风电场 ', value: '10'},
|
|
|
+// {label: '宁姜环球光伏电站 ', value: '11'},
|
|
|
+// {label: '安达青肯泡光伏电站 ' , value: '12'},
|
|
|
+// {label: '讷河兴旺光伏电站 ', value: '13'}
|
|
|
+// ],
|
|
|
+
|
|
|
+
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "场站信息", notes = "查询场站信息")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "场站编号", value = "stationId", paramType = "query", dataType = "String"),
|
|
|
+ })
|
|
|
+ @GetMapping("/stationInfo")
|
|
|
+ public AjaxResult stationInfo(String stationId) {
|
|
|
+ // fInfo:{//风场站信息
|
|
|
+// num:'10',
|
|
|
+// capacity:'724.6',
|
|
|
+// fjNum:'407'
|
|
|
+// },
|
|
|
+// gInfo:{//光场站信息
|
|
|
+// num:'4',
|
|
|
+// capacity:'110',
|
|
|
+// nbqNum:'204'
|
|
|
+// },
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+// ----{杨总数据},计算风机台数、风机机型、风机点位坐标、塔坐标
|
|
|
+
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ HashMap<String, Object> fInfo = new HashMap<>();
|
|
|
+ HashMap<String, Object> gInfo = new HashMap<>();
|
|
|
+ fInfo.put("num","10");
|
|
|
+ fInfo.put("capacity","724.6");
|
|
|
+ fInfo.put("fjNum","407");
|
|
|
+ gInfo.put("num","4");
|
|
|
+ gInfo.put("capacity","110");
|
|
|
+ gInfo.put("nbqNum","204");
|
|
|
+ hashMap.put("fInfo",fInfo);
|
|
|
+ hashMap.put("gInfo",gInfo);
|
|
|
+
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ @ApiOperation(value = "场站下拉框", notes = "获取场站信息下拉框")
|
|
|
+ @ApiImplicitParams({
|
|
|
+
|
|
|
+ })
|
|
|
+ @GetMapping("/api/stationSelect")
|
|
|
+ public AjaxResult stationSelect() {
|
|
|
+
|
|
|
+ HashMap<String, Object> hashMap = new HashMap<>();
|
|
|
+ HashMap<String, Object> towerInfo = new HashMap<>();
|
|
|
+ HashMap<String, Object> towerInfo2 = new HashMap<>();
|
|
|
+
|
|
|
+ ArrayList<Object> arrayList = new ArrayList<>();
|
|
|
+
|
|
|
+ towerInfo.put("label", "依兰四起06171");
|
|
|
+ towerInfo.put("value", "006171");
|
|
|
+ towerInfo2.put("label", "依兰四起06171");
|
|
|
+ towerInfo2.put("value", "006171");
|
|
|
+ arrayList.add(towerInfo);
|
|
|
+ arrayList.add(towerInfo2);
|
|
|
+
|
|
|
+ hashMap.put("towerInfo", arrayList);
|
|
|
+
|
|
|
+// label: 依兰四期
|
|
|
+// value : 项目id
|
|
|
+// towerInfo:[{label:‘依兰四起06171’value:‘006171’},{label:value}]
|
|
|
+ return AjaxResult.success(hashMap);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|