HeavenTang

导航

2025年12月29日

oracle 按申请时间获取最新的一条数据

摘要: select * from (select ktbg.zqsq_id from T_XWGL_LWGL_ZQSQ_V4 ktbg where ktbg.xs_id= 'S20230201037' order by abs(to_date(ktbg.sqsj,'yyyy-MM-DD HH24:mi:s 阅读全文

posted @ 2025-12-29 14:36 HeavenTang 阅读(1) 评论(0) 推荐(0)

2025年12月26日

java下载文件压缩zip,并且分文件夹

摘要: 这两种差不多,取路径的时候有点区别: 第一种: 点击查看代码 public static void downloadFileByFastDFS(@NotNull List<AttachmentFileDto> attachmentFileDtos, HttpServletRequest reques 阅读全文

posted @ 2025-12-26 14:20 HeavenTang 阅读(2) 评论(0) 推荐(0)

2025年12月5日

oracle 锁表和解决

摘要: 在进行批量对DML操作时程序竟然中断了,不再往下执行、查询一下某张表被锁住了,因此不再往下执行了。 第一步:通过管理员权限用户查询被锁表信息 如果怀疑表被锁了,或者事务未被正常关闭,在Oracle数据库中我们可以通过以下语句进行查询获取相关信息: 查询表锁的情况: SELECT s.sid, s.s 阅读全文

posted @ 2025-12-05 10:26 HeavenTang 阅读(111) 评论(0) 推荐(0)

2025年11月21日

网页前端 加水印

摘要: 有明水印和暗水印 使用 canva将两张图片合起来:document.createElement('canvas'); 参考文档:https://www.cnblogs.com/keepsmart/p/14829134.html 阅读全文

posted @ 2025-11-21 15:07 HeavenTang 阅读(7) 评论(0) 推荐(0)

2025年10月23日

oracle long转日期 和日期转long时间戳

摘要: SELECT TO_DATE('1970-01-01 08:00:00', 'YYYY-MM-DD HH24:mi:ss') + (TO_NUMBER('1761015597082') / (24 * 60 * 60 * 1000)) AS converted_date FROM dual; --d 阅读全文

posted @ 2025-10-23 10:08 HeavenTang 阅读(24) 评论(0) 推荐(0)

2025年7月15日

java 导入dbf和excel解析 导出dbf和excel

摘要: 导入dbf和excel解析: 点击查看代码 package com.test.server.utils; import com.linuxense.javadbf.DBFReader; import lombok.extern.slf4j.Slf4j; import java.io.ByteArra 阅读全文

posted @ 2025-07-15 10:14 HeavenTang 阅读(100) 评论(0) 推荐(1)

2025年6月19日

spring 异步处理导出 @Async @EnableAspectJAutoProxy 上下文

摘要: 1启动类加上注解 @Configuration @EnableAsync @EnableAspectJAutoProxy(exposeProxy = true) 如: 2、 使用@Async 放在 @service类下面的方法上。 注意,主线程和异步方法在同一个类里面, 需要手动获取bean代理,A 阅读全文

posted @ 2025-06-19 14:04 HeavenTang 阅读(76) 评论(0) 推荐(0)

2024年5月30日

导出离校单,单个word, word转pdf, word里面有图片

摘要: 引入 @Autowired private HttpServletResponse response; @Autowired private HttpServletRequest request; 实现类导出单个word 点击查看代码 public void exportStudentWordOld 阅读全文

posted @ 2024-05-30 11:52 HeavenTang 阅读(86) 评论(0) 推荐(0)

2024年5月29日

读取静态资源图片

摘要: 最近在导出word里面要在cell里面放图片: 点击查看代码 import com.lowagie.text.*; import com.lowagie.text.Font; import com.lowagie.text.Image; import com.lowagie.text.pdf.Bas 阅读全文

posted @ 2024-05-29 15:29 HeavenTang 阅读(23) 评论(0) 推荐(0)

2024年5月15日

java ftl 导出含有富文本的word模板解析

摘要: 可以使用 <#noescape>${xx}</#noescape> 阅读全文

posted @ 2024-05-15 16:53 HeavenTang 阅读(104) 评论(0) 推荐(0)