Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-store
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-store
Commits
ba89e99e
Commit
ba89e99e
authored
May 11, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
947b737a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
StoreESFieldsEnum.java
...c/main/java/com/gic/store/constant/StoreESFieldsEnum.java
+2
-2
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+1
-1
No files found.
gic-store-api/src/main/java/com/gic/store/constant/StoreESFieldsEnum.java
View file @
ba89e99e
...
...
@@ -34,8 +34,8 @@ public enum StoreESFieldsEnum {
LOCATION
(
"location"
,
"经纬度"
),
SCORE
(
"score"
,
"分数"
),
EVALUATECOUNT
(
"evaluateCount"
,
"评价分数"
),
conactsPhone
(
"conactsPhone"
,
"联系电话"
),
updateTime
(
"updateTime"
,
"更新时间"
),
CONACTSPHONE
(
"conactsPhone"
,
"联系电话"
),
UPDATETIME
(
"updateTime"
,
"更新时间"
),
C1
(
"c1"
,
"自定义字段1"
),
C2
(
"c2"
,
"自定义字段2"
),
C3
(
"c3"
,
"自定义字段3"
),
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
ba89e99e
...
...
@@ -440,7 +440,7 @@ public class StoreApiServiceImpl implements StoreApiService {
sortJson
=
QueryConditionAssemblyUtil
.
createSortNodeByLocation
(
StoreESFieldsEnum
.
LOCATION
.
getField
(),
QueryConditionAssemblyUtil
.
SORT_RULE_ASC
,
Double
.
valueOf
(
storeSearchDTO
.
getLatitude
()),
Double
.
valueOf
(
storeSearchDTO
.
getLongitude
()));
}
else
{
sortJson
=
QueryConditionAssemblyUtil
.
createSortNode
(
StoreESFieldsEnum
.
STORECOD
E
.
getField
(),
QueryConditionAssemblyUtil
.
SORT_RULE_DESC
);
sortJson
=
QueryConditionAssemblyUtil
.
createSortNode
(
StoreESFieldsEnum
.
UPDATETIM
E
.
getField
(),
QueryConditionAssemblyUtil
.
SORT_RULE_DESC
);
}
ServiceResponse
<
ESResponseQueryBatchDTO
>
response
=
this
.
queryStoreFromES
(
enterpriseJson
,
pageNum
,
pageSize
,
sortJson
,
returnFileds
);
if
(
response
.
isSuccess
())
{
...
...
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