|
|
|
@ -139,7 +139,7 @@ public class PoundlistServiceImpl extends ServiceImpl<PoundlistMapper, Poundlist
|
|
|
|
|
IPage<PoundlistEntity> userIPage = this.page(page, poundlistQueryWrapper);
|
|
|
|
|
List<PoundlistEntity> list = userIPage.getRecords();
|
|
|
|
|
Optional<PoundlistEntity> firstElement = list.stream().findFirst();
|
|
|
|
|
String department_id = firstElement.flatMap(list1 -> list.stream().filter(Objects::nonNull).findFirst())
|
|
|
|
|
String department_id = firstElement.flatMap(list1 -> firstElement.filter(Objects::nonNull))
|
|
|
|
|
.map(PoundlistEntity::getDepartmentId)
|
|
|
|
|
.orElse(null);
|
|
|
|
|
|
|
|
|
|