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
06817ac2
Commit
06817ac2
authored
May 27, 2020
by
renjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev-zrj' into 'staging'
共有ip修改 See merge request
!141
parents
1a24ad02
85b55b28
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
31 deletions
+4
-31
ShopResultDto.java
...a/com/edgec/browserbackend/browser/dto/ShopResultDto.java
+4
-31
No files found.
src/main/java/com/edgec/browserbackend/browser/dto/ShopResultDto.java
View file @
06817ac2
...
...
@@ -36,37 +36,10 @@ public class ShopResultDto {
private
String
shopCookie
;
private
List
<
IpResourceDto
>
bindIp
=
new
ArrayList
<>()
;
private
IpResourceDto
bindIp
;
private
long
createTime
;
public
static
ShopResultDto
of
(
Shop
shop
,
String
group
,
List
<
IpResourceDto
>
ipResources
)
{
ShopResultDto
shopResultDto
=
new
ShopResultDto
();
shopResultDto
.
setShopId
(
shop
.
getShopId
());
if
(
shop
.
getShopName
()
!=
null
)
shopResultDto
.
setShopName
(
shop
.
getShopName
());
if
(
shop
.
getShopPlatform
()
!=
null
)
shopResultDto
.
setShopPlatform
(
shop
.
getShopPlatform
());
if
(
shop
.
getShopPassword
()
!=
null
)
shopResultDto
.
setShopPassword
(
shop
.
getShopPassword
());
if
(
shop
.
getTransferStatus
()
!=
null
)
shopResultDto
.
setTransferStatus
(
shop
.
getTransferStatus
());
if
(
shop
.
getOwner
()
!=
null
)
shopResultDto
.
setOwner
(
shop
.
getOwner
());
if
(
shop
.
getShopUrl
()
!=
null
)
shopResultDto
.
setShopUrl
(
shop
.
getShopUrl
());
if
(
shop
.
getShopUA
()
!=
null
)
shopResultDto
.
setShopUA
(
shop
.
getShopUA
());
if
(
shop
.
getShopCookie
()
!=
null
)
shopResultDto
.
setShopCookie
(
shop
.
getShopCookie
());
if
(
shop
.
getShopAccount
()
!=
null
)
shopResultDto
.
setShopAccount
(
shop
.
getShopAccount
());
shopResultDto
.
setGroup
(
group
);
shopResultDto
.
setBindIp
(
ipResources
);
shopResultDto
.
setCreateTime
(
shop
.
getCreateTime
());
return
shopResultDto
;
}
public
static
ShopResultDto
of
(
Shop
shop
,
String
group
,
IpResourceDto
ipResource
)
{
ShopResultDto
shopResultDto
=
new
ShopResultDto
();
shopResultDto
.
setShopId
(
shop
.
getShopId
());
...
...
@@ -89,7 +62,7 @@ public class ShopResultDto {
if
(
shop
.
getShopAccount
()
!=
null
)
shopResultDto
.
setShopAccount
(
shop
.
getShopAccount
());
shopResultDto
.
setGroup
(
group
);
shopResultDto
.
getBindIp
().
add
(
ipResource
);
shopResultDto
.
setBindIp
(
ipResource
);
shopResultDto
.
setCreateTime
(
shop
.
getCreateTime
());
return
shopResultDto
;
}
...
...
@@ -166,11 +139,11 @@ public class ShopResultDto {
this
.
shopUrl
=
shopUrl
;
}
public
List
<
IpResourceDto
>
getBindIp
()
{
public
IpResourceDto
getBindIp
()
{
return
bindIp
;
}
public
void
setBindIp
(
List
<
IpResourceDto
>
bindIp
)
{
public
void
setBindIp
(
IpResourceDto
bindIp
)
{
this
.
bindIp
=
bindIp
;
}
...
...
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