|
|
|
@ -251,10 +251,7 @@ 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) {
|
|
|
|
|
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);
|
|
|
|
|
OcrIdentify ocrIdentify = ocrIdentifyService.getById(id);
|
|
|
|
|
if (ocrIdentify == null) {
|
|
|
|
|
return Result.error("未找到对应数据");
|
|
|
|
|
}
|
|
|
|
@ -279,7 +276,9 @@ public class OcrIdentifyController extends JeecgController<OcrIdentify, IOcrIden
|
|
|
|
|
}
|
|
|
|
|
OcrRuleCheckVo ocrRuleCheckVo = ocrRuleCheckMap.get(ocrIdentify.getRuleCheck());
|
|
|
|
|
if (ocrRuleCheckVo!=null && StringUtils.isNotBlank(ocrRuleCheckVo.getMetadataConfigId())) {
|
|
|
|
|
ocrIdentify.setRuleCheck_dictText(ocrRuleCheckVo.getConfigName());
|
|
|
|
|
ocrIdentify.setMetadataConfigId(ocrRuleCheckVo.getMetadataConfigId());
|
|
|
|
|
ocrIdentify.setMetadataConfigId_dictText(ocrRuleCheckVo.getMetadataConfigName());
|
|
|
|
|
OcrMetadataConfigVo ocrMetadataConfigVo = metadataConfigMap.get(ocrRuleCheckVo.getMetadataConfigId());
|
|
|
|
|
if (ocrMetadataConfigVo!=null) {
|
|
|
|
|
ocrIdentify.setTaskType(ocrMetadataConfigVo.getTaskType());
|
|
|
|
|