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
139e4906
Commit
139e4906
authored
Aug 22, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix[数据库]: 获取示例数据库
parent
8be03092
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
DatabaseRestImpl.java
...java/cn/com/poc/knowledge/rest/impl/DatabaseRestImpl.java
+3
-3
No files found.
src/main/java/cn/com/poc/knowledge/rest/impl/DatabaseRestImpl.java
View file @
139e4906
...
...
@@ -80,7 +80,7 @@ public class DatabaseRestImpl implements DatabaseRest {
Long
userId
=
userBaseEntity
.
getUserId
();
BizKnowledgeDatabaseEntity
bizKnowledgeDatabaseEntity
=
bizKnowledgeDatabaseService
.
get
(
id
.
longValue
());
if
(
bizKnowledgeDatabaseEntity
==
null
||
!
bizKnowledgeDatabaseEntity
.
getMemberId
().
equals
(
userId
.
intValue
(
)))
{
if
(
bizKnowledgeDatabaseEntity
==
null
||
(!
bizKnowledgeDatabaseEntity
.
getMemberId
().
equals
(
0
)
&&
!
bizKnowledgeDatabaseEntity
.
getMemberId
().
equals
(
userId
.
intValue
()
)))
{
throw
new
BusinessException
(
"no database found"
);
}
BizKnowledgeDatabaseDto
bizKnowledgeDatabaseDto
=
BizKnowledgeDatabaseConvert
.
entityToDto
(
bizKnowledgeDatabaseEntity
);
...
...
@@ -236,13 +236,13 @@ public class DatabaseRestImpl implements DatabaseRest {
}
@Override
public
DatabaseTableDataDto
getTableData
(
DatabaseTableDataResponseDto
dto
,
PagingInfo
pagingInfo
)
{
public
DatabaseTableDataDto
getTableData
(
DatabaseTableDataResponseDto
dto
,
PagingInfo
pagingInfo
)
{
Assert
.
notNull
(
dto
.
getId
(),
"id can not be null"
);
Assert
.
notNull
(
dto
.
getTable
(),
"table can not be null"
);
UserBaseEntity
userBaseEntity
=
BlContext
.
getCurrentUserNotException
();
Long
userId
=
userBaseEntity
.
getUserId
();
BizKnowledgeDatabaseEntity
bizKnowledgeDatabaseEntity
=
bizKnowledgeDatabaseService
.
get
(
dto
.
getId
().
longValue
());
if
(
bizKnowledgeDatabaseEntity
==
null
||
!
bizKnowledgeDatabaseEntity
.
getMemberId
().
equals
(
userId
.
intValue
(
)))
{
if
(
bizKnowledgeDatabaseEntity
==
null
||
(!
bizKnowledgeDatabaseEntity
.
getMemberId
().
equals
(
0
)
&&
!
bizKnowledgeDatabaseEntity
.
getMemberId
().
equals
(
userId
.
intValue
()
)))
{
throw
new
BusinessException
(
"no database found"
);
}
...
...
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