连接IoTDB数据库

dev
Number7 2024-09-22 09:29:43 +08:00
parent 5da94ff43a
commit 340e270b89
4 changed files with 5 additions and 23 deletions

View File

@ -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));
}

View File

@ -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));
}
}

View File

@ -10,6 +10,6 @@ import java.util.List;
public interface CarTypeService extends IService<CarType> {
List<CarType> selectCarTypeList();
CarType findCarTypeById(Long carTypeId);
}

View File

@ -20,8 +20,4 @@ private CarTypeMapper carTypeMapper;
return carTypeMapper.selectList(carTypeQueryWrapper);
}
@Override
public CarType findCarTypeById(Long carTypeId) {
return carTypeMapper.findCarTypeById(carTypeId);
}
}