会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
博主首页
笑~笑
博客园
新随笔
联系
管理
上一页
1
···
32
33
34
35
36
37
38
39
40
···
47
下一页
2020年5月11日
整理日期,整理时间段,将日期集合整理为时间段
摘要: /** * 根据传入的日期集合 整理成时间段 */ public static String getDayToTimeSlot(List<String> list){ String time=""; Collections.sort(list, new Comparator<String>() {
阅读全文
posted @ 2020-05-11 11:19 笑~笑
阅读(350)
评论(0)
推荐(0)
2020年4月27日
当数据库查询in使用超过1000个的处理方式,in超过1000的问题
摘要: 数据库查询的时候 ,当in里面的参数个数大于1000以后就会报错 大体思路 就是把sql改成 in() or in ()的结果 入参的list进行截取 mybatis中xml的写法 and <foreach collection="list" item="item" open="(" separat
阅读全文
posted @ 2020-04-27 09:33 笑~笑
阅读(8842)
评论(0)
推荐(1)
oracle一些语法
摘要: 新增字段语句 alter table OA.EHR_VACATION add DATES2 CLOB; 删除表字段语句 、删除字段 alter table OA.EHR_VACATION drop (DATES); 修改表字段名称 alter table OA.EHR_VACATION rename
阅读全文
posted @ 2020-04-27 09:20 笑~笑
阅读(236)
评论(0)
推荐(0)
2020年1月21日
idea中git操作
摘要: 操作失败时可以看下当前分支文件状态方便查找问题 git status git提交代码 git更新代码 git切换分支
阅读全文
posted @ 2020-01-21 16:12 笑~笑
阅读(102)
评论(0)
推荐(0)
idea鼠标放上去查看注释,idea查看注释
摘要: idea鼠标移上去查看注释
阅读全文
posted @ 2020-01-21 15:36 笑~笑
阅读(4070)
评论(0)
推荐(0)
idea更新git远程代码,查看代码改动了哪些
摘要: 查看idea更新git代码的变动 查看idea更新git代码的变化
阅读全文
posted @ 2020-01-21 11:41 笑~笑
阅读(9106)
评论(0)
推荐(0)
2020年1月20日
获取方法和类上的注解信息、判断是否有注解
摘要: 获取方法上的注解,获取类上面的注解 if(f.isAnnotationPresent(ApiModelProperty.class)){ //获取类所有的方法 Method[] methods = Test01Controller.class.getMethods(); for (int i=0;i
阅读全文
posted @ 2020-01-20 14:25 笑~笑
阅读(4045)
评论(0)
推荐(0)
java接口定义统一的异常处理,aop
摘要: 获取完整的方法名,包含包名、类名、方法名 joinPoint.getTarget().getClass().getName()+"."+joinPoint.getSignature().getName() aop中获取请求对象 RequestAttributes ra = RequestContex
阅读全文
posted @ 2020-01-20 10:58 笑~笑
阅读(755)
评论(0)
推荐(0)
2020年1月18日
枚举的使用
摘要: 枚举类的定义 1、可以用于定义常量 2、根据类型code获取对应的中文意思 public enum VacationTypes { //请假类型 1、年休 2、病假 3、事假 4、工伤假 5、婚假 6、产假 7、护理假 8、丧假 FuneralLeave("8","丧假"), NursingLeav
阅读全文
posted @ 2020-01-18 17:05 笑~笑
阅读(152)
评论(0)
推荐(0)
2020年1月9日
自定义前缀生成流水号
摘要: 自定义前缀生成流水号 前缀、中间为yyyyMMdd日期、后面6位自增 数据库截图 逻辑代码service @Service public class NumerService { @Autowired private NumerDao numerDao; public String getNumbe
阅读全文
posted @ 2020-01-09 13:53 笑~笑
阅读(418)
评论(0)
推荐(0)
上一页
1
···
32
33
34
35
36
37
38
39
40
···
47
下一页
公告