|
|
|
@ -8,6 +8,7 @@ import com.hnac.hzinfo.dataconfig.entity.Device;
|
|
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeData; |
|
|
|
|
import com.hnac.hzinfo.datasearch.soe.domian.SoeQueryCondition; |
|
|
|
|
import com.hnac.hzinfo.sdk.v5.device.vo.DeviceInstanceAttrVO; |
|
|
|
|
import com.hnac.hzinfo.sdk.v5.device.vo.DeviceInstanceVO; |
|
|
|
|
import io.swagger.annotations.Api; |
|
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
|
|
import lombok.AllArgsConstructor; |
|
|
|
@ -38,24 +39,17 @@ public class HistoryController extends BladeController {
|
|
|
|
|
return R.data(alarmService.alarm(soeQueryCondition)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/projectSid") |
|
|
|
|
@GetMapping("/projectFacDevice") |
|
|
|
|
@ApiOperationSupport(order = 2) |
|
|
|
|
@ApiOperation(value = "查询站点sid", notes = "根据站点id查询sid") |
|
|
|
|
public R<String> projectSid(@RequestParam(value = "stationId") String projectId) { |
|
|
|
|
return R.data(pointService.projectSid(projectId)); |
|
|
|
|
@ApiOperation(value = "站点厂租点", notes = "根据站点id查询厂组点信息") |
|
|
|
|
public R<List<Device>> projectFacDevice(@RequestParam(value = "projectId") String projectId) { |
|
|
|
|
return R.data(pointService.projectFacDevice(projectId)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/projectGroup") |
|
|
|
|
@GetMapping("/projectDeviceInstance") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperation(value = "站点分组信息", notes = "根据站点sid查询厂信息分组") |
|
|
|
|
public R<List<Device>> projectGroup(@RequestParam(value = "sid") String sid) { |
|
|
|
|
return R.data(pointService.projectGroup(sid)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@GetMapping("/onlineAttr") |
|
|
|
|
@ApiOperationSupport(order = 3) |
|
|
|
|
@ApiOperation(value = "分组点位信息", notes = "根据分组Id查询分组点位") |
|
|
|
|
public R<List<DeviceInstanceAttrVO>> onlineAttr(@RequestParam(value = "groupId") String groupId) { |
|
|
|
|
return R.data(pointService.onlineAttr(groupId)); |
|
|
|
|
@ApiOperation(value = "站点虚拟设备息", notes = "根据站点id查询虚拟设备") |
|
|
|
|
public R<List<DeviceInstanceVO>> projectDeviceInstance(@RequestParam(value = "projectId") String projectId) { |
|
|
|
|
return R.data(pointService.projectDeviceInstance(projectId)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|