Commit 37ea1821 by 田超

Merge branch 'fixbug/1004570' into 'master'

bug:[1004570] fixNull

See merge request rays/pcloud-book!1254
parents f735fcd6 00262453
...@@ -476,7 +476,7 @@ public class AppletRecordBizImpl implements AppletRecordBiz { ...@@ -476,7 +476,7 @@ public class AppletRecordBizImpl implements AppletRecordBiz {
List<Long> wxWorkTeacherIds = recordList.stream().filter(appletRecordDTO -> AppletRecordTypeEnum.WX_WORK_TEACHER.value.equals(appletRecordDTO.getRecordType())). List<Long> wxWorkTeacherIds = recordList.stream().filter(appletRecordDTO -> AppletRecordTypeEnum.WX_WORK_TEACHER.value.equals(appletRecordDTO.getRecordType())).
map(AppletRecordDTO::getFromId).distinct().collect(Collectors.toList()); map(AppletRecordDTO::getFromId).distinct().collect(Collectors.toList());
List<Long> bookIds = recordList.stream().filter(appletRecordDTO -> AppletRecordTypeEnum.PRODUCT.value.equals(appletRecordDTO.getRecordType()) || AppletRecordTypeEnum.APP.value.equals(appletRecordDTO.getRecordType())) List<Long> bookIds = recordList.stream().filter(appletRecordDTO -> AppletRecordTypeEnum.PRODUCT.value.equals(appletRecordDTO.getRecordType()) || AppletRecordTypeEnum.APP.value.equals(appletRecordDTO.getRecordType()))
.map(AppletRecordDTO::getBookId).distinct().collect(Collectors.toList()); .map(AppletRecordDTO::getBookId).filter(e -> null != e).distinct().collect(Collectors.toList());
Map<Long, BookDto> bookDtoMap; Map<Long, BookDto> bookDtoMap;
CompletableFuture<Map<Long, BookDto>> bookDtoMapFuture = null; CompletableFuture<Map<Long, BookDto>> bookDtoMapFuture = null;
if (CollUtil.isNotEmpty(bookIds)) { if (CollUtil.isNotEmpty(bookIds)) {
......
...@@ -338,7 +338,7 @@ ...@@ -338,7 +338,7 @@
WHERE WHERE
BOOK_ID IN BOOK_ID IN
<foreach collection="list" index="i" item="item" open="(" separator="," close=")"> <foreach collection="list" index="i" item="item" open="(" separator="," close=")">
${item} #{item}
</foreach> </foreach>
</select> </select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment