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
2d6304bd
Commit
2d6304bd
authored
Mar 11, 2020
by
renjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ip接口字段名修改
parent
15ec249f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
8 deletions
+7
-8
IpResourceDto.java
...a/com/edgec/browserbackend/browser/dto/IpResourceDto.java
+6
-6
IpResourceServiceImpl.java
...erbackend/browser/service/Impl/IpResourceServiceImpl.java
+1
-1
ShopServiceImpl.java
.../browserbackend/browser/service/Impl/ShopServiceImpl.java
+0
-1
No files found.
src/main/java/com/edgec/browserbackend/browser/dto/IpResourceDto.java
View file @
2d6304bd
...
@@ -22,7 +22,7 @@ public class IpResourceDto {
...
@@ -22,7 +22,7 @@ public class IpResourceDto {
private
String
details
;
private
String
details
;
private
String
password
;
private
String
password
;
private
List
<
String
>
protocol
;
private
List
<
String
>
protocol
;
ShopDto
shopDto
;
ShopDto
bindShop
;
public
IpResourceDto
(){
public
IpResourceDto
(){
}
}
...
@@ -40,7 +40,7 @@ public class IpResourceDto {
...
@@ -40,7 +40,7 @@ public class IpResourceDto {
this
.
details
=
ipResource
.
getDetails
();
this
.
details
=
ipResource
.
getDetails
();
this
.
password
=
ipResource
.
getPassword
();
this
.
password
=
ipResource
.
getPassword
();
this
.
protocol
=
ipResource
.
getProtocol
();
this
.
protocol
=
ipResource
.
getProtocol
();
this
.
shopDto
=
shopDto
;
this
.
bindShop
=
shopDto
;
}
}
public
String
getId
()
{
public
String
getId
()
{
...
@@ -131,12 +131,12 @@ public class IpResourceDto {
...
@@ -131,12 +131,12 @@ public class IpResourceDto {
this
.
password
=
password
;
this
.
password
=
password
;
}
}
public
ShopDto
get
ShopDto
()
{
public
ShopDto
get
BindShop
()
{
return
shopDto
;
return
bindShop
;
}
}
public
void
set
ShopDto
(
ShopDto
shopDto
)
{
public
void
set
BindShop
(
ShopDto
bindShop
)
{
this
.
shopDto
=
shopDto
;
this
.
bindShop
=
bindShop
;
}
}
public
List
<
String
>
getProtocol
()
{
public
List
<
String
>
getProtocol
()
{
...
...
src/main/java/com/edgec/browserbackend/browser/service/Impl/IpResourceServiceImpl.java
View file @
2d6304bd
...
@@ -69,7 +69,7 @@ public class IpResourceServiceImpl implements IpResourceService {
...
@@ -69,7 +69,7 @@ public class IpResourceServiceImpl implements IpResourceService {
}
}
public
static
String
makeRandomPassword
(
int
len
){
public
static
String
makeRandomPassword
(
int
len
){
char
charr
[]
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@
#
$%^&*.?"
.
toCharArray
();
char
charr
[]
=
"abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890~!@$%^&*.?"
.
toCharArray
();
StringBuilder
sb
=
new
StringBuilder
();
StringBuilder
sb
=
new
StringBuilder
();
Random
r
=
new
Random
();
Random
r
=
new
Random
();
for
(
int
x
=
0
;
x
<
len
;
++
x
)
{
for
(
int
x
=
0
;
x
<
len
;
++
x
)
{
...
...
src/main/java/com/edgec/browserbackend/browser/service/Impl/ShopServiceImpl.java
View file @
2d6304bd
...
@@ -312,7 +312,6 @@ public class ShopServiceImpl implements ShopService {
...
@@ -312,7 +312,6 @@ 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
(
shopFilterDto
!=
null
&&
StringUtils
.
isNotBlank
(
shopFilterDto
.
getIpRegion
()))
if
(
shopFilterDto
!=
null
&&
StringUtils
.
isNotBlank
(
shopFilterDto
.
getIpRegion
()))
shops
=
shopRepository
.
findByShopIdInAndIpRegionLike
(
shopIds
,
shopFilterDto
.
getIpRegion
(),
pageable
);
shops
=
shopRepository
.
findByShopIdInAndIpRegionLike
(
shopIds
,
shopFilterDto
.
getIpRegion
(),
pageable
);
...
...
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