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
916488bc
Commit
916488bc
authored
Feb 12, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加评价人数
parent
595e714e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
StoreEsDTO.java
...store-api/src/main/java/com/gic/store/dto/StoreEsDTO.java
+9
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+1
-0
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreEsDTO.java
View file @
916488bc
...
...
@@ -33,6 +33,7 @@ public class StoreEsDTO implements Serializable {
private
String
location
;
private
String
address
;
private
Double
score
;
private
Integer
evaluateCount
;
public
Integer
getStoreId
()
{
return
storeId
;
...
...
@@ -265,4 +266,12 @@ public class StoreEsDTO implements Serializable {
public
void
setScore
(
Double
score
)
{
this
.
score
=
score
;
}
public
void
setEvaluateCount
(
Integer
evaluateCount
)
{
this
.
evaluateCount
=
evaluateCount
;
}
public
Integer
getEvaluateCount
()
{
return
evaluateCount
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
916488bc
...
...
@@ -1125,6 +1125,7 @@ public class StoreApiServiceImpl implements StoreApiService {
esDTO
.
setPhotoList
(
dto
.
getPhotoList
());
esDTO
.
setAddress
(
dto
.
getAddress
());
esDTO
.
setScore
(
dto
.
getScore
());
esDTO
.
setEvaluateCount
(
dto
.
getEvaluateCount
());
Double
[]
location
=
{
Double
.
valueOf
(
StringUtils
.
isBlank
(
dto
.
getLongitude
())?
"0"
:
dto
.
getLongitude
()),
Double
.
valueOf
(
StringUtils
.
isBlank
(
dto
.
getLatitude
())?
"0"
:
dto
.
getLatitude
())};
JSONObject
jsonObject
=
JSON
.
parseObject
(
JSON
.
toJSONString
(
esDTO
));
jsonObject
.
put
(
"location"
,
location
);
...
...
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