人脸定时任务更新

develop
hanrenchun 7 months ago
parent 829e5e2ee5
commit 68aaa98a22

@ -36,7 +36,7 @@ public class UserAndVehicleRecordTask {
private final DevopsDeviceInfoService devopsDeviceInfoService;
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
String maxTime = "2024-03-02 00:00:00";
String maxTime = "2024-03-01 00:00:00";
@Scheduled(initialDelay = 100, fixedDelay = 3000)
public void setTransitUserRecordService() {
@ -53,8 +53,6 @@ public class UserAndVehicleRecordTask {
if (latestRecord != null) {
Date partitionField = latestRecord.getPartitionField();
maxTime = dateFormat.format(partitionField);
}else {
maxTime = "2024-03-02 00:00:00";
}
// 获取设备信息列表
List<DevopsDeviceInfo> devopsDeviceInfoList = devopsDeviceInfoService.lambdaQuery()
@ -92,6 +90,7 @@ public class UserAndVehicleRecordTask {
transitUserRecord.setUserStandardPic(tStrhEntityInfoKs.getStoragepath());
transitUserRecord.setUserName(tStrhEntityInfoKs.getName());
transitUserRecord.setIdCard(tStrhEntityInfoKs.getIdentityid());
transitUserRecord.setDossierCode(tStrhEntityInfoKs.getEntityid());
// 解析passtime字符串为Date对象
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); // 假设passtime的格式是这种
dateFormat.setTimeZone(TimeZone.getTimeZone("Asia/Shanghai")); // 假设passtime是以UTC存储的

Loading…
Cancel
Save