Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
browser-backend
Project
Project
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
Administrator
browser-backend
Commits
f9e02597
Commit
f9e02597
authored
Mar 10, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log日志
parent
86ce4f7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+2
-0
No files found.
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
f9e02597
...
@@ -296,6 +296,7 @@ public class ShopServiceImpl implements ShopService {
...
@@ -296,6 +296,7 @@ public class ShopServiceImpl implements ShopService {
shopIds
=
userShopRepository
.
findByUsernameAndGroupId
(
username
,
groupId
).
stream
().
shopIds
=
userShopRepository
.
findByUsernameAndGroupId
(
username
,
groupId
).
stream
().
map
(
x
->
x
.
getShopId
()).
collect
(
Collectors
.
toList
());
map
(
x
->
x
.
getShopId
()).
collect
(
Collectors
.
toList
());
}
}
logger
.
error
(
"shopIds.size "
+
shopIds
.
size
());
Page
<
Shop
>
shops
;
Page
<
Shop
>
shops
;
if
(
filterDto
!=
null
&&
StringUtils
.
isNotBlank
(
filterDto
.
getIpRegion
()))
if
(
filterDto
!=
null
&&
StringUtils
.
isNotBlank
(
filterDto
.
getIpRegion
()))
shops
=
shopRepository
.
findByShopIdInAndIpRegionLike
(
shopIds
,
filterDto
.
getIpRegion
(),
pageable
);
shops
=
shopRepository
.
findByShopIdInAndIpRegionLike
(
shopIds
,
filterDto
.
getIpRegion
(),
pageable
);
...
@@ -308,6 +309,7 @@ public class ShopServiceImpl implements ShopService {
...
@@ -308,6 +309,7 @@ public class ShopServiceImpl implements ShopService {
if
(
shops
==
null
||
shops
.
getNumberOfElements
()
<
1
)
if
(
shops
==
null
||
shops
.
getNumberOfElements
()
<
1
)
return
new
ShopPageResultDto
();
return
new
ShopPageResultDto
();
List
<
ShopDto
>
shopDtos
=
new
ArrayList
<>();
List
<
ShopDto
>
shopDtos
=
new
ArrayList
<>();
logger
.
error
(
"numberofelem"
+
shops
.
getNumberOfElements
());
shops
.
getContent
().
stream
().
forEach
(
x
->
{
shops
.
getContent
().
stream
().
forEach
(
x
->
{
IpResource
ipResource
=
ipResourceRepository
.
findByAddrAndIsDeleted
(
x
.
getIp
(),
false
);
IpResource
ipResource
=
ipResourceRepository
.
findByAddrAndIsDeleted
(
x
.
getIp
(),
false
);
if
(
ipResource
==
null
)
if
(
ipResource
==
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