摘要: 1、判断用户所在部门是否在部门和其子部门下 List<String> orders=new ArrayList<>(); orders.add(“123"); orders.add(“456"); String orgId=“123”; int count = Collections.frequen 阅读全文
posted @ 2017-09-05 15:56 cielChen 阅读(757) 评论(0) 推荐(0)
摘要: 导出背景: 1、Activity 活动 → Coupon 优惠券 1: N 2、List<Activity>、List<ActivityDto> List<Coupon> List<CouponDto> 3、一个活动作为一个sheet导出,导出内容是相对应活动的优惠券 serverImpl: pub 阅读全文
posted @ 2017-09-05 15:55 cielChen 阅读(3826) 评论(0) 推荐(0)
摘要: eclipse插件:mybatipse的用法: 【转】https://segmentfault.com/a/1190000005733379 阅读全文
posted @ 2017-06-17 14:48 cielChen 阅读(1158) 评论(0) 推荐(0)
摘要: sql中的时间: 【转】http://blog.csdn.net/cangchen/article/details/44978531 阅读全文
posted @ 2017-06-14 21:17 cielChen 阅读(142) 评论(0) 推荐(0)
摘要: 1、直接pojo转dto的时候需要添加数据源的操作 2、lombok 和 mapstruct 在一起用的时候会存在测试环境update无效的bug https://github.com/rzwitserloot/lombok/issues/1359 3、⭐️解决maven项目出现大红唇的冲突 1、先 阅读全文
posted @ 2017-06-09 15:43 cielChen 阅读(252) 评论(0) 推荐(0)
摘要: [转]1、用 JSON 构建 API 的标准指南 : http://jsonapi.org.cn/ 2、spring : http://projects.spring.io/spring-hateoas/ 阅读全文
posted @ 2017-06-08 18:40 cielChen 阅读(417) 评论(0) 推荐(0)
摘要: 转载:http://www.cnblogs.com/qinpengming/p/6282207.html https://stackoverflow.com/questions/6352208/how-to-solve-plugin-execution-not-covered-by-lifecycl 阅读全文
posted @ 2017-05-23 17:38 cielChen 阅读(157) 评论(0) 推荐(0)
摘要: @SuppressWarnings("unchecked") @Transactional(readOnly = true) public ByteArrayOutputStream approvalExport(Integer deptId, String signedTime, String s 阅读全文
posted @ 2017-05-15 17:54 cielChen 阅读(524) 评论(0) 推荐(0)
摘要: 导出表格头标签为纵向的Excel表格 1、service层 @Transactional(readOnly = true) public HSSFWorkbook projectExports(Integer curPage, Integer perPageSum, Integer projectI 阅读全文
posted @ 2017-05-15 17:45 cielChen 阅读(1301) 评论(0) 推荐(0)