|
@@ -1,8 +1,8 @@
|
|
|
package com.gyee.gaia.meter.controller;
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
-import com.gyee.gaia.meter.entity.PowerStation;
|
|
|
-import com.gyee.gaia.meter.service.impl.PowerStationServiceImpl;
|
|
|
+import com.gyee.gaia.meter.entity.*;
|
|
|
+import com.gyee.gaia.meter.service.impl.*;
|
|
|
import org.springframework.web.bind.annotation.CrossOrigin;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
@@ -23,14 +23,62 @@ public class BaseInfoController {
|
|
|
@Resource
|
|
|
PowerStationServiceImpl powerStationService;
|
|
|
|
|
|
-@GetMapping("/powerstation")
|
|
|
- public void getBaseInfo(){
|
|
|
+ @Resource
|
|
|
+ ProjectServiceImpl projectService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ LineServiceImpl lineService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ EquipmentServiceImpl equipmentService;
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ TestingPointServiceImpl testingPointService;
|
|
|
+
|
|
|
+
|
|
|
+ @GetMapping("/powerstation")
|
|
|
+ public void getBaseInfoPowerStation() {
|
|
|
QueryWrapper<PowerStation> wrapper = new QueryWrapper<>();
|
|
|
- wrapper.eq("code","MHS_FDC");
|
|
|
+ wrapper.eq("code", "MHS_FDC");
|
|
|
List<PowerStation> list = powerStationService.list(wrapper);
|
|
|
System.out.println(list);
|
|
|
|
|
|
}
|
|
|
|
|
|
+ @GetMapping("/project")
|
|
|
+ public void getBaseInfoProject() {
|
|
|
+ QueryWrapper<Project> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("code", "MHS02_GC");
|
|
|
+ List<Project> list = projectService.list(wrapper);
|
|
|
+ System.out.println(list);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/line")
|
|
|
+ public void getBaseInfoLine() {
|
|
|
+ QueryWrapper<Line> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("code", "MHS02_XL");
|
|
|
+ List<Line> list = lineService.list(wrapper);
|
|
|
+ System.out.println(list);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/equipment")
|
|
|
+ public void getBaseInfoEquipment() {
|
|
|
+ QueryWrapper<Equipment> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("code", "SG01_01");
|
|
|
+ List<Equipment> list = equipmentService.list(wrapper);
|
|
|
+ System.out.println(list);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ @GetMapping("/testingpoint")
|
|
|
+ public void getBaseInfotestingpoint() {
|
|
|
+ QueryWrapper<TestingPoint> wrapper = new QueryWrapper<>();
|
|
|
+ wrapper.eq("uniform_code", "DI178").eq("thing_id","NX_GDDL_SBQ_F_WT_0010_EQ");
|
|
|
+ List<TestingPoint> list = testingPointService.list(wrapper);
|
|
|
+ System.out.println(list);
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|