lxw
2023-05-22 694410a063ac77d5f4ad8e969aa6cf871ccc10e8
领导层调用应用层接口加userId
1个文件已修改
7 ■■■■■ 已修改文件
src/main/java/com/whyc/webSocket/taskMLeaderWebSocket.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/whyc/webSocket/taskMLeaderWebSocket.java
@@ -2,6 +2,7 @@
import com.whyc.config.WebSocketConfig;
import com.whyc.dto.Response;
import com.whyc.pojo.UserInf;
import com.whyc.service.BattdischargePlanService;
import com.whyc.service.FaultUploadService;
import com.whyc.service.KPIService;
@@ -60,9 +61,9 @@
    @OnMessage
    public void onMessage(Session session, String message) {
        /*UserInf user = (UserInf) this.httpSession.getAttribute("user");
        final int userId = user.getUId().intValue();*/
        final int userId = 1041;
        UserInf user = (UserInf) this.httpSession.getAttribute("user");
        final int userId = user.getUId().intValue();
        //final int userId = 1041;
        Integer limitN = Integer.valueOf(message);
        thread = new Thread("Thread_RealTime") {
            @Override