1、广西交设增加新项目倾角推送
This commit is contained in:
parent
bd52c6df20
commit
7b63f24af5
@ -17,6 +17,7 @@ import org.springframework.stereotype.Component;
|
||||
import javax.annotation.PostConstruct;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashSet;
|
||||
import java.util.List;
|
||||
|
||||
@Component
|
||||
@ -24,6 +25,8 @@ import java.util.List;
|
||||
@EnableScheduling
|
||||
public class GXJSForwarder extends GXXfzForwarder{
|
||||
private final String FORWARDER_NAME = "广西新发展";
|
||||
private final String inclineProjects = "20257071,20251131";
|
||||
private HashSet<String> inclineProjectSet = new HashSet<>();
|
||||
@Value("${xfz.server.host}")
|
||||
private String host;
|
||||
|
||||
@ -39,6 +42,12 @@ public class GXJSForwarder extends GXXfzForwarder{
|
||||
if(!enabled) return;
|
||||
|
||||
xfzTcpClient.start();
|
||||
|
||||
// incline devices
|
||||
String[] inclineDeviceList = inclineProjects.split(",");
|
||||
for(String s:inclineDeviceList){
|
||||
inclineProjectSet.add(s);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -78,7 +87,7 @@ public class GXJSForwarder extends GXXfzForwarder{
|
||||
data.setDevLng(locationRecord.getR9250e());
|
||||
data.setDevLat(locationRecord.getR9250n());
|
||||
|
||||
if(projectId!=null && projectId.equals("20257071")) {
|
||||
if(projectId!=null && inclineProjectSet.contains(projectId)) {
|
||||
//倾角
|
||||
XFZData.Data data2 = new XFZData.Data();
|
||||
dataList.add(data2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user