连接IoTDB数据库
parent
5da94ff43a
commit
340e270b89
|
@ -14,20 +14,15 @@ public class CarTypeController {
|
|||
private CarTypeService carTypeService;
|
||||
|
||||
|
||||
/**
|
||||
*车辆类型列表
|
||||
* @return
|
||||
*/
|
||||
@GetMapping("/selectCarTypeList")
|
||||
public Result selectCarTypeList(){
|
||||
return Result.success(carTypeService.selectCarTypeList());
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据类型ID获取车辆类型
|
||||
* @param carTypeId
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/findCarTypeById")
|
||||
public Result<CarType> findCarTypeById(@RequestParam Long carTypeId) {
|
||||
return Result.success(carTypeService.findCarTypeById(carTypeId));
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -45,15 +45,6 @@ public class SysCarController {
|
|||
}
|
||||
|
||||
|
||||
/**
|
||||
* 根据VIN码查询车信息
|
||||
* @param carVin
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/findCarByVin")
|
||||
public Result<SysCar> findCarByVin(@RequestParam String carVin){
|
||||
return Result.success(sysCarService.findCarByVin(carVin));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@ import java.util.List;
|
|||
public interface CarTypeService extends IService<CarType> {
|
||||
List<CarType> selectCarTypeList();
|
||||
|
||||
CarType findCarTypeById(Long carTypeId);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -20,8 +20,4 @@ private CarTypeMapper carTypeMapper;
|
|||
return carTypeMapper.selectList(carTypeQueryWrapper);
|
||||
}
|
||||
|
||||
@Override
|
||||
public CarType findCarTypeById(Long carTypeId) {
|
||||
return carTypeMapper.findCarTypeById(carTypeId);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue