| | |
| | | import com.ard.utils.http.AjaxResult; |
| | | import com.ard.utils.util.ByteUtils; |
| | | import com.ard.utils.util.GisUtils; |
| | | import com.ard.utils.netty.tcp.ClientInitialize; |
| | | import com.ard.utils.netty.tcp.RadarNettyTcpClient; |
| | | import io.netty.buffer.ByteBuf; |
| | | import io.netty.channel.Channel; |
| | | import io.netty.channel.ChannelFuture; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | if (ardEquipRadar == null) { |
| | | return AjaxResult.error("雷达不存在"); |
| | | } |
| | | Channel channel = ClientInitialize.SucChannelMap.get(ardEquipRadar.getIp() + ":" + ardEquipRadar.getPort()); |
| | | Channel channel= RadarNettyTcpClient.SERVER_MAP.get(ardEquipRadar.getIp() + ":" + ardEquipRadar.getPort()); |
| | | if (channel == null) { |
| | | return AjaxResult.error("雷达未连接"); |
| | | } |