- 博客(3)
- 收藏
- 关注
原创 【Java】时间格式化注解
由于LocalDateTime返回时时间中包含T的情况,需要对时间进行格式化。分析三种时间格式化注解的使用场景。
2023-02-03 10:13:48
2317
1
原创 【MP】去重统计报错 nested exception is org.apache.ibatis.exceptions.PersistenceException:
子查询(SELECT COUNT(DISTINCT id) FROM rec_table WHERE .. ) as idCount报错 Error querying database. Cause: java.lang.IndexOutOfBoundsException很多说因为Lombok的问题,我检查没有@builder的注解最后加上ifnull 就好了(SELECT IFNULL(COUNT(DISTINCT id) , 0)FROM rec_table WHERE .. ) as id
2022-05-20 19:43:34
299
原创 【Java8】 stream 使用
1.合并对象中属性为List的情况对象结构(示例):"report" : { "reportDate" : "2022-04-24", "alive" : 223, "details" : [ { "alive": 100 }, { "alive": 123 } ]}合并对象中details为一个List的代码如下(示例): List<Detail> detailList = reportList.stream().map(Report:
2022-04-24 17:45:23
356
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人