摘要:
public class SortTest { public static void main(String[] args) { //普通对象list sortVOList(); //mapList sortMapList(); } private static void sortVOList() 阅读全文
摘要:
/** * 重命名重复的文件名 * * @param fileNameList 文件名列表 * @return重命名后的文件名列表 */ private static List<String> getNoRepeatFileNameList(List<String> fileNameList) { 阅读全文
摘要:
//将文件直接压缩至输出流 String[] fileNames = fileNameList.toArray(new String[0]); InputStream[] inputStreams = inputStreamList.toArray(new InputStream[0]); if ( 阅读全文
摘要:
/** * 写Excel文件 * * @param data 数据 * @param configs 列配置 * @param destFile 目标文件 * @param templateFile 模板文件 * @param onlyAlias 是否仅写出有别名的列 * @param isWrit 阅读全文
摘要:
使用mybatis-plus批量插入的时候报错信息为:com.alibaba.druid.sql.parser.ParserException: syntax error, expect ')', pos 40, line 1, column 41, token EOF 排查sql日志发现生成的sq 阅读全文
摘要:
var tbl = document.getElementById('sheetjs'); var wb = XLSX.utils.table_to_book(tbl); var ws = wb.Sheets["Sheet1"]; // get the current sheet console.l 阅读全文
摘要:
public class CopySheetToFileTest { public static void main(String[] args) { File file = new File(CopySheetToFileTest.class.getResource("/bx.xlsx").get 阅读全文
摘要:
设置全局 set global collation_connection = utf8mb4_general_ci set global default_collation_for_utf8mb4 = utf8mb4_general_ci 注: default_collation_for_utf8m 阅读全文
摘要:
//语法 convert(value, unsigned int) //示例, null值无法转换需用ifnulll函数处理,空白符可以直接转换成0 select convert(ifnull(null,0),unsigned int),convert('',unsigned int); //结论: 阅读全文
摘要:
背景 每张报表有个截止上报时间,截止时间的计算稍微复杂,下面记录一下自己的写作成果。当月月报截止时间下月xx号,当季季报截止时间下季第一个月。。。 数据结构 public enum ReportFrequencyEnum { YEAR("year", "年"), MONTH("month", "月" 阅读全文