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
f7561fe1
Commit
f7561fe1
authored
Feb 13, 2025
by
alex yao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 知识库文档删除,知识库状态变更
parent
a3705d4f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
BizKnowledgeInfoServiceImpl.java
...c/knowledge/service/impl/BizKnowledgeInfoServiceImpl.java
+3
-5
No files found.
src/main/java/cn/com/poc/knowledge/service/impl/BizKnowledgeInfoServiceImpl.java
View file @
f7561fe1
...
...
@@ -67,7 +67,7 @@ public class BizKnowledgeInfoServiceImpl extends BaseServiceImpl
return
BizKnowledgeInfoConvert
.
modelToEntity
(
saveModel
);
}
public
BizKnowledgeInfoEntity
update
(
BizKnowledgeInfoEntity
entity
){
public
BizKnowledgeInfoEntity
update
(
BizKnowledgeInfoEntity
entity
)
{
Assert
.
notNull
(
entity
);
Assert
.
notNull
(
entity
.
getId
(),
"update pk can not be null"
);
BizKnowledgeInfoModel
model
=
this
.
repository
.
get
(
entity
.
getId
());
...
...
@@ -113,7 +113,7 @@ public class BizKnowledgeInfoServiceImpl extends BaseServiceImpl
@Override
public
List
<
KnowledgeInfosQueryItem
>
knowledgeInfos
(
KnowledgeInfosQueryCondition
condition
,
PagingInfo
pagingInfo
)
throws
Exception
{
return
this
.
sqlDao
.
query
(
condition
,
KnowledgeInfosQueryItem
.
class
,
"CREATED_TIME DESC"
,
pagingInfo
);
return
this
.
sqlDao
.
query
(
condition
,
KnowledgeInfosQueryItem
.
class
,
"CREATED_TIME DESC"
,
pagingInfo
);
}
@Override
...
...
@@ -125,9 +125,7 @@ public class BizKnowledgeInfoServiceImpl extends BaseServiceImpl
List
<
String
>
kdIdList
=
JsonUtils
.
deSerialize
(
kdIds
,
new
TypeReference
<
List
<
String
>>()
{
}.
getType
());
kdIdList
.
remove
(
kdId
.
toString
());
kdIds
=
JsonUtils
.
serialize
(
kdIdList
.
stream
().
map
(
Integer:
:
valueOf
).
collect
(
Collectors
.
toList
()));
kdIds
=
JsonUtils
.
serialize
(
kdIdList
.
stream
().
map
(
Integer:
:
valueOf
).
distinct
().
collect
(
Collectors
.
toList
()));
bizKnowledgeInfoModel
.
setKdIds
(
kdIds
);
this
.
repository
.
save
(
bizKnowledgeInfoModel
);
}
...
...
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