|
@@ -2,7 +2,6 @@ package com.gyee.gaia.meter.controller;
|
|
|
|
|
|
import com.gyee.gaia.meter.entity.vo.MeterInfoVo;
|
|
|
import com.gyee.gaia.meter.entity.vo.Result;
|
|
|
-import com.gyee.gaia.meter.service.meterInfo.GetMeterInfo;
|
|
|
import com.gyee.gaia.meter.service.meterInfo.GetPowerstation_Type_Class_Name;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -10,10 +9,11 @@ import javax.annotation.Resource;
|
|
|
import java.util.*;
|
|
|
|
|
|
/**
|
|
|
- * 获取前端下拉框选择类型
|
|
|
- * Author: malijun
|
|
|
- * Data : 2023: 05: 24
|
|
|
- **/
|
|
|
+ * 数据查询页
|
|
|
+ * 前端下拉框选择传递的参数
|
|
|
+ *
|
|
|
+ * @module 数据查询
|
|
|
+ */
|
|
|
@RestController
|
|
|
@CrossOrigin(origins = "*")
|
|
|
@RequestMapping("/meter")
|
|
@@ -24,7 +24,9 @@ public class GetTypeController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * @return 所有风+光的name和nem_code, 已经排序
|
|
|
+ * 获取所有场站分类
|
|
|
+ * @folder 数据查询/下拉框选择类型
|
|
|
+ * @return 所有场站的name和nem_code, 已经排序
|
|
|
*/
|
|
|
@GetMapping("/infoall")
|
|
|
public Result<Object> getPowerstation() {
|
|
@@ -39,17 +41,18 @@ public class GetTypeController {
|
|
|
|
|
|
/**
|
|
|
* 获取计算点分类
|
|
|
+ * @folder 数据查询/下拉框选择类型
|
|
|
*
|
|
|
- * @param windId 风场nem_code
|
|
|
- * @param type meter_type 一级类型
|
|
|
- * @param meterClass meter_class 二级分类
|
|
|
+ * @param windId 风场编码(nem_code)
|
|
|
+ * @param type 一级类型(meter_type)
|
|
|
+ * @param meterClass 二级分类(meter_class)
|
|
|
* @return 根据nem_code返回meter_type;
|
|
|
* 根据nem_code,meter_type返回meter_class;
|
|
|
* 根据nem_code,meter_type,meter_class返回name;
|
|
|
*/
|
|
|
@GetMapping("/getMeterTypeCalculating")
|
|
|
public Result<Object> getMeterTypeCalculating(
|
|
|
- @RequestParam(required = false) String windId,
|
|
|
+ @RequestParam(required = true) String windId,
|
|
|
@RequestParam(required = false) String type,
|
|
|
@RequestParam(required = false) String meterClass
|
|
|
) {
|
|
@@ -62,18 +65,19 @@ public class GetTypeController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取底码表分类
|
|
|
+ * 获取底码点分类
|
|
|
+ * @folder 数据查询/下拉框选择类型
|
|
|
*
|
|
|
- * @param windId 风场nem_code
|
|
|
- * @param type meter_type 一级类型
|
|
|
- * @param meterClass meter_class 二级分类
|
|
|
+ * @param windId 风场编码(nem_code)
|
|
|
+ * @param type 一级类型(meter_type)
|
|
|
+ * @param meterClass 二级分类(meter_class)
|
|
|
* @return 根据nem_code返回meter_type;
|
|
|
* 根据nem_code,meter_type返回meter_class;
|
|
|
* 根据nem_code,meter_type,meter_class返回name;
|
|
|
*/
|
|
|
@GetMapping("/getMeterTypeBottom")
|
|
|
public Result<Object> getMeterTypeBottom(
|
|
|
- @RequestParam(required = false) String windId,
|
|
|
+ @RequestParam(required = true) String windId,
|
|
|
@RequestParam(required = false) String type,
|
|
|
@RequestParam(required = false) String meterClass
|
|
|
) {
|
|
@@ -87,14 +91,15 @@ public class GetTypeController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取风机编号
|
|
|
+ * 获取设备编号
|
|
|
+ * @folder 数据查询/下拉框选择类型
|
|
|
*
|
|
|
- * @param windId 风场nem_code
|
|
|
- * @return 场站下每台风机的编号
|
|
|
+ * @param windId 风场编码(nem_code)
|
|
|
+ * @return 场站下每台设备的编号
|
|
|
*/
|
|
|
@GetMapping("/getEquipmentId")
|
|
|
public Result<Object> getEquipmentId(
|
|
|
- @RequestParam(required = false) String windId
|
|
|
+ @RequestParam(required = true) String windId
|
|
|
) {
|
|
|
List<MeterInfoVo> equipmentId = getPowerstationTypeClassName.getEquipmentId(windId);
|
|
|
Map<String, Object> response = new HashMap<>();
|
|
@@ -105,16 +110,15 @@ public class GetTypeController {
|
|
|
|
|
|
|
|
|
/**
|
|
|
- * 获取线路
|
|
|
+ * 获取线路名称
|
|
|
+ * @folder 数据查询/下拉框选择类型
|
|
|
*
|
|
|
- * @param windId 风场nem_code
|
|
|
- * @return 根据nem_code返回meter_type;
|
|
|
- * 根据nem_code,meter_type返回meter_class;
|
|
|
- * 根据nem_code,meter_type,meter_class返回name;
|
|
|
+ * @param windId 风场编码(nem_code)
|
|
|
+ * @return 根据nem_code返回lime_name;
|
|
|
*/
|
|
|
@GetMapping("/getLinename")
|
|
|
public Result<Object> getLineName(
|
|
|
- @RequestParam(required = false) String windId
|
|
|
+ @RequestParam(required = true) String windId
|
|
|
|
|
|
) {
|
|
|
List<MeterInfoVo> meterTypeListVo = getPowerstationTypeClassName.getLineName(windId);
|