2021年8月5日

摘要: 1、在List集合中,通过查看源码,就会发现ArrayList实现RandomAccess接口,Linked并没有实现RandomAccess接口。 ArrayList:源码 Linkedlist:源码 2、什么是RandomAccess,有什么作用呢: RandomAccess:源码 Random 阅读全文
posted @ 2021-08-05 14:58 0027014302yoyoyo 阅读(56) 评论(0) 推荐(0) 编辑

2021年8月3日

摘要: 大颗粒事务以及句柄跳出形式 事务包含了整个处理过程,属于大颗粒的事务,会阻塞其它的写操作,建议如下: 1、取消显式事务(即去掉“SET autocommit=0”和“commit”这两句),让每个update操作自动提交,但需要结合业务场景确定能否去掉显式事务,如果实在不能取消,则改到晚上等很少人用 阅读全文
posted @ 2021-08-03 18:03 0027014302yoyoyo 阅读(199) 评论(0) 推荐(0) 编辑

2021年7月16日

摘要: 自定义注解实现 //注解package com.example.test.service; import java.lang.annotation.*; @Target({ElementType.FIELD, ElementType.TYPE}) @Retention(RetentionPolicy 阅读全文
posted @ 2021-07-16 16:53 0027014302yoyoyo 阅读(68) 评论(0) 推荐(0) 编辑
摘要: 获取当前对象 var $obj = getCurTabOrDialogObj('returnObj') 获取指定元素的值 var isStaged = $(obj).parents('tr').first().find('[name="T_HT_CONTRACT#SPARE_FIELD_11"]') 阅读全文
posted @ 2021-07-16 16:10 0027014302yoyoyo 阅读(31) 评论(0) 推荐(0) 编辑
摘要: @RequestMapping("exportContract") @ResponseBody public void exportContract(HttpServletRequest request, HttpServletResponse response){ //测试使用的数据( 创建相应的 阅读全文
posted @ 2021-07-16 15:31 0027014302yoyoyo 阅读(431) 评论(0) 推荐(0) 编辑
摘要: //金额转为大写 结果为:"陆万柒仟伍佰伍拾陆元叁角贰分" double a4 = 67556.32; String digitUppercase = Convert.digitToChinese(a4); //转换为日期对象: String a = "2017-05-06"; Date value 阅读全文
posted @ 2021-07-16 10:19 0027014302yoyoyo 阅读(501) 评论(0) 推荐(0) 编辑
摘要: package com.szjz.web.invoice.invoiceInfo; import cn.hutool.core.collection.CollUtil; import cn.hutool.core.lang.Console; import cn.hutool.json.JSONUti 阅读全文
posted @ 2021-07-16 09:54 0027014302yoyoyo 阅读(118) 评论(0) 推荐(0) 编辑
摘要: public String deEncodeByPath(String path) { String content=""; String fileType = path.substring(path.lastIndexOf(".")+1); if("pdf".equalsIgnoreCase(fi 阅读全文
posted @ 2021-07-16 09:25 0027014302yoyoyo 阅读(142) 评论(0) 推荐(0) 编辑

2020年2月14日

只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2020-02-14 11:23 0027014302yoyoyo 阅读(0) 评论(0) 推荐(0) 编辑