-
Notifications
You must be signed in to change notification settings - Fork 0
/
company.txt
22 lines (16 loc) · 869 Bytes
/
company.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Optional.ofNullable(dept.getStatus()).orElse(1) jdk 允许为空,设置默认值
CollUtil.isEmpty(属性)
CollUtil.contains(topDeptList, id)
Objects.requireNonNull(id); 不允许为空
ObjectUtil.isNull(classT)
MapUtil.getStr(conditionMap, "dajdh");
getById()
CollUtil.removeNull // 移除空
wrapper.and(i -> i.like("name", name).or()
.like("name_full_pin_yin", name).or()
.like("name_simple_pin_yin", name)
);
Set<Long> attendeeUserSet = meeting.getAttendeeUser().stream()
.filter(meetingAttendeeUser -> ObjectUtil.isNotNull(meetingAttendeeUser.getId()))
.map(MeetingAttendeeUser::getId).collect(Collectors.toSet());
boolean isBad = participantList.stream().anyMatch(participant -> StringUtils.isBlank(participant.getAddress()) || participant.getMeetingId() == null);