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
830cf3ae
Commit
830cf3ae
authored
Feb 23, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店列表查询接口调整
parent
a7d60955
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
7 deletions
+19
-7
StoreController.java
...in/java/com/gic/store/web/controller/StoreController.java
+19
-7
No files found.
gic-store-web/src/main/java/com/gic/store/web/controller/StoreController.java
View file @
830cf3ae
...
...
@@ -178,13 +178,7 @@ public class StoreController extends DownloadUtils {
Integer
userId
=
UserDetailUtils
.
getUserDetail
().
getUserId
();
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
List
<
Integer
>
storeResourceList
=
new
ArrayList
<>();
if
(
UserDetailUtils
.
getUserDetail
().
getStoreResourceId
()
!=
null
)
{
storeResourceList
.
add
(
UserDetailUtils
.
getUserDetail
().
getStoreResourceId
().
intValue
());
}
if
(
storeSearchDTO
.
getStoreResource
()
!=
null
)
{
storeResourceList
.
add
(
storeSearchDTO
.
getStoreResource
().
intValue
());
}
setStoreWidgetId
(
storeSearchDTO
);
//门店标签
ServiceResponse
<
StoreTagDTO
>
storeTagResult
=
storeTagApiService
.
getByStoreTagId
(
storeSearchDTO
.
getStoreTagId
());
...
...
@@ -475,6 +469,8 @@ public class StoreController extends DownloadUtils {
@RequestMapping
(
"export-store-list"
)
public
RestResponse
exportStoreList
(
HttpServletRequest
request
,
@RequestBody
StoreExportQO
storeExportQO
){
setStoreWidgetId
(
storeExportQO
);
storeExportQO
.
setEnterpriseId
(
UserDetailUtils
.
getUserDetail
().
getEnterpriseId
());
ServiceResponse
<
Long
>
response
=
this
.
storeApiService
.
queryStoreCountFromEs
(
storeExportQO
);
if
(
response
.
isSuccess
()
&&
response
.
getResult
()
>
0
){
...
...
@@ -557,6 +553,8 @@ public class StoreController extends DownloadUtils {
@RequestMapping
(
"store-qrcode-download"
)
public
RestResponse
storeQrcodeDownload
(
@RequestBody
QrcodeQO
qrcodeQO
){
setStoreWidgetId
(
qrcodeQO
.
getStoreSearchDTO
());
int
total
=
0
;
if
(
qrcodeQO
.
getIsAll
()
==
1
){
StoreSearchDTO
storeSearchDTO
=
qrcodeQO
.
getStoreSearchDTO
();
...
...
@@ -962,5 +960,18 @@ public class StoreController extends DownloadUtils {
return
clerkDTO
;
}
private
void
setStoreWidgetId
(
StoreSearchDTO
storeSearchDTO
)
{
List
<
Integer
>
storeResourceList
=
new
ArrayList
<>();
if
(
UserDetailUtils
.
getUserDetail
().
getStoreResourceId
()
!=
null
)
{
storeResourceList
.
add
(
UserDetailUtils
.
getUserDetail
().
getStoreResourceId
().
intValue
());
}
if
(
storeSearchDTO
.
getStoreResource
()
!=
null
)
{
storeResourceList
.
add
(
storeSearchDTO
.
getStoreResource
().
intValue
());
}
if
(
CollectionUtils
.
isNotEmpty
(
storeResourceList
))
{
storeSearchDTO
.
setStoreResourceList
(
storeResourceList
);
}
}
}
\ No newline at end of file
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