Commit 00262453 by 吴博

bug:[1004570] fixNull

parent f735fcd6
......@@ -476,7 +476,7 @@ public class AppletRecordBizImpl implements AppletRecordBiz {
List<Long> wxWorkTeacherIds = recordList.stream().filter(appletRecordDTO -> AppletRecordTypeEnum.WX_WORK_TEACHER.value.equals(appletRecordDTO.getRecordType())).
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()))
.map(AppletRecordDTO::getBookId).distinct().collect(Collectors.toList());
.map(AppletRecordDTO::getBookId).filter(e -> null != e).distinct().collect(Collectors.toList());
Map<Long, BookDto> bookDtoMap;
CompletableFuture<Map<Long, BookDto>> bookDtoMapFuture = null;
if (CollUtil.isNotEmpty(bookIds)) {
......
......@@ -338,7 +338,7 @@
WHERE
BOOK_ID IN
<foreach collection="list" index="i" item="item" open="(" separator="," close=")">
${item}
#{item}
</foreach>
</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