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
a2aefa4e
Commit
a2aefa4e
authored
Jun 04, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
cf73f626
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
TechniqueSkuServiceImpl.java
...plication/product/serve/impl/TechniqueSkuServiceImpl.java
+6
-4
No files found.
src/main/java/com/gogirl/application/product/serve/impl/TechniqueSkuServiceImpl.java
View file @
a2aefa4e
...
@@ -68,25 +68,27 @@ public class TechniqueSkuServiceImpl extends ServiceImpl<TechniqueSkuMapper, Tec
...
@@ -68,25 +68,27 @@ public class TechniqueSkuServiceImpl extends ServiceImpl<TechniqueSkuMapper, Tec
@Override
@Override
public
List
<
TechniqueCategory
>
queryTechniqueCategoryAggregate
(
Integer
scheduleServeId
)
{
public
List
<
TechniqueCategory
>
queryTechniqueCategoryAggregate
(
Integer
scheduleServeId
)
{
List
<
TechniqueSku
>
techniqueSkuList
=
this
.
list
();
LambdaQueryWrapper
<
TechniqueCategory
>
wrapper
=
new
LambdaQueryWrapper
<>();
if
(
scheduleServeId
!=
null
)
{
ScheduleServe
scheduleServe
=
scheduleServeMapper
.
selectById
(
scheduleServeId
);
ScheduleServe
scheduleServe
=
scheduleServeMapper
.
selectById
(
scheduleServeId
);
BaseServe
baseServe
=
baseServeMapper
.
selectById
(
scheduleServe
.
getServeId
());
BaseServe
baseServe
=
baseServeMapper
.
selectById
(
scheduleServe
.
getServeId
());
ScheduleServe
subRemoveArmor
=
scheduleServeMapper
.
subRemoveArmor
(
scheduleServeId
,
scheduleServe
.
getSchId
());
ScheduleServe
subRemoveArmor
=
scheduleServeMapper
.
subRemoveArmor
(
scheduleServeId
,
scheduleServe
.
getSchId
());
ScheduleServe
subExtend
=
scheduleServeMapper
.
subExtend
(
scheduleServeId
,
scheduleServe
.
getSchId
());
ScheduleServe
subExtend
=
scheduleServeMapper
.
subExtend
(
scheduleServeId
,
scheduleServe
.
getSchId
());
List
<
TechniqueSku
>
techniqueSkuList
=
this
.
list
();
LambdaQueryWrapper
<
TechniqueCategory
>
wrapper
=
new
LambdaQueryWrapper
<>();
wrapper
.
eq
(
TechniqueCategory:
:
getServiceTypeId
,
baseServe
.
getTypeId
());
wrapper
.
eq
(
TechniqueCategory:
:
getServiceTypeId
,
baseServe
.
getTypeId
());
if
(
subRemoveArmor
!=
null
)
{
if
(
subRemoveArmor
!=
null
)
{
wrapper
.
ne
(
TechniqueCategory:
:
getName
,
TECH_REMOVE_ARMOR
);
wrapper
.
ne
(
TechniqueCategory:
:
getName
,
TECH_REMOVE_ARMOR
);
}
}
if
(
subExtend
!=
null
)
{
if
(
subExtend
!=
null
)
{
wrapper
.
ne
(
TechniqueCategory:
:
getName
,
TECH_EXTEND
);
wrapper
.
ne
(
TechniqueCategory:
:
getName
,
TECH_EXTEND
);
}
}
}
List
<
TechniqueCategory
>
techniqueCategoryList
=
techniqueCategoryMapper
.
selectList
(
wrapper
);
List
<
TechniqueCategory
>
techniqueCategoryList
=
techniqueCategoryMapper
.
selectList
(
wrapper
);
Map
<
Integer
,
List
<
TechniqueSku
>>
integerListMap
=
techniqueSkuList
.
stream
().
collect
(
Collectors
.
groupingBy
(
TechniqueSku:
:
getTechniqueCategoryId
));
Map
<
Integer
,
List
<
TechniqueSku
>>
integerListMap
=
techniqueSkuList
.
stream
().
collect
(
Collectors
.
groupingBy
(
TechniqueSku:
:
getTechniqueCategoryId
));
techniqueCategoryList
.
forEach
(
techniqueCategory
->
{
techniqueCategoryList
.
forEach
(
techniqueCategory
->
{
...
...
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