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
127feab5
Commit
127feab5
authored
Jun 02, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步门店修复:查询门店添加企业来查询
parent
98cbf571
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
WmStoreSyncController.java
...c/enterprise/web/controller/wm/WmStoreSyncController.java
+6
-4
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/wm/WmStoreSyncController.java
View file @
127feab5
...
...
@@ -608,7 +608,7 @@ public class WmStoreSyncController {
//因为是一条一条处理,所以失败了,就不会有成功的,不用 导购同步逻辑
List
<
StoreDTO
>
hasSuccessStoreList
=
getStoreList
(
errorIds
.
toString
());
List
<
StoreDTO
>
hasSuccessStoreList
=
getStoreList
(
errorIds
.
toString
()
,
enterpriseId
);
hasSuccessStoreList
.
forEach
(
e
->
rMap
.
put
(
e
.
getRegionId
()
+
"-"
+
e
.
getStoreCode
(),
errorMessage
.
get
(
storeDTO
.
getStoreInfoId
())));
}
else
{
...
...
@@ -673,12 +673,13 @@ public class WmStoreSyncController {
}
}
private
List
<
StoreDTO
>
getStoreList
(
String
storeInfoIds
)
{
private
List
<
StoreDTO
>
getStoreList
(
String
storeInfoIds
,
Integer
enterpriseId
)
{
String
[]
subStoreIdArr
=
storeInfoIds
.
split
(
","
);
//一次性查询分店列表数据
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
storeSearchDTO
.
setStoreInfoIds
(
storeInfoIds
);
ServiceResponse
<
Page
<
StoreDTO
>>
subStoreResponse
=
storeApiService
.
listStore
(
storeSearchDTO
,
0
,
subStoreIdArr
.
length
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
ServiceResponse
<
Page
<
StoreDTO
>>
subStoreResponse
=
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
subStoreIdArr
.
length
);
if
(
subStoreResponse
.
isSuccess
())
{
Page
<
StoreDTO
>
page
=
subStoreResponse
.
getResult
();
if
(
page
!=
null
)
{
...
...
@@ -841,7 +842,8 @@ public class WmStoreSyncController {
}
else
{
storeSearchDTO
.
setStoreIds
(
storeIds
);
}
ServiceResponse
<
Page
<
StoreDTO
>>
subStoreResponse
=
storeApiService
.
listStore
(
storeSearchDTO
,
0
,
subStoreIdArr
.
length
);
storeSearchDTO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
ServiceResponse
<
Page
<
StoreDTO
>>
subStoreResponse
=
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
subStoreIdArr
.
length
);
if
(
subStoreResponse
.
isSuccess
())
{
Page
<
StoreDTO
>
page
=
subStoreResponse
.
getResult
();
if
(
page
!=
null
)
{
...
...
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