Commit 2d6304bd authored by renjie's avatar renjie

ip接口字段名修改

parent 15ec249f
...@@ -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 getShopDto() { public ShopDto getBindShop() {
return shopDto; return bindShop;
} }
public void setShopDto(ShopDto shopDto) { public void setBindShop(ShopDto bindShop) {
this.shopDto = shopDto; this.bindShop = bindShop;
} }
public List<String> getProtocol() { public List<String> getProtocol() {
......
...@@ -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) {
......
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment