I2新增查询功能和代码优化

master
liuguijing 1 year ago
parent 284f2e45ee
commit f5102276ae

@ -8,7 +8,7 @@ import java.util.ArrayList;
import java.util.List;
/**
* 线
* 线
*/
@Data
public class ListModel implements Serializable {

@ -13,6 +13,5 @@ public interface Upload_checkDao {
List<Upload_check> selectAll();
int updateByPrimaryKey(@Param("checkType") String checkType, @Param("value") BigInteger value, @Param("updateTime") Date updateTime);
}

@ -1,76 +1,76 @@
//package com.shxy.i2.timeTask;
//
//import com.shxy.i2.service.Webservcies;
//import com.shxy.i2.service.XydlI2Service;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.scheduling.annotation.EnableScheduling;
//import org.springframework.scheduling.annotation.Scheduled;
//import org.springframework.stereotype.Component;
//
///**
// * @author jingjing
// * @date 2023-11-16 15:06
// */
//@Component
//@EnableScheduling
//@Slf4j
////@EnableAsync
//public class ScheduledTask {
//
// @Autowired
// Webservcies webservcies;
//
// @Autowired
// XydlI2Service xydlI2Service;
//
// @Scheduled(fixedDelay = 60 * 60 * 1000)
// public void cacyspupload() {
// log.info("cacyspupload执行" );
// webservcies.uploadyspData();
// }
//
// @Scheduled(fixedDelay = 1 * 30 * 1000)
// public void cacjfjcupload() {
// log.info("cacjfjcupload执行" );
// webservcies.uploadjfjcData();
// }
//
// @Scheduled(fixedDelay = 1 * 30 * 1000)
// public void cacupload() {
// log.info("cacupload执行" );
// webservcies.uploadData();
// }
//
// @Scheduled(fixedDelay = 1 * 30 * 1000)
// public void cactxupload() {
// log.info("cactxupload执行" );
// webservcies.uploadtxData();
// }
//
// @Scheduled(fixedDelay = 1 * 30 * 1000)
// public void cacyxupload() {
// log.info("cacyxupload执行" );
// webservcies.uploadyxData();
// }
//
// @Scheduled(fixedDelay = 1 * 30 * 1000)
// public void cacdcywupload() {
// log.info("cacdcywupload执行" );
// webservcies.uploaddcywData();
// }
//
// @Scheduled(fixedDelay = 1 * 30 * 1000)
// public void cacjsyhwjyjcupload() {
// log.info("cacjsyhwjyjcupload执行" );
// webservcies.uploadjsyhwjyjcData();
// }
//
//
// @Scheduled(cron = "0 0 13 * * ?")
// public void clear() {
// log.info("clear" );
// xydlI2Service.clear_history();
// }
//
//}
package com.shxy.i2.timeTask;
import com.shxy.i2.service.Webservcies;
import com.shxy.i2.service.XydlI2Service;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
/**
* @author jingjing
* @date 2023-11-16 15:06
*/
@Component
@EnableScheduling
@Slf4j
//@EnableAsync
public class ScheduledTask {
@Autowired
Webservcies webservcies;
@Autowired
XydlI2Service xydlI2Service;
@Scheduled(fixedDelay = 60 * 60 * 1000)
public void cacyspupload() {
log.info("cacyspupload执行" );
webservcies.uploadyspData();
}
@Scheduled(fixedDelay = 1 * 30 * 1000)
public void cacjfjcupload() {
log.info("cacjfjcupload执行" );
webservcies.uploadjfjcData();
}
@Scheduled(fixedDelay = 1 * 30 * 1000)
public void cacupload() {
log.info("cacupload执行" );
webservcies.uploadData();
}
@Scheduled(fixedDelay = 1 * 30 * 1000)
public void cactxupload() {
log.info("cactxupload执行" );
webservcies.uploadtxData();
}
@Scheduled(fixedDelay = 1 * 30 * 1000)
public void cacyxupload() {
log.info("cacyxupload执行" );
webservcies.uploadyxData();
}
@Scheduled(fixedDelay = 1 * 30 * 1000)
public void cacdcywupload() {
log.info("cacdcywupload执行" );
webservcies.uploaddcywData();
}
@Scheduled(fixedDelay = 1 * 30 * 1000)
public void cacjsyhwjyjcupload() {
log.info("cacjsyhwjyjcupload执行" );
webservcies.uploadjsyhwjyjcData();
}
@Scheduled(cron = "0 0 13 * * ?")
public void clear() {
log.info("clear" );
xydlI2Service.clear_history();
}
}

Loading…
Cancel
Save