whyclxw
2025-05-28 e16302f9d475c7cc4dd18c5abf1a23cb5502e362
src/main/java/com/whyc/controller/RealTimeController.java
@@ -4,8 +4,10 @@
import com.whyc.dto.paramter.*;
import com.whyc.pojo.BattdischargePlan;
import com.whyc.pojo.PwrdevAlarm;
import com.whyc.service.BatttestdataInfService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
@@ -14,7 +16,10 @@
@Api(tags = "websocket请求")
@RestController
@RequestMapping("websocket")
public class RealTimeController {
public class RealTimeController extends BaseController{
    @Autowired
    private BatttestdataInfService infService;
    @ApiOperation(value = "实时界面websocket",notes = "请求链接:ws://localhost:8090/fg/RealTime 传参:{\"battGroupId\":\"1000028\",\"devId\":\"618500012\",\"powerDeviceId\":\"100202\",\"pageType\":\"standard\"}")
    @GetMapping("getRealTime")
@@ -65,4 +70,24 @@
    @ApiOperation(value = "3D机房管理",notes = "请求链接:ws://localhost:8090/fg/Satation3D 传参:{\"stationId\":\"42010021\"}")
    @GetMapping("getStation3D")
    public Response getStation3D(){return new Response();}
    @ApiOperation(value = "首页头部告警数据",notes = "请求链接:ws://localhost:8090/fg/homePageSocket 传参:1002")
    @GetMapping("getHomePage")
    public Response getHomePage(){return new Response();}
    @ApiOperation(value = "底部滚动告警数据",notes = "请求链接:ws://localhost:8090/fg/battAlarmFoot 传参:1002")
    @GetMapping("getbattAlarmFoot")
    public Response getbattAlarmFoot(){return new Response();}
    @ApiOperation(value = "a059更新升级查询",notes = "请求链接:ws://localhost:8091/fg/aioUpdateSearch 传参:AIOUpdatePar实体类{pageNum,pageSize,stationName1,stationName2,stationName5,uId}")
    @GetMapping("aioUpdateSearch")
    public Response aioUpdateSearch(){return new Response();}
    @ApiOperation(value = "领导层",notes = "请求链接:ws://localhost:8091/fg/homeAdmin")
    @GetMapping("getGroupAnalysis2")
    public Response getGroupAnalysis2(){
        return infService.getGroupAnalysis2(1087);
    }
}