上一页 1 2 3 4 5 6 7 ··· 10 下一页
摘要: <td>${pun.abntime}</td> //后面加入.substring(0,10) <td>${pun.abntime.substring(0,10)}</td> 阅读全文
posted @ 2019-10-31 15:11 闫超辉 阅读(497) 评论(0) 推荐(0)
摘要: save执行之后存入session中,事务提交才会入库! 列: Excel导入一条数据,根据导入数据名称去不同表查询出相同数据并保存入一张新表,用类型区分 笨办法 第一次保存 Hello hell = new Hello() //自动生成主键ID hello.setid(UUID.randomUUI 阅读全文
posted @ 2019-10-30 17:54 闫超辉 阅读(634) 评论(0) 推荐(0)
摘要: String str4 = "1,2,3,6,7,"; //删除最后一个字符, str4 = str4.substring(0, str4.length() -1); 阅读全文
posted @ 2019-10-30 10:35 闫超辉 阅读(47574) 评论(0) 推荐(1)
摘要: UPDATE 表名 SET 需要导入的字段=原字段 阅读全文
posted @ 2019-10-23 15:31 闫超辉 阅读(459) 评论(0) 推荐(0)
摘要: 按WIN+R组合键调出运行框,输入CMD回车,进入命令行模式。 输入SQLPLUS / AS SYSDBA 回车。 输入SHUTDOWN IMMEDIATE 回车。 阅读全文
posted @ 2019-10-12 11:24 闫超辉 阅读(3479) 评论(0) 推荐(0)
摘要: @Transactional public String saveImportPermitZt(String path,SysUser user,String hvalue){ int index = 0; String datamsg=""; SysFile sysfilee = null; String patch = path; //截取file/之后的内容 indexs+5 indexs+ 阅读全文
posted @ 2019-09-24 17:21 闫超辉 阅读(212) 评论(0) 推荐(0)
摘要: String sll = path; //获取字符后四位 if(sll.substring(sll.length()-4, sll.length()).equals(".xls")) { // 获取Excel文件对象 HSSFWorkbook workBook ... 阅读全文
posted @ 2019-09-24 17:16 闫超辉 阅读(2277) 评论(0) 推荐(0)
摘要: String sg ="12312/412" //截取/之后的内容,包含/可以把indexs+1改为+0 int indexs = sg.indexOf("/"); String newStr = sg.substring(indexs + 1); 阅读全文
posted @ 2019-09-24 17:15 闫超辉 阅读(5996) 评论(0) 推荐(0)
摘要: String sts = newStr; sts = newStr.replaceAll("//","\\\\\\\\");; //两个斜杠在字符串中为1个\斜杠 阅读全文
posted @ 2019-09-24 17:12 闫超辉 阅读(653) 评论(0) 推荐(0)
摘要: public static boolean deleteFile(String path) { boolean flag = false; //path数据库保存路径 File file = new File(相对路径+path); // 路径为文件且不为空则进行删除 if (file.isFile()) { file.delete(); flag = true; } return flag; } 阅读全文
posted @ 2019-09-24 17:10 闫超辉 阅读(1474) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 10 下一页