master
周文涛 2 years ago
parent ee81400249
commit 093a9fbb03

@ -310,7 +310,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
@Async
public void updateTaskResultInfo(String id){
OcrIdentifyVo ocrIdentifyVo = this.findById(id);
/*List<OcrIdentifyDetail> identifyDetails = ocrIdentifyDetailService.listByIdentifyId(ocrIdentifyVo.getId());
List<OcrIdentifyDetail> identifyDetails = ocrIdentifyDetailService.listByIdentifyId(ocrIdentifyVo.getId());
for (OcrIdentifyDetail identifyDetail : identifyDetails) {
JSONObject semanticResult = JSONObject.parseObject(identifyDetail.getSemanticResult());
String imgPath = identifyDetail.getImageUrl();
@ -404,7 +404,7 @@ public class OcrIdentifyServiceImpl extends ServiceImpl<OcrIdentifyMapper, OcrId
identifyDetail.setDataStructured(JSONArray.toJSONString(ocrResultList));//数据结构化
ocrIdentifyDetailService.updateById(identifyDetail);
}
}*/
}
//=======规则检查配置
OcrRuleCheckVo ocrRuleCheckVo = ocrIdentifyVo.getOcrRuleCheckVo();
Map<String, Map<String, String>> configRuleTypeMap = ocrRuleCheckVo.getConfigRuleTypeMap();

@ -157,6 +157,7 @@ public class OcrRuleCheckServiceImpl extends ServiceImpl<OcrRuleCheckMapper, Ocr
}
configRuleMap.put(split1[0],split1[1]);
}
ocrRuleCheckVo.setConfigRuleMap(configRuleMap);
configRuleTypeMap.put(OcrConstant.ruleCheckSplitChar,configRuleMap);
}
ocrRuleCheckVo.setConfigRuleTypeMap(configRuleTypeMap);

Loading…
Cancel
Save