摘要: sa-token: # token名称 (同时也是cookie名称) token-name: token # token有效期,单位s 默认30天, -1代表永不过期 #timeout: 43200 # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 activity-t 阅读全文
posted @ 2024-08-16 15:41 一只小松许 阅读(1) 评论(0) 推荐(0) 编辑
摘要: 将数据一条一条查出来 千万不要用一对多查询 最后用方法进行合并 public class ExcelFileCellMergeStrategy implements CellWriteHandler{ /** * 合并列的范围索引 */ private int[] mergeColumnIndex; 阅读全文
posted @ 2024-07-26 14:45 一只小松许 阅读(24) 评论(0) 推荐(0) 编辑
摘要: @ApiOperation("导出历史上送记录")@PostMapping(value = "/exportSend", produces = "application/octet-stream")public void exportExcel(@RequestBody ExportSendVO s 阅读全文
posted @ 2024-07-26 14:13 一只小松许 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 当我们连表查询遇见数据重复的时候 出现了 好多条 id一样的数据 是错误的 所以我们需要用到distinct关键字进行处理 保证我们数据的唯一性 接下来一个小知识 就是distinct关键字的使用 感谢观看 谢谢 阅读全文
posted @ 2024-07-03 13:33 一只小松许 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 首先看看我们的需求 定义两个VO类 确定好查询出来的格式 最重要的是xml文件里的查询 阅读全文
posted @ 2024-07-03 10:00 一只小松许 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2024-06-25 15:35 一只小松许 阅读(3) 评论(0) 推荐(0) 编辑
摘要: Invalid bound statement (not found): com.qizhikj.zcxt.zc.api.xtwh.mapper.ZcRoleMapper.select 我们一般遇见这样的错误不要慌 先去看一下对应的字段有没有错误 如果没啥问题 一定是配置的错了导致 无法扫描到 xm 阅读全文
posted @ 2024-06-25 11:45 一只小松许 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 当我们需要用条件控制整个树形结构的时候 ,我们需要怎么做呢? 首先我们根据是否传参需要查出来整个树形结构 如果输入了资源名称这个参数 我们就写一个根据条件查询的方法(手写SQL) 这个是根据参数查出来想要的结果 如果不需要传参的话 我们直接查整个树形就好了 这样的话 我们就可以根据是否传参 来获得我 阅读全文
posted @ 2024-06-17 17:34 一只小松许 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 1.导入依赖 <!--easy-poi--><dependency> <groupId>cn.afterturn</groupId> <artifactId>easypoi-spring-boot-starter</artifactId> <version>4.3.0</version></depe 阅读全文
posted @ 2024-06-13 15:19 一只小松许 阅读(8) 评论(0) 推荐(0) 编辑
摘要: @ApiOperation(value = "导出多个文件到一个Excel中的不同sheets", produces = "application/octet-stream")@PostMapping("/exportMultipleExcel")public void exportMultiple 阅读全文
posted @ 2024-04-08 09:32 一只小松许 阅读(5) 评论(0) 推荐(0) 编辑