风速仪和门口门禁数据定时器重命名
parent
989174104c
commit
c919faaf5f
|
@ -16,7 +16,7 @@ import java.util.List;
|
|||
import java.util.Map;
|
||||
|
||||
@Component
|
||||
public class SaveAnemometerInfo {
|
||||
public class SaveAnemometerInfoScheduled {
|
||||
@Autowired
|
||||
private AnemometerService anemometerService;
|
||||
@Autowired
|
||||
|
@ -26,7 +26,6 @@ public class SaveAnemometerInfo {
|
|||
|
||||
// @Scheduled(cron ="*/5 * * * * ? ")
|
||||
public void scheduled() throws Exception{
|
||||
//存储车辆进出记录信息
|
||||
saveAnemometerInfo();
|
||||
}
|
||||
|
|
@ -17,14 +17,14 @@ import java.text.SimpleDateFormat;
|
|||
import java.util.*;
|
||||
|
||||
@Component
|
||||
public class SaveMachineInfo {
|
||||
public class SaveMachineInfoScheduled {
|
||||
@Autowired
|
||||
private GateMachineInfoService gateMachineInfoService;
|
||||
@Autowired
|
||||
private GateCarMachineInfoService gateCarMachineInfoService;
|
||||
|
||||
@Scheduled(cron ="0 0 0/1 * * ?")
|
||||
// @Scheduled(cron ="*/5 * * * * ?")
|
||||
// @Scheduled(cron ="0 0 0/1 * * ?")
|
||||
// @Scheduled(cron ="0/30 * * * * ?")
|
||||
public void scheduled() {
|
||||
//存储人员进出记录信息
|
||||
savePersonMachineInfo();
|
||||
|
@ -39,8 +39,8 @@ public class SaveMachineInfo {
|
|||
String fendDate = dft.format(new Date())+"+08:00";
|
||||
String fstartDate = "";
|
||||
Calendar now = Calendar.getInstance();
|
||||
now.add(Calendar.HOUR, -1);
|
||||
// now.add(Calendar.SECOND, -30);
|
||||
// now.add(Calendar.HOUR, -1);
|
||||
now.add(Calendar.SECOND, -30);
|
||||
Date before = now.getTime();
|
||||
fstartDate = dft.format(before)+"+08:00";
|
||||
int pageNo = 1; //第几页
|
||||
|
@ -84,8 +84,8 @@ public class SaveMachineInfo {
|
|||
String fendDate = dft.format(new Date())+"+08:00";
|
||||
String fstartDate = "";
|
||||
Calendar now = Calendar.getInstance();
|
||||
now.add(Calendar.HOUR, -1);
|
||||
// now.add(Calendar.SECOND, -30);
|
||||
// now.add(Calendar.HOUR, -1);
|
||||
now.add(Calendar.SECOND, -30);
|
||||
Date before = now.getTime();
|
||||
fstartDate = dft.format(before)+"+08:00";
|
||||
int pageNo = 1; //第几页
|
Loading…
Reference in New Issue