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