|
@ -132,11 +132,8 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
|
|
|
//统计
|
|
|
private void computequota() throws Exception {
|
|
|
//更新统计时间
|
|
|
redisTemplate.opsForValue().set("quota:date",DateUtil.dateToStrLong(new Date()));
|
|
|
//更新时间key
|
|
|
|
|
|
RedisStorage.timeKey=new Date().getTime()+"";
|
|
|
redisTemplate.opsForValue().set("quota:timeKey",RedisStorage.timeKey);
|
|
|
|
|
|
QuartzJobLog quartzJobLog =new QuartzJobLog();
|
|
|
quartzJobLog.setJobStartTime(new Date());
|
|
@ -173,6 +170,11 @@ public class CurrentDayAllQuotaJob implements Job {
|
|
|
redisTemplate.expire(key, 1, TimeUnit.HOURS);//1小时过期
|
|
|
}
|
|
|
RedisStorage.keys.clear();//清空Key
|
|
|
|
|
|
//更新统计时间
|
|
|
redisTemplate.opsForValue().set("quota:date",DateUtil.dateToStrLong(new Date()));
|
|
|
//更新时间key
|
|
|
redisTemplate.opsForValue().set("quota:timeKey",RedisStorage.timeKey);
|
|
|
}
|
|
|
|
|
|
private void computequota_16_1(String sql,List<SignFamily> signFamilies_1,List<SignFamily> deleteSignFamilies) {
|