master
parent
93a2ec4fba
commit
9b062fcf42
|
@ -12,7 +12,7 @@ public class GetTopicReq {
|
||||||
/**
|
/**
|
||||||
* 车辆VIN
|
* 车辆VIN
|
||||||
*/
|
*/
|
||||||
private String carVin;
|
private String vin;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 时间戳
|
* 时间戳
|
||||||
|
|
|
@ -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("车辆信息不存在");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue