Commit 9ea26b13 by levphon

设备类型校验

1 parent 02062ea7
...@@ -228,7 +228,7 @@ public class GpsBsLocationServiceImpl implements GpsBsLocationService { ...@@ -228,7 +228,7 @@ public class GpsBsLocationServiceImpl implements GpsBsLocationService {
throw BusinessException.create(String.format("设备 %s 未入库,请更换其他设备", dli.getSn())); throw BusinessException.create(String.format("设备 %s 未入库,请更换其他设备", dli.getSn()));
} }
if (!Objects.equals(deviceDTO.getSource(), dli.getWireType())) { if (Objects.nonNull(dli.getWireType()) && !Objects.equals(deviceDTO.getSource(), dli.getWireType())) {
throw BusinessException.create("设备有线无线类型校验有误"); throw BusinessException.create("设备有线无线类型校验有误");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!