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
86ce4f7a
Commit
86ce4f7a
authored
Mar 10, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shop接口bug修改
parent
adb5fd8a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
11 deletions
+24
-11
IpResource.java
...a/com/edgec/browserbackend/browser/domain/IpResource.java
+19
-10
Platform.java
...ava/com/edgec/browserbackend/browser/domain/Platform.java
+4
-0
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+1
-1
No files found.
src/main/java/com/edgec/browserbackend/browser/domain/IpResource.java
View file @
86ce4f7a
...
@@ -14,11 +14,12 @@ public class IpResource {
...
@@ -14,11 +14,12 @@ public class IpResource {
private
String
id
;
private
String
id
;
private
String
addr
;
private
String
addr
;
private
IpType
ipType
=
IpType
.
VENDOR
;
private
IpType
ipType
=
IpType
.
VENDOR
;
private
String
ipProvide
r
;
private
String
vendo
r
;
private
String
ipRegion
;
private
String
ipRegion
;
private
IpStatus
ipStatus
;
private
IpStatus
ipStatus
;
private
Platform
platform
;
private
List
<
Interval
>
port
;
private
List
<
Interval
>
port
;
private
long
createdAt
;
private
long
purchasedTime
;
private
long
validTime
;
private
long
validTime
;
private
long
leftTime
;
private
long
leftTime
;
private
String
details
;
private
String
details
;
...
@@ -77,12 +78,12 @@ public class IpResource {
...
@@ -77,12 +78,12 @@ public class IpResource {
this
.
bindHistory
=
bindHistory
;
this
.
bindHistory
=
bindHistory
;
}
}
public
long
get
CreatedAt
()
{
public
long
get
PurchasedTime
()
{
return
createdAt
;
return
purchasedTime
;
}
}
public
void
set
CreatedAt
(
long
createdAt
)
{
public
void
set
PurchasedTime
(
long
purchasedTime
)
{
this
.
createdAt
=
createdAt
;
this
.
purchasedTime
=
purchasedTime
;
}
}
public
long
getLeftTime
()
{
public
long
getLeftTime
()
{
...
@@ -109,12 +110,12 @@ public class IpResource {
...
@@ -109,12 +110,12 @@ public class IpResource {
this
.
addr
=
ipAddr
;
this
.
addr
=
ipAddr
;
}
}
public
String
get
IpProvide
r
()
{
public
String
get
Vendo
r
()
{
return
ipProvide
r
;
return
vendo
r
;
}
}
public
void
set
IpProvider
(
String
ipProvide
r
)
{
public
void
set
Vendor
(
String
vendo
r
)
{
this
.
ipProvider
=
ipProvide
r
;
this
.
vendor
=
vendo
r
;
}
}
public
boolean
isDeleted
()
{
public
boolean
isDeleted
()
{
...
@@ -180,4 +181,12 @@ public class IpResource {
...
@@ -180,4 +181,12 @@ public class IpResource {
public
void
setShopId
(
String
shopId
)
{
public
void
setShopId
(
String
shopId
)
{
this
.
shopId
=
shopId
;
this
.
shopId
=
shopId
;
}
}
public
Platform
getPlatform
()
{
return
platform
;
}
public
void
setPlatform
(
Platform
platform
)
{
this
.
platform
=
platform
;
}
}
}
src/main/java/com/edgec/browserbackend/browser/domain/Platform.java
0 → 100644
View file @
86ce4f7a
package
com
.
edgec
.
browserbackend
.
browser
.
domain
;
public
enum
Platform
{
}
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
86ce4f7a
...
@@ -308,7 +308,7 @@ public class ShopServiceImpl implements ShopService {
...
@@ -308,7 +308,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
<>();
shops
.
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
)
ipResource
=
new
IpResource
();
ipResource
=
new
IpResource
();
...
...
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