|
@ -1,5 +1,17 @@
|
1
|
1
|
package com.ekexiu.project.bridge.collect;
|
2
|
2
|
|
|
3
|
import com.ekexiu.project.bridge.resource.dao.BridgeServerDao;
|
|
4
|
import com.ekexiu.project.bridge.resource.po.BridgeServer;
|
|
5
|
import org.jfw.apt.annotation.Autowrie;
|
|
6
|
import org.jfw.apt.web.annotation.Path;
|
|
7
|
import org.jfw.apt.web.annotation.operate.Get;
|
|
8
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
|
9
|
import org.jfw.util.ConstData;
|
|
10
|
import org.jfw.util.DateUtil;
|
|
11
|
import org.jfw.util.ListUtil;
|
|
12
|
import org.jfw.util.io.IoUtil;
|
|
13
|
import org.jfw.util.jdbc.JdbcUtil;
|
|
14
|
|
3
|
15
|
import java.io.BufferedReader;
|
4
|
16
|
import java.io.File;
|
5
|
17
|
import java.io.FileInputStream;
|
|
@ -13,23 +25,11 @@ import java.sql.Connection;
|
13
|
25
|
import java.sql.PreparedStatement;
|
14
|
26
|
import java.sql.ResultSet;
|
15
|
27
|
import java.sql.SQLException;
|
|
28
|
import java.util.ArrayList;
|
16
|
29
|
import java.util.LinkedList;
|
17
|
30
|
import java.util.List;
|
18
|
31
|
import java.util.Map;
|
19
|
32
|
|
20
|
|
import org.jfw.apt.annotation.Autowrie;
|
21
|
|
import org.jfw.apt.web.annotation.Path;
|
22
|
|
import org.jfw.apt.web.annotation.operate.Get;
|
23
|
|
import org.jfw.apt.web.annotation.param.JdbcConn;
|
24
|
|
import org.jfw.util.ConstData;
|
25
|
|
import org.jfw.util.DateUtil;
|
26
|
|
import org.jfw.util.ListUtil;
|
27
|
|
import org.jfw.util.io.IoUtil;
|
28
|
|
import org.jfw.util.jdbc.JdbcUtil;
|
29
|
|
|
30
|
|
import com.ekexiu.project.bridge.resource.dao.BridgeServerDao;
|
31
|
|
import com.ekexiu.project.bridge.resource.po.BridgeServer;
|
32
|
|
|
33
|
33
|
@Path("/collect")
|
34
|
34
|
public class CollectService {
|
35
|
35
|
|
|
@ -82,12 +82,18 @@ public class CollectService {
|
82
|
82
|
|
83
|
83
|
@Get
|
84
|
84
|
@Path("/wave/curr")
|
85
|
|
public List<WaveDataItem> wave(String seq) {
|
|
85
|
public List<WaveDataItem> wave(String[] seq) {
|
86
|
86
|
List<WaveDataItem> ret = null;
|
87
|
|
synchronized (this.waveCache) {
|
88
|
|
ret = waveCache.get(seq);
|
|
87
|
List<WaveDataItem> retAll = new ArrayList<>();
|
|
88
|
for (String aseq : seq) {
|
|
89
|
synchronized (this.waveCache) {
|
|
90
|
ret = waveCache.get(aseq);
|
|
91
|
}
|
|
92
|
if(ret!=null) {
|
|
93
|
retAll.addAll(ret);
|
|
94
|
}
|
89
|
95
|
}
|
90
|
|
return ret;
|
|
96
|
return retAll;
|
91
|
97
|
}
|
92
|
98
|
|
93
|
99
|
@Get
|