fix 车辆故障维护
parent
a094ad06b4
commit
3505f719a9
25282
logs/vehicle.log
25282
logs/vehicle.log
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
@ -20,11 +20,15 @@ import java.util.Date;
|
|||
@NoArgsConstructor
|
||||
@SuperBuilder
|
||||
public class Fault {
|
||||
|
||||
private String vin;
|
||||
|
||||
private String faultCode;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
|
||||
private Date startTime;
|
||||
|
||||
@JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss",timezone = "GMT+8")
|
||||
@DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
|
||||
private Date endTime;
|
||||
|
|
|
@ -36,7 +36,6 @@ public class RedisKeyExpirationListener extends KeyExpirationEventMessageListen
|
|||
*/
|
||||
@Override
|
||||
public void onMessage(Message message, byte[] pattern) {
|
||||
log.info("过期redis数据:" + message.toString());
|
||||
try {
|
||||
|
||||
String key = message.toString();
|
||||
|
@ -48,7 +47,6 @@ public class RedisKeyExpirationListener extends KeyExpirationEventMessageListen
|
|||
rabbitTemplate.convertAndSend("exchange_breakdown","resolve_time", JSON.toJSONString(fault));
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
log.error("【修改支付订单过期状态异常】:" + e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -751,6 +751,7 @@ public class EventServiceImpl implements EventService {
|
|||
|
||||
public void sendToRabbitMQ(Fault gz001){
|
||||
rabbitTemplate.convertAndSend("exchange_breakdown","discover_time",JSON.toJSONString(gz001));
|
||||
|
||||
log.info("故障信息"+gz001.getVin()+"发送到RabbitMQ");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue