master
周文涛 2 years ago
parent d5589df394
commit 110e440311

@ -251,7 +251,10 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
@ApiOperation(value = "ocr识别-通过id查询", notes = "ocr识别-通过id查询")
@GetMapping(value = "/queryById")
public Result<OcrIdentify> queryById(@RequestParam(name = "id", required = true) String id) {
OcrIdentify ocrIdentify = ocrIdentifyService.getById(id);
Map<String, String[]> parameterMap=new HashMap<>();
parameterMap.put("id",new String[]{id});
QueryWrapper<OcrIdentify> queryWrapper = QueryGenerator.initQueryWrapper(new OcrIdentify(),parameterMap);
OcrIdentify ocrIdentify = ocrIdentifyService.getOne(queryWrapper);
if (ocrIdentify == null) {
return Result.error("未找到对应数据");
}

Loading…
Cancel
Save