Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
site-project
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
site-project
Commits
d60c6f81
Commit
d60c6f81
authored
Dec 16, 2024
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
文章咨询三级分类
parent
6f2fdc05
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
cloud-site-api/src/main/java/com/yizhi/site/application/vo/domain/InformationVo.java
+3
-0
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/DataClassificationServiceImpl.java
+11
-0
No files found.
cloud-site-api/src/main/java/com/yizhi/site/application/vo/domain/InformationVo.java
View file @
d60c6f81
...
...
@@ -93,6 +93,9 @@ public class InformationVo{
@ApiModelProperty
(
value
=
"上传的pdf文件名"
)
private
String
pdfFileName
;
@ApiModelProperty
(
value
=
"文章第三层类型"
)
private
Long
typeThree
;
protected
Serializable
pkVal
()
{
return
this
.
id
;
...
...
cloud-site-service/src/main/java/com/yizhi/site/application/service/impl/DataClassificationServiceImpl.java
View file @
d60c6f81
...
...
@@ -128,6 +128,17 @@ public class DataClassificationServiceImpl extends ServiceImpl<DataClassificatio
if
(
CollectionUtil
.
isNotEmpty
(
selectByMap
))
{
for
(
DataClassification
d
:
selectByMap
)
{
DataClassificationVo
entityVo
=
new
DataClassificationVo
();
wrapper
.
eq
(
"parent_id"
,
entityVo
.
getId
());
List
<
DataClassification
>
selectChildByMap
=
dataClassificationService
.
selectList
(
wrapper
);
if
(
CollectionUtil
.
isNotEmpty
(
selectChildByMap
)){
List
<
DataClassificationVo
>
selectChildVoByMap
=
new
ArrayList
<>();
for
(
DataClassification
s
:
selectChildByMap
)
{
DataClassificationVo
entityChildVo
=
new
DataClassificationVo
();
BeanUtils
.
copyProperties
(
s
,
entityChildVo
);
selectChildVoByMap
.
add
(
entityVo
);
}
entityVo
.
setChildClassifyNews
(
selectChildVoByMap
);
}
BeanUtils
.
copyProperties
(
d
,
entityVo
);
selectVoByMap
.
add
(
entityVo
);
}
...
...
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