Commit c0ed0ba9 by 黄小葱

修改bug

1 parent 179d4f4e
...@@ -16,6 +16,7 @@ import org.springframework.beans.BeanUtils; ...@@ -16,6 +16,7 @@ import org.springframework.beans.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import java.util.Collection;
import java.util.Date; import java.util.Date;
@Slf4j @Slf4j
...@@ -52,7 +53,7 @@ public class DeviceServiceImpl implements DeviceService { ...@@ -52,7 +53,7 @@ public class DeviceServiceImpl implements DeviceService {
@Override @Override
public DeviceStatusModel getDeviceStatusBySn(String sn, Long offlineTime) { public DeviceStatusModel getDeviceStatusBySn(String sn, Long offlineTime) {
Device device = deviceMapper.selectBySn(sn); Device device = getDeviceOrRemote(sn);
if (device == null) { if (device == null) {
return null; return null;
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!