数据同步修复

master
cxw 2024-09-29 17:15:10 +08:00
parent d56f2c2621
commit f25e0946ac
1 changed files with 0 additions and 2 deletions

View File

@ -22,7 +22,6 @@ import com.gunshi.project.xyt.service.StRiverRService;
import com.gunshi.project.xyt.service.StRsvrRRealService; import com.gunshi.project.xyt.service.StRsvrRRealService;
import com.gunshi.project.xyt.service.StRsvrRService; import com.gunshi.project.xyt.service.StRsvrRService;
import com.gunshi.project.xyt.util.OkHttpUtil; import com.gunshi.project.xyt.util.OkHttpUtil;
import jakarta.annotation.PostConstruct;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import okhttp3.FormBody; import okhttp3.FormBody;
import okhttp3.OkHttpClient; import okhttp3.OkHttpClient;
@ -238,7 +237,6 @@ public class DataTaskTSG {
*/ */
@Async @Async
@Scheduled(fixedRate = 5, timeUnit = TimeUnit.MINUTES) @Scheduled(fixedRate = 5, timeUnit = TimeUnit.MINUTES)
@PostConstruct
public void getRiverData() { public void getRiverData() {
Date now = new Date(); Date now = new Date();
System.out.println("水情历史定时任务,执行时间:" + sdf.format(now)); System.out.println("水情历史定时任务,执行时间:" + sdf.format(now));