摘要: 1:创建list set集合尽量给出长度 2:多条件筛选 a:用list存放sql 条件 b:用 sql += " where " + StringUtils.join(list.toArray(), "and") 拼接筛选条件 3:联合删除多表数据,不能少事务控制 如果涉及到删除mongo库数据时 阅读全文
posted @ 2019-02-14 18:46 想洗澡的鱼 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 1 public void importText(String osKey, MultipartFile file, String fileName) throws Exception { 2 if (!fileName.endsWith("txt")) { 3 throw new Exception("文件不是txt"); 4 ... 阅读全文
posted @ 2019-02-13 19:28 想洗澡的鱼 阅读(343) 评论(0) 推荐(0) 编辑