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")
@@ -78,4 +83,11 @@
    @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);
    }
}