Commit fbad78bb authored by alex yao's avatar alex yao

fix

parent 4888d1bd
...@@ -273,6 +273,10 @@ public class AirportConsumerServiceImpl implements AirportConsumerService { ...@@ -273,6 +273,10 @@ public class AirportConsumerServiceImpl implements AirportConsumerService {
String firstFileContent = getFileContentByOCRCache(groupedByTemplateCode, firstFileCode); String firstFileContent = getFileContentByOCRCache(groupedByTemplateCode, firstFileCode);
String secondFileContent = getFileContentByOCRCache(groupedByTemplateCode, secondFileCode); String secondFileContent = getFileContentByOCRCache(groupedByTemplateCode, secondFileCode);
if (StringUtils.isBlank(firstFileContent) || StringUtils.isBlank(secondFileContent)) {
return;
}
// 执行工作流 // 执行工作流
Map<String, Object> inputs = new LinkedHashMap<>(); Map<String, Object> inputs = new LinkedHashMap<>();
inputs.put("rule", ruleDesc); inputs.put("rule", ruleDesc);
...@@ -323,6 +327,9 @@ public class AirportConsumerServiceImpl implements AirportConsumerService { ...@@ -323,6 +327,9 @@ public class AirportConsumerServiceImpl implements AirportConsumerService {
private String getFileContentByOCRCache(Map<String, List<BizAiDataAuditFileEntity>> groupedByTemplateCode private String getFileContentByOCRCache(Map<String, List<BizAiDataAuditFileEntity>> groupedByTemplateCode
, String fileCode) { , String fileCode) {
String fileContent = StringUtils.EMPTY; String fileContent = StringUtils.EMPTY;
if (!groupedByTemplateCode.containsKey(fileCode) || groupedByTemplateCode.get(fileCode).size() == 0) {
return fileContent;
}
BizAiDataAuditFileEntity auditFileEntity = groupedByTemplateCode.get(fileCode).get(0); BizAiDataAuditFileEntity auditFileEntity = groupedByTemplateCode.get(fileCode).get(0);
BizFileOcrCacheEntity fileOcrCacheEntity = bizFileOcrCacheService.findByMd5(auditFileEntity.getMd5()); BizFileOcrCacheEntity fileOcrCacheEntity = bizFileOcrCacheService.findByMd5(auditFileEntity.getMd5());
String mdFileURL = fileOcrCacheEntity.getMdFileUrl(); String mdFileURL = fileOcrCacheEntity.getMdFileUrl();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment