Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-api
Commits
fbad78bb
Commit
fbad78bb
authored
Oct 31, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
4888d1bd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
AirportConsumerServiceImpl.java
.../poc/message/service/impl/AirportConsumerServiceImpl.java
+7
-0
No files found.
src/main/java/cn/com/poc/message/service/impl/AirportConsumerServiceImpl.java
View file @
fbad78bb
...
@@ -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
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment