update 第三方平台解析密钥方法

This commit is contained in:
Lemon
2023-10-25 09:32:15 +08:00
parent 1377f9a488
commit f20e8a74ca
4 changed files with 58 additions and 43 deletions

View File

@@ -34,6 +34,7 @@ import com.jsowell.pile.vo.uniapp.PileConnectorDetailVO;
import com.jsowell.pile.vo.web.*;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@@ -824,19 +825,23 @@ public class PileBasicInfoServiceImpl implements IPileBasicInfoService {
}
public static void main(String[] args) {
List<String> list = new ArrayList<>();
list.add("0");
list.add("1");
list.add("4");
list.add("3");
list.add("2");
list.add(null);
list.add("");
list = list.stream().filter(StringUtils::isNotBlank).collect(Collectors.toList());
list.sort(Comparator.comparing(Integer::new));
String s = RandomStringUtils.randomAlphanumeric(16);
System.out.println(s);
System.out.println(list);
// List<String> list = new ArrayList<>();
// list.add("0");
// list.add("1");
// list.add("4");
// list.add("3");
// list.add("2");
// list.add(null);
// list.add("");
//
// list = list.stream().filter(StringUtils::isNotBlank).collect(Collectors.toList());
// list.sort(Comparator.comparing(Integer::new));
//
// System.out.println(list);
}
/**