0325-北仑:客群修改+pad走访
This commit is contained in:
@@ -133,8 +133,13 @@ public class SysDeptServiceImpl implements ISysDeptService
|
||||
@Override
|
||||
public List<TreeSelect> selectDeptTreeListForTopGrid(SysDept dept) {
|
||||
List<SysDept> depts = SpringUtils.getAopProxy(this).selectDeptList(dept);
|
||||
List<SysDept> branchs = depts.stream().filter(sysDept -> !sysDept.getDeptType().equals("outlet"))
|
||||
.filter(sysDept -> !sysDept.getDeptType().equals("head"))
|
||||
if (depts == null || depts.isEmpty()) {
|
||||
return Collections.emptyList();
|
||||
}
|
||||
List<SysDept> branchs = depts.stream()
|
||||
.filter(Objects::nonNull)
|
||||
.filter(sysDept -> !"outlet".equals(sysDept.getDeptType()))
|
||||
.filter(sysDept -> !"head".equals(sysDept.getDeptType()))
|
||||
.collect(Collectors.toList());
|
||||
return buildDeptTreeSelect(branchs);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user