NFDataSyncJob.java
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.skua.modules.job;
import com.skua.modules.report.service.IReportDataService;
import lombok.extern.slf4j.Slf4j;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
/**
* 发送消息任务
*/
@Slf4j
public class NFDataSyncJob implements Job {
@Autowired
private IReportDataService reportDataService;
//水质水量报表
private static final String SZSL = "2119ecbf53a1d2d0708258ff67cfd9e1";
//化验日报
private static final String HYRB = "9bffaf9187093d6e6a4390e8c56acca8";
@Override
public void execute(JobExecutionContext jobExecutionContext) {
log.info("开始同步昨日恩菲的数据入报表");
// String yesterday = DateUtils.getYesterday();
// Map<String, String> data = new HashMap<>();
// String departId = "";
// data.put("JSZL", "");
// data.put("departId", "departId");
// data.put("reportId", SZSL);
// data.put("time",yesterday);
// reportDataService.insertOrUpdateReportData(departId, yesterday, data, SZSL);
log.info("同步昨日恩菲的数据入报表完成");
}
}