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
8245517b
Commit
8245517b
authored
Jun 02, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询门店
parent
127feab5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
WmStoreSyncController.java
...c/enterprise/web/controller/wm/WmStoreSyncController.java
+7
-3
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/wm/WmStoreSyncController.java
View file @
8245517b
...
...
@@ -98,6 +98,7 @@ public class WmStoreSyncController {
public
RestResponse
listStore
(
StoreSearchDTO
storeSearchDTO
)
{
//todo 过滤已同步过的门店
storeSearchDTO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
storeSearchDTO
.
setStatus
(
1
);
return
ResultControllerUtils
.
commonResult
(
storeApiService
.
listStore
(
storeSearchDTO
,
storeSearchDTO
.
getCurrentPage
(),
storeSearchDTO
.
getPageSize
()));
}
...
...
@@ -361,17 +362,20 @@ public class WmStoreSyncController {
List
<
WeimobPhysicalStoreDTO
>
physicalStoreList
=
new
ArrayList
<>();
List
<
StoreDTO
>
storeList
=
getStoreList
(
storeIds
,
false
);
storeList
.
forEach
(
store
->
physicalStoreList
.
add
(
getWeimobPhsicalStore
(
store
)));
if
(
CollectionUtils
.
isEmpty
(
physicalStoreList
))
{
return
RestResponse
.
failure
(
ErrorCode
.
SYSTEM_ERROR
.
getCode
(),
"门店数据非启用"
);
}
ServiceResponse
<
List
<
Integer
>>
wmResult
=
weimobStoreSiteService
.
addWeimobPhysicalStoreBatch
(
wmMallStoreId
,
enterpriseId
,
physicalStoreList
);
LOGGER
.
info
(
"实体门店批量到微盟结果:{}"
,
JSON
.
toJSONString
(
wmResult
));
if
(!
wmResult
.
isSuccess
())
{
HashMap
<
String
,
String
>
map
=
JSON
.
parseObject
(
wmResult
.
getMessage
(),
HashMap
.
class
);
HashMap
<
Integer
,
String
>
map
=
JSON
.
parseObject
(
wmResult
.
getMessage
(),
HashMap
.
class
);
StringBuilder
errorIds
=
new
StringBuilder
();
Map
<
String
,
String
>
errorMessage
=
new
HashMap
<>(
16
);
for
(
Map
.
Entry
<
String
,
String
>
entry
:
map
.
entrySet
())
{
for
(
Map
.
Entry
<
Integer
,
String
>
entry
:
map
.
entrySet
())
{
errorIds
.
append
(
entry
.
getKey
()).
append
(
GlobalInfo
.
FLAG_COMMA
);
errorMessage
.
put
(
entry
.
getKey
(),
entry
.
getValue
());
errorMessage
.
put
(
entry
.
getKey
()
.
toString
()
,
entry
.
getValue
());
}
this
.
wmStoreSyncLogApiService
.
saveWmStoreSyncLog
(
wmResult
.
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