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

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

Loading…
Cancel
Save