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
9728c965
Commit
9728c965
authored
Mar 10, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shop接口修改
parent
2190ec80
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
ShopDto.java
...in/java/com/edgec/browserbackend/browser/dto/ShopDto.java
+4
-1
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+2
-1
No files found.
src/main/java/com/edgec/browserbackend/browser/dto/ShopDto.java
View file @
9728c965
...
@@ -34,7 +34,7 @@ public class ShopDto {
...
@@ -34,7 +34,7 @@ public class ShopDto {
private
IpResource
bindIp
;
private
IpResource
bindIp
;
public
static
ShopDto
of
(
Shop
shop
,
IpResource
ipResources
)
{
public
static
ShopDto
of
(
Shop
shop
,
String
group
,
IpResource
ipResources
)
{
ShopDto
shopDto
=
new
ShopDto
();
ShopDto
shopDto
=
new
ShopDto
();
shopDto
.
setShopId
(
shop
.
getShopId
());
shopDto
.
setShopId
(
shop
.
getShopId
());
if
(
shop
.
getShopName
()
!=
null
)
if
(
shop
.
getShopName
()
!=
null
)
...
@@ -53,6 +53,9 @@ public class ShopDto {
...
@@ -53,6 +53,9 @@ public class ShopDto {
shopDto
.
setShopUA
(
shop
.
getShopUA
());
shopDto
.
setShopUA
(
shop
.
getShopUA
());
if
(
shop
.
getShopCookie
()
!=
null
)
if
(
shop
.
getShopCookie
()
!=
null
)
shopDto
.
setShopCookie
(
shop
.
getShopCookie
());
shopDto
.
setShopCookie
(
shop
.
getShopCookie
());
if
(
shop
.
getShopAccount
()
!=
null
)
shopDto
.
setShopAccount
(
shop
.
getShopAccount
());
shopDto
.
setGroup
(
group
);
shopDto
.
setBindIp
(
ipResources
);
shopDto
.
setBindIp
(
ipResources
);
return
shopDto
;
return
shopDto
;
}
}
...
...
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
9728c965
...
@@ -309,7 +309,8 @@ public class ShopServiceImpl implements ShopService {
...
@@ -309,7 +309,8 @@ public class ShopServiceImpl implements ShopService {
IpResource
ipResource
=
ipResourceRepository
.
findByAddrAndIsDeleted
(
x
.
getIp
(),
false
);
IpResource
ipResource
=
ipResourceRepository
.
findByAddrAndIsDeleted
(
x
.
getIp
(),
false
);
if
(
ipResource
==
null
)
if
(
ipResource
==
null
)
ipResource
=
new
IpResource
();
ipResource
=
new
IpResource
();
shopDtos
.
add
(
ShopDto
.
of
(
x
,
ipResource
));
String
group1
=
userShopRepository
.
findByUsernameAndShopId
(
username
,
x
.
getShopId
()).
getGroupId
();
shopDtos
.
add
(
ShopDto
.
of
(
x
,
group1
,
ipResource
));
});
});
Page
<
ShopDto
>
shopDtoPage
=
new
PageImpl
<>(
shopDtos
,
pageable
,
shopDtos
.
size
());
Page
<
ShopDto
>
shopDtoPage
=
new
PageImpl
<>(
shopDtos
,
pageable
,
shopDtos
.
size
());
ShopPageResultDto
shopPageResultDto
=
new
ShopPageResultDto
();
ShopPageResultDto
shopPageResultDto
=
new
ShopPageResultDto
();
...
...
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