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
0
Merge Requests
0
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
11d49098
Commit
11d49098
authored
Jul 01, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 文本比对接口异常
parent
041ed98b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
TextDiffRest.java
src/main/java/cn/com/poc/covenant/rest/TextDiffRest.java
+3
-0
TextDiffRestImpl.java
.../java/cn/com/poc/covenant/rest/impl/TextDiffRestImpl.java
+1
-1
No files found.
src/main/java/cn/com/poc/covenant/rest/TextDiffRest.java
View file @
11d49098
...
@@ -46,6 +46,9 @@ public interface TextDiffRest extends BaseRest {
...
@@ -46,6 +46,9 @@ public interface TextDiffRest extends BaseRest {
/**
/**
* 查询任务状态
* 查询任务状态
*
* @param taskId 任务ID
* @return 任务状态 RUN-执行中 FAIL-失败 END-执行成功
*/
*/
String
queryTextDiffTask
(
@RequestParam
String
taskId
)
throws
Exception
;
String
queryTextDiffTask
(
@RequestParam
String
taskId
)
throws
Exception
;
...
...
src/main/java/cn/com/poc/covenant/rest/impl/TextDiffRestImpl.java
View file @
11d49098
...
@@ -42,7 +42,7 @@ public class TextDiffRestImpl implements TextDiffRest {
...
@@ -42,7 +42,7 @@ public class TextDiffRestImpl implements TextDiffRest {
Assert
.
notNull
(
startTextDiffDto
.
getCompareFileURL
(),
"Compare file cannot be null"
);
Assert
.
notNull
(
startTextDiffDto
.
getCompareFileURL
(),
"Compare file cannot be null"
);
Assert
.
notNull
(
startTextDiffDto
.
getParam
(),
"Param cannot be null"
);
Assert
.
notNull
(
startTextDiffDto
.
getParam
(),
"Param cannot be null"
);
UserBaseEntity
userBaseEntity
=
BlContext
.
getCurrentUserNotException
();
UserBaseEntity
userBaseEntity
=
BlContext
.
getCurrentUserNotException
();
if
(
userBaseEntity
!
=
null
)
{
if
(
userBaseEntity
=
=
null
)
{
throw
new
BusinessException
(
"用户未登录"
);
throw
new
BusinessException
(
"用户未登录"
);
}
}
return
baiduTextDiffService
.
textDiff
(
startTextDiffDto
.
getBaseFileURL
(),
startTextDiffDto
.
getCompareFileURL
(),
startTextDiffDto
.
getParam
(),
userBaseEntity
.
getUserId
());
return
baiduTextDiffService
.
textDiff
(
startTextDiffDto
.
getBaseFileURL
(),
startTextDiffDto
.
getCompareFileURL
(),
startTextDiffDto
.
getParam
(),
userBaseEntity
.
getUserId
());
...
...
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