Commit 80d967ec by xugaojun

fix:修复一个lambda接收数据问题

parent b42924fb
......@@ -312,8 +312,15 @@ public class WelcomeServiceImpl implements WelcomeService {
logger.info("员工{}, 未设置部门", staffId);
return null;
}
List<TabHaobanStaffDepartmentRelated> filterStaffDepartmentList = departmentRelatedList.stream()
.filter(one -> StringUtils.isNotEmpty(one.getDepartmentId()))
.collect(Collectors.toList());
if (CollectionUtils.isEmpty(filterStaffDepartmentList)) {
logger.info("员工{}, 部门过滤为空", staffId);
return null;
}
// 获取部门列表
List<String> departmentIdList = departmentRelatedList.stream()
List<String> departmentIdList = filterStaffDepartmentList.stream()
.map(TabHaobanStaffDepartmentRelated::getDepartmentId).collect(Collectors.toList());
// 查询欢迎语适用范围
List<TabHaobanWelcomeSuitRang> welcomeSuitRangList = welcomeSuitRangMapper.listByWxEnterpriseIdAndDeptList(wxEnterpriseId, departmentIdList);
......
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