This commit is contained in:
PQZ 2024-10-30 14:33:50 +08:00
commit 4eec824adf

View File

@ -2,6 +2,7 @@ package cn.iocoder.yudao.module.custom.controller.admin;
import cn.iocoder.yudao.module.custom.entity.CarMain; import cn.iocoder.yudao.module.custom.entity.CarMain;
import cn.iocoder.yudao.module.custom.service.CarMainService; import cn.iocoder.yudao.module.custom.service.CarMainService;
import cn.iocoder.yudao.module.custom.service.UserCarService;
import cn.iocoder.yudao.module.custom.vo.CarMainReqVO; import cn.iocoder.yudao.module.custom.vo.CarMainReqVO;
import cn.iocoder.yudao.module.custom.vo.CarMainRespVO; import cn.iocoder.yudao.module.custom.vo.CarMainRespVO;
import cn.iocoder.yudao.module.custom.vo.CustomerMainSaveReqVO; import cn.iocoder.yudao.module.custom.vo.CustomerMainSaveReqVO;
@ -51,6 +52,9 @@ public class CarMainController {
@Autowired @Autowired
private BusiLabelService busiLabelService; private BusiLabelService busiLabelService;
@Resource
private UserCarService userCarService;
/** /**
* 创建车辆信息 * 创建车辆信息
* *
@ -214,4 +218,16 @@ public class CarMainController {
CarMain one = carMainService.getOne(new LambdaQueryWrapper<CarMain>().eq(CarMain::getLicenseNumber, carMain.getLicenseNumber())); CarMain one = carMainService.getOne(new LambdaQueryWrapper<CarMain>().eq(CarMain::getLicenseNumber, carMain.getLicenseNumber()));
return success(one); return success(one);
} }
/**
* OCR识别
* @author vinjor-M
* @date 16:58 2024/10/11
* @param imagePath 公网图片地址
* @return cn.iocoder.yudao.framework.common.pojo.CommonResult<?>
**/
@PostMapping("/vehicleLicenseOCR")
public CommonResult<?> vehicleLicenseOCR(@RequestBody String imagePath) throws Exception {
return CommonResult.success(userCarService.vehicleLicenseOCR(imagePath));
}
} }