|
@@ -3,6 +3,7 @@ package com.zcxk.meterreadingsystemv2.scheduled;
|
|
|
import com.alibaba.druid.util.StringUtils;
|
|
|
import com.alibaba.fastjson.JSON;
|
|
|
import com.zcxk.meterreadingsystemv2.common.DateTimeUtil;
|
|
|
+import com.zcxk.meterreadingsystemv2.common.Jdk8DateUtils;
|
|
|
import com.zcxk.meterreadingsystemv2.dao.*;
|
|
|
import com.zcxk.meterreadingsystemv2.dbs.DynamicDataSourceContextHolder;
|
|
|
import com.zcxk.meterreadingsystemv2.entity.*;
|
|
@@ -905,7 +906,7 @@ public class MeterReadingScheduleTask {
|
|
|
/**
|
|
|
* 汇川 每天
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 57 7 */1 * ?")
|
|
|
+ @Scheduled(cron = "0 0 4 */1 * ?")
|
|
|
public void huichuanTasks() {
|
|
|
log.info("开始执行汇川定时任务");
|
|
|
if(!"prd".equals(active)){
|
|
@@ -923,7 +924,12 @@ public class MeterReadingScheduleTask {
|
|
|
|
|
|
//Integer startDate = Integer.valueOf(LocalDateTime.now().plusMonths(-1).plusDays(-1).with(TemporalAdjusters.lastDayOfMonth()).format(DateTimeFormatter.ofPattern(DateTimeUtil.DATE_FORMAT)));
|
|
|
endDate = Integer.valueOf(LocalDateTime.now().plusDays(-1).format(DateTimeFormatter.ofPattern(DateTimeUtil.DATE_FORMAT)));
|
|
|
+ /*startDate = 20210515;
|
|
|
+ endDate = 20210516;
|
|
|
+ DateTimeFormatter df = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
|
|
+ LocalDateTime ldt = LocalDateTime.parse("2021-05-17 04:00:00",df);
|
|
|
|
|
|
+ Date date = Jdk8DateUtils.getLocalDateTimeToDate(ldt);*/
|
|
|
AtomicInteger count = new AtomicInteger(0);
|
|
|
|
|
|
try {
|