|
@@ -114,7 +114,7 @@ public class BingShuiGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter
|
|
|
deviceReplyClient.updateReplyActiveByDeviceIdAndFactory(deviceId, FACTORY);
|
|
|
} else {
|
|
|
DeviceReplyDto dto = deviceReplyClient.queryDeviceReplyByDeviceIdAndFactory(deviceId, FACTORY);
|
|
|
- if (dto.getActive() != null && !dto.getActive()) {
|
|
|
+ if (dto!= null && dto.getActive() != null && !dto.getActive()) {
|
|
|
// 设置不成功
|
|
|
logger.warn("设备:" + deviceId + "设置参数:" + dto.getReplyInstructions());
|
|
|
return dto.getReplyInstructions();
|