|
|
@@ -60,7 +60,7 @@ public class WeighbridgePushService {
|
|
|
record.getId(), record.getLicensePlate(), e);
|
|
|
throw new IotException("外部系统地磅数据推送异常");
|
|
|
}
|
|
|
- if (Objects.nonNull(response) && !response.isSuccess()){
|
|
|
+ if (Objects.isNull(response) || !response.isSuccess()){
|
|
|
log.error("外部系统地磅数据推送失败,记录ID: {}, 车牌号: {}",
|
|
|
record.getId(), record.getLicensePlate());
|
|
|
throw new IotException("外部系统地磅数据推送失败");
|