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
ae468530
Commit
ae468530
authored
Jan 15, 2020
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix
parent
bc7edf13
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
AppletConfigGoodsController.java
...lug/web/controller/goods/AppletConfigGoodsController.java
+9
-1
MallGoodsCordVO.java
src/main/java/com/gic/plug/web/vo/goods/MallGoodsCordVO.java
+1
-0
No files found.
src/main/java/com/gic/plug/web/controller/goods/AppletConfigGoodsController.java
View file @
ae468530
...
...
@@ -13,6 +13,7 @@ import com.alibaba.fastjson.JSONObject;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.goods.api.dto.GoodsCordDTO
;
import
com.gic.goods.api.dto.SpecCordDTO
;
import
com.gic.goods.api.service.CordApiService
;
import
com.gic.goods.api.util.Constant
;
...
...
@@ -26,6 +27,7 @@ import com.gic.search.business.api.dto.ESResponseQueryBatchDTO;
import
com.gic.search.business.api.service.EsBusinessOperaApiService
;
import
com.gic.search.business.api.utils.QueryConditionAssemblyUtil
;
import
com.gic.widget.screening.api.service.EsScreeningSearchService
;
import
com.google.common.base.Joiner
;
/**
* 商城装修选择器
...
...
@@ -77,8 +79,14 @@ public class AppletConfigGoodsController {
Long
areaId
=
shopDTOServiceResponse
.
getResult
().
getAreaId
();
JSONObject
cordJSON
=
null
;
if
(
cordId
!=
null
)
{
ServiceResponse
<
List
<
GoodsCordDTO
>>
serviceResponse
=
cordApiService
.
listChildAll
(
cordId
);
List
<
Long
>
cordList
=
new
ArrayList
<>();
for
(
GoodsCordDTO
goodsCord
:
serviceResponse
.
getResult
())
{
cordList
.
add
(
goodsCord
.
getSpecCordId
());
}
cordList
.
add
(
cordId
);
cordJSON
=
QueryConditionAssemblyUtil
.
createSimpleQueryNode
(
"cordId"
,
OperateEnum
.
OPERATE_CONTAIN
,
search
);
OperateEnum
.
OPERATE_CONTAIN
,
Joiner
.
on
(
" "
).
join
(
cordList
)
);
}
ServiceResponse
<
ESResponseQueryBatchDTO
>
serviceResponse
=
searchGoods
(
currentPage
,
pageSize
,
areaId
,
search
,
Constant
.
CHANNEL_CODE_MALL
,
cordJSON
);
...
...
src/main/java/com/gic/plug/web/vo/goods/MallGoodsCordVO.java
View file @
ae468530
...
...
@@ -30,6 +30,7 @@ public class MallGoodsCordVO {
/**
* 父级分类ID
*/
@JsonFormat
(
shape
=
JsonFormat
.
Shape
.
STRING
)
private
Long
specParentId
;
/**
...
...
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