- 博客(10)
- 收藏
- 关注
原创 JAVA实现手机发送验证码
public class LinkSMS { public static String HttpClientTest(String mobile,String content) { // 接口账户名 String CorpID = ""; // 接口密码 String Pwd = ""; String result=""; try { CloseableHttpClient httpc
2022-05-13 10:52:04
571
原创 前端VUE之后端接口数据转树形结构
treeData: [ { id: 'root', label: '自定义label', // 子节点: children: []}],// 转tree方法const jsonObjs = JSON.parse(JSON.stringify(res2.data));// 定义一个新数组用来存放遍历的数据const newList = [];const checkList = [];for (let i = 0; i < jsonObjs.length; i++) {
2022-05-13 10:43:04
1327
原创 JAVA8之Lambda表达式去重、分组、求和操作
1.List<T>去重 //单个属性List<UserParam> result = userList.stream().collect(Collectors.collectingAndThen( Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(UserParam::getOrgCode))), ArrayList::new));//多属性去重List newL
2022-05-13 10:37:34
1804
原创 获取List<Map>结构中重复的数据
话不多说,直接看代码//List<Map<String,Object>转List<T>JSONArray jsonArray = new JSONArray();jsonArray.addAll(successList);List<ExcelTargetAmountVo> getListBean = jsonArray.toJavaList(ExcelTargetAmountVo.class);Map<ExcelTargetAmountVo, Int
2022-05-13 10:33:19
1028
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅