master
fst1996 2023-11-30 15:09:15 +08:00
parent 93a2ec4fba
commit 9b062fcf42
2 changed files with 3 additions and 3 deletions

View File

@ -12,7 +12,7 @@ public class GetTopicReq {
/** /**
* VIN * VIN
*/ */
private String carVin; private String vin;
/** /**
* *

View File

@ -36,11 +36,11 @@ public class TopLineServiceImpl extends ServiceImpl<TopicCarMapper, TopicCar> i
@Override @Override
public String getTopic(GetTopicReq getTopicReq) { public String getTopic(GetTopicReq getTopicReq) {
try { try {
if (StringUtils.isEmpty(getTopicReq.getCarVin())){ if (StringUtils.isEmpty(getTopicReq.getVin())){
throw new ServiceException("车辆vin不能为空"); throw new ServiceException("车辆vin不能为空");
} }
//根据车辆vinId查询车辆信息 //根据车辆vinId查询车辆信息
TopicCar topicCar = carMapper.selectById(getTopicReq.getCarVin()); TopicCar topicCar = carMapper.selectById(getTopicReq.getVin());
if (StringUtils.isEmpty(new TopicCar[]{topicCar})){ if (StringUtils.isEmpty(new TopicCar[]{topicCar})){
throw new ServiceException("车辆信息不存在"); throw new ServiceException("车辆信息不存在");
} }