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
6cae06fb
Commit
6cae06fb
authored
Apr 02, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
information bug
parent
00691a81
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
QueryIpUrlList.java
...m/edgec/browserbackend/account/domain/QueryIpUrlList.java
+11
-0
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+9
-5
No files found.
src/main/java/com/edgec/browserbackend/account/domain/QueryIpUrlList.java
View file @
6cae06fb
package
com
.
edgec
.
browserbackend
.
account
.
domain
;
package
com
.
edgec
.
browserbackend
.
account
.
domain
;
import
org.springframework.data.annotation.Id
;
import
org.springframework.data.mongodb.core.mapping.Document
;
import
org.springframework.data.mongodb.core.mapping.Document
;
@Document
(
collection
=
"queryipurllist"
)
@Document
(
collection
=
"queryipurllist"
)
public
class
QueryIpUrlList
{
public
class
QueryIpUrlList
{
@Id
private
String
id
;
private
String
url
;
private
String
url
;
public
String
getId
()
{
return
id
;
}
public
void
setId
(
String
id
)
{
this
.
id
=
id
;
}
public
String
getUrl
()
{
public
String
getUrl
()
{
return
url
;
return
url
;
}
}
...
...
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
6cae06fb
...
@@ -373,11 +373,15 @@ public class ShopServiceImpl implements ShopService {
...
@@ -373,11 +373,15 @@ public class ShopServiceImpl implements ShopService {
if
(
account
==
null
)
if
(
account
==
null
)
throw
new
ClientRequestException
(
AccountErrorCode
.
NAMENOTEXIST
);
throw
new
ClientRequestException
(
AccountErrorCode
.
NAMENOTEXIST
);
ShopSummary
shopSummary
=
new
ShopSummary
();
ShopSummary
shopSummary
=
new
ShopSummary
();
List
<
String
>
unbind
=
userShopRepository
.
findByUsername
(
username
).
stream
().
map
(
x
->
x
.
getShopId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
allShopIds
=
userShopRepository
.
findByUsername
(
username
).
stream
().
map
(
x
->
x
.
getShopId
()).
collect
(
Collectors
.
toList
());
for
(
String
id:
unbind
)
{
List
<
String
>
unbind
=
new
ArrayList
<>();
IpResource
ipResource
=
ipResourceRepository
.
findByShopIdAndIsDeleted
(
id
,
false
);
if
(
allShopIds
!=
null
&&
allShopIds
.
size
()
>
0
)
{
if
(
ipResource
!=
null
)
for
(
String
id:
allShopIds
)
{
unbind
.
remove
(
id
);
IpResource
ipResource
=
ipResourceRepository
.
findByShopIdAndIsDeleted
(
id
,
false
);
if
(
ipResource
==
null
)
{
unbind
.
add
(
id
);
}
}
}
}
shopSummary
.
setUnbind
(
unbind
.
size
());
shopSummary
.
setUnbind
(
unbind
.
size
());
List
<
String
>
shopIds
=
userShopRepository
.
findByUsername
(
username
).
stream
().
map
(
x
->
x
.
getShopId
()).
collect
(
Collectors
.
toList
());
List
<
String
>
shopIds
=
userShopRepository
.
findByUsername
(
username
).
stream
().
map
(
x
->
x
.
getShopId
()).
collect
(
Collectors
.
toList
());
...
...
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