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