大屏接口

dev_0531
yechenhao 6 years ago
parent 069815720b
commit 0895022c73

@ -37,7 +37,7 @@ public class StorePromotionDataJob {
public void syncData(){ public void syncData(){
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_USER_BEHAVIOR).eq("create_time",sdf.format(new Date())).last("limit 1"); qw.eq("type",TASK_TYPE_USER_BEHAVIOR).eq("create_time",sdf.format(new Date())).last("limit 1");

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

Loading…
Cancel
Save