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
c8771f2d
Commit
c8771f2d
authored
Jun 12, 2020
by
huluobin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自带款式查询接口修改
parent
96fdee48
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
9 deletions
+18
-9
ITechniqueSkuService.java
...ogirl/application/product/serve/ITechniqueSkuService.java
+2
-1
TechniqueSkuServiceImpl.java
...plication/product/serve/impl/TechniqueSkuServiceImpl.java
+13
-6
TechniqueSkuController.java
...girl/interfaces/product/serve/TechniqueSkuController.java
+3
-2
No files found.
src/main/java/com/gogirl/application/product/serve/ITechniqueSkuService.java
View file @
c8771f2d
...
@@ -34,5 +34,6 @@ public interface ITechniqueSkuService extends IService<TechniqueSku> {
...
@@ -34,5 +34,6 @@ public interface ITechniqueSkuService extends IService<TechniqueSku> {
List
<
TechniqueCategory
>
queryTechniqueCategoryAggregate
(
@Null
Integer
scheduleServeId
,
List
<
TechniqueCategory
>
queryTechniqueCategoryAggregate
(
@Null
Integer
scheduleServeId
,
@Null
Integer
orderServeId
);
@Null
Integer
orderServeId
,
@Null
Integer
serveId
);
}
}
src/main/java/com/gogirl/application/product/serve/impl/TechniqueSkuServiceImpl.java
View file @
c8771f2d
...
@@ -73,16 +73,23 @@ public class TechniqueSkuServiceImpl extends ServiceImpl<TechniqueSkuMapper, Tec
...
@@ -73,16 +73,23 @@ public class TechniqueSkuServiceImpl extends ServiceImpl<TechniqueSkuMapper, Tec
@Override
@Override
public
List
<
TechniqueCategory
>
queryTechniqueCategoryAggregate
(
@Null
Integer
scheduleServeId
,
public
List
<
TechniqueCategory
>
queryTechniqueCategoryAggregate
(
@Null
Integer
scheduleServeId
,
@Null
Integer
orderServeId
)
{
@Null
Integer
orderServeId
,
@Null
Integer
serveId
)
{
List
<
TechniqueSku
>
techniqueSkuList
=
this
.
list
();
List
<
TechniqueSku
>
techniqueSkuList
=
this
.
list
();
LambdaQueryWrapper
<
TechniqueCategory
>
wrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
TechniqueCategory
>
wrapper
=
new
LambdaQueryWrapper
<>();
if
(
serveId
!=
null
)
{
BaseServe
baseServe
=
baseServeMapper
.
selectById
(
serveId
);
wrapper
.
eq
(
TechniqueCategory:
:
getServiceTypeId
,
baseServe
.
getTypeId
());
}
if
(
scheduleServeId
!=
null
)
{
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());
wrapper
.
eq
(
TechniqueCategory:
:
getServiceTypeId
,
baseServe
.
getTypeId
());
//
wrapper.eq(TechniqueCategory::getServiceTypeId, baseServe.getTypeId());
//
ScheduleServe
subRemoveArmor
=
scheduleServeMapper
.
subRemoveArmor
(
scheduleServe
.
getServeId
(),
scheduleServe
.
getSchId
());
ScheduleServe
subRemoveArmor
=
scheduleServeMapper
.
subRemoveArmor
(
scheduleServe
.
getServeId
(),
scheduleServe
.
getSchId
());
ScheduleServe
subExtend
=
scheduleServeMapper
.
subExtend
(
scheduleServe
.
getServeId
(),
scheduleServe
.
getSchId
());
ScheduleServe
subExtend
=
scheduleServeMapper
.
subExtend
(
scheduleServe
.
getServeId
(),
scheduleServe
.
getSchId
());
...
@@ -97,9 +104,9 @@ public class TechniqueSkuServiceImpl extends ServiceImpl<TechniqueSkuMapper, Tec
...
@@ -97,9 +104,9 @@ public class TechniqueSkuServiceImpl extends ServiceImpl<TechniqueSkuMapper, Tec
if
(
orderServeId
!=
null
)
{
if
(
orderServeId
!=
null
)
{
OrderServe
orderServe
=
orderServeMapper
.
selectById
(
orderServeId
);
OrderServe
orderServe
=
orderServeMapper
.
selectById
(
orderServeId
);
BaseServe
baseServe
=
baseServeMapper
.
selectById
(
orderServe
.
getServeId
());
//
BaseServe baseServe = baseServeMapper.selectById(orderServe.getServeId());
wrapper
.
eq
(
TechniqueCategory:
:
getServiceTypeId
,
baseServe
.
getTypeId
());
//
wrapper.eq(TechniqueCategory::getServiceTypeId, baseServe.getTypeId());
OrderServe
subRemoveArmor
=
orderServeMapper
.
subRemoveArmor
(
orderServe
.
getServeId
(),
orderServe
.
getOrderId
());
OrderServe
subRemoveArmor
=
orderServeMapper
.
subRemoveArmor
(
orderServe
.
getServeId
(),
orderServe
.
getOrderId
());
OrderServe
subExtend
=
orderServeMapper
.
subExtend
(
orderServe
.
getServeId
(),
orderServe
.
getOrderId
());
OrderServe
subExtend
=
orderServeMapper
.
subExtend
(
orderServe
.
getServeId
(),
orderServe
.
getOrderId
());
...
...
src/main/java/com/gogirl/interfaces/product/serve/TechniqueSkuController.java
View file @
c8771f2d
...
@@ -57,8 +57,9 @@ public class TechniqueSkuController {
...
@@ -57,8 +57,9 @@ public class TechniqueSkuController {
@ApiOperation
(
"查询所有款式技法分组"
)
@ApiOperation
(
"查询所有款式技法分组"
)
@GetMapping
(
"/technician/techniqueSku/queryTechniqueCategoryAggregate"
)
@GetMapping
(
"/technician/techniqueSku/queryTechniqueCategoryAggregate"
)
public
JsonResult
<
List
<
TechniqueCategory
>>
queryTechniqueCategoryAggregate
(
@RequestParam
(
required
=
false
)
Integer
scheduleServeId
,
public
JsonResult
<
List
<
TechniqueCategory
>>
queryTechniqueCategoryAggregate
(
@RequestParam
(
required
=
false
)
Integer
scheduleServeId
,
@RequestParam
(
required
=
false
)
Integer
orderServeId
)
{
@RequestParam
(
required
=
false
)
Integer
orderServeId
,
List
<
TechniqueCategory
>
techniqueCategoryList
=
techniqueSkuService
.
queryTechniqueCategoryAggregate
(
scheduleServeId
,
orderServeId
);
@RequestParam
(
required
=
false
)
Integer
serveId
)
{
List
<
TechniqueCategory
>
techniqueCategoryList
=
techniqueSkuService
.
queryTechniqueCategoryAggregate
(
scheduleServeId
,
orderServeId
,
serveId
);
return
JsonResult
.
success
(
techniqueCategoryList
);
return
JsonResult
.
success
(
techniqueCategoryList
);
}
}
...
...
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