04 2024 档案
摘要://数组去重 //优化遍历数组法 function uniqueArr(array) { var r = []; for (var i = 0, l = array.length; i < l; i++) { for (var j = i + 1; j < l; j++) if (array[i].
阅读全文
摘要:Map<String, List<OperationNodeVo>> listMap = nodeVoList.stream().collect(Collectors.groupingBy(OperationNodeVo::getNodeCode));
阅读全文
摘要:List<Map<String, Object>> list = new ArrayList<>(); Map<String, Object> map1 = new HashMap<>(); map1.put("name", "苹果"); map1.put("code", "apple"); lis
阅读全文
摘要:-- extract只能从date类型中提取年、月、日 -- 年 select extract(year from sysdate) from dual; -- 月 select extract(month from sysdate) from dual; -- 日 select extract(d
阅读全文
摘要:-- mysql生成uuid select uuid(); -- 替换- select replace(uuid(),'-','');
阅读全文
摘要:-- sql server生成uuid select newid(); -- 替换- select replace(newid(),'-','');
阅读全文
摘要:-- oracle生成uuid select sys_guid() from dual; -- 解决乱码 select rawtohex(sys_guid()) from dual;
阅读全文