|
|
@ -46,7 +46,7 @@ public class SyncCountJobService {
|
|
|
|
public void syncAllCount(){
|
|
|
|
public void syncAllCount(){
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
int random = new Random().nextInt(100);
|
|
|
|
int random = new Random().nextInt(100);
|
|
|
|
Thread.sleep(random*1000);
|
|
|
|
Thread.sleep(random*100);
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:00:00");
|
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:00:00");
|
|
|
|
QueryWrapper<SysTaskDO> qw = new QueryWrapper<>();
|
|
|
|
QueryWrapper<SysTaskDO> qw = new QueryWrapper<>();
|
|
|
|
qw.eq("type",TASK_TYPE_ALL_COUNT).eq("create_time",sdf.format(new Date())).last("limit 1");
|
|
|
|
qw.eq("type",TASK_TYPE_ALL_COUNT).eq("create_time",sdf.format(new Date())).last("limit 1");
|
|
|
|