From 9b062fcf42149634ed9dc1a5231306bf835fd3dc Mon Sep 17 00:00:00 2001 From: fst1996 <2411194573@qq.com> Date: Thu, 30 Nov 2023 15:09:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E8=AF=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/god/base/domain/request/GetTopicReq.java | 2 +- .../com/god/base/server/service/impl/TopLineServiceImpl.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/car-base-common/src/main/java/com/god/base/domain/request/GetTopicReq.java b/car-base-common/src/main/java/com/god/base/domain/request/GetTopicReq.java index b47cd5f..8ad940a 100644 --- a/car-base-common/src/main/java/com/god/base/domain/request/GetTopicReq.java +++ b/car-base-common/src/main/java/com/god/base/domain/request/GetTopicReq.java @@ -12,7 +12,7 @@ public class GetTopicReq { /** * 车辆VIN */ - private String carVin; + private String vin; /** * 时间戳 diff --git a/car-base-server/src/main/java/com/god/base/server/service/impl/TopLineServiceImpl.java b/car-base-server/src/main/java/com/god/base/server/service/impl/TopLineServiceImpl.java index 4fd2c7f..36d93b5 100644 --- a/car-base-server/src/main/java/com/god/base/server/service/impl/TopLineServiceImpl.java +++ b/car-base-server/src/main/java/com/god/base/server/service/impl/TopLineServiceImpl.java @@ -36,11 +36,11 @@ public class TopLineServiceImpl extends ServiceImpl i @Override public String getTopic(GetTopicReq getTopicReq) { try { - if (StringUtils.isEmpty(getTopicReq.getCarVin())){ + if (StringUtils.isEmpty(getTopicReq.getVin())){ throw new ServiceException("车辆vin不能为空"); } //根据车辆vinId查询车辆信息 - TopicCar topicCar = carMapper.selectById(getTopicReq.getCarVin()); + TopicCar topicCar = carMapper.selectById(getTopicReq.getVin()); if (StringUtils.isEmpty(new TopicCar[]{topicCar})){ throw new ServiceException("车辆信息不存在"); }