NFDataSyncJob.java 1.1 KB
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("同步昨日恩菲的数据入报表完成");
	}

}