|
@@ -652,7 +652,7 @@ public class TaskService {
|
|
|
}
|
|
|
|
|
|
Date parse = DateUtil.parse(startTime);
|
|
|
- Date parseNew = DateUtil.offsetSecond(parse, 300);
|
|
|
+ Date parseNew = DateUtil.offsetSecond(parse, 600);
|
|
|
String endTime = DateUtil.format(parseNew, "yyyy-MM-dd HH:mm:ss");
|
|
|
redisService.setCacheObject("startTime", endTime);
|
|
|
|
|
@@ -685,11 +685,39 @@ public class TaskService {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ public void pphshjNo() {
|
|
|
+
|
|
|
+ System.out.println("batchInsert 查询数据开始========");
|
|
|
+ long start1 = System.currentTimeMillis();
|
|
|
+ //获取所有核酸数据源
|
|
|
+ List<TSampling514> TSampling514List = accountingDataService.getTSampling514AllDataNoTime();
|
|
|
+ //获取所有户籍数据
|
|
|
+ //List<Czrk> czrks = czrkMapper.listByCzrk(new Czrk());
|
|
|
+
|
|
|
+ long end1 = System.currentTimeMillis();
|
|
|
+ System.out.println("---------------查询数据耗时" + (end1 - start1) + "---------------");
|
|
|
+
|
|
|
+ //List<Czrk> czrkList = new ArrayList<>();
|
|
|
+ System.out.println("batchInsert 循环数据开始========");
|
|
|
+ long start2 = System.currentTimeMillis();
|
|
|
+ for (TSampling514 tSampling514 : TSampling514List) {
|
|
|
+ Czrk czrk = new Czrk();
|
|
|
+ czrk.setNucleicAcidTime("-");
|
|
|
+ czrk.setIdCard(tSampling514.getIdCard());
|
|
|
+ czrkMapper.updateCzrkByNucleicAcid(czrk);
|
|
|
+ //czrkList.add(czrk);
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ long end2 = System.currentTimeMillis();
|
|
|
+ System.out.println("---------------循环数据耗时"+(end2 -start2)+"---------------");
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
/***
|
|
|
* 核酸统计
|
|
|
*/
|
|
|
- @Scheduled(cron = "0 0 1 * * ?")
|
|
|
+ //@Scheduled(cron = "0 0 1 * * ?")
|
|
|
public void nucleicAcidStatistics() {
|
|
|
|
|
|
}
|