摘要: private static void ListSort(List<Work_log> list) { Collections.sort(list, new Comparator<Work_log>() { @Override public int compare(Work_log o1, Work 阅读全文
posted @ 2019-06-21 14:42 小农_码 阅读(492) 评论(0) 推荐(0) 编辑
摘要: 第一步把ueditor文件放到webapp下 第二部编写初始化的controller 第三步配置ueditor.config.js到第二部controller的路径并且配置图片访问前缀可配可不配 第四步编写页面 到此结束 /** * 上传图片 * * @param request * @param 阅读全文
posted @ 2019-06-12 16:47 小农_码 阅读(276) 评论(0) 推荐(0) 编辑
摘要: SELECT date_format(( now() + INTERVAL -( 11 ) MONTH ), '%Y年%m月' ) AS `months` UNIONSELECT date_format(( now() + INTERVAL -( 10 ) MONTH ), '%Y年%m月' ) A 阅读全文
posted @ 2019-06-06 16:06 小农_码 阅读(193) 评论(0) 推荐(0) 编辑
摘要: /** * 员工树结构 */ @RequestMapping(value="/getZzjgTree") public @ResponseBody List<Map<String, Object>> getZzjgTree(Zzjg zzjg){ List<Zzjg> zzjgList = zzjg 阅读全文
posted @ 2019-06-05 16:46 小农_码 阅读(530) 评论(1) 推荐(1) 编辑
摘要: long days = mss / ( 60 * 60 * 24); long hours = (3601 % ( 60 * 60 * 24)) / (60 * 60); long minutes = (3601 % ( 60 * 60)) /60; long seconds = 3601 % 60 阅读全文
posted @ 2019-06-05 16:44 小农_码 阅读(1641) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-06-03 16:48 小农_码 阅读(480) 评论(0) 推荐(0) 编辑
摘要: 递归sql select t3.* from (select t1.*, if(find_in_set(pid, @pids) > 0, @pids := concat(@pids, ',', id), if (t1.id = @pids,@pids,0)) as ischild from ( se 阅读全文
posted @ 2019-06-02 14:42 小农_码 阅读(841) 评论(0) 推荐(0) 编辑
摘要: public class PoiUtil{ /** * 读取excel数据 * @param path */ public static ArrayList<Map<String,String>> readExcelToObj(File file) { Workbook wb = null; Arr 阅读全文
posted @ 2019-05-29 13:59 小农_码 阅读(1039) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-05-21 10:05 小农_码 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 一开始想用session监听器,不过有过期时间,并非实事。而且,如果不用jsp,就需要写个rest服务,供前段轮询调用接口,比如5秒一次,来刷新在线人数。影响性能。后来想到用WebSocket来做。刚好之前有用过socketio来推送消息,于是敲定方案。 我使用的是开源库,https://githu 阅读全文
posted @ 2019-05-20 10:55 小农_码 阅读(1461) 评论(0) 推荐(0) 编辑