1、如果设备名含“替换”,则用推送名

This commit is contained in:
weidong 2024-05-19 23:42:54 +08:00
parent 810ca47853
commit 0386948076

View File

@ -141,9 +141,11 @@ 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("替换"))) {
if (device.getFwddeviceid() != null && !device.getFwddeviceid().isBlank()) {
record.setDeviceid(device.getFwddeviceid()); record.setDeviceid(device.getFwddeviceid());
} }
}
recordsToSend.add(record); recordsToSend.add(record);
break; break;
} }