摘要: /** * 统计两个时间的时间差 * two-one * 相差几秒几毫秒 */ public static String getDistanceTime(Date date1, Date date2) { Date one; Date two; long day = 0;//天数差 long hou 阅读全文
posted @ 2023-04-03 10:20 酷盖的小机灵 阅读(44) 评论(0) 推荐(0)
摘要: List<User> userList= new ArrayList<>(); List<User> userMergeList= new ArrayList<>(); userList.parallelStream().collect(Collectors.groupingBy(o -> (o.g 阅读全文
posted @ 2023-04-03 09:09 酷盖的小机灵 阅读(386) 评论(0) 推荐(0)
摘要: select case when null = null then 'true' else 'false' end hh; select case when null <=> null then 'true' else 'false' end hh; 阅读全文
posted @ 2023-02-16 13:42 酷盖的小机灵 阅读(65) 评论(0) 推荐(0)
摘要: truncate table 表名 快速删除create table 新表 as select * from 需要备份的表INSERT INTO 需要加数据表 (SELECT * FROM 表); 阅读全文
posted @ 2023-02-08 16:54 酷盖的小机灵 阅读(23) 评论(0) 推荐(0)
摘要: Grep Console 安装 阅读全文
posted @ 2023-01-11 13:53 酷盖的小机灵 阅读(77) 评论(0) 推荐(0)
摘要: //设置对象属性值,返回对象 public <T> T saveValue(T t,String name,String value){ // Class<? extends Object> c = t.getClass(); //得到属性--具体某一个 Field field = t.getCla 阅读全文
posted @ 2022-11-18 14:01 酷盖的小机灵 阅读(45) 评论(0) 推荐(0)
摘要: 1 /** 2 * 比较两个实体属性值,返回一个map以有差异的属性名为key,value为一个Map分别存oldObject,newObject此属性名的值 3 * 4 * @param oldObject 进行属性比较的对象1 5 * @param newObject 进行属性比较的对象2 6 阅读全文
posted @ 2022-11-15 10:58 酷盖的小机灵 阅读(31) 评论(0) 推荐(0)
摘要: 1 UPDATE WATCHER_TASK a 2 SET a.LAST_MODIFIER_ID = ( 3 SELECT 4 b.USER_ID 5 FROM 6 task_user b 7 WHERE 8 a.TASK_ID = b.TASK_ID 9 AND b.TASK_TYPE = 3 1 阅读全文
posted @ 2022-11-14 09:42 酷盖的小机灵 阅读(31) 评论(0) 推荐(0)
摘要: 1 public static String specialFormatDateSplicing(Date date) { 2 if (date == null) { 3 return null; 4 } 5 LocalDateTime localDateTime = convertDateToLo 阅读全文
posted @ 2022-11-11 15:48 酷盖的小机灵 阅读(151) 评论(0) 推荐(0)
摘要: 1 String regex = "(\\$|\\#)\\{[^{}]*\\}";//匹配的是#{xxx}或者${xxx} 2 List<WatcherTaskAgentFileMapping> watcherTaskAgentFileMappingList = agentFileQueryDao. 阅读全文
posted @ 2022-11-11 14:55 酷盖的小机灵 阅读(1832) 评论(0) 推荐(1)