1、如果设备名含“替换”,则用推送名
This commit is contained in:
parent
810ca47853
commit
0386948076
@ -141,8 +141,10 @@ public class Forwarder {
|
|||||||
record.setRposn(record.getRposn() - device.getIposn());
|
record.setRposn(record.getRposn() - device.getIposn());
|
||||||
record.setRposd(record.getRposd() - device.getIposd());
|
record.setRposd(record.getRposd() - device.getIposd());
|
||||||
}
|
}
|
||||||
if (useFwdId && device.getFwddeviceid() != null && !device.getFwddeviceid().isBlank()) {
|
if (useFwdId || (device.getName()!=null&&device.getName().contains("替换"))) {
|
||||||
record.setDeviceid(device.getFwddeviceid());
|
if (device.getFwddeviceid() != null && !device.getFwddeviceid().isBlank()) {
|
||||||
|
record.setDeviceid(device.getFwddeviceid());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
recordsToSend.add(record);
|
recordsToSend.add(record);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user