Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gogirl-miniapp-backend
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
huluobin
gogirl-miniapp-backend
Commits
4c802a0d
Commit
4c802a0d
authored
Aug 03, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
c7841f88
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
MallCategoryServiceImpl.java
...pplication/product/mall/impl/MallCategoryServiceImpl.java
+3
-6
No files found.
src/main/java/com/gogirl/application/product/mall/impl/MallCategoryServiceImpl.java
View file @
4c802a0d
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -4,7 +4,6 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
com.gogirl.application.product.mall.MallCategoryService
;
import
com.gogirl.application.product.mall.MallCategoryService
;
import
com.gogirl.domain.product.mall.MallCategory
;
import
com.gogirl.domain.product.mall.MallCategory
;
import
com.gogirl.infrastructure.common.util.ListUtil
;
import
com.gogirl.infrastructure.common.util.ListUtil
;
import
com.gogirl.infrastructure.common.util.SerializationUtils
;
import
com.gogirl.infrastructure.mapper.order.mall.CategoryMapper
;
import
com.gogirl.infrastructure.mapper.order.mall.CategoryMapper
;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -39,12 +38,10 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat
...
@@ -39,12 +38,10 @@ public class MallCategoryServiceImpl extends ServiceImpl<CategoryMapper, MallCat
for
(
MallCategory
mallCategory
:
list
)
{
for
(
MallCategory
mallCategory
:
list
)
{
if
(
mallCategory
.
getId
().
equals
(
subTreeId
))
{
if
(
mallCategory
.
getId
().
equals
(
subTreeId
))
{
if
(
ListUtil
.
isNotEmpty
(
mallCategory
.
getChildList
()))
{
if
(
ListUtil
.
isEmpty
(
mallCategory
.
getChildList
()))
{
List
<
MallCategory
>
clone
=
SerializationUtils
.
clone
((
new
ArrayList
<>(
mallCategory
.
getChildList
())));
return
new
ArrayList
<>();
if
(
ListUtil
.
isNotEmpty
(
clone
))
{
return
clone
;
}
}
}
return
mallCategory
.
getChildList
();
}
else
if
(
ListUtil
.
isNotEmpty
(
mallCategory
.
getChildList
()))
{
}
else
if
(
ListUtil
.
isNotEmpty
(
mallCategory
.
getChildList
()))
{
this
.
findSubTree
(
mallCategory
.
getChildList
(),
subTreeId
);
this
.
findSubTree
(
mallCategory
.
getChildList
(),
subTreeId
);
}
}
...
...
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