| | |
| | | @Override |
| | | public IPage<FwDeviceScrapVO> selectFwDeviceScrapPage(IPage<FwDeviceScrapVO> page, FwDeviceScrapDTO fwDeviceScrap) { |
| | | // 按当前部门及下级部门范围过滤数据 |
| | | if (!AuthUtil.isAdministrator()) { |
| | | List<Long> deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId())); |
| | | fwDeviceScrap.setDeptList(deptList); |
| | | } |
| | | return page.setRecords(baseMapper.selectFwDeviceScrapPage(page, fwDeviceScrap)); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public List<FwDeviceScrapExcel> exportFwDeviceScrap(Wrapper<FwDeviceScrapEntity> queryWrapper) { |
| | | List<FwDeviceScrapExcel> fwDeviceScrapList = baseMapper.exportFwDeviceScrap(queryWrapper); |
| | | //fwDeviceScrapList.forEach(fwDeviceScrap -> { |
| | | // fwDeviceScrap.setTypeName(DictCache.getValue(DictEnum.YES_NO, FwDeviceScrap.getType())); |
| | | //}); |
| | | return fwDeviceScrapList; |
| | | } |
| | | |