Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-webapp-plug
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
base_platform_enterprise
gic-webapp-plug
Commits
fdff678a
Commit
fdff678a
authored
Nov 22, 2019
by
xub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
format
parent
a96099c5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
GoodsCategoryController.java
...ic/plug/web/controller/goods/GoodsCategoryController.java
+2
-2
GoodsPropertyController.java
...ic/plug/web/controller/goods/GoodsPropertyController.java
+2
-1
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsCategoryController.java
View file @
fdff678a
...
...
@@ -33,7 +33,7 @@ public class GoodsCategoryController {
if
(
goodsDomainId
==
null
||
StringUtils
.
isBlank
(
channelCode
))
{
return
RestResponse
.
failure
(
ErrorCode
.
UNKNOW_ERROR
.
getCode
(),
"参数不全"
);
}
ServiceResponse
<
List
<
CategoryDTO
>>
serviceResponse
=
categoryApiSerivce
.
listParentAll
(
channelCode
,
goodsDomainId
);
ServiceResponse
<
List
<
CategoryDTO
>>
serviceResponse
=
categoryApiSerivce
.
listParentAll
(
channelCode
,
goodsDomainId
,
null
);
List
<
CategoryDTO
>
result
=
serviceResponse
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
result
))
{
return
RestResponse
.
success
();
...
...
@@ -52,7 +52,7 @@ public class GoodsCategoryController {
if
(
specParentId
==
null
||
StringUtils
.
isBlank
(
channelCode
))
{
return
RestResponse
.
failure
(
ErrorCode
.
UNKNOW_ERROR
.
getCode
(),
"参数不全"
);
}
ServiceResponse
<
List
<
CategoryDTO
>>
serviceResponse
=
categoryApiSerivce
.
listChildAll
(
channelCode
,
specParentId
);
ServiceResponse
<
List
<
CategoryDTO
>>
serviceResponse
=
categoryApiSerivce
.
listChildAll
(
channelCode
,
specParentId
,
null
);
List
<
CategoryDTO
>
result
=
serviceResponse
.
getResult
();
if
(
CollectionUtils
.
isEmpty
(
result
))
{
return
RestResponse
.
success
();
...
...
src/main/java/com/gic/plug/web/controller/goods/GoodsPropertyController.java
View file @
fdff678a
...
...
@@ -3,6 +3,7 @@ package com.gic.plug.web.controller.goods;
import
java.util.ArrayList
;
import
java.util.List
;
import
com.gic.goods.api.dto.FullPropertyDTO
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RestController
;
...
...
@@ -38,7 +39,7 @@ public class GoodsPropertyController {
arrayList
.
add
(
Constant
.
PROPERTY_TYPE_PERCENT
);
arrayList
.
add
(
Constant
.
PROPERTY_TYPE_NUM
);
arrayList
.
add
(
Constant
.
PROPERTY_TYPE_REAL_NUM
);
ServiceResponse
<
Page
<
PropertyDTO
>>
serviceResponse
=
propertyApiService
.
findPropertyExceptType
(
currentPage
,
pageSize
,
goodsDomainId
,
arrayList
,
search
);
ServiceResponse
<
Page
<
Full
PropertyDTO
>>
serviceResponse
=
propertyApiService
.
findPropertyExceptType
(
currentPage
,
pageSize
,
goodsDomainId
,
arrayList
,
search
);
if
(!
serviceResponse
.
isSuccess
())
{
return
RestResponse
.
failure
(
serviceResponse
.
getCode
(),
serviceResponse
.
getMessage
());
}
...
...
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