Commit e67eeef2 by huangjy

fix:去掉多余的日志打印

parent befbc16d
...@@ -17,14 +17,14 @@ import java.util.Properties; ...@@ -17,14 +17,14 @@ import java.util.Properties;
/** /**
* @author Robert Hafner * @author Robert Hafner
*/ */
@Component /*@Component
@Intercepts({ @Intercepts({
@Signature(type = Executor.class, method = "query", @Signature(type = Executor.class, method = "query",
args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }), args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class }),
@Signature(type = Executor.class, method = "query", @Signature(type = Executor.class, method = "query",
args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class }), args = { MappedStatement.class, Object.class, RowBounds.class, ResultHandler.class, CacheKey.class, BoundSql.class }),
@Signature(type= Executor.class, method = "update", args = { MappedStatement.class, Object.class}) @Signature(type= Executor.class, method = "update", args = { MappedStatement.class, Object.class})
}) })*/
public class LogSqlExecutionTimePlugin implements Interceptor { public class LogSqlExecutionTimePlugin implements Interceptor {
private static final Logger LOGGER = LoggerFactory.getLogger(LogSqlExecutionTimePlugin.class); private static final Logger LOGGER = LoggerFactory.getLogger(LogSqlExecutionTimePlugin.class);
......
...@@ -12,8 +12,8 @@ import org.springframework.stereotype.Component; ...@@ -12,8 +12,8 @@ import org.springframework.stereotype.Component;
import java.util.Arrays; import java.util.Arrays;
import java.util.List; import java.util.List;
@Aspect //@Aspect
@Component //@Component
public class RedissonLogAspect { public class RedissonLogAspect {
private static final Logger logger = LoggerFactory.getLogger(RedissonLogAspect.class); private static final Logger logger = LoggerFactory.getLogger(RedissonLogAspect.class);
......
...@@ -10,8 +10,8 @@ import org.slf4j.LoggerFactory; ...@@ -10,8 +10,8 @@ import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Component; import org.springframework.stereotype.Component;
@Aspect //@Aspect
@Component //@Component
public class ServiceLogAspect { public class ServiceLogAspect {
private static final Logger logger = LoggerFactory.getLogger(ServiceLogAspect.class); private static final Logger logger = LoggerFactory.getLogger(ServiceLogAspect.class);
......
...@@ -282,7 +282,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService { ...@@ -282,7 +282,7 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
} }
boolean fallNoPersonFlag = false; boolean fallNoPersonFlag = false;
for (PlatDevice device : fallDeviceList) { for (PlatDevice device : fallDeviceList) {
Set<String> dataSet = redisTemplate.opsForZSet().rangeByScore(DEVICE_FALL_TEMP_DATA + device.getOriDeviceId(), currentSecond -10,currentSecond); Set<String> dataSet = redisTemplate.opsForZSet().rangeByScore(DEVICE_FALL_TEMP_DATA + device.getOriDeviceId(), currentSecond - 10, currentSecond);
if (CollectionUtils.isEmpty(dataSet)) { if (CollectionUtils.isEmpty(dataSet)) {
log.info("跌倒设备当前没有上报数据直接返回"); log.info("跌倒设备当前没有上报数据直接返回");
fallNoPersonFlag = true; fallNoPersonFlag = true;
......
...@@ -161,7 +161,7 @@ public class PushCallback implements MqttCallback { ...@@ -161,7 +161,7 @@ public class PushCallback implements MqttCallback {
List<HeaderInfo.Bind> bindings = headers.getBindings(); List<HeaderInfo.Bind> bindings = headers.getBindings();
Long timestamp = device.getTimestamp(); Long timestamp = device.getTimestamp();
long currentSecond = timestamp / 1000; long currentSecond = System.currentTimeMillis() / 1000;
// 先通过产品名称判断 // 先通过产品名称判断
if (REPORT_PROPERTY.equals(device.getMessageType()) && headers.getProductName().contains("呼吸")) { if (REPORT_PROPERTY.equals(device.getMessageType()) && headers.getProductName().contains("呼吸")) {
cacheBrDeviceData(device, currentSecond); cacheBrDeviceData(device, currentSecond);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment