Commit d89650e1 by 杨林龙

优化警情和定位查询接口

1 parent 6ddb5e5a
......@@ -361,10 +361,10 @@ public class MonitorServiceImpl implements MonitorService {
log.info(sw.getLastTaskName() + "耗时:" + sw.getLastTaskTimeMillis() + "ms");
// 获取设备类型
Integer dateDiff = -6;
Integer dateDiff = -4;
Device device = deviceService.getBySn(sn);
if (Objects.nonNull(device) && SourceTypeEnum.SOURCE.getType().equals(device.getSource())) {
dateDiff = -4;
dateDiff = -6;
}
if (Objects.nonNull(gpsLocation)) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!