统计美化

This commit is contained in:
Leo
2025-03-16 20:00:02 +08:00
parent c53a5c6f4f
commit 02ea973d24
2 changed files with 4 additions and 4 deletions

View File

@@ -5,7 +5,6 @@ import cn.hutool.http.HttpRequest;
import cn.van.business.util.WxtsUtil;
import com.alibaba.fastjson2.JSONObject;
import com.google.common.util.concurrent.RateLimiter;
import org.apache.commons.lang3.StringUtils;
import org.apache.rocketmq.spring.annotation.ConsumeMode;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.core.RocketMQListener;
@@ -45,6 +44,7 @@ public class MessageConsumerService implements RocketMQListener<JSONObject> {
@Override
public void onMessage(JSONObject message) {
try {
logger.debug("消费消息:{}", message);
//logger.info("[RateLimiter] 开始处理消息,当前时间:{}", System.currentTimeMillis());
rateLimiter.acquire();
//logger.info("[RateLimiter] 获得令牌,当前时间:{}", System.currentTimeMillis());

View File

@@ -178,9 +178,9 @@ public class JDScheduleJob {
}
// 打印方法调用和开始结束时间
if (isRealTime && (LocalDateTime.now().getMinute() % 10 == 0)) {
logger.debug(" {} --- 拉取订单, 分钟还是秒 {} , 开始时间:{} --- 结束时间:{}", appKey.substring(appKey.length() - 4), hourMinuteTag, startTime.format(DATE_TIME_FORMATTER), endTime.format(DATE_TIME_FORMATTER));
}
//if (isRealTime && (LocalDateTime.now().getMinute() % 10 == 0)) {
// logger.debug(" {} --- 拉取订单, 分钟还是秒 {} , 开始时间:{} --- 结束时间:{}", appKey.substring(appKey.length() - 4), hourMinuteTag, startTime.format(DATE_TIME_FORMATTER), endTime.format(DATE_TIME_FORMATTER));
//}
return unionOpenOrderRowQueryResponse;
} catch (Exception e) {