| | |
| | | import com.qianwen.smartman.modules.system.entity.Dept; |
| | | import com.qianwen.smartman.modules.system.vo.DeptVO; |
| | | |
| | | /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/wrapper/DeptWrapper.class */ |
| | | public class DeptWrapper extends BaseEntityWrapper<Dept, DeptVO> { |
| | | public static DeptWrapper build() { |
| | | return new DeptWrapper(); |
| | |
| | | } |
| | | |
| | | public List<DeptVO> listNodeVO(List<Dept> list) { |
| | | List<DeptVO> collect = (List) list.stream().map(dept -> { |
| | | List<DeptVO> collect = list.stream().map(dept -> { |
| | | DeptVO deptVO = (DeptVO) BeanUtil.copy(dept, DeptVO.class); |
| | | String category = DictCache.getValue(DictEnum.DATA_SCOPE_CATEGORY, dept.getDeptCategory()); |
| | | ((DeptVO) Objects.requireNonNull(deptVO)).setDeptCategoryName(category); |
| | |
| | | } |
| | | |
| | | public List<DeptVO> listNodeLazyVO(List<DeptVO> list) { |
| | | List<DeptVO> collect = (List) list.stream().peek(dept -> { |
| | | List<DeptVO> collect = list.stream().peek(dept -> { |
| | | String category = DictCache.getValue(DictEnum.DATA_SCOPE_CATEGORY, dept.getDeptCategory()); |
| | | ((DeptVO) Objects.requireNonNull(dept)).setDeptCategoryName(category); |
| | | }).collect(Collectors.toList()); |