上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 63 下一页
摘要: 这个神奇的问题困扰了我半天,明明和我之前的写入Excel方法几乎一样,以前可以,这次怎么都不成功,都是只有表头没有数据。 网上也找不到解决方法,反复测试之后终于解决这个坑爹问题,记录一下。如果有人也遇到,可以参考。 直接说结论: 原因是我javabean上用到了@Data注解,并且里面的字段名是类似 阅读全文
posted @ 2021-02-18 16:26 红尘沙漏 阅读(1673) 评论(0) 推荐(0)
摘要: /* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, 阅读全文
posted @ 2021-02-04 11:37 红尘沙漏 阅读(100) 评论(0) 推荐(0)
摘要: 引入 jar 包 <dependency> <groupId>com.alibaba</groupId> <artifactId>easyexcel</artifactId> <version>1.1.2-beta5</version> </dependency> public static voi 阅读全文
posted @ 2021-01-29 15:37 红尘沙漏 阅读(5357) 评论(0) 推荐(0)
摘要: /** * 分页查询 * @param entity * @return */ @GetMapping("getPageList") public R<IPage<ConsumptionMachineVO>> getPageList(@ApiIgnore @RequestParam Map<Stri 阅读全文
posted @ 2021-01-28 15:18 红尘沙漏 阅读(573) 评论(0) 推荐(0)
摘要: package org.springblade.consumption.utils; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java. 阅读全文
posted @ 2021-01-28 13:43 红尘沙漏 阅读(56) 评论(0) 推荐(0)
摘要: /* * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, 阅读全文
posted @ 2021-01-28 13:41 红尘沙漏 阅读(152) 评论(0) 推荐(0)
摘要: /** * 报餐对比 * @param mealType * @param posoptime * @return */ @Override public List<ConsumptionMachine> getMealComparison(String mealType, Date posopti 阅读全文
posted @ 2021-01-26 16:39 红尘沙漏 阅读(92) 评论(0) 推荐(0)
摘要: 1.if语句 如果empno不为空,则在WHERE参数后加上AND empno = #{empno},这里有1=1所以即使empno为null,WHERE后面也不会报错。 映射文件 <select id="getEmpById2" resultType="emp"> SELECT * FROM em 阅读全文
posted @ 2021-01-26 09:25 红尘沙漏 阅读(162) 评论(0) 推荐(0)
摘要: 今天生产上遇到上述的bug: 系统变量innodb_large_prefix开启了,则对于使用DYNAMIC或COMPRESSED行格式的InnoDB表,索引键前缀限制为3072字节。如果禁用innodb_large_prefix,不管是什么表,索引键前缀限制为767字节。 上述的bug很明显是索引 阅读全文
posted @ 2021-01-22 17:12 红尘沙漏 阅读(240) 评论(0) 推荐(0)
摘要: package org.springblade.consumption.utils; import org.springblade.consumption.constant.ConsumptionConstant; import org.springblade.core.tool.utils.Fun 阅读全文
posted @ 2021-01-21 08:28 红尘沙漏 阅读(114) 评论(0) 推荐(0)
上一页 1 ··· 27 28 29 30 31 32 33 34 35 ··· 63 下一页