xueyiming пре 3 месеци
родитељ
комит
856bd16577

+ 5 - 2
offline-module/src/main/java/com/tzld/piaoquan/offline/job/WeComHistoryDataJob.java

@@ -89,9 +89,12 @@ public class WeComHistoryDataJob {
 
     @XxlJob("saveHistoryMessageJob1")
     public ReturnT<String> saveHistoryMessageJob1(String param) {
-        Long startTime = (Long) redisTemplate.opsForValue().get(START_TIME_KEY);
-        if (startTime == null) {
+        Integer startTimeVal = (Integer) redisTemplate.opsForValue().get(START_TIME_KEY);
+        Long startTime;
+        if (startTimeVal == null) {
             startTime = DateUtil.getBeforeDayStart(0);
+        } else {
+            startTime = (long) startTimeVal;
         }
         Long endTime = System.currentTimeMillis() / 1000;
         CorpExample example = new CorpExample();