1、修改projectId不为空,但是有空格的判断
This commit is contained in:
parent
cc5a020f5f
commit
b04a715e87
@ -114,6 +114,14 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<configuration>
|
||||
<source>11</source>
|
||||
<target>11</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
@ -117,7 +117,7 @@ public class Forwarder {
|
||||
for(GnssDevice device:gnssDeviceList){
|
||||
if(device.getOpmode() != GnssDevice.OP_MODE_USE) continue;
|
||||
String projectId = device.getProject_id();
|
||||
if(device.getProject2_id()!=null) {
|
||||
if(device.getProject2_id()!=null && !device.getProject2_id().isBlank()) {
|
||||
// 推送组2用项目2的id号
|
||||
String fwdGroupId2 = device.getFwd_group_id2();
|
||||
if (fwdGroupId2 != null && fwdGroupId2.equals(fwdGroupId)) {
|
||||
@ -141,7 +141,7 @@ public class Forwarder {
|
||||
record.setRposn(record.getRposn() - device.getIposn());
|
||||
record.setRposd(record.getRposd() - device.getIposd());
|
||||
}
|
||||
if (useFwdId && device.getFwddeviceid() != null && device.getFwddeviceid().trim().length() > 0) {
|
||||
if (useFwdId && device.getFwddeviceid() != null && !device.getFwddeviceid().isBlank()) {
|
||||
record.setDeviceid(device.getFwddeviceid());
|
||||
}
|
||||
recordsToSend.add(record);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user