Merge remote-tracking branch 'refs/remotes/origin/dev.template' into dev
commit
a3613176f3
|
@ -13,15 +13,10 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
|||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.log4j.Log4j2;
|
||||
import org.apache.kafka.clients.producer.KafkaProducer;
|
||||
import org.apache.kafka.clients.producer.ProducerRecord;
|
||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
||||
import org.springframework.amqp.rabbit.core.RabbitTemplate;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
import javax.security.auth.callback.Callback;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 车辆管理
|
||||
* @author sx
|
||||
|
@ -41,8 +36,6 @@ public class SysCarController {
|
|||
@Autowired
|
||||
private RabbitTemplate rabbitTemplate;
|
||||
|
||||
@Autowired
|
||||
private RedisService redisService;
|
||||
|
||||
@Autowired
|
||||
private KafkaProducer kafkaProducer;
|
||||
|
@ -111,8 +104,7 @@ public class SysCarController {
|
|||
@PostMapping("/findCarByVin")
|
||||
@Operation(summary = "根据VIN码查询车信息",description = "根据VIN码查询车信息")
|
||||
public Result<SysCar> findCarByVin(@RequestParam("carVin") String carVin){
|
||||
List<Object> carList = redisService.getCacheList("carList");
|
||||
log.info("从缓存查到的数据是:"+carList);
|
||||
|
||||
return Result.success(sysCarService.findCarByVin(carVin));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue