
搜索框和数据库均有开始时间和结束时间的sql
活动表中有两个字段:startDate、endDate,分别代表开始时间、结束时间。现在需要查询某一时间段内正在进行的活动,实际只要满足活动的时间段和查询条件的时间段有交集即可,包含以下图片中的四种情况。使用表达式s...
活动表中有两个字段:startDate、endDate,分别代表开始时间、结束时间。现在需要查询某一时间段内正在进行的活动,实际只要满足活动的时间段和查询条件的时间段有交集即可,包含以下图片中的四种情况。使用表达式s...
1.数组转化为List:String[] strArray= new String[]{"Tom", "Bob", "Jane"};List strList= Arrays.asList(strArray);2.数组...
使用java8新特性stream进行List去重 List newList = list.stream().distinct().collect(Collectors.toList()); System.out.pr...
/** * String字符串转成List<Long>数据格式 * String str = "1,2,3,4,5,6" -> List<Long> listLo...
mybatis-plus: configuration: log-impl: org.apache.ibatis.logging.stdout.StdOutImpl