From f6d9ad89c20eb9c9f4e27bd65c13ed6b66c56900 Mon Sep 17 00:00:00 2001
From: aijinhui <aijinhui>
Date: 星期日, 08 十月 2023 15:23:01 +0800
Subject: [PATCH] 1
---
ard-work/src/main/java/com/ruoyi/statistical/service/impl/StatisticalServiceImpl.java | 14 ++++++++------
1 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/ard-work/src/main/java/com/ruoyi/statistical/service/impl/StatisticalServiceImpl.java b/ard-work/src/main/java/com/ruoyi/statistical/service/impl/StatisticalServiceImpl.java
index 0f1532c..3410fd3 100644
--- a/ard-work/src/main/java/com/ruoyi/statistical/service/impl/StatisticalServiceImpl.java
+++ b/ard-work/src/main/java/com/ruoyi/statistical/service/impl/StatisticalServiceImpl.java
@@ -280,22 +280,24 @@
@Override
public void run(){
Para.setI(0);
- for(Object o : radarList){
+ for (int i = 0; i < radarList.size(); i++) {
+ ArdEquipRadar radar = radarList.get(i);
+ String host = radar.getIp();
+ String port = radar.getPort();
Thread thread = new Thread(){
@Override
public void run(){
try {
- Socket socket = new Socket("192.168.5.226",1200);
+ Socket socket = new Socket(host,Integer.valueOf(port));
} catch (Exception e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- int i = Para.getI();
- i++;
+ int num = Para.getI();
+ num++;
}
}
};
thread.start();
}
+ int n = Para.getI();
Para.setJ(radarList.size() - Para.getI());
}
};
--
Gitblit v1.9.3