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
82938067
Commit
82938067
authored
Jul 28, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pmd
parent
24bf864b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
StoreSearchUtils.java
...n/java/com/gic/cloud/web/controller/StoreSearchUtils.java
+14
-6
No files found.
gic-data-cloud-wxapp/src/main/java/com/gic/cloud/web/controller/StoreSearchUtils.java
View file @
82938067
...
...
@@ -111,7 +111,9 @@ public class StoreSearchUtils {
log
.
info
(
"storeSearchParams:{},{},{}"
,
userId
,
enterpriseId
,
searchJson
);
List
<
Integer
>
resultList
=
new
ArrayList
<>();
int
flag
=
dealSearchJson
(
searchJson
);
if
(
flag
==
2
){
boolean
isQueryOnline
=
flag
==
2
;
if
(
isQueryOnline
){
resultList
.
add
(
0
);
return
resultList
;
}
...
...
@@ -144,10 +146,12 @@ public class StoreSearchUtils {
String
resourceType
=
storeSearchQo
.
getResourceType
();
Integer
ownerFlag
=
null
;
if
(
StringUtils
.
isNotBlank
(
resourceType
)){
if
(
"1"
.
equals
(
resourceType
)){
boolean
isOwner
=
"1"
.
equals
(
resourceType
);
if
(
isOwner
){
ownerFlag
=
StoreOwnerFlagEnum
.
OWNER
.
getCode
();
}
if
(
"2"
.
equals
(
resourceType
)){
};;
boolean
isNotOwner
=
"2"
.
equals
(
resourceType
);
if
(
isNotOwner
){
ownerFlag
=
StoreOwnerFlagEnum
.
OTHER
.
getCode
();
}
}
...
...
@@ -367,12 +371,16 @@ public class StoreSearchUtils {
List
<
String
>
onLineStoreList
=
wmStoreDTOList
.
stream
().
filter
(
wmStoreDTO
->
{
boolean
resourceFlag
=
true
;
if
(
StringUtils
.
isNotBlank
(
searchQo
.
getResourceType
()))
{
if
(
"1"
.
equals
(
searchQo
.
getResourceType
()))
{
//自有资源
//自有资源
boolean
isOwner
=
"1"
.
equals
(
searchQo
.
getResourceType
());
if
(
isOwner
)
{
if
(
enterpriseId
.
equals
(
wmStoreDTO
.
getEnterpriseId
()))
{
resourceFlag
=
true
;
}
}
if
(
"2"
.
equals
(
searchQo
.
getStoreBrand
()))
{
//共享资源
//共享资源
boolean
isNotOwner
=
"2"
.
equals
(
searchQo
.
getStoreBrand
());
if
(
isNotOwner
)
{
if
(!
enterpriseId
.
equals
(
wmStoreDTO
.
getEnterpriseId
()))
{
resourceFlag
=
true
;
}
...
...
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