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
8a829775
Commit
8a829775
authored
Apr 27, 2020
by
zhiwj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
日志
parent
c48e4939
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+12
-7
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
8a829775
...
...
@@ -34,6 +34,7 @@ import com.gic.store.web.vo.StoreListSourceVO;
import
com.gic.store.web.vo.StoreOverflowVO
;
import
com.gic.wechat.business.api.service.fwh.WeixinBaseFunService
;
import
com.gic.wechat.business.api.service.wxa.WeixinWxaFunService
;
import
com.google.common.base.Joiner
;
import
org.apache.commons.collections.CollectionUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.logging.log4j.LogManager
;
...
...
@@ -302,15 +303,19 @@ public class StoreController extends DownloadUtils {
}
ServiceResponse
response
=
this
.
storeApiService
.
bulkUpdateStore
(
storeIds
,
value
,
enterpriseId
,
type
,
UserDetailUtils
.
getUserDetail
().
getUserId
(),
UserDetailUtils
.
getUserDetail
().
getUserInfo
().
getUserName
());
if
(
response
.
isSuccess
())
{
String
[]
storeArr
=
storeIds
.
split
(
","
);
StoreSearchDTO
storeSearchDTO
=
new
StoreSearchDTO
();
List
<
StoreDTO
>
storeList
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
3
).
getResult
().
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
storeList
))
{
String
storeName
=
storeList
.
stream
().
map
(
StoreDTO:
:
getStoreName
).
reduce
((
x
,
y
)
->
x
+
","
+
y
).
get
();
String
[]
storeArr
=
storeIds
.
split
(
","
);
if
(
storeArr
.
length
>
3
)
{
storeName
+=
"等"
+
storeArr
.
length
+
"家门店"
;
storeSearchDTO
.
setStoreIds
(
Joiner
.
on
(
" "
).
join
(
storeArr
));
Page
<
StoreDTO
>
page
=
this
.
storeApiService
.
listStore
(
storeSearchDTO
,
1
,
3
).
getResult
();
if
(
page
!=
null
&&
CollectionUtils
.
isNotEmpty
(
page
.
getResult
()))
{
List
<
StoreDTO
>
storeList
=
page
.
getResult
();
if
(
CollectionUtils
.
isNotEmpty
(
storeList
))
{
String
storeName
=
storeList
.
stream
().
map
(
StoreDTO:
:
getStoreName
).
reduce
((
x
,
y
)
->
x
+
","
+
y
).
get
();
if
(
storeArr
.
length
>
3
)
{
storeName
+=
"等"
+
storeArr
.
length
+
"家门店"
;
}
LogUtils
.
createLog
(
type
==
1
?
"修改启用状态"
:
"批量编辑"
,
storeName
);
}
LogUtils
.
createLog
(
type
==
1
?
"修改启用状态"
:
"批量编辑"
,
storeName
);
}
return
RestResponse
.
success
();
}
...
...
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