vehicleData upd

master
tangwenkang 2023-12-06 16:00:04 +08:00
parent ce10ed1784
commit fb07adddd5
3 changed files with 3 additions and 6 deletions

View File

@ -4,9 +4,7 @@ package com.dragon.vehicle.history.common.domain;
import com.baomidou.mybatisplus.annotation.IdType; import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId; import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName; import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*; import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal; import java.math.BigDecimal;
import java.util.Date; import java.util.Date;
@ -16,7 +14,7 @@ import java.util.Date;
@ToString @ToString
@NoArgsConstructor @NoArgsConstructor
@AllArgsConstructor @AllArgsConstructor
@TableName("vehicle_data") @TableName("vehicle_data_copy1")
public class VehicleData { public class VehicleData {
/** /**
@ -33,8 +31,6 @@ public class VehicleData {
/** /**
* *
*/ */
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
private Date createTime; private Date createTime;
/** /**

View File

@ -8,7 +8,7 @@
<artifactId>dragon-vehicle-history</artifactId> <artifactId>dragon-vehicle-history</artifactId>
<version>3.6.3</version> <version>3.6.3</version>
</parent> </parent>
<version>3.6.3</version> <version>3.6.4</version>
<artifactId>vehicle-history-server</artifactId> <artifactId>vehicle-history-server</artifactId>
<properties> <properties>

View File

@ -141,6 +141,7 @@ public class CarServiceImpl implements CarService {
@Override @Override
public Result realTime(String vin) { public Result realTime(String vin) {
List<String> cacheList = redisService.getCacheList("event_"+vin);//根据vin查询出车辆的事件列表 List<String> cacheList = redisService.getCacheList("event_"+vin);//根据vin查询出车辆的事件列表
redisService.deleteObject("event_"+vin);//删除车辆的事件列表
cacheList.add("runtimeTraceEvent");//添加实时轨迹事件 cacheList.add("runtimeTraceEvent");//添加实时轨迹事件
redisService.setCacheList("event_"+vin,cacheList);//将事件列表存入redis redisService.setCacheList("event_"+vin,cacheList);//将事件列表存入redis
rabbitTemplate.convertAndSend("eventChange_queue",vin); rabbitTemplate.convertAndSend("eventChange_queue",vin);