| | |
| | | @Override |
| | | public IPage<FwDeviceMaintainPlanVO> selectFwDeviceMaintainPlanPage(IPage<FwDeviceMaintainPlanVO> page, FwDeviceMaintainPlanDTO fwDeviceMaintainPlan) { |
| | | // 按当前部门及下级部门范围过滤数据 |
| | | if (!AuthUtil.isAdministrator()) { |
| | | List<Long> deptList = SysCache.getDeptChildIds(Long.valueOf(AuthUtil.getDeptId())); |
| | | fwDeviceMaintainPlan.setDeptList(deptList); |
| | | } |
| | | return page.setRecords(baseMapper.selectFwDeviceMaintainPlanPage(page, fwDeviceMaintainPlan)); |
| | | } |
| | | |
| | |
| | | @Override |
| | | public List<FwDeviceMaintainPlanExcel> exportFwDeviceMaintainPlan(Wrapper<FwDeviceMaintainPlanEntity> queryWrapper) { |
| | | List<FwDeviceMaintainPlanExcel> fwDeviceMaintainPlanList = baseMapper.exportFwDeviceMaintainPlan(queryWrapper); |
| | | //fwDeviceMaintainPlanList.forEach(fwDeviceMaintainPlan -> { |
| | | // fwDeviceMaintainPlan.setTypeName(DictCache.getValue(DictEnum.YES_NO, FwDeviceMaintainPlan.getType())); |
| | | //}); |
| | | return fwDeviceMaintainPlanList; |
| | | } |
| | | |