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
44027c61
Commit
44027c61
authored
Mar 31, 2020
by
何文超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改搜索方式
parent
08f84352
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
GoodsController.java
...va/com/gic/plug/web/controller/goods/GoodsController.java
+5
-3
No files found.
src/main/java/com/gic/plug/web/controller/goods/GoodsController.java
View file @
44027c61
...
...
@@ -6,6 +6,7 @@ import com.gic.commons.util.EntityUtil;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.goods.api.dto.GoodsSkuDTO
;
import
com.gic.goods.api.service.GoodsApiService
;
import
com.gic.goods.api.util.Constant
;
import
com.gic.plug.web.vo.goods.GoodsVO
;
import
com.gic.search.business.api.constant.enums.OperateEnum
;
import
com.gic.search.business.api.dto.DynamicSearchDTO
;
...
...
@@ -111,10 +112,11 @@ public class GoodsController extends BaseGoodsController {
private
ServiceResponse
<
ESResponseQueryBatchDTO
>
searchES
(
Integer
currentPage
,
Integer
pageSize
,
Long
goodsDomainId
,
String
search
,
String
channelCode
)
{
DynamicSearchDTO
searchDTO
=
new
DynamicSearchDTO
();
String
esName
=
esScreeningSearchService
.
getCurrentEsName
(
"goods-test-123456"
,
"goods-search"
);
String
columnCategoryCode
=
Constant
.
ES_CODES_MAP
.
get
(
channelCode
);
String
esName
=
esScreeningSearchService
.
getCurrentEsName
(
getEnterpriseId
()
+
""
,
columnCategoryCode
);
searchDTO
.
setIndexName
(
esName
);
searchDTO
.
setColumnCategoryCode
(
"goods-search"
);
searchDTO
.
setEnterpriseId
(
"goods-test-123456
"
);
searchDTO
.
setColumnCategoryCode
(
columnCategoryCode
);
searchDTO
.
setEnterpriseId
(
getEnterpriseId
()
+
"
"
);
searchDTO
.
setType
(
"mapper_type"
);
searchDTO
.
setBegin
(
currentPage
);
searchDTO
.
setRecordNumber
(
pageSize
);
...
...
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