package com.fzzy.igds.io.notify; import com.fzzy.igds.constant.OrderRespEnum; import com.fzzy.igds.websocket.WebSocketPacket; import com.fzzy.igds.websocket.WebSocketServer; public class NotifyWebParent { public void notifyWeb(String companyId, OrderRespEnum orderResp, String bizType, String notifyMsg) { // 通知前端 WebSocketPacket packet = new WebSocketPacket(); packet.setBizType(bizType); packet.setCompanyId(companyId); packet.setOrderResp(orderResp.getCode()); packet.setData(notifyMsg); WebSocketServer.sendByPocket(packet); } }