|
|
|
@ -27,8 +27,7 @@ public class WebSocketComponent implements CommandLineRunner {
|
|
|
|
|
HeartTaskService heartTaskService;
|
|
|
|
|
@Resource
|
|
|
|
|
SocketMsgService socketMsgService;
|
|
|
|
|
@Resource
|
|
|
|
|
SpsSyncWebSocket spsSyncWebSocket;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void run(String... args) throws Exception {
|
|
|
|
@ -50,16 +49,7 @@ public class WebSocketComponent implements CommandLineRunner {
|
|
|
|
|
}
|
|
|
|
|
if (message.contains(SocketMsgType.DL_ALL_DATA)) {
|
|
|
|
|
heartTaskService.dlAllData();
|
|
|
|
|
} else if(message.contains(SocketMsgType.BASIC_DATA_DELETE)){
|
|
|
|
|
spsSyncWebSocket.sendMessage(message,"2:"+socketToken);
|
|
|
|
|
}else if(message.contains(SocketMsgType.BASIC_MANAGE_DELETE)){
|
|
|
|
|
spsSyncWebSocket.sendMessage(message,"2:"+socketToken);
|
|
|
|
|
}else if(message.contains(SocketMsgType.BASIC_CORP_MAINTAIN_DELETE)){
|
|
|
|
|
spsSyncWebSocket.sendMessage(message,"2:"+socketToken);
|
|
|
|
|
}else if(message.contains(SocketMsgType.BASIC_BUSINESS_TYPE_DELETE)){
|
|
|
|
|
spsSyncWebSocket.sendMessage(message,"2:"+socketToken);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//打印服务端返回的数据
|
|
|
|
|
log.info("成功获取数据:" + message);
|
|
|
|
|
}
|
|
|
|
|