|
@@ -1,11 +1,11 @@
|
|
package com.gyee.gaia.meter.controller;
|
|
package com.gyee.gaia.meter.controller;
|
|
|
|
|
|
-import com.gyee.gaia.meter.entity.vo.MeterInfoVO;
|
|
|
|
|
|
+import com.gyee.gaia.meter.entity.vo.MeterVO;
|
|
import com.gyee.gaia.meter.entity.vo.Result;
|
|
import com.gyee.gaia.meter.entity.vo.Result;
|
|
-import com.gyee.gaia.meter.service.meterinfo.GetLineInfoById;
|
|
|
|
-import com.gyee.gaia.meter.service.meterinfo.GetPowerStationInfoById;
|
|
|
|
-import com.gyee.gaia.meter.service.meterinfo.GetProjectInfoById;
|
|
|
|
-import com.gyee.gaia.meter.service.meterinfo.GetWindStationInfo;
|
|
|
|
|
|
+import com.gyee.gaia.meter.service.meter.GetLineInfoById;
|
|
|
|
+import com.gyee.gaia.meter.service.meter.GetPowerStationInfoById;
|
|
|
|
+import com.gyee.gaia.meter.service.meter.GetProjectInfoById;
|
|
|
|
+import com.gyee.gaia.meter.service.meter.GetWindStationInfo;
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -21,7 +21,7 @@ import java.util.List;
|
|
**/
|
|
**/
|
|
@RestController
|
|
@RestController
|
|
@CrossOrigin(origins = "*")
|
|
@CrossOrigin(origins = "*")
|
|
-@RequestMapping("/meterinfo")
|
|
|
|
|
|
+@RequestMapping("/meterinfo1")
|
|
public class MeterController {
|
|
public class MeterController {
|
|
@Resource
|
|
@Resource
|
|
GetWindStationInfo getWindStationInfo;
|
|
GetWindStationInfo getWindStationInfo;
|
|
@@ -39,10 +39,10 @@ public class MeterController {
|
|
//所有风场,-1
|
|
//所有风场,-1
|
|
if ("-1".equals(id)) {
|
|
if ("-1".equals(id)) {
|
|
// 查询返回所有风场当月每日的, 日发电量.上网电量.购网电量.风速(暂无),前端为日发电量图表
|
|
// 查询返回所有风场当月每日的, 日发电量.上网电量.购网电量.风速(暂无),前端为日发电量图表
|
|
- List<MeterInfoVO> meterInfoFDC = getWindStationInfo.getMeterInfoFDC_Day();
|
|
|
|
|
|
+ List<MeterVO> meterInfoFDC = getWindStationInfo.getMeterInfoFDC_Day();
|
|
|
|
|
|
//查询返所有风场总, 日发电量,月发电量,年发电量,日上网电量,装机容量
|
|
//查询返所有风场总, 日发电量,月发电量,年发电量,日上网电量,装机容量
|
|
- MeterInfoVO meterInfoFDCFDLDayMonthYear = getWindStationInfo.getMeterInfoFDCFDL_DayMonthYear();
|
|
|
|
|
|
+ MeterVO meterInfoFDCFDLDayMonthYear = getWindStationInfo.getMeterInfoFDCFDL_DayMonthYear();
|
|
|
|
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
map.put("rdlmap", meterInfoFDC);
|
|
map.put("rdlmap", meterInfoFDC);
|
|
@@ -52,10 +52,10 @@ public class MeterController {
|
|
} else if (id.contains("_FDC")) {
|
|
} else if (id.contains("_FDC")) {
|
|
|
|
|
|
// 查询返回各个风场当月每日的, 日发电量.上网电量.购网电量.风速(暂无),前端为日发电量图表
|
|
// 查询返回各个风场当月每日的, 日发电量.上网电量.购网电量.风速(暂无),前端为日发电量图表
|
|
- List<MeterInfoVO> meterInfoFDC = getPowerStationInfo.getMeterInfoFDC_Day(id);
|
|
|
|
|
|
+ List<MeterVO> meterInfoFDC = getPowerStationInfo.getMeterInfoFDC_Day(id);
|
|
|
|
|
|
//查询返各个风场总, 日发电量,月发电量,年发电量,日上网电量,装机容量
|
|
//查询返各个风场总, 日发电量,月发电量,年发电量,日上网电量,装机容量
|
|
- MeterInfoVO meterInfoFDCFDLDayMonthYear = getPowerStationInfo.getMeterInfoFDCFDL_DayMonthYear(id);
|
|
|
|
|
|
+ MeterVO meterInfoFDCFDLDayMonthYear = getPowerStationInfo.getMeterInfoFDCFDL_DayMonthYear(id);
|
|
|
|
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
map.put("rdlmap", meterInfoFDC);
|
|
map.put("rdlmap", meterInfoFDC);
|
|
@@ -64,10 +64,10 @@ public class MeterController {
|
|
|
|
|
|
} else if (id.contains("_GC")) {
|
|
} else if (id.contains("_GC")) {
|
|
// 查询返回各个期次当月每日的, 日发电量.上网电量.购网电量.风速(暂无),前端为日发电量图表
|
|
// 查询返回各个期次当月每日的, 日发电量.上网电量.购网电量.风速(暂无),前端为日发电量图表
|
|
- List<MeterInfoVO> meterInfoFDC = getProjectInfoById.getMeterInfoFDC_Day(id);
|
|
|
|
|
|
+ List<MeterVO> meterInfoFDC = getProjectInfoById.getMeterInfoFDC_Day(id);
|
|
|
|
|
|
//查询返各个期次总, 日发电量,月发电量,年发电量,日上网电量,装机容量
|
|
//查询返各个期次总, 日发电量,月发电量,年发电量,日上网电量,装机容量
|
|
- MeterInfoVO meterInfoFDCFDLDayMonthYear = getProjectInfoById.getMeterInfoFDCFDL_DayMonthYear(id);
|
|
|
|
|
|
+ MeterVO meterInfoFDCFDLDayMonthYear = getProjectInfoById.getMeterInfoFDCFDL_DayMonthYear(id);
|
|
|
|
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
map.put("rdlmap", meterInfoFDC);
|
|
map.put("rdlmap", meterInfoFDC);
|
|
@@ -76,10 +76,10 @@ public class MeterController {
|
|
|
|
|
|
} else if (id.contains("_XL")) {
|
|
} else if (id.contains("_XL")) {
|
|
// 查询返回各个线路当月每日的, 日发电量.风速(暂无),前端为日发电量图表
|
|
// 查询返回各个线路当月每日的, 日发电量.风速(暂无),前端为日发电量图表
|
|
- List<MeterInfoVO> meterInfoFDC = getLineInfoById.getMeterInfoFDC_Day(id);
|
|
|
|
|
|
+ List<MeterVO> meterInfoFDC = getLineInfoById.getMeterInfoFDC_Day(id);
|
|
|
|
|
|
//查询返各个线路总, 日发电量,月发电量,年发电量,装机容量
|
|
//查询返各个线路总, 日发电量,月发电量,年发电量,装机容量
|
|
- MeterInfoVO meterInfoFDCFDLDayMonthYear = getLineInfoById.getMeterInfoFDCFDL_DayMonthYear(id);
|
|
|
|
|
|
+ MeterVO meterInfoFDCFDLDayMonthYear = getLineInfoById.getMeterInfoFDCFDL_DayMonthYear(id);
|
|
|
|
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
HashMap<Object, Object> map = new HashMap<>();
|
|
map.put("rdlmap", meterInfoFDC);
|
|
map.put("rdlmap", meterInfoFDC);
|