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
1a5bf12f
Commit
1a5bf12f
authored
May 09, 2020
by
陶光胜
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'developer' into 'master'
Developer See merge request
!7
parents
139798c7
10921e5f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
1 deletions
+13
-1
StoreEsDTO.java
...store-api/src/main/java/com/gic/store/dto/StoreEsDTO.java
+9
-0
ProvincesApiServiceImpl.java
...gic/store/service/outer/impl/ProvincesApiServiceImpl.java
+2
-0
StoreApiServiceImpl.java
...com/gic/store/service/outer/impl/StoreApiServiceImpl.java
+1
-0
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+1
-1
No files found.
gic-store-api/src/main/java/com/gic/store/dto/StoreEsDTO.java
View file @
1a5bf12f
...
...
@@ -34,6 +34,7 @@ public class StoreEsDTO implements Serializable {
private
String
address
;
private
Double
score
;
private
Integer
evaluateCount
;
private
String
conactsPhone
;
public
Integer
getStoreId
()
{
return
storeId
;
...
...
@@ -274,4 +275,12 @@ public class StoreEsDTO implements Serializable {
public
Integer
getEvaluateCount
()
{
return
evaluateCount
;
}
public
void
setConactsPhone
(
String
conactsPhone
)
{
this
.
conactsPhone
=
conactsPhone
;
}
public
String
getConactsPhone
()
{
return
conactsPhone
;
}
}
gic-store-service/src/main/java/com/gic/store/service/outer/impl/ProvincesApiServiceImpl.java
View file @
1a5bf12f
...
...
@@ -55,11 +55,13 @@ public class ProvincesApiServiceImpl implements ProvincesApiService {
list
=
EntityUtil
.
changeEntityListByJSON
(
CityDTO
.
class
,
this
.
provincesService
.
selectAllCity
());
RedisUtil
.
setCache
(
key
,
list
,
6
*
30
l
,
TimeUnit
.
DAYS
);
}
log
.
info
(
"allcity:{}"
,
list
.
size
());
return
ServiceResponse
.
success
(
list
);
}
@Override
public
ServiceResponse
<
CityDTO
>
getCityByCityId
(
String
cityId
)
{
log
.
info
(
"获取城市信息:{}"
,
cityId
);
ServiceResponse
<
List
<
CityDTO
>>
response
=
this
.
selectAllCity
();
if
(
response
.
isSuccess
()
&&
CollectionUtils
.
isNotEmpty
(
response
.
getResult
())){
List
<
CityDTO
>
list
=
response
.
getResult
();
...
...
gic-store-service/src/main/java/com/gic/store/service/outer/impl/StoreApiServiceImpl.java
View file @
1a5bf12f
...
...
@@ -1234,6 +1234,7 @@ public class StoreApiServiceImpl implements StoreApiService {
esDTO
.
setAddress
(
dto
.
getAddress
());
esDTO
.
setScore
(
dto
.
getScore
());
esDTO
.
setEvaluateCount
(
dto
.
getEvaluateCount
());
esDTO
.
setConactsPhone
(
dto
.
getConactsPhone
());
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
);
...
...
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
1a5bf12f
...
...
@@ -121,7 +121,7 @@ public class StoreController extends DownloadUtils {
storeDTO
.
setRemark
(
storeQO
.
getStoreId
()
==
null
?
"手工新增"
:
"单个编辑"
);
storeDTO
.
setOperatorId
(
UserDetailUtils
.
getUserDetail
().
getUserId
());
storeDTO
.
setOperatorName
(
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getUserName
());
ServiceResponse
<
Integer
>
serviceResponse
=
storeApiService
.
saveOrUpdate
(
storeDTO
);
ServiceResponse
<
StoreDTO
>
serviceResponse
=
storeApiService
.
saveOrUpdate
(
storeDTO
);
if
(
serviceResponse
.
isSuccess
())
{
LogUtils
.
createLog
((
storeQO
.
getStoreId
()
==
null
?
"新增"
:
"编辑"
)
+
"门店"
,
storeQO
.
getStoreName
());
return
RestResponse
.
success
(
serviceResponse
.
getResult
());
...
...
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