|
@@ -0,0 +1,43 @@
|
|
|
+package com.jiayue.biz.controller;
|
|
|
+
|
|
|
+import com.jiayue.biz.domain.PvModuleModel;
|
|
|
+import com.jiayue.biz.domain.WeatherStationInfo;
|
|
|
+import com.jiayue.biz.service.PvModuleModelService;
|
|
|
+import com.jiayue.biz.service.WeatherStationInfoService;
|
|
|
+import com.jiayue.common.annotation.Log;
|
|
|
+import com.jiayue.common.core.controller.BaseController;
|
|
|
+import com.jiayue.common.core.domain.AjaxResult;
|
|
|
+import com.jiayue.common.core.page.TableDataInfo;
|
|
|
+import com.jiayue.common.enums.BusinessType;
|
|
|
+import lombok.RequiredArgsConstructor;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import java.util.ArrayList;
|
|
|
+import java.util.HashMap;
|
|
|
+import java.util.List;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 逆变器信息Controller
|
|
|
+ *
|
|
|
+ * @author L.ym
|
|
|
+ * @date 2022-05-11
|
|
|
+ */
|
|
|
+@RequiredArgsConstructor(onConstructor_ = @Autowired)
|
|
|
+@RestController
|
|
|
+@RequestMapping("/dataQuery/inverterInfo")
|
|
|
+public class InverterInfoController extends BaseController {
|
|
|
+ private final PvModuleModelService pvModuleModelService;
|
|
|
+
|
|
|
+ @GetMapping("/getPvModuleModel")
|
|
|
+ public AjaxResult list() {
|
|
|
+ List<PvModuleModel> pvModuleModels = pvModuleModelService.list();
|
|
|
+ List list = new ArrayList();
|
|
|
+ for(PvModuleModel pvModuleModel : pvModuleModels){
|
|
|
+ HashMap map = new HashMap();
|
|
|
+ map.put("id",pvModuleModel.getId());
|
|
|
+ map.put("model",pvModuleModel.getModelNumber());
|
|
|
+ }
|
|
|
+ return AjaxResult.success(list);
|
|
|
+ }
|
|
|
+}
|