This commit is contained in:
cc
2025-01-09 17:38:56 +08:00
parent 5df9add885
commit a31feca107

View File

@@ -230,7 +230,7 @@ public class JDUtils {
continue; continue;
} }
LocalDateTime now = LocalDateTime.now(); LocalDateTime now = LocalDateTime.now();
//logger.info("拉取历史订单---> , {} 点,{} 分", now.getHour(), now.getMinute()); logger.info("拉取历史订单---> , {} 点,{} 分", now.getHour(), now.getMinute());
LocalDateTime lastHour = now.truncatedTo(ChronoUnit.HOURS); LocalDateTime lastHour = now.truncatedTo(ChronoUnit.HOURS);
LocalDateTime startDate = lastHour.minusMonths(3).truncatedTo(ChronoUnit.HOURS); LocalDateTime startDate = lastHour.minusMonths(3).truncatedTo(ChronoUnit.HOURS);
@@ -581,7 +581,7 @@ public class JDUtils {
} }
public void test(LocalDateTime startTime, boolean isRealTime, Integer page, boolean isMinutes,String appKey,String secretKey){ public void test(LocalDateTime startTime, boolean isRealTime, Integer page, boolean isMinutes,String appKey,String secretKey){
String oldTimeTag = JD_REFRESH_TAG + startTime.format(DATE_TIME_FORMATTER); String oldTimeTag = JD_REFRESH_TAG + startTime.format(DATE_TIME_FORMATTER);
String newTimeTag = JD_REFRESH_TAG +":"+appKey +":"+ startTime.format(DATE_TIME_FORMATTER); String newTimeTag = JD_REFRESH_TAG +appKey +":"+ startTime.format(DATE_TIME_FORMATTER);
StringRedisTemplate redisTemplate = new StringRedisTemplate(); StringRedisTemplate redisTemplate = new StringRedisTemplate();
HashOperations<String, String, String> hashOps = redisTemplate.opsForHash(); HashOperations<String, String, String> hashOps = redisTemplate.opsForHash();