09 2020 档案

摘要:<if test="list!=null and list.size>0"> and create_by in <foreach collection="list" item="item" separator="," open="(" close=")" > #{item} </foreach> < 阅读全文
posted @ 2020-09-30 17:02 wangt1 阅读(118) 评论(0) 推荐(0)
摘要:<resultMap id="myMap" type="com.student.demo.domain.Student"> <id property="id1" column="id"/> <result property="names" column="name"/> <result proper 阅读全文
posted @ 2020-09-23 13:51 wangt1 阅读(128) 评论(0) 推荐(0)
摘要:需求,数据正序排列 目前数据为倒序排列,使用jkd1.8新特性进行排序 未排序之前 ↓ List<DataCockpitSalesXSE> collect = dataCockpitSalesXSES.stream().sorted(Comparator.comparing(DataCockpitS 阅读全文
posted @ 2020-09-23 09:44 wangt1 阅读(164) 评论(0) 推荐(0)
摘要:查询去年1-12月所有的月份,粘贴即可运行 SELECTCASE WHEN length( mon ) = 1 THEN concat( LEFT ( CURRENT_DATE, 5)-1, '-0', mon ) ELSE concat( LEFT ( CURRENT_DATE, 5 )-1,'- 阅读全文
posted @ 2020-09-18 17:12 wangt1 阅读(5762) 评论(0) 推荐(0)
摘要:获取dtos集合中total=500.00的salesman的集合。List<String> collect = dtos.stream().filter(d -> d.getTotal().equals("500.00")).map(ReportDTO::getSalesman).collect( 阅读全文
posted @ 2020-09-02 16:18 wangt1 阅读(667) 评论(0) 推荐(0)