数据权限,磅单列表模块修改!

product
巴卫 2 years ago
parent d6228c3006
commit 9765497bc0

@ -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);

Loading…
Cancel
Save