Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
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-platform-enterprise
Commits
34a55c5d
Commit
34a55c5d
authored
Jun 02, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询门店
parent
2eb18e75
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
23 deletions
+11
-23
WmStoreSyncLogApiServiceImpl.java
...rise/service/outer/impl/WmStoreSyncLogApiServiceImpl.java
+1
-1
WmStoreSyncController.java
...c/enterprise/web/controller/wm/WmStoreSyncController.java
+10
-22
No files found.
gic-platform-enterprise-service/src/main/java/com/gic/enterprise/service/outer/impl/WmStoreSyncLogApiServiceImpl.java
View file @
34a55c5d
...
...
@@ -42,7 +42,7 @@ public class WmStoreSyncLogApiServiceImpl implements WmStoreSyncLogApiService {
List
<
StoreDTO
>
storeList
=
page
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
storeList
))
{
storeList
.
forEach
(
temp
->
wmStoreSyncLogService
.
saveWmStoreSyncLog
(
temp
.
getStoreId
(),
enterpriseId
,
wmMallStoreId
,
type
,
temp
.
getStoreCode
(),
temp
.
getStoreName
()));
.
saveWmStoreSyncLog
(
temp
.
getStoreId
(),
wmMallStoreId
,
type
,
enterpriseId
,
temp
.
getStoreCode
(),
temp
.
getStoreName
()));
}
return
ServiceResponse
.
success
();
}
...
...
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/wm/WmStoreSyncController.java
View file @
34a55c5d
...
...
@@ -710,11 +710,9 @@ public class WmStoreSyncController {
weimobPhysicalStoreDTO
.
setStoreNumber
(
storeDTO
.
getStoreCode
());
weimobPhysicalStoreDTO
.
setStoreName
(
storeDTO
.
getStoreName
());
//经纬度
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getLongitude
()))
{
weimobPhysicalStoreDTO
.
setLongitude
(
new
BigDecimal
(
storeDTO
.
getLongitude
()));
}
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getLatitude
()))
{
weimobPhysicalStoreDTO
.
setLatitude
(
new
BigDecimal
(
storeDTO
.
getLatitude
()));
if
(
CollectionUtils
.
isNotEmpty
(
storeDTO
.
getLocation
()))
{
weimobPhysicalStoreDTO
.
setLongitude
(
new
BigDecimal
(
storeDTO
.
getLocation
().
get
(
0
)));
weimobPhysicalStoreDTO
.
setLatitude
(
new
BigDecimal
(
storeDTO
.
getLocation
().
get
(
1
)));
}
//省市区名称
String
fullArea
=
StringUtils
.
isNotBlank
(
storeDTO
.
getProvinces
())
?
...
...
@@ -726,14 +724,10 @@ public class WmStoreSyncController {
if
(
CollectionUtils
.
isNotEmpty
(
businessTimeList
))
{
businessTimeList
.
stream
().
map
(
e
->
{
String
businessHours
=
simpleDateFormat
.
format
(
e
.
getOpenTime
())
+
"-"
+
simpleDateFormat
.
format
(
e
.
getCloseTime
());
return
e
.
getWeekdayShow
()
+
businessHours
;
return
e
.
getWeekdayShow
()
+
":"
+
businessHours
;
}).
forEach
(
businessTime:
:
append
);
}
if
(
StringUtils
.
isBlank
(
businessTime
.
toString
()))
{
weimobPhysicalStoreDTO
.
setBussinessHours
(
"08:00-22:00"
);
}
else
{
weimobPhysicalStoreDTO
.
setBussinessHours
(
businessTime
.
toString
());
}
weimobPhysicalStoreDTO
.
setBussinessHours
(
businessTime
.
toString
());
WeimobStoreAccountDTO
accountDTO
=
new
WeimobStoreAccountDTO
();
ClerkDTO
headClerk
=
getHeadClerk
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
...
...
@@ -800,11 +794,9 @@ public class WmStoreSyncController {
weimobPhysicalStoreDTO
.
setStoreNumber
(
storeDTO
.
getStoreCode
());
weimobPhysicalStoreDTO
.
setStoreName
(
storeDTO
.
getStoreName
());
//经纬度
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getLongitude
()))
{
weimobPhysicalStoreDTO
.
setLongitude
(
new
BigDecimal
(
storeDTO
.
getLongitude
()));
}
if
(
StringUtils
.
isNotBlank
(
storeDTO
.
getLatitude
()))
{
weimobPhysicalStoreDTO
.
setLatitude
(
new
BigDecimal
(
storeDTO
.
getLatitude
()));
if
(
CollectionUtils
.
isNotEmpty
(
storeDTO
.
getLocation
()))
{
weimobPhysicalStoreDTO
.
setLongitude
(
new
BigDecimal
(
storeDTO
.
getLocation
().
get
(
0
)));
weimobPhysicalStoreDTO
.
setLatitude
(
new
BigDecimal
(
storeDTO
.
getLocation
().
get
(
1
)));
}
//省市区名称
String
fullArea
=
StringUtils
.
isNotBlank
(
storeDTO
.
getProvinces
())
?
...
...
@@ -816,14 +808,10 @@ public class WmStoreSyncController {
if
(
CollectionUtils
.
isNotEmpty
(
businessTimeList
))
{
businessTimeList
.
stream
().
map
(
e
->
{
String
businessHours
=
simpleDateFormat
.
format
(
e
.
getOpenTime
())
+
"-"
+
simpleDateFormat
.
format
(
e
.
getCloseTime
());
return
e
.
getWeekdayShow
()
+
businessHours
;
return
e
.
getWeekdayShow
()
+
":"
+
businessHours
;
}).
forEach
(
businessTime:
:
append
);
}
if
(
StringUtils
.
isBlank
(
businessTime
.
toString
()))
{
weimobPhysicalStoreDTO
.
setBussinessHours
(
"08:00-22:00"
);
}
else
{
weimobPhysicalStoreDTO
.
setBussinessHours
(
businessTime
.
toString
());
}
weimobPhysicalStoreDTO
.
setBussinessHours
(
businessTime
.
toString
());
WeimobStoreAccountDTO
accountDTO
=
new
WeimobStoreAccountDTO
();
ClerkDTO
headClerk
=
getHeadClerk
(
storeDTO
.
getEnterpriseId
(),
storeDTO
.
getStoreId
());
...
...
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