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