Ver código fonte

Merge branch 'dev-xym-addTag' of Server/growth-manager into master

xueyiming 3 meses atrás
pai
commit
d81c3a3cc1

+ 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();