Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-data-cloud
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-data-cloud
Commits
fa1ebe2c
Commit
fa1ebe2c
authored
Jun 16, 2021
by
陶光胜
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
门店控件查询
parent
c3451283
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
StoreSearchUtils.java
...n/java/com/gic/cloud/web/controller/StoreSearchUtils.java
+6
-7
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreSearchUtils.java
View file @
fa1ebe2c
...
@@ -118,9 +118,8 @@ public class StoreSearchUtils {
...
@@ -118,9 +118,8 @@ public class StoreSearchUtils {
StoreAuth
storeAuth
=
this
.
dataAuthUtils
.
getStoreAuth
(
userId
,
enterpriseId
);
StoreAuth
storeAuth
=
this
.
dataAuthUtils
.
getStoreAuth
(
userId
,
enterpriseId
);
log
.
info
(
"storeAuth:{}"
,
JSON
.
toJSONString
(
storeAuth
));
log
.
info
(
"storeAuth:{}"
,
JSON
.
toJSONString
(
storeAuth
));
if
(!
storeAuth
.
isHasAuth
()){
if
(!
storeAuth
.
isHasAuth
()){
ArrayList
<
Integer
>
list
=
new
ArrayList
<>();
resultList
.
add
(
0
);
list
.
add
(
0
);
return
resultList
;
return
list
;
}
}
if
(
StringUtils
.
isNotBlank
(
searchJson
)){
if
(
StringUtils
.
isNotBlank
(
searchJson
)){
JSONObject
json
=
JSON
.
parseObject
(
searchJson
);
JSONObject
json
=
JSON
.
parseObject
(
searchJson
);
...
@@ -129,9 +128,10 @@ public class StoreSearchUtils {
...
@@ -129,9 +128,10 @@ public class StoreSearchUtils {
if
(
storeSearchQo
.
getAll
()
==
1
){
if
(
storeSearchQo
.
getAll
()
==
1
){
storeSearchDTO
.
setStoreInfoIds
(
StringUtils
.
join
(
storeAuth
.
getStoreInfoIdList
().
toArray
(),
" "
));
storeSearchDTO
.
setStoreInfoIds
(
StringUtils
.
join
(
storeAuth
.
getStoreInfoIdList
().
toArray
(),
" "
));
}
else
{
}
else
{
if
(
StringUtils
.
isNotBlank
(
storeSearchQo
.
getStoreIds
()))
{
if
(
StringUtils
.
isNotBlank
(
storeSearchQo
.
getStoreIds
()))
{
storeSearchDTO
.
setStoreInfoIds
(
storeSearchQo
.
getStoreIds
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setStoreInfoIds
(
storeSearchQo
.
getStoreIds
().
replaceAll
(
","
,
" "
));
}
}
}
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setEnterpriseId
(
enterpriseId
);
storeSearchDTO
.
setStoreGroupIds
(
StringUtils
.
isBlank
(
storeSearchQo
.
getStoreGroupIds
())
?
null
:
storeSearchQo
.
getStoreGroupIds
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setStoreGroupIds
(
StringUtils
.
isBlank
(
storeSearchQo
.
getStoreGroupIds
())
?
null
:
storeSearchQo
.
getStoreGroupIds
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setRegionIds
(
StringUtils
.
isBlank
(
storeSearchQo
.
getRegion
())
?
null
:
storeSearchQo
.
getRegion
().
replaceAll
(
","
,
" "
));
storeSearchDTO
.
setRegionIds
(
StringUtils
.
isBlank
(
storeSearchQo
.
getRegion
())
?
null
:
storeSearchQo
.
getRegion
().
replaceAll
(
","
,
" "
));
...
@@ -189,7 +189,6 @@ public class StoreSearchUtils {
...
@@ -189,7 +189,6 @@ public class StoreSearchUtils {
resultList
=
storeInfoIdList
;
resultList
=
storeInfoIdList
;
}
}
}
}
}
}
else
{
}
else
{
RedisUtil
.
setCache
(
key
,
1
,
10L
,
TimeUnit
.
MINUTES
);
RedisUtil
.
setCache
(
key
,
1
,
10L
,
TimeUnit
.
MINUTES
);
return
storeAuth
.
getStoreInfoIdList
();
return
storeAuth
.
getStoreInfoIdList
();
...
@@ -207,7 +206,7 @@ public class StoreSearchUtils {
...
@@ -207,7 +206,7 @@ public class StoreSearchUtils {
List
<
String
>
list
=
new
ArrayList
<>();
List
<
String
>
list
=
new
ArrayList
<>();
int
flag
=
dealSearchJson
(
searchJson
);
int
flag
=
dealSearchJson
(
searchJson
);
if
(
flag
==
1
){
if
(
flag
==
1
){
list
.
add
(
"
0
"
);
list
.
add
(
"
noauth
"
);
return
list
;
return
list
;
}
}
OnLineAuth
onlineStoreAuth
=
this
.
dataAuthUtils
.
getOnlineStore
(
userId
,
enterpriseId
);
OnLineAuth
onlineStoreAuth
=
this
.
dataAuthUtils
.
getOnlineStore
(
userId
,
enterpriseId
);
...
@@ -217,7 +216,7 @@ public class StoreSearchUtils {
...
@@ -217,7 +216,7 @@ public class StoreSearchUtils {
this
.
getOnlineStoreIds
(
searchJson
,
onlineStoreAuth
,
list
,
StoreChannelEnum
.
WMMALL
.
getChannel
(),
userId
,
enterpriseId
);
this
.
getOnlineStoreIds
(
searchJson
,
onlineStoreAuth
,
list
,
StoreChannelEnum
.
WMMALL
.
getChannel
(),
userId
,
enterpriseId
);
this
.
getOnlineStoreIds
(
searchJson
,
onlineStoreAuth
,
list
,
StoreChannelEnum
.
TIANMAO
.
getChannel
(),
userId
,
enterpriseId
);
this
.
getOnlineStoreIds
(
searchJson
,
onlineStoreAuth
,
list
,
StoreChannelEnum
.
TIANMAO
.
getChannel
(),
userId
,
enterpriseId
);
}
else
{
}
else
{
list
.
add
(
"
0
"
);
list
.
add
(
"
noauth
"
);
}
}
return
list
;
return
list
;
}
}
...
...
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